New module 'fmaf'.
[gnulib.git] / ChangeLog
1 2011-11-05  Bruno Haible  <bruno@clisp.org>
2
3         New module 'fmaf'.
4         * lib/math.in.h (fmaf): New declaration.
5         * lib/fmaf.c: New file.
6         * m4/fmaf.m4: New file.
7         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10         REPLACE_FMAF.
11         * modules/fmaf: New file.
12         * doc/posix-functions/fmaf.texi: Mention the new module and the various
13         bugs.
14
15         Tests for module 'fma'.
16         * modules/fma-tests: New file.
17         * tests/test-fma1.c: New file.
18         * tests/test-fma1.h: New file.
19         * tests/test-fma2.c: New file.
20         * tests/test-fma2.h: New file.
21
22         New module 'fma'.
23         * lib/math.in.h (fma): New declaration.
24         * lib/fma.c: New file.
25         * m4/fma.m4: New file.
26         * m4/fegetround.m4: New file.
27         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
28         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
30         REPLACE_FMA.
31         * modules/fma: New file.
32         * doc/posix-functions/fma.texi: Mention the new module and the various
33         bugs.
34
35         Extend gl_MATHFUNC.
36         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
37         Support 'void' as argument type.
38         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
39
40 2011-11-05  Jim Meyering  <meyering@redhat.com>
41
42         maint.mk: also prohibit inclusion of dirent.h without use
43         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
44
45 2011-11-05  Bruno Haible  <bruno@clisp.org>
46
47         ldexpl tests: Avoid test failure on MSVC 9.
48         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
49         value. Needed in order to enforce the conversion from a value greater
50         than LDBL_MAX to Infinity.
51
52 2011-11-05  Bruno Haible  <bruno@clisp.org>
53
54         New modules 'at-internal', 'openat-h', split off from module 'openat'.
55         * modules/at-internal: New file, extracted from modules/openat.
56         * modules/openat-h: New file.
57         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
58         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
59         * modules/openat (Description): Add reference to POSIX function.
60         (Files): Remove lib/openat.h, lib/openat-proc.c.
61         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
62         intprops, unistd.
63         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
64         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
65         gl_FCNTL_MODULE_INDICATOR.
66         (Include): Remove unistd.h, openat.h.
67         * modules/areadlinkat (Files): Add lib/at-func.c.
68         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
69         openat-die, openat-h, save-cwd.
70         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
71         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
72         openat-die, openat-h, save-cwd, unistd.
73         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
74         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
75         openat-h, save-cwd. Remove fcntl-h, openat.
76         * modules/fchmodat (Files): Remove lib/openat.h.
77         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
78         openat, stdbool, unistd.
79         * modules/fchownat (Files): Remove lib/openat.h.
80         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
81         openat, stdbool, sys_stat.
82         * modules/fdopendir (Files): Remove lib/openat-priv.h,
83         lib/openat-proc.c.
84         (Depends-on): Add at-internal.
85         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
86         * modules/fstatat (Files): Remove lib/openat.h.
87         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
88         stdbool, unistd.
89         * modules/fts (Depends-on): Add openat-h.
90         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
91         openat.
92         * modules/mkdirat (Files): Remove lib/openat.h.
93         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
94         openat, stdbool, sys_stat.
95         * modules/mkfifoat (Files): Add lib/at-func.c.
96         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
97         openat-h, save-cwd. Remove fcntl-h, openat.
98         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
99         * modules/readlinkat (Files): Add lib/at-func.c.
100         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
101         openat-h, save-cwd. Remove fcntl-h, openat.
102         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
103         openat.
104         * modules/selinux-at (Files): Add lib/at-func.c.
105         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
106         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
107         * modules/symlinkat (Files): Add lib/at-func.c.
108         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
109         openat-h, save-cwd. Remove fcntl-h, openat.
110         * modules/unlinkat (Files): Remove lib/openat.h.
111         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
112         stdbool.
113         * modules/utimensat (Files): Add lib/at-func.c.
114         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
115         openat-die, openat-h, save-cwd.
116         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
117         * modules/fdutimensat-tests (Depends-on): Add openat.
118         * modules/fstatat-tests (Depends-on): Add openat-h.
119         * modules/readlinkat-tests (Depends-on): Add openat.
120         * modules/symlinkat-tests (Depends-on): Add openat.
121
122 2011-11-05  Bruno Haible  <bruno@clisp.org>
123
124         openat: Include <stdbool.h>.
125         * lib/openat.c: Include <stdbool.h>.
126
127 2011-11-04  Bruno Haible  <bruno@clisp.org>
128
129         fchownat, renameat, unlinkat: Fix dependencies.
130         * modules/fchownat (Depends-on): Add fstatat.
131         * modules/renameat (Depends-on): Likewise.
132         * modules/unlinkat (Depends-on): Likewise.
133
134 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
135
136         openat: remove direct dependency on dirent
137         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
138         and hasn't been needed ever since fdopendir was split into its own
139         module on 2009-08-31.
140         * modules/openat (Depends-on): Remove dirent.
141
142 2011-11-04  Bruno Haible  <bruno@clisp.org>
143
144         renameat: Optimize code size.
145         * modules/renameat (configure.ac): Don't compile at-func2.c if
146         REPLACE_RENAMEAT is 1.
147
148 2011-11-04  Bruno Haible  <bruno@clisp.org>
149
150         openat tests: Fix file list.
151         * modules/openat-tests (Files): Add tests/test-open.h.
152
153 2011-11-04  Bruno Haible  <bruno@clisp.org>
154
155         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
156         * modules/fchmodat (Depends-on): Add openat-die.
157         * modules/fchownat (Depends-on): Likewise.
158         * modules/linkat (Depends-on): Likewise.
159         * modules/renameat (Depends-on): Likewise.
160         * modules/openat (Depends-on): Add dirent.
161
162 2011-11-04  Jim Meyering  <meyering@redhat.com>
163
164         at-func*.c: fix comments
165         * lib/at-func2.c: Correct/improve first-line comment.
166         * lib/at-func.c: Correct grammar in first-line comment.
167
168 2011-11-04  Bruno Haible  <bruno@clisp.org>
169
170         New module 'mkdirat', split off from module 'openat'.
171         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
172         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
173         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
174         * modules/mkdirat: New file, extracted from modules/openat.
175         * modules/openat (Files): Remove lib/mkdirat.c.
176         (Depends-on): Remove mkdir.
177         (configure.ac): Remove AC_LIBOBJ of mkdirat.
178         (Include): Remove <sys/stat.h>.
179         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
180         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
181         tests/test-mkdir.h.
182         (Depends-on): Remove ignore-value.
183         (Makefile.am): Remove rules for test-mkdirat.
184         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
185         of module 'openat'.
186         * NEWS: Mention the change.
187
188 2011-11-04  Bruno Haible  <bruno@clisp.org>
189
190         closedir: Avoid warning on mingw.
191         * lib/closedir.c: Include <unistd.h>.
192
193 2011-11-04  Bruno Haible  <bruno@clisp.org>
194
195         New module 'fstatat', split off from module 'openat'.
196         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
197         defined.
198         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
199         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
200         gl_FUNC_FSTATAT.
201         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
202         * modules/fstatat: New file, extracted from modules/openat.
203         * modules/openat (Files): Remove lib/fstatat.c.
204         (Depends-on): Remove lstat.
205         (configure.ac): Remove AC_LIBOBJ of fstatat.
206         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
207         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
208         tests/test-lstat.h, tests/test-stat.h.
209         (Depends-on): Remove getcwd-lgpl.
210         (Makefile.am): Remove rules for test-fstatat.
211         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
212         of module 'openat'.
213         * NEWS: Mention the change.
214         * modules/getcwd (Depends-on): Add fstatat.
215         * modules/linkat (Depends-on): Likewise.
216         * modules/mkfifoat-tests (Depends-on): Likewise.
217         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
218
219 2011-11-03  Bruno Haible  <bruno@clisp.org>
220
221         New module 'unlinkat', split off from module 'openat'.
222         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
223         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
224         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
225         * modules/unlinkat: New file, extracted from modules/openat. Correct
226         the dependency conditions.
227         * modules/openat (Files): Remove lib/unlinkat.c.
228         (Depends-on): Remove rmdir, unlink.
229         (configure.ac): Remove AC_LIBOBJ of unlinkat.
230         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
231         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
232         tests/test-rmdir.h, tests/test-unlink.h.
233         (Depends-on): Remove unlinkdir.
234         (Makefile.am): Remove rules for test-unlinkat.
235         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
236         of module 'openat'.
237         * NEWS: Mention the change.
238         * modules/linkat-tests (Depends-on): Add unlinkat.
239         * modules/mkfifoat-tests (Depends-on): Likewise.
240         * modules/readlinkat-tests (Depends-on): Likewise.
241
242 2011-11-02  Bruno Haible  <bruno@clisp.org>
243
244         New module 'fchmodat', split off from module 'openat'.
245         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
246         defined.
247         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
248         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
249         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
250         * modules/fchmodat: New file, extracted from modules/openat.
251         * modules/openat (Files): Remove lib/fchmodat.c.
252         (configure.ac): Remove AC_LIBOBJ of fchmodat.
253         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
254         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
255         (Makefile.am): Remove rules for test-fchmodat.
256         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
257         of module 'openat'.
258         * NEWS: Mention the change.
259
260 2011-11-02  Jim Meyering  <meyering@redhat.com>
261
262         putenv: indent #definition of "environ" to placate cppi
263         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
264
265         gitlog-to-changelog: provide a ChangeLog-repair mechanism
266         Git logs are often treated as immutable, because editing them
267         changes the SHA1 checksums of all descendants.  Thus, errors in
268         git logs tend to stay there forever.  However, when we generate
269         a ChangeLog file -- typically for distribution -- from that git log,
270         we can actually make corrections in the generated file.  The key
271         lies in recording in machine-readable/applicable form the desired
272         corrections.  See --help for description and an example.
273         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
274         (usage): Describe it; alphabetize option descriptions.
275         (main): Honor the new option, carefully.
276
277 2011-11-01  Jim Meyering  <meyering@redhat.com>
278
279         gitlog-to-changelog: avoid an infloop
280         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
281         that ends up being empty.
282
283 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
284
285         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
286         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
287         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
288         contains (possibly-quoted) backslashes.  This should avoid
289         all-too-common shell bugs if COMPLICATED contains backslashes in
290         the "wrong" places.  Reported by David Evans in
291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
292         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
293         because we want ASCII ranges.  Is there some reason we don't use
294         the C locale everywhere in this script?
295         (func_module, top level): Avoid unwanted pathname expansion when
296         $repo_url_prefix or $repo_url_suffix_repl contain shell
297         metacharacters like '?' and '*'.
298
299 2011-11-01  Bruno Haible  <bruno@clisp.org>
300
301         fchownat: Improve description.
302         * modules/fchownat (Description): Add link to function.
303
304 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
305
306         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
307         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
309         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
310
311 2011-11-01  Bruno Haible  <bruno@clisp.org>
312
313         alignof: Avoid collision with stdalign module.
314         * lib/alignof.h (alignof): Remove macro.
315         * NEWS: Mention the change.
316         Reported by Paul Eggert.
317
318 2011-11-01  Bruno Haible  <bruno@clisp.org>
319
320         New module 'fchownat', split off from module 'openat'.
321         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
322         defined.
323         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
324         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
325         invoke gl_FUNC_FCHOWNAT.
326         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
327         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
328         * modules/fchownat: New file, extracted from modules/openat.
329         * modules/openat (Files): Remove lib/fchownat.c.
330         (Depends-on): Remove lchown.
331         (configure.ac): Remove AC_LIBOBJ of fchownat.
332         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
333         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
334         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
335         (Depends-on): Remove mgetgroups, usleep, stat-time.
336         (configure.ac): Remove test for getegid.
337         (Makefile.am): Remove rules for test-fchownat.
338         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
339         of module 'openat'.
340         * NEWS: Mention the change.
341
342 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
343
344         stdalign: port better to MSVC and to Sun C 5.11
345         This fixes some of the problems reported by Bruno Haible in
346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
347         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
348         shortcomings of MSVC and of Sun C 5.11.
349         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
350         around __declspec arg.
351         * modules/stdalign-tests (Files): Add tests/macros.h.
352         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
353         Include macros.h, for ASSERT.
354         (DECLARE_ALIGNED): Remove.
355         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
356         to catch bug), and to 1 if not (simplifies the rest of the code).
357         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
358         (CHECK_AUTO): Remove.
359         (CHECK_ALIGNED): Check only the alignment of the static vars,
360         since auto var alignment isn't supported by Sun C 5.11.
361         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
362         ASSERT failures are easier to diagnose.
363
364 2011-10-31  Bruno Haible  <bruno@clisp.org>
365
366         doc about some IRIX 5.3 problems.
367         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
368         on IRIX 5.3.
369         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
370         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
371         5.3.
372         * doc/posix-functions/grantpt.texi: Likewise.
373         * doc/posix-functions/unlockpt.texi: Likewise.
374         * doc/posix-functions/lgamma.texi: Likewise.
375         * doc/posix-functions/nextafter.texi: Likewise.
376         * doc/posix-functions/remainder.texi: Likewise.
377         * doc/posix-functions/select.texi: Mention misplaced declaration on
378         IRIX 5.3.
379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
380
381 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
382
383         gitlog-to-changelog: fix git-log invocation.
384         git-log mishandles date strings before 1970-01-01 UTC, and there is
385         no use to specify --since=1970-01-01 by default anyway.
386         * build-aux/gitlog-to-changelog: By default, when no --since option
387         was given, do not specify explicit --since option to git-log.
388
389 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
390
391         gitlog-to-changelog: new option --append-dot.
392         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
393         first non-blank line of each commit message terminated with a dot.
394
395 2011-10-30  Bruno Haible  <bruno@clisp.org>
396
397         ffsl, ffsll: Avoid compilation error due to 'restrict'.
398         * lib/ffsl.h: Include <config.h>.
399         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
400
401 2011-10-30  Jim Meyering  <meyering@redhat.com>
402
403         GNUmakefile: reenable "make syntax-check" for most projects
404         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
405         build-aux variable", "syntax-check" would do nothing but succeed with
406         the "No version control files detected..." diagnostic (unless you
407         happened to override _build-aux via cfg.mk).
408         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
409         to precede inclusion of maint.mk.  Otherwise, these variables would
410         be used undefined in any project that does not override the default.
411
412 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
413
414         gitlog-to-changelog: treat a message with only blank lines as empty.
415         * build-aux/gitlog-to-changelog: Move the code that removes leading and
416         trailing blank lines before the code that issues a warning about an
417         empty commit message.
418
419 2011-10-30  Jim Meyering  <meyering@redhat.com>
420
421         test-parse-datetime.c: avoid new DST-related false positive test failure
422         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
423         based on the time/date we'll convert, not the current time.
424         Otherwise, the moment we cross a DST boundary like today's in
425         Europe, (CEST to CET), that offset ends up being one hour off.
426
427 2011-10-27  Bruno Haible  <bruno@clisp.org>
428
429         fstat: Tweak documentation.
430         * modules/fstat (Description): More precise description.
431
432 2011-10-27  Bruno Haible  <bruno@clisp.org>
433
434         Update documentation regarding 'largefile' module.
435         * doc/posix-functions/fstat.texi: Tweak wording.
436         * doc/posix-functions/opendir.texi: Mention that the module fixes the
437         problems with huge directories and/or small ino_t types.
438         * doc/posix-functions/readdir.texi: Likewise.
439         * doc/posix-functions/rewinddir.texi: Likewise.
440
441 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
442
443         maint.mk: don't maintain a second build-aux variable.
444         * maint.mk (build_aux): Removed.  The maintainer-makefile module
445         depends on GNUmakefile, which already maintains a cfg.mk
446         overridable $(_build-aux) for projects with a non-standard
447         build-aux directory location, although without the $(srcdir)
448         prefix.  Use that variable consistently instead of introducing a
449         second one.  Adjust all call sites.
450
451 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
452
453         Add stdalign module and use it in other modules.
454         This is based on a previous proposal by Bruno Haible
455         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
456
457         stdalign: new module
458         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
459         * modules/stdalign: New files.
460         * MODULES.html.sh (c1x_core_properties): Add stdalign.
461         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
462
463         stdalign-tests: new module
464         * modules/stdalign-tests, tests/test-stdalign.c: New files.
465
466         argp: use stdalign
467         * lib/argp-parse.c: Include <stdalign.h>.
468         (alignof): Remove.
469         * modules/argp (Depends-on): Add stdalign.
470
471         crypto libraries: use stdalign
472         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
473         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
474         Do not include <stdlib.h> twice, in md4.c.
475         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
476         because we are accessing a pointer's bit-pattern, not a size.
477         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
478         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
479         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
480         * modules/crypto/sha512: Likewise.
481
482         sys_socket: use stdalign, not alignof
483         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
484         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
485
486 2011-10-27  Bruno Haible  <bruno@clisp.org>
487
488         raise test: Avoid a test failure on Linux/MIPS.
489         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
490         because 99 is a valid signal on Linux/MIPS.
491
492 2011-10-27  Bruno Haible  <bruno@clisp.org>
493
494         nonblocking tests: Fix test failure on Linux/MIPS.
495         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
496         Set to 270000.
497
498 2011-10-27  Bruno Haible  <bruno@clisp.org>
499
500         utimensat: Work around problem on Linux/hppa.
501         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
502         values.
503         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
504
505 2011-10-25  Jim Meyering  <meyering@redhat.com>
506
507         maint.mk: fix a bug in sc_prohibit_stddef_without_use
508         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
509         after symbols like NULL, size_t, etc.
510         Reported by Alfred M. Szmidt.
511
512         maint.mk: exempt ENODATA from a syntax-check rule
513         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
514         from the sc_prohibit_always-defined_macros syntax-check rule.
515         Add a comment.  See this for more details:
516         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
517
518 2011-10-23  Jim Meyering  <meyering@redhat.com>
519
520         fts: close parent dir FD before returning from post-traversal fts_read
521         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
522         unlink A, even though an FD open on A remained.  This is suboptimal
523         (holding a file descriptor open longer than needed), but otherwise not
524         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
525         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
526         that represents a real problem: it causes the removal of A to fail
527         with e.g., "rm: cannot remove `A': Device or resource busy"
528
529         fts visits each directory twice and keeps a cache (fts_fd_ring) of
530         directory file descriptors.  After completing the final, FTS_DP,
531         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
532         cache, but then proceeded to add a new FD to it via the subsequent
533         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
534         final file descriptor would be closed only via fts_close's call to
535         fd_ring_clear.  Now, it is usually closed earlier, via the final
536         FTS_DP-returning fts_read call.
537         * lib/fts.c (restore_initial_cwd): New function, converted from
538         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
539         Update callers.
540         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
541         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
542
543 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
544             Bruno Haible  <bruno@clisp.org>
545             Jim Meyering  <jim@meyering.net>
546
547         readme-release: improve safety of release prep instructions.
548         * README-release: Don't git pull all branches when only master
549         is needed for the release process.
550         Run make maintainer-clean before changing trees and merging.
551         Don't try to run ./configure right after git pull in case files
552         that influence the bootstrap process have changed, move the
553         ./configure step to after running ./bootstrap.
554         Don't bootstrap "one last time"... it's the first time!
555
556 2011-10-22  Bruno Haible  <bruno@clisp.org>
557
558         errno, strerror-override: Support for MSVC 10.
559         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
560         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
561         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
562         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
563         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
564         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
565         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
566         Assign values compatible with MSVC 10.
567         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
568         New macros.
569         (GNULIB_defined_EWINSOCK): New macro.
570         * lib/strerror-override.c (strerror_override): Update accordingly.
571         * lib/strerror-override.h: Likewise.
572         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
573         longer equal to the corresponding errno value.
574         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
575
576 2011-10-22  Bruno Haible  <bruno@clisp.org>
577
578         perror: Recognize when test program crashes.
579         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
580         strerror, set gl_cv_func_perror_works to no.
581         Reported by Daniel Richard G. <skunk@iskunk.org>.
582
583         perror: Fix indentation.
584         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
585
586 2011-10-22  Bruno Haible  <bruno@clisp.org>
587
588         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
589         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
590         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
591         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
592         functions, not as a macro.
593         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
594         macros.
595         (isfinite, isinf, isnan, signbit): Check overloaded functions and
596         absence of macro.
597         Suggested by Eric Blake.
598         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
599
600 2011-10-21  Bruno Haible  <bruno@clisp.org>
601
602         relocatable-prog-wrapper: Don't leave object files behind.
603         * build-aux/install-reloc: Re-synchronize list of .o files to be
604         removed with list of compilation units.
605
606 2011-10-20  Bruno Haible  <bruno@clisp.org>
607
608         openpty, posix_openpt: Remove code duplication.
609         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
610         * lib/openpty.c: Include <stdlib.h>.
611         (openpty): Use posix_openpt on all platforms except IRIX.
612         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
613
614 2011-10-20  Bruno Haible  <bruno@clisp.org>
615
616         unlockpt: Detect invalid argument.
617         * lib/unlockpt.c: Include <fcntl.h>.
618         (unlockpt): Check whether fd is valid, using fcntl().
619         * modules/unlockpt (Depends-on): Add fcntl-h.
620
621 2011-10-20  Bruno Haible  <bruno@clisp.org>
622
623         openpty: Avoid compilation error on AIX 6.1.
624         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
625
626 2011-10-20  Bruno Haible  <bruno@clisp.org>
627
628         posix_openpt: Support for OpenBSD.
629         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
630         (posix_openpt) [OpenBSD]: New code.
631         * lib/grantpt.c: Include <fcntl.h>.
632         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
633         * modules/grantpt (Depends-on): Add fcntl-h.
634
635 2011-10-20  Bruno Haible  <bruno@clisp.org>
636
637         posix_openpt test: Coding style.
638         * tests/test-posix_openpt.c: Use GNU coding style.
639
640 2011-10-20  Bruno Haible  <bruno@clisp.org>
641
642         grantpt: Support --avoid=pt_chown.
643         * modules/grantpt (Files): Add lib/pty-private.h.
644
645 2011-10-20  Bruno Haible  <bruno@clisp.org>
646
647         posix_openpt: Fix autoconf macro.
648         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
649         unneeded check for _getpty.
650
651 2011-10-20  Bruno Haible  <bruno@clisp.org>
652
653         openpty: Update comments.
654         * lib/openpty.c: Add comments about Minix.
655
656 2011-10-19  Eric Blake  <eblake@redhat.com>
657
658         openpty: relax license
659         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
660
661         pt_chown: use configmake to simplify build
662         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
663
664         ptsname and others: relax license
665         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
666         * modules/unlockpt (License): Likewise.
667         * modules/pt_chown (License): Likewise.
668         * modules/ptsname (License): Likewise.
669         * modules/ttyname_r (License): Likewise.
670
671 2011-10-19  Jim Meyering  <meyering@redhat.com>
672
673         posix_openpt: remove spurious #endif
674         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
675
676 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
677
678         maint.mk: Respect $(build_aux) in web-manual rule.
679         * top/maint.mk (web-manual): Find gen-announce script in user's
680         $(build_aux) directory instead of hard-coding 'build-aux'.
681
682 2011-10-19  Bruno Haible  <bruno@clisp.org>
683
684         posix_openpt: Fix compilation error.
685         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
686         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
687         Mention the openpty module as an alternative.
688
689 2011-10-19  Bruno Haible  <bruno@clisp.org>
690
691         Support for old NeXTstep 3.3 frexp().
692         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
693         execution time of the test to 5 seconds.
694         Reported by Daniel Richard G. <skunk@iskunk.org>.
695
696 2011-10-19  Bruno Haible  <bruno@clisp.org>
697
698         Support for old NeXTstep 3.3 sed.
699         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
700         part, use /.../, not \|...|. Escape periods in the header file name.
701         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
702         Reported by Daniel Richard G. <skunk@iskunk.org>.
703
704 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
705
706         Support for old NeXTstep 3.3 gcc.
707         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
708         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
709         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
710         * lib/spawn.in.h (_Restrict_arr_): Likewise.
711         * lib/regex.h (_Restrict_arr_): Likewise.
712         * lib/regex_internal.h (re_token_t): Likewise.
713         * lib/regexec.c (check_node_accept_bytes): Likewise.
714         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
715
716 2011-10-18  Eric Blake  <eblake@redhat.com>
717
718         posix_openpt: new module
719         * modules/posix_openpt: New module.
720         * m4/posix_openpt.m4: New file.
721         * lib/posix_openpt.c: Likewise.
722         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
723         (gl_STDLIB_H_DEFAULTS): Set defaults.
724         * modules/stdlib (Makefile.am): Substitute macros.
725         * lib/stdlib.in.h (posix_openpt): Declare.
726         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
727         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
728         * modules/posix_openpt-tests: New test module.
729         * tests/test-posix_openpt.c: New test.
730
731 2011-10-15  Bruno Haible  <bruno@clisp.org>
732
733         xstrtoll: Fix compilation failure.
734         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
735         from lib/strtol.c.
736         * doc/posix-headers/limits.texi: Mention missing numerical limits on
737         some platforms.
738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
739
740 2011-10-15  Bruno Haible  <bruno@clisp.org>
741
742         vasnprintf: Optimize bit search operation.
743         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
745         gl_DOUBLE_EXPONENT_LOCATION.
746         * modules/vasnprintf (Files): Add m4/exponentd.m4.
747         * modules/unistdio/u8-vasnprintf (Files): Likewise.
748         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
749         * modules/unistdio/u16-vasnprintf (Files): Likewise.
750         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
751         * modules/unistdio/u32-vasnprintf (Files): Likewise.
752         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
753         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
754         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
755
756 2011-10-15  Bruno Haible  <bruno@clisp.org>
757
758         vasnprintf: Fix comments.
759         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
760
761 2011-10-14  Bruno Haible  <bruno@clisp.org>
762
763         Tests for module 'integer_length_ll'.
764         * modules/integer_length_ll-tests: New file.
765         * tests/test-integer_length_ll.c: New file.
766
767         New module 'integer_length_ll'.
768         * lib/integer_length_ll.c: New file.
769         * modules/integer_length_ll: New file.
770
771 2011-10-14  Bruno Haible  <bruno@clisp.org>
772
773         Tests for module 'integer_length_l'.
774         * modules/integer_length_l-tests: New file.
775         * tests/test-integer_length_l.c: New file.
776
777         New module 'integer_length_l'.
778         * lib/integer_length_l.c: New file.
779         * modules/integer_length_l: New file.
780
781 2011-10-14  Bruno Haible  <bruno@clisp.org>
782
783         Tests for module 'integer_length'.
784         * modules/integer_length-tests: New file.
785         * tests/test-integer_length.c: New file.
786
787         New module 'integer_length'.
788         * lib/integer_length.h: New file.
789         * lib/integer_length.c: New file.
790         * modules/integer_length: New file.
791
792 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
793
794         popen: Fix dependency conditions.
795         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
796
797 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
798
799         perror: Fix autoconf test.
800         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
801         <stdlib.h> and <string.h>.
802
803 2011-10-14  Bruno Haible  <bruno@clisp.org>
804
805         ffsl: Optimize on 64-bit platforms.
806         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
807         unrolling.
808
809 2011-10-13  Bruno Haible  <bruno@clisp.org>
810
811         ffsl: Optimize on 32-bit platforms.
812         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
813         use ffs() without a loop.
814
815         ffsl, ffsll: Optimize for GCC.
816         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
817         * lib/ffsl.c (GCC_BUILTIN): New macro.
818         * lib/ffsll.c (GCC_BUILTIN): Likewise.
819
820 2011-10-13  Bruno Haible  <bruno@clisp.org>
821
822         ffs, bcopy, memset: Support symbol renaming via config.h.
823         * lib/ffs.c: Include <config.h>.
824         * lib/bcopy.c: Likewise.
825         * lib/memset.c: Likewise.
826
827 2011-10-10  Bruno Haible  <bruno@clisp.org>
828
829         atanl: Simplify for platforms where 'long double' == 'double'.
830         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
831         alternative implementation.
832         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
833         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
834         * modules/atanl (Depends-on): Add atan. Update conditions.
835
836 2011-10-10  Bruno Haible  <bruno@clisp.org>
837
838         acosl: Simplify for platforms where 'long double' == 'double'.
839         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
840         alternative implementation.
841         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
842         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
843         * modules/acosl (Depends-on): Add acos. Update conditions.
844
845 2011-10-10  Bruno Haible  <bruno@clisp.org>
846
847         asinl: Simplify for platforms where 'long double' == 'double'.
848         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
849         alternative implementation.
850         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
851         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
852         * modules/asinl (Depends-on): Add asin. Update conditions.
853
854 2011-10-10  Bruno Haible  <bruno@clisp.org>
855
856         tanl: Simplify for platforms where 'long double' == 'double'.
857         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
858         implementation.
859         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
860         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
861         * modules/tanl (Depends-on): Add tan. Update conditions.
862         (configure.ac): Don't compile trigl.c if
863         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
864
865 2011-10-10  Bruno Haible  <bruno@clisp.org>
866
867         cosl: Simplify for platforms where 'long double' == 'double'.
868         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
869         implementation.
870         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
871         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
872         * modules/cosl (Depends-on): Add cos. Update conditions.
873         (configure.ac): Don't compile sincosl.c and trigl.c if
874         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
875
876 2011-10-10  Bruno Haible  <bruno@clisp.org>
877
878         sinl: Simplify for platforms where 'long double' == 'double'.
879         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
880         implementation.
881         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
882         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
883         * modules/sinl (Depends-on): Add sin. Update conditions.
884         (configure.ac): Don't compile sincosl.c and trigl.c if
885         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
886
887 2011-10-10  Bruno Haible  <bruno@clisp.org>
888
889         logl: Simplify for platforms where 'long double' == 'double'.
890         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
891         implementation.
892         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
893         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
894         * modules/logl (Depends-on): Add log. Update conditions.
895
896 2011-10-10  Bruno Haible  <bruno@clisp.org>
897
898         expl: Simplify for platforms where 'long double' == 'double'.
899         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
900         implementation.
901         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
902         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
903         * modules/expl (Depends-on): Add exp. Update conditions.
904
905 2011-10-10  Bruno Haible  <bruno@clisp.org>
906
907         sqrtl: Simplify for platforms where 'long double' == 'double'.
908         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
909         alternative implementation.
910         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
911         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
912         * modules/sqrtl (Depends-on): Update conditions.
913
914 2011-10-10  Bruno Haible  <bruno@clisp.org>
915
916         ldexpl: Simplify for platforms where 'long double' == 'double'.
917         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
918         alternative implementation.
919         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
920         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
921         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
922
923 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
924
925         ffsll: set correct witness
926         * modules/ffsll (configure.ac): Fix typo.
927
928 2011-10-10  Bruno Haible  <bruno@clisp.org>
929
930         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
931         * lib/printf-frexpl.c: Include <config.h>.
932         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
933         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
934         second time.
935         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
936         gl_LONG_DOUBLE_VS_DOUBLE.
937         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
938         conditions.
939
940 2011-10-10  Bruno Haible  <bruno@clisp.org>
941
942         frexpl: Simplify for platforms where 'long double' == 'double'.
943         * lib/frexpl.c: Include <config.h>.
944         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
945         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
946         time.
947         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
948         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
949         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
950         * modules/frexpl (Depends-on): Add frexp. Update conditions.
951         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
952         conditions.
953
954 2011-10-10  Jim Meyering  <meyering@redhat.com>
955
956         test-renameat: don't leave behind a temporary file
957         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
958           ERROR: files left in build directory after distclean:
959           ./gltests/test-renameat.too
960           make[1]: *** [distcleancheck] Error 1
961         Reported by Tom G. Christensen.
962
963 2011-10-09  Bruno Haible  <bruno@clisp.org>
964
965         rint: Determine RINT_LIBM correctly on AIX 7.
966         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
967         directly, not only through a function pointer. Also accept an optional
968         4th argument with extra code.
969         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
970         rintf() call by gcc when optimizing.
971
972         mathfunc.m4: Refactor.
973         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
974         m4 variable.
975
976 2011-10-09  Bruno Haible  <bruno@clisp.org>
977
978         rintl: Simplify for platforms where 'long double' == 'double'.
979         * lib/rintl.c: Include <config.h>.
980         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
981         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
982         time.
983         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
984         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
985         * modules/rintl (Depends-on): Add rint. Update conditions.
986
987 2011-10-09  Bruno Haible  <bruno@clisp.org>
988
989         roundl: Simplify for platforms where 'long double' == 'double'.
990         * lib/roundl.c: Include <config.h>.
991         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
992         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
993         time.
994         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
995         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
996         * modules/roundl (Depends-on): Add round. Update conditions.
997
998 2011-10-09  Bruno Haible  <bruno@clisp.org>
999
1000         truncl: Simplify for platforms where 'long double' == 'double'.
1001         * lib/truncl.c: Include <config.h>.
1002         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1003         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1004         time.
1005         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1006         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1007         * modules/truncl (Depends-on): Add trunc. Update conditions.
1008
1009 2011-10-09  Bruno Haible  <bruno@clisp.org>
1010
1011         ceill: Simplify for platforms where 'long double' == 'double'.
1012         * lib/ceill.c: Include <config.h>.
1013         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1014         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1015         time.
1016         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1017         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1018         * modules/ceill (Depends-on): Add ceil. Update conditions.
1019
1020 2011-10-09  Bruno Haible  <bruno@clisp.org>
1021
1022         floorl: Simplify for platforms where 'long double' == 'double'.
1023         * lib/floorl.c: Include <config.h>.
1024         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1025         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1026         time.
1027         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1028         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1029         * modules/floorl (Depends-on): Add floor. Update conditions.
1030
1031 2011-10-09  Bruno Haible  <bruno@clisp.org>
1032
1033         rint: Fix ordering constraints.
1034         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1035         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1036         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1037
1038 2011-10-09  Bruno Haible  <bruno@clisp.org>
1039
1040         copysignl: Simplify for platforms where 'long double' == 'double'.
1041         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1042         alternative.
1043         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1044         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1045         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1046
1047 2011-10-09  Bruno Haible  <bruno@clisp.org>
1048
1049         Tests for module 'rintl'.
1050         * modules/rintl-tests: New file.
1051         * tests/test-rintl.c: New file.
1052
1053         New module 'rintl'.
1054         * lib/math.in.h (rintl): New declaration.
1055         * lib/rintl.c: New file.
1056         * m4/rintl.m4: New file.
1057         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1059         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1060         * modules/rintl: New file.
1061         * tests/test-math-c++.cc: Check the declaration of rintl.
1062         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1063         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1064         * doc/posix-functions/rintl.texi: Mention the new module.
1065
1066 2011-10-09  Bruno Haible  <bruno@clisp.org>
1067
1068         Tests for module 'rintf'.
1069         * modules/rintf-tests: New file.
1070         * tests/test-rintf.c: New file.
1071
1072         New module 'rintf'.
1073         * lib/math.in.h (rintf): New declaration.
1074         * lib/rintf.c: New file.
1075         * m4/rintf.m4: New file.
1076         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1078         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1079         * modules/rintf: New file.
1080         * tests/test-math-c++.cc: Check the declaration of rintf.
1081         * doc/posix-functions/rintf.texi: Mention the new module.
1082
1083 2011-10-09  Bruno Haible  <bruno@clisp.org>
1084
1085         rint: Support for MSVC.
1086         * lib/math.in.h (rint): New declaration.
1087         * lib/rint.c: New file.
1088         * m4/rint.m4: New file.
1089         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1091         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1092         * modules/rint (Description): Fix.
1093         (Files): Add lib/rint.c, m4/rint.m4.
1094         (Depends-on): Add math.
1095         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1096         gl_MATH_MODULE_INDICATOR.
1097         * tests/test-math-c++.cc: Check the declaration of rint.
1098         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1099         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1100         * doc/posix-functions/rint.texi: Mention the replacement provided by
1101         the module.
1102
1103         rint tests: More tests.
1104         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1105         minus-zero.h, infinity.h, nan.h.
1106         (main): Skip the test if the current rounding mode is not standard. Add
1107         tests for negative numbers, minus zero, infinity, NaN.
1108         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1109         tests/nan.h.
1110         (Depends-on): Add isnand-nolibm.
1111
1112 2011-10-09  Bruno Haible  <bruno@clisp.org>
1113
1114         Tests for module 'copysignl'.
1115         * modules/copysignl-tests: New file.
1116         * tests/test-copysignl.c: New file.
1117
1118         New module 'copysignl'.
1119         * lib/math.in.h (copysignl): New declaration.
1120         * lib/copysignl.c: New file.
1121         * m4/copysignl.m4: New file.
1122         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1124         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1125         HAVE_COPYSIGNL.
1126         * modules/copysignl: New file.
1127         * tests/test-math-c++.cc: Check the declaration of copysignl.
1128         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1129         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1130         * doc/posix-functions/copysignl.texi: Mention the new module.
1131
1132 2011-10-09  Bruno Haible  <bruno@clisp.org>
1133
1134         Tests for module 'copysignf'.
1135         * modules/copysignf-tests: New file.
1136         * tests/test-copysignf.c: New file.
1137
1138         New module 'copysignf'.
1139         * lib/math.in.h (copysignf): New declaration.
1140         * lib/copysignf.c: New file.
1141         * m4/copysignf.m4: New file.
1142         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1144         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1145         HAVE_COPYSIGNF.
1146         * modules/copysignf: New file.
1147         * tests/test-math-c++.cc: Check the declaration of copysignf.
1148         * doc/posix-functions/copysignf.texi: Mention the new module.
1149
1150 2011-10-09  Bruno Haible  <bruno@clisp.org>
1151
1152         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1154         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1155         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1156         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1157         gl_SIGNAL_H_DEFAULTS.
1158
1159 2011-10-09  Bruno Haible  <bruno@clisp.org>
1160
1161         poll: Make macro safer.
1162         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1163         ac_cv_header_poll_h is not set.
1164
1165 2011-10-09  Bruno Haible  <bruno@clisp.org>
1166
1167         copysign: Provide replacement.
1168         * lib/math.in.h (copysign): New declaration.
1169         * lib/copysign.c: New file.
1170         * m4/copysign.m4: New file.
1171         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1173         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1174         HAVE_COPYSIGN.
1175         * modules/copysign (Description): Clarify.
1176         (Files): Add lib/copysign.c, m4/copysign.m4.
1177         (Depends-on): Add math, signbit.
1178         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1179         gl_MATH_MODULE_INDICATOR.
1180         * tests/test-math-c++.cc: Check the declaration of copysign.
1181         * doc/posix-functions/copysign.texi: Mention the effects of the module
1182         on Minix and MSVC.
1183
1184 2011-10-09  Bruno Haible  <bruno@clisp.org>
1185
1186         isinf: Ensure macro on AIX 5.1.
1187         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1188         macro.
1189         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1190
1191 2011-10-09  Bruno Haible  <bruno@clisp.org>
1192
1193         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1194         * modules/snprintf-posix-tests (configure.ac): Require
1195         gl_LONG_DOUBLE_VS_DOUBLE.
1196         * modules/sprintf-posix-tests (configure.ac): Likewise.
1197         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1198         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1199         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1200         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1201         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1202         tests on platforms where 'long double' is the same as 'double'.
1203         * tests/test-sprintf-posix.h (test_function): Likewise.
1204         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1205         * tests/test-vasprintf-posix.c (test_function): Likewise.
1206
1207         *printf: Fix for platforms where 'long double' == 'double'.
1208         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1209         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1210         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1211         * modules/fprintf-posix (Files): Likewise.
1212         * modules/obstack-printf-posix (Files): Likewise.
1213         * modules/snprintf-posix (Files): Likewise.
1214         * modules/sprintf-posix (Files): Likewise.
1215         * modules/vasnprintf (Files): Likewise.
1216         * modules/vasnprintf-posix (Files): Likewise.
1217         * modules/vasprintf-posix (Files): Likewise.
1218         * modules/vdprintf-posix (Files): Likewise.
1219         * modules/vfprintf-posix (Files): Likewise.
1220         * modules/vsnprintf-posix (Files): Likewise.
1221         * modules/vsprintf-posix (Files): Likewise.
1222         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1223         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1224         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1225         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1226         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1227         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1228         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1229
1230         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1231         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1232         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1233         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1234         'long double'.
1235         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1236
1237         isinf: Fix for platforms where 'long double' == 'double'.
1238         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1239         Don't blindly assume 80-bit 'long double'.
1240
1241         isfinite: Fix for platforms where 'long double' == 'double'.
1242         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1243         Don't blindly assume 80-bit 'long double'.
1244
1245         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1246         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1247         * modules/isfinite-tests (configure.ac): Require
1248         gl_LONG_DOUBLE_VS_DOUBLE.
1249         * modules/isinf-tests (configure.ac): Likewise.
1250         * modules/isnan-tests (configure.ac): Likewise.
1251         * modules/isnanl-tests (configure.ac): Likewise.
1252         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1253         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1254         tests on platforms where 'long double' is the same as 'double'.
1255         * tests/test-isinf.c (test_isinfl): Likewise.
1256         * tests/test-isnan.c (test_long_double): Likewise.
1257         * tests/test-isnanl.h (main): Likewise.
1258
1259 2011-10-08  Bruno Haible  <bruno@clisp.org>
1260
1261         Tests for module 'tanhf'.
1262         * modules/tanhf-tests: New file.
1263         * tests/test-tanhf.c: New file.
1264
1265         New module 'tanhf'.
1266         * lib/math.in.h (tanhf): New declaration.
1267         * lib/tanhf.c: New file.
1268         * m4/tanhf.m4: New file.
1269         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1271         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1272         * modules/tanhf: New file.
1273         * tests/test-math-c++.cc: Check the declaration of tanhf.
1274         * doc/posix-functions/tanhf.texi: Mention the new module.
1275
1276         tanh: Use a .m4 file.
1277         * m4/tanh.m4: New file.
1278         * modules/tanh (Files): Add it.
1279         (configure.ac): Just invoke gl_FUNC_TANH.
1280
1281 2011-10-08  Bruno Haible  <bruno@clisp.org>
1282
1283         Tests for module 'coshf'.
1284         * modules/coshf-tests: New file.
1285         * tests/test-coshf.c: New file.
1286
1287         New module 'coshf'.
1288         * lib/math.in.h (coshf): New declaration.
1289         * lib/coshf.c: New file.
1290         * m4/coshf.m4: New file.
1291         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1293         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1294         * modules/coshf: New file.
1295         * tests/test-math-c++.cc: Check the declaration of coshf.
1296         * doc/posix-functions/coshf.texi: Mention the new module.
1297
1298         cosh: Use a .m4 file.
1299         * m4/cosh.m4: New file.
1300         * modules/cosh (Files): Add it.
1301         (configure.ac): Just invoke gl_FUNC_COSH.
1302
1303 2011-10-08  Bruno Haible  <bruno@clisp.org>
1304
1305         Tests for module 'sinhf'.
1306         * modules/sinhf-tests: New file.
1307         * tests/test-sinhf.c: New file.
1308
1309         New module 'sinhf'.
1310         * lib/math.in.h (sinhf): New declaration.
1311         * lib/sinhf.c: New file.
1312         * m4/sinhf.m4: New file.
1313         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1315         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1316         * modules/sinhf: New file.
1317         * tests/test-math-c++.cc: Check the declaration of sinhf.
1318         * doc/posix-functions/sinhf.texi: Mention the new module.
1319
1320         sinh: Use a .m4 file.
1321         * m4/sinh.m4: New file.
1322         * modules/sinh (Files): Add it.
1323         (configure.ac): Just invoke gl_FUNC_SINH.
1324
1325 2011-10-08  Bruno Haible  <bruno@clisp.org>
1326
1327         Tests for module 'atan2f'.
1328         * modules/atan2f-tests: New file.
1329         * tests/test-atan2f.c: New file.
1330
1331         New module 'atan2f'.
1332         * lib/math.in.h (atan2f): New declaration.
1333         * lib/atan2f.c: New file.
1334         * m4/atan2f.m4: New file.
1335         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1337         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1338         * modules/atan2f: New file.
1339         * tests/test-math-c++.cc: Check the declaration of atan2f.
1340         * doc/posix-functions/atan2f.texi: Mention the new module.
1341
1342         atan2: Use a .m4 file.
1343         * m4/atan2.m4: New file.
1344         * modules/atan2 (Files): Add it.
1345         (configure.ac): Just invoke gl_FUNC_ATAN2.
1346
1347 2011-10-08  Bruno Haible  <bruno@clisp.org>
1348
1349         Tests for module 'atanf'.
1350         * modules/atanf-tests: New file.
1351         * tests/test-atanf.c: New file.
1352
1353         New module 'atanf'.
1354         * lib/math.in.h (atanf): New declaration.
1355         * lib/atanf.c: New file.
1356         * m4/atanf.m4: New file.
1357         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1359         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1360         * modules/atanf: New file.
1361         * tests/test-math-c++.cc: Check the declaration of atanf.
1362         * doc/posix-functions/atanf.texi: Mention the new module.
1363
1364         atan: Use a .m4 file.
1365         * m4/atan.m4: New file.
1366         * modules/atan (Files): Add it.
1367         (configure.ac): Just invoke gl_FUNC_ATAN.
1368
1369 2011-10-08  Bruno Haible  <bruno@clisp.org>
1370
1371         Tests for module 'acosf'.
1372         * modules/acosf-tests: New file.
1373         * tests/test-acosf.c: New file.
1374
1375         New module 'acosf'.
1376         * lib/math.in.h (acosf): New declaration.
1377         * lib/acosf.c: New file.
1378         * m4/acosf.m4: New file.
1379         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1381         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1382         * modules/acosf: New file.
1383         * tests/test-math-c++.cc: Check the declaration of acosf.
1384         * doc/posix-functions/acosf.texi: Mention the new module.
1385
1386         acos: Use a .m4 file.
1387         * m4/acos.m4: New file.
1388         * modules/acos (Files): Add it.
1389         (configure.ac): Just invoke gl_FUNC_ACOS.
1390
1391 2011-10-08  Bruno Haible  <bruno@clisp.org>
1392
1393         Tests for module 'asinf'.
1394         * modules/asinf-tests: New file.
1395         * tests/test-asinf.c: New file.
1396
1397         New module 'asinf'.
1398         * lib/math.in.h (asinf): New declaration.
1399         * lib/asinf.c: New file.
1400         * m4/asinf.m4: New file.
1401         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1403         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1404         * modules/asinf: New file.
1405         * tests/test-math-c++.cc: Check the declaration of asinf.
1406         * doc/posix-functions/asinf.texi: Mention the new module.
1407
1408         asin: Use a .m4 file.
1409         * m4/asin.m4: New file.
1410         * modules/asin (Files): Add it.
1411         (configure.ac): Just invoke gl_FUNC_ASIN.
1412
1413 2011-10-08  Bruno Haible  <bruno@clisp.org>
1414
1415         Tests for module 'tanf'.
1416         * modules/tanf-tests: New file.
1417         * tests/test-tanf.c: New file.
1418
1419         New module 'tanf'.
1420         * lib/math.in.h (tanf): New declaration.
1421         * lib/tanf.c: New file.
1422         * m4/tanf.m4: New file.
1423         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1425         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1426         * modules/tanf: New file.
1427         * tests/test-math-c++.cc: Check the declaration of tanf.
1428         * doc/posix-functions/tanf.texi: Mention the new module.
1429
1430         tan: Use a .m4 file.
1431         * m4/tan.m4: New file.
1432         * modules/tan (Files): Add it.
1433         (configure.ac): Just invoke gl_FUNC_TAN.
1434
1435 2011-10-08  Bruno Haible  <bruno@clisp.org>
1436
1437         Tests for module 'cosf'.
1438         * modules/cosf-tests: New file.
1439         * tests/test-cosf.c: New file.
1440
1441         New module 'cosf'.
1442         * lib/math.in.h (cosf): New declaration.
1443         * lib/cosf.c: New file.
1444         * m4/cosf.m4: New file.
1445         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1447         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1448         * modules/cosf: New file.
1449         * tests/test-math-c++.cc: Check the declaration of cosf.
1450         * doc/posix-functions/cosf.texi: Mention the new module.
1451
1452         cos: Use a .m4 file.
1453         * m4/cos.m4: New file.
1454         * modules/cos (Files): Add it.
1455         (configure.ac): Just invoke gl_FUNC_COS.
1456
1457 2011-10-08  Bruno Haible  <bruno@clisp.org>
1458
1459         Tests for module 'sinf'.
1460         * modules/sinf-tests: New file.
1461         * tests/test-sinf.c: New file.
1462
1463         New module 'sinf'.
1464         * lib/math.in.h (sinf): New declaration.
1465         * lib/sinf.c: New file.
1466         * m4/sinf.m4: New file.
1467         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1469         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1470         * modules/sinf: New file.
1471         * tests/test-math-c++.cc: Check the declaration of sinf.
1472         * doc/posix-functions/sinf.texi: Mention the new module.
1473
1474         sin: Use a .m4 file.
1475         * m4/sin.m4: New file.
1476         * modules/sin (Files): Add it.
1477         (configure.ac): Just invoke gl_FUNC_SIN.
1478
1479 2011-10-08  Bruno Haible  <bruno@clisp.org>
1480
1481         Tests for module 'powf'.
1482         * modules/powf-tests: New file.
1483         * tests/test-powf.c: New file.
1484
1485         New module 'powf'.
1486         * lib/math.in.h (powf): New declaration.
1487         * lib/powf.c: New file.
1488         * m4/powf.m4: New file.
1489         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1491         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1492         * modules/powf: New file.
1493         * tests/test-math-c++.cc: Check the declaration of powf.
1494         * doc/posix-functions/powf.texi: Mention the new module.
1495
1496         pow: Use a .m4 file.
1497         * m4/pow.m4: New file.
1498         * modules/pow (Files): Add it.
1499         (configure.ac): Just invoke gl_FUNC_POW.
1500
1501 2011-10-08  Bruno Haible  <bruno@clisp.org>
1502
1503         Tests for module 'log10f'.
1504         * modules/log10f-tests: New file.
1505         * tests/test-log10f.c: New file.
1506
1507         New module 'log10f'.
1508         * lib/math.in.h (log10f): New declaration.
1509         * lib/log10f.c: New file.
1510         * m4/log10f.m4: New file.
1511         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1513         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1514         * modules/log10f: New file.
1515         * tests/test-math-c++.cc: Check the declaration of log10f.
1516         * doc/posix-functions/log10f.texi: Mention the new module.
1517
1518         log10: Use a .m4 file.
1519         * m4/log10.m4: New file.
1520         * modules/log10 (Files): Add it.
1521         (configure.ac): Just invoke gl_FUNC_LOG10.
1522
1523 2011-10-08  Bruno Haible  <bruno@clisp.org>
1524
1525         Tests for module 'logf'.
1526         * modules/logf-tests: New file.
1527         * tests/test-logf.c: New file.
1528
1529         New module 'logf'.
1530         * lib/math.in.h (logf): New declaration.
1531         * lib/logf.c: New file.
1532         * m4/logf.m4: New file.
1533         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1535         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1536         * modules/logf: New file.
1537         * tests/test-math-c++.cc: Check the declaration of logf.
1538         * doc/posix-functions/logf.texi: Mention the new module.
1539
1540         log: Use a .m4 file.
1541         * m4/log.m4: New file.
1542         * modules/log (Files): Add it.
1543         (configure.ac): Just invoke gl_FUNC_LOG.
1544
1545 2011-10-08  Bruno Haible  <bruno@clisp.org>
1546
1547         Tests for module 'expf'.
1548         * modules/expf-tests: New file.
1549         * tests/test-expf.c: New file.
1550
1551         New module 'expf'.
1552         * lib/math.in.h (expf): New declaration.
1553         * lib/expf.c: New file.
1554         * m4/expf.m4: New file.
1555         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1557         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1558         * modules/expf: New file.
1559         * tests/test-math-c++.cc: Check the declaration of expf.
1560         * doc/posix-functions/expf.texi: Mention the new module.
1561
1562         exp: Use a .m4 file.
1563         * m4/exp.m4: New file.
1564         * modules/exp (Files): Add it.
1565         (configure.ac): Just invoke gl_FUNC_EXP.
1566
1567 2011-10-08  Bruno Haible  <bruno@clisp.org>
1568
1569         Tests for module 'sqrtf'.
1570         * modules/sqrtf-tests: New file.
1571         * tests/test-sqrtf.c: New file.
1572
1573         New module 'sqrtf'.
1574         * lib/math.in.h (sqrtf): New declaration.
1575         * lib/sqrtf.c: New file.
1576         * m4/sqrtf.m4: New file.
1577         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1579         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1580         * modules/sqrtf: New file.
1581         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1582         * doc/posix-functions/sqrtf.texi: Mention the new module.
1583
1584 2011-10-08  Bruno Haible  <bruno@clisp.org>
1585
1586         Tests: Avoid link failures w.r.t. libintl.
1587         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1588         $(LIBINTL).
1589         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1590         $(LIBINTL).
1591         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1592         against $(LIBINTL).
1593         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1594         $(LIBINTL).
1595         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1596         $(LIBINTL).
1597         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1598
1599 2011-10-08  Bruno Haible  <bruno@clisp.org>
1600
1601         pow tests: Defeat compiler optimizations.
1602         * tests/test-pow.c (main): Assign arguments to x and y before use.
1603
1604 2011-10-08  Bruno Haible  <bruno@clisp.org>
1605
1606         gnulib-tool: Improve last commit.
1607         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1608         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1609         ignore dependencies that are not among the modules list.
1610
1611 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1612
1613         gnulib-tool: don't follow dependencies to avoided modules
1614         This fixes a bug that is related to the previous one.
1615         * gnulib-tool (func_modules_transitive_closure)
1616         (func_emit_autoconf_snippets):
1617         Check whether a dependency is acceptable before using it.
1618         (--extract-dependencies): Report an error if --avoid is also used,
1619         since this combination of options is not yet supported.
1620
1621         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1622         Problem reported by Peter Dyballa in
1623         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1624         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1625         when echoing "$condition".
1626
1627 2011-10-07  Bruno Haible  <bruno@clisp.org>
1628
1629         Fix documentation about math functions on MacOS X.
1630         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1631         MacOS X 10.5.
1632         * doc/posix-functions/fdim.texi: Likewise.
1633         * doc/posix-functions/feclearexcept.texi: Likewise.
1634         * doc/posix-functions/fegetenv.texi: Likewise.
1635         * doc/posix-functions/fegetround.texi: Likewise.
1636         * doc/posix-functions/feholdexcept.texi: Likewise.
1637         * doc/posix-functions/feraiseexcept.texi: Likewise.
1638         * doc/posix-functions/fesetenv.texi: Likewise.
1639         * doc/posix-functions/fesetround.texi: Likewise.
1640         * doc/posix-functions/fetestexcept.texi: Likewise.
1641         * doc/posix-functions/feupdateenv.texi: Likewise.
1642         * doc/posix-functions/fmax.texi: Likewise.
1643         * doc/posix-functions/fmin.texi: Likewise.
1644         * doc/posix-functions/log2.texi: Likewise.
1645         * doc/posix-functions/modff.texi: Likewise.
1646         * doc/posix-functions/nan.texi: Likewise.
1647         * doc/posix-functions/nanf.texi: Likewise.
1648         * doc/posix-functions/nextafterf.texi: Likewise.
1649         * doc/posix-functions/remquo.texi: Likewise.
1650
1651 2011-10-07  Bruno Haible  <bruno@clisp.org>
1652
1653         modff: Drop assumption about library that defines modff.
1654         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1655         AC_CHECK_FUNCS.
1656         * modules/modff (Files): Add m4/mathfunc.m4.
1657
1658 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1659
1660         raise tests: Avoid a GCC warning.
1661         * tests/test-raise.c (handler): Use _Noreturn.
1662
1663 2011-10-07  Bruno Haible  <bruno@clisp.org>
1664
1665         Tests for module 'ldexpf'.
1666         * modules/ldexpf-tests: New file.
1667         * tests/test-ldexpf.c: New file.
1668
1669         New module 'ldexpf'.
1670         * lib/math.in.h (ldexpf): New declaration.
1671         * lib/ldexpf.c: New file.
1672         * m4/ldexpf.m4: New file.
1673         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1675         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1676         * modules/ldexpf: New file.
1677         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1678         * doc/posix-functions/ldexpf.texi: Mention the new module.
1679
1680 2011-10-06  Bruno Haible  <bruno@clisp.org>
1681
1682         frexpf: Work around problems on IRIX and mingw.
1683         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1685         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1686         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1687         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1688         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1689         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1690
1691 2011-10-06  Bruno Haible  <bruno@clisp.org>
1692
1693         fabsf: Drop assumption about library that defines fabsf.
1694         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1695         AC_CHECK_FUNCS.
1696         * modules/fabsf (Files): Add m4/mathfunc.m4.
1697
1698 2011-10-06  Bruno Haible  <bruno@clisp.org>
1699
1700         frexpf: Drop assumption about library that defines frexpf.
1701         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1702         'int *', 'float *', 'long double *', 'float', 'long double'.
1703         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1704         AC_CHECK_FUNCS.
1705         * modules/frexpf (Files): Add m4/mathfunc.m4.
1706
1707         Tests for module 'frexpf'.
1708         * modules/frexpf-tests: New file.
1709         * tests/test-frexpf.c: New file.
1710
1711         New module 'frexpf'.
1712         * lib/math.in.h (frexpf): New declaration.
1713         * lib/frexpf.c: New file.
1714         * m4/frexpf.m4: New file.
1715         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1717         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1718         * modules/frexpf: New file.
1719         * tests/test-math-c++.cc: Check the declaration of frexpf.
1720         * doc/posix-functions/frexpf.texi: Mention the new module.
1721
1722 2011-10-06  Bruno Haible  <bruno@clisp.org>
1723
1724         math: Sort function declarations of math.in.h.
1725         * lib/math.in.h (frexp, logb): Move declarations.
1726
1727 2011-10-05  Bruno Haible  <bruno@clisp.org>
1728
1729         Tests for module 'modff'.
1730         * modules/modff-tests: New file.
1731         * tests/test-modff.c: New file.
1732
1733         New module 'modff'.
1734         * lib/math.in.h (modff): New declaration.
1735         * lib/modff.c: New file.
1736         * m4/modff.m4: New file.
1737         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1739         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1740         * modules/modff: New file.
1741         * tests/test-math-c++.cc: Check the declaration of modff.
1742         * doc/posix-functions/modff.texi: Mention the new module.
1743
1744         modf tests: Make test sharper.
1745         * tests/test-modf.c (main): Strengthen upper bound.
1746
1747         modf: Use a .m4 file.
1748         * m4/modf.m4: New file.
1749         * modules/modf (Files): Add it.
1750         (configure.ac): Just invoke gl_FUNC_MODF.
1751
1752 2011-10-05  Bruno Haible  <bruno@clisp.org>
1753
1754         Tests for module 'fmodf'.
1755         * modules/fmodf-tests: New file.
1756         * tests/test-fmodf.c: New file.
1757
1758         New module 'fmodf'.
1759         * lib/math.in.h (fmodf): New declaration.
1760         * lib/fmodf.c: New file.
1761         * m4/fmodf.m4: New file.
1762         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1764         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1765         * modules/fmodf: New file.
1766         * tests/test-math-c++.cc: Check the declaration of fmodf.
1767         * doc/posix-functions/fmodf.texi: Mention the new module.
1768
1769         fmod: Use a .m4 file.
1770         * m4/fmod.m4: New file.
1771         * modules/fmod (Files): Add it.
1772         (configure.ac): Just invoke gl_FUNC_FMOD.
1773
1774 2011-10-05  Bruno Haible  <bruno@clisp.org>
1775
1776         Tests for module 'fabsf'.
1777         * modules/fabsf-tests: New file.
1778         * tests/test-fabsf.c: New file.
1779
1780         New module 'fabsf'.
1781         * lib/math.in.h (fabsf): New declaration.
1782         * lib/fabsf.c: New file.
1783         * m4/fabsf.m4: New file.
1784         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1786         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1787         * modules/fabsf: New file.
1788         * tests/test-math-c++.cc: Check the declaration of fabsf.
1789         * doc/posix-functions/fabsf.texi: Mention the new module.
1790
1791         fabs: Use a .m4 file.
1792         * m4/fabs.m4: New file.
1793         * modules/fabs (Files): Add it.
1794         (configure.ac): Just invoke gl_FUNC_FABS.
1795
1796 2011-10-05  Jim Meyering  <meyering@redhat.com>
1797
1798         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1799         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1800         ls -lL regression introduced in coreutils-8.12, it does so at the
1801         cost of an additional stat call in the common case.  Besides, now
1802         that the kernel change that prompted commit 95f7c57f has been reverted
1803         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1804         we have no use for commit 95f7c57f, "file-has-acl: use
1805         acl_extended_file_nofollow if available".
1806
1807 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1808
1809         file-has-acl: revert unintended change in behavior of ls -L
1810         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1811         derived from...
1812         (file_has_acl): ...code here.  Call it.
1813         This problem was introduced with 2011-07-22 commit 95f7c57f,
1814         "file-has-acl: use acl_extended_file_nofollow if available".
1815         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1816
1817 2011-10-03  Bruno Haible  <bruno@clisp.org>
1818
1819         poll: Avoid link errors on MSVC.
1820         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1821         * modules/poll (Depends-on): Add sockets.
1822         (Link): New section.
1823         * NEWS: Mention the change.
1824         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1825         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1826         $(LIB_POLL) instead of $(LIBSOCKET).
1827
1828 2011-10-03  Bruno Haible  <bruno@clisp.org>
1829
1830         sys_select tests: Fix link error on MSVC 9.
1831         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1832         with $(LIB_SELECT) instead of $(LIBSOCKET).
1833
1834 2011-10-03  Bruno Haible  <bruno@clisp.org>
1835
1836         sys_select: Fix compilation error on mingw.
1837         * lib/sys_select.in.h: On native Windows, include <io.h>.
1838
1839 2011-10-03  Bruno Haible  <bruno@clisp.org>
1840
1841         wmemset: Support for MSVC.
1842         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1843         whether wmemset() exists.
1844
1845 2011-10-03  Bruno Haible  <bruno@clisp.org>
1846
1847         wmemmove: Support for MSVC.
1848         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1849         whether wmemmove() exists.
1850
1851 2011-10-03  Bruno Haible  <bruno@clisp.org>
1852
1853         wmemcpy: Support for MSVC.
1854         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1855         whether wmemcpy() exists.
1856
1857 2011-10-03  Bruno Haible  <bruno@clisp.org>
1858
1859         wmemcmp: Support for MSVC.
1860         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1861         whether wmemcmp() exists.
1862
1863 2011-10-03  Bruno Haible  <bruno@clisp.org>
1864
1865         wmemchr: Support for MSVC.
1866         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1867         whether wmemchr() exists.
1868
1869 2011-10-03  Bruno Haible  <bruno@clisp.org>
1870
1871         glthread/*, strsignal: Support for MSVC.
1872         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1873         including <winsock.h> on MSVC 9.
1874         * lib/glthread/lock.h: Likewise.
1875         * lib/glthread/thread.h: Likewise.
1876         * lib/glthread/tls.h: Likewise.
1877         * lib/glthread/yield.h: Likewise.
1878         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1879         if HAVE_UNISTD_H is false.
1880         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1881
1882 2011-10-03  Bruno Haible  <bruno@clisp.org>
1883
1884         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1885         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1886         Set to 100000.
1887
1888 2011-10-03  Bruno Haible  <bruno@clisp.org>
1889
1890         acl: Fix specification.
1891         * lib/file-has-acl.c (file_has_acl): Fix specification.
1892
1893 2011-10-03  Bruno Haible  <bruno@clisp.org>
1894
1895         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1896         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1897         (compute_curr_prefix, shared_library_fullname,
1898         find_shared_library_fullname, get_shared_library_fullname, relocate):
1899         Use it together with PIC && INSTALLDIR.
1900         Reported by <jojelino@gmail.com>
1901         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1902
1903 2011-10-01  Jim Meyering  <meyering@redhat.com>
1904
1905         maint.mk: adjust a release-related rule not to require use of gzip
1906         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1907         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1908         projects that build only .tar.xz files.  Also fix an erroneous test.
1909
1910         test-linkat: don't leave behind a temporary file
1911         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1912         Otherwise, coreutils' "make distcheck" would fail with this:
1913           Only in /c/cu/tests/torture/coreutils/test/\
1914             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1915           make[2]: *** [my-distcheck] Error 1
1916
1917         float, math: add omitted file
1918         * lib/itold.c: Add file, required for yesterday's float change.
1919
1920 2011-10-01  Bruno Haible  <bruno@clisp.org>
1921
1922         isinf: Fix for OpenBSD/x86.
1923         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1924         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1925         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1926
1927 2011-10-01  Bruno Haible  <bruno@clisp.org>
1928
1929         isfinite: Fix syntax error in configure test.
1930         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1931
1932         isfinite: Fix typo.
1933         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1934         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1935
1936 2011-10-01  Bruno Haible  <bruno@clisp.org>
1937
1938         nonblocking tests: Fix test failure on Linux/IA-64.
1939         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1940         Set to 270000.
1941
1942 2011-10-01  Bruno Haible  <bruno@clisp.org>
1943
1944         mkfifoat tests: Fix a test failure on mingw.
1945         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1946         with error ENOSYS.
1947
1948 2011-09-30  Bruno Haible  <bruno@clisp.org>
1949
1950         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1951         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1952         'long double'. Set REPLACE_ITOLD.
1953         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1954         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1955         * lib/itold.c: New file.
1956         * modules/float (Files): Add lib/itold.c.
1957         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1958         (Makefile.am): Substitute REPLACE_ITOLD.
1959         * modules/math (Depends-on): Add float.
1960         (Makefile.am): Substitute REPLACE_ITOLD.
1961         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1962         * doc/posix-headers/math.texi: Likewise.
1963         * doc/posix-functions/logl.texi: Likewise.
1964
1965 2011-09-30  Bruno Haible  <bruno@clisp.org>
1966
1967         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1968         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1969         Set to 140000.
1970
1971 2011-09-30  Bruno Haible  <bruno@clisp.org>
1972
1973         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1974         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1975         invocation, say "right after AC_PROG_CC_STDC", not "right after
1976         AC_PROG_CC".
1977         Reported by Gary V. Vaughan <gary@gnu.org>.
1978
1979 2011-09-30  Bruno Haible  <bruno@clisp.org>
1980
1981         Centralize C99 requirement.
1982         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1983         * modules/stdarg (configure.ac-early): Invoke it instead of
1984         AC_PROG_CC_STDC.
1985         Reported by Gary V. Vaughan and Paul Eggert.
1986
1987 2011-09-29  Bruno Haible  <bruno@clisp.org>
1988
1989         float: Fix LDBL_MAX value on Linux/PowerPC.
1990         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1991         on Linux/PowerPC.
1992         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1993         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1994         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1995         platform.
1996         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1997
1998 2011-09-29  Bruno Haible  <bruno@clisp.org>
1999
2000         doc: Improve doc about gl_EARLY.
2001         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2002         AC_PROG_CC_STDC invocation.
2003         Reported by Gary V. Vaughan <gary@gnu.org>.
2004
2005 2011-09-28  Bruno Haible  <bruno@clisp.org>
2006
2007         fgetc, fputc, fread, fwrite tests: Fix link error.
2008         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2009         on non-MSVC platforms.
2010         * tests/test-fputc.c (main): Likewise.
2011         * tests/test-fread.c (main): Likewise.
2012         * tests/test-fwrite.c (main): Likewise.
2013         Reported by Jim Meyering.
2014
2015 2011-09-27  Bruno Haible  <bruno@clisp.org>
2016
2017         fputc, fwrite tests: Avoid test failure on MSVC.
2018         * tests/test-fgetc.c: Include msvc-inval.h.
2019         (main): Invoke gl_msvc_inval_ensure_handler.
2020         * tests/test-fputc.c: Include msvc-inval.h.
2021         (main): Invoke gl_msvc_inval_ensure_handler.
2022         * tests/test-fread.c: Include msvc-inval.h.
2023         (main): Invoke gl_msvc_inval_ensure_handler.
2024         * tests/test-fwrite.c: Include msvc-inval.h.
2025         (main): Invoke gl_msvc_inval_ensure_handler.
2026         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2027         * modules/fputc-tests (Depends-on): Likewise.
2028         * modules/fread-tests (Depends-on): Likewise.
2029         * modules/fwrite-tests (Depends-on): Likewise.
2030
2031 2011-09-27  Bruno Haible  <bruno@clisp.org>
2032
2033         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2034         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2035         (raise): Remove older, duplicated declaration.
2036         (_gl_raise_SIGPIPE): New declaration.
2037         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2038         (rpl_raise): Remove function.
2039         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2040         a gnulib-defined SIGPIPE here.
2041         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2042         'sigprocmask' has detected missing signal-blocking and the module
2043         'sigpipe' is enabled.
2044         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2045
2046 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2047
2048         base64-tests: avoid memory leak
2049         * tests/test-base64.c (main): Plug memory leak.
2050
2051         base32: new module
2052         * modules/base32: New module.
2053         * lib/base32.c: New file.
2054         * lib/base32.h: Likewise.
2055         * m4/base32.m4: Likewise.
2056         * modules/base32-tests: New test.
2057         * tests/test-base32.c: Likewise.
2058         * MODULES.html.sh (Misc): Mention it.
2059
2060 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2061
2062         gnulib: use more-standard license notice wording
2063         * gnulib-tool (func_emit_copyright_notice): When emitting a
2064         license notice into a file, use the standard wording as suggested
2065         by the current information for GNU maintainers, except say "file"
2066         rather than "program".  The new wording gives a license version
2067         number, which addresses an issue raised by Glenn Morris in
2068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2069         * m4/onceonly.m4: Use that same wording here, too.
2070
2071         dup2: minor simplification
2072         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2073         as lib/dup2.c no longer uses 'inline'.
2074
2075 2011-09-25  Bruno Haible  <bruno@clisp.org>
2076
2077         strings: Fix compilation error on MSVC.
2078         * lib/strings.in.h: Include <stddef.h> for size_t.
2079
2080 2011-09-25  Bruno Haible  <bruno@clisp.org>
2081
2082         fflush et al.: Document limitation on MSVC.
2083         * doc/posix-functions/fflush.texi: Document possible crash in handling
2084         mode other than DEFAULT_HANDLING.
2085         * doc/posix-functions/fgetc.texi: Likewise.
2086         * doc/posix-functions/fputc.texi: Likewise.
2087         * doc/posix-functions/fread.texi: Likewise.
2088         * doc/posix-functions/fwrite.texi: Likewise.
2089
2090 2011-09-25  Bruno Haible  <bruno@clisp.org>
2091
2092         msvc-inval: Allow three invalid parameter handling modes.
2093         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2094         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2095         macros.
2096         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2097         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2098         SANE_LIBRARY_HANDLING as a no-op.
2099         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2100         <stdlib.h>.
2101         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2102
2103 2011-09-25  Bruno Haible  <bruno@clisp.org>
2104
2105         msvc-inval: Make handler multithread-safe.
2106         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2107         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2108         declarations.
2109         (gl_msvc_inval_current): New declaration.
2110         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2111         Operate on the structure returned by gl_msvc_inval_current().
2112         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2113         Remove varaiables.
2114         (tls_index, tls_initialized): New variables.
2115         (not_per_thread): New variable.
2116         (gl_msvc_inval_current): New function.
2117         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2118         returned by gl_msvc_inval_current().
2119
2120 2011-09-25  Bruno Haible  <bruno@clisp.org>
2121
2122         msvc-inval: Install handler globally.
2123         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2124         !_MSC_VER.
2125         (gl_msvc_invalid_parameter_handler): Remove declaration.
2126         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2127         declarations.
2128         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2129         Install the handler globally, don't uninstall it.
2130         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2131         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2132         currently valid, call RaiseException instead.
2133         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2134         for !_MSC_VER.
2135
2136 2011-09-25  Bruno Haible  <bruno@clisp.org>
2137
2138         strerror_r-posix: Fix for MSVC 9.
2139         * lib/strerror_r.c (local_snprintf): New function.
2140         (snprintf): Define to local_snprintf, not to _snprintf.
2141
2142 2011-09-25  Bruno Haible  <bruno@clisp.org>
2143
2144         ftruncate: Support for MSVC 9.
2145         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2146         (chsize_nothrow): New function.
2147         (chsize): Redefine as a macro.
2148         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2149         * modules/ftruncate (Depends-on): Add msvc-inval.
2150
2151 2011-09-25  Bruno Haible  <bruno@clisp.org>
2152
2153         New module 'fstat'.
2154         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2155         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2156         * lib/fchdir.c (rpl_fstat): Remove function.
2157         * m4/fstat.m4: New file.
2158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2159         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2160         declared.
2161         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2162         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2163         * modules/fstat: New file.
2164         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2165         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2166         is set.
2167         * doc/posix-functions/fstat.texi: Mention the new module and the
2168         problem on MSVC.
2169         * NEWS: Mention the change.
2170         * modules/acl (Depends-on): Add fstat.
2171         * modules/chdir-safer (Depends-on): Likewise.
2172         * modules/chown (Depends-on): Likewise.
2173         * modules/copy-file (Depends-on): Likewise.
2174         * modules/fchdir (Depends-on): Likewise.
2175         * modules/fdopendir (Depends-on): Likewise.
2176         * modules/fopen (Depends-on): Likewise.
2177         * modules/fts (Depends-on): Likewise.
2178         * modules/getcwd (Depends-on): Likewise.
2179         * modules/isapipe (Depends-on): Likewise.
2180         * modules/linkat (Depends-on): Likewise.
2181         * modules/lseek (Depends-on): Likewise.
2182         * modules/mkdir-p (Depends-on): Likewise.
2183         * modules/open (Depends-on): Likewise.
2184         * modules/openat (Depends-on): Likewise.
2185         * modules/read-file (Depends-on): Likewise.
2186         * modules/renameat (Depends-on): Likewise.
2187         * modules/utimens (Depends-on): Likewise.
2188
2189 2011-09-25  Bruno Haible  <bruno@clisp.org>
2190
2191         linkat: Fix compilation on MSVC 9.
2192         * lib/linkat.c: Don't include <stdint.h>.
2193
2194 2011-09-25  Bruno Haible  <bruno@clisp.org>
2195
2196         fclose: Support for MSVC 9.
2197         * lib/fclose.c: Include msvc-inval.h.
2198         (fclose_nothrow): New function.
2199         (rpl_fclose): Use it.
2200         * modules/fclose (Depends-on): Add msvc-inval.
2201         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2202
2203 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2204
2205         dup2: minor simplifications
2206         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2207         that it's a performance win.
2208         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2209         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2210
2211 2011-09-24  Jim Meyering  <meyering@redhat.com>
2212
2213         test-futimens: avoid a warning from gcc -Wshadow
2214         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2215         to avoid a shadowing warning.
2216
2217 2011-09-24  Bruno Haible  <bruno@clisp.org>
2218
2219         fdopen: Support for MSVC 9.
2220         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2221         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2222         * lib/fdopen.c: Include msvc-inval.h.
2223         (fdopen_nothrow): New function.
2224         (rpl_fdopen): Use it.
2225         * modules/fdopen (Depends-on): Add msvc-inval.
2226         * modules/fclose-tests (Depends-on): Add fdopen.
2227         * modules/fflush-tests (Depends-on): Likewise.
2228         * modules/fgetc-tests (Depends-on): Likewise.
2229         * modules/fputc-tests (Depends-on): Likewise.
2230         * modules/fread-tests (Depends-on): Likewise.
2231         * modules/freopen-tests (Depends-on): Likewise.
2232         * modules/fseeko-tests (Depends-on): Likewise.
2233         * modules/ftello-tests (Depends-on): Likewise.
2234         * modules/fwrite-tests  (Depends-on): Likewise.
2235         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2236
2237 2011-09-24  Bruno Haible  <bruno@clisp.org>
2238
2239         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2240         * modules/fgetc-tests (Depends-on): Add unistd.
2241         * modules/fputc-tests (Depends-on): Likewise.
2242         * modules/fread-tests (Depends-on): Likewise.
2243         * modules/fwrite-tests (Depends-on): Likewise.
2244
2245 2011-09-24  Bruno Haible  <bruno@clisp.org>
2246
2247         dup: Simplify autoconf test.
2248         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2249         on gl_MSVC_INVAL's result.
2250
2251 2011-09-24  Bruno Haible  <bruno@clisp.org>
2252
2253         Tests for function fwrite().
2254         * modules/fwrite-tests: New file.
2255         * tests/test-fwrite.c: New file.
2256         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2257
2258         Tests for function fread().
2259         * modules/fread-tests: New file.
2260         * tests/test-fread.c: New file.
2261         * modules/stdio-tests (Depends-on): Add fread-tests.
2262
2263         Activate fputc tests.
2264         * modules/stdio-tests (Depends-on): Add fputc-tests.
2265
2266         Enhance fgetc, fputc tests.
2267         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2268         * tests/test-fputc.c (main): Likewise.
2269
2270 2011-09-24  Bruno Haible  <bruno@clisp.org>
2271
2272         write: Support for MSVC 9.
2273         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2274         is not 1.
2275         * lib/write.c (write_nothrow): New function.
2276         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2277         not 1. Use write_nothrow.
2278         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2279         invalid parameter handler.
2280         (gl_PREREQ_WRITE): New macro.
2281         * modules/write (Depends-on): Add msvc-inval.
2282         (configure.ac): Invoke gl_PREREQ_WRITE.
2283         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2284
2285 2011-09-24  Bruno Haible  <bruno@clisp.org>
2286
2287         read: Fix last commit.
2288         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2289
2290 2011-09-24  Bruno Haible  <bruno@clisp.org>
2291
2292         dup2: Fix last commit.
2293         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2294         (rpl_dup2): Disable fcntl workaround on native Windows.
2295
2296         sigprocmask: Make code safer.
2297         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2298         section that changes macro definitions for this compilation unit.
2299
2300 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2301
2302         dup2: clarify by coalescing Windows-specific material
2303         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2304         "msvc-nothrow.h"' to the Windows-specific section, so that the
2305         Emacs source need not contain these include files.
2306         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2307         Windows-specific fixes into this function rather than just the
2308         nothrow fix, as this shortens and clarifies the code.  Always
2309         define as a function, as that's a bit cleaner than having it be
2310         sometimes a function and sometimes a macro.
2311         (rpl_dup2): Move the Windows-specific stuff out of here and into
2312         ms_windows_dup2.  Don't protect the Haiku-related fix with
2313         "#if !defined __linux__", as the same code also works around
2314         a Linux kernel bug, and it doesn't add any system calls on any
2315         platform.  Add comment about FreeBSD 6.1.
2316
2317         sigprocmask: move #include directive
2318         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2319         Windows-specific section, so that the Emacs source need not
2320         contain msvc-inval.h.
2321
2322 2011-09-23  Bruno Haible  <bruno@clisp.org>
2323
2324         read: Support for MSVC 9.
2325         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2326         is not 1.
2327         * lib/read.c (read_nothrow): New function.
2328         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2329         read_nothrow.
2330         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2331         invalid parameter handler.
2332         (gl_PREREQ_READ): New macro.
2333         * modules/read (Depends-on): Add msvc-inval.
2334         (configure.ac): Invoke gl_PREREQ_READ.
2335         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2336
2337 2011-09-23  Bruno Haible  <bruno@clisp.org>
2338
2339         close: Support for MSVC 9.
2340         * lib/close.c: Include <errno.h>, msvc-inval.h.
2341         (close_nothrow): New function.
2342         (rpl_close): Use it.
2343         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2344         invalid parameter handler.
2345         * modules/close (Depends-on): Add msvc-inval.
2346         * modules/dup2-tests (Depends-on): Add close.
2347         * modules/dup3-tests (Depends-on): Likewise.
2348         * modules/fcntl-tests (Depends-on): Likewise.
2349         * modules/spawn-pipe-tests (Depends-on): Likewise.
2350         * modules/unistd-safer-tests (Depends-on): Likewise.
2351         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2352
2353 2011-09-23  Bruno Haible  <bruno@clisp.org>
2354
2355         New module 'dup'.
2356         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2357         Allow replacement.
2358         * lib/dup.c: New file.
2359         * lib/fchdir.c (rpl_dup): Remove function.
2360         * m4/dup.m4: New file.
2361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2362         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2363         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2364         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2365         * modules/dup: New file.
2366         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2367         'dup' module is in use.
2368         * modules/fdopendir (Depends-on): Add dup.
2369         * modules/fdutimensat-tests (Depends-on): Likewise.
2370         * modules/fts (Depends-on): Likewise.
2371         * modules/futimens-tests (Depends-on): Likewise.
2372         * modules/posix_spawnp-tests (Depends-on): Likewise.
2373         * modules/unistd-safer-tests (Depends-on): Likewise.
2374         * modules/utimens-tests (Depends-on): Likewise.
2375         * doc/posix-functions/dup.texi: Mention the new module and the problem
2376         on MSVC.
2377
2378 2011-09-23  Bruno Haible  <bruno@clisp.org>
2379
2380         getdtablesize: Support for MSVC 9.
2381         * lib/getdtablesize.c: Include msvc-inval.h.
2382         (_setmaxstdio_nothrow): New function.
2383         (_setmaxstdio): Redefine it.
2384         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2385         * modules/getdtablesize (Depends-on): Add msvc-inval.
2386         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2387
2388 2011-09-23  Bruno Haible  <bruno@clisp.org>
2389
2390         signal-h: Rename from signal.
2391         * modules/signal-h: Renamed from modules/signal.
2392         * modules/pthread_sigmask (Depends-on): Update.
2393         * modules/raise (Depends-on): Likewise.
2394         * modules/sigaction (Depends-on): Likewise.
2395         * modules/sigpipe (Depends-on): Likewise.
2396         * modules/sigprocmask (Depends-on): Likewise.
2397         * modules/sys_select (Depends-on): Likewise.
2398         * modules/signal-h-tests: Renamed from modules/signal-tests.
2399         (Files, Depends-on, Makefile.am): Update.
2400         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2401         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2402         (Files, Makefile.am): Update.
2403         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2404         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2405         * modules/signal: New placeholder file.
2406         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2407         * doc/posix-headers/signal.texi: Update.
2408         * NEWS: Mention the change.
2409
2410 2011-09-23  Bruno Haible  <bruno@clisp.org>
2411
2412         sigprocmask: Avoid crashes through signal() on MSVC 9.
2413         * lib/sigprocmask.c: Include msvc-inval.h.
2414         (signal_nothrow): New function.
2415         (signal): Redefine it.
2416         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2417         * modules/sigprocmask (Depends-on): Add msvc-inval.
2418         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2419
2420 2011-09-23  Bruno Haible  <bruno@clisp.org>
2421
2422         Tests for module 'raise'.
2423         * modules/raise-tests: New file.
2424         * tests/test-raise.c: New file.
2425
2426         raise: Support for MSVC.
2427         * lib/signal.in.h (raise): New declaration.
2428         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2429         for native Windows platforms.
2430         * m4/raise.m4: New file.
2431         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2432         HAVE_RAISE, REPLACE_RAISE.
2433         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2434         REPLACE_RAISE.
2435         * modules/raise (Status, Notice): Remove fields.
2436         (Files): Add m4/raise.m4.
2437         (Depends-on): Add signal, msvc-inval.
2438         (configure.ac): Use the common idioms.
2439         (Maintainer): Add me.
2440         * tests/test-signal-c++.cc: Check the signature of raise.
2441         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2442
2443 2011-09-23  Bruno Haible  <bruno@clisp.org>
2444
2445         pipe2: Fix compilation on pre-C99 compilers.
2446         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2447
2448 2011-09-23  Bruno Haible  <bruno@clisp.org>
2449
2450         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2451         * lib/msvc-nothrow.h: New file.
2452         * lib/msvc-nothrow.c: New file.
2453         * m4/msvc-nothrow.m4: New file.
2454         * modules/msvc-nothrow: New file.
2455         * lib/dup2.c: Include msvc-nothrow.h.
2456         (rpl_dup2): No need to protect _get_osfhandle call here.
2457         * lib/accept4.c: Include msvc-nothrow.h.
2458         * lib/error.c: Likewise.
2459         * lib/fcntl.c: Likewise.
2460         * lib/lseek.c: Likewise.
2461         * lib/nonblocking.c: Likewise.
2462         * lib/poll.c: Likewise.
2463         * lib/read.c: Likewise.
2464         * lib/select.c: Likewise.
2465         * lib/sockets.h: Likewise.
2466         * lib/sockets.c: Likewise.
2467         * lib/stdio-read.c: Likewise.
2468         * lib/stdio-write.c: Likewise.
2469         * lib/write.c: Likewise.
2470         * lib/w32sock.h: Likewise.
2471         * lib/w32spawn.h: Likewise.
2472         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2473         * lib/fsync.c: Likewise.
2474         * lib/isapipe.c: Likewise.
2475         * modules/dup2 (Depends-on): Add msvc-nothrow.
2476         * modules/accept4 (Depends-on): Likewise.
2477         * modules/error (Depends-on): Likewise.
2478         * modules/fcntl (Depends-on): Likewise.
2479         * modules/lseek (Depends-on): Likewise.
2480         * modules/nonblocking (Depends-on): Likewise.
2481         * modules/poll (Depends-on): Likewise.
2482         * modules/read (Depends-on): Likewise.
2483         * modules/select (Depends-on): Likewise.
2484         * modules/sockets (Depends-on): Likewise.
2485         * modules/sigpipe (Depends-on): Likewise.
2486         * modules/write (Depends-on): Likewise.
2487         * modules/accept (Depends-on): Likewise.
2488         * modules/bind (Depends-on): Likewise.
2489         * modules/connect (Depends-on): Likewise.
2490         * modules/gethostname (Depends-on): Likewise.
2491         * modules/getpeername (Depends-on): Likewise.
2492         * modules/getsockname (Depends-on): Likewise.
2493         * modules/getsockopt (Depends-on): Likewise.
2494         * modules/ioctl (Depends-on): Likewise.
2495         * modules/listen (Depends-on): Likewise.
2496         * modules/recv (Depends-on): Likewise.
2497         * modules/recvfrom (Depends-on): Likewise.
2498         * modules/send (Depends-on): Likewise.
2499         * modules/sendto (Depends-on): Likewise.
2500         * modules/setsockopt (Depends-on): Likewise.
2501         * modules/shutdown (Depends-on): Likewise.
2502         * modules/socket (Depends-on): Likewise.
2503         * modules/execute (Depends-on): Likewise.
2504         * modules/spawn-pipe (Depends-on): Likewise.
2505         * modules/flock (Depends-on): Likewise.
2506         * modules/fsync (Depends-on): Likewise.
2507         * modules/isapipe (Depends-on): Likewise.
2508         * tests/test-cloexec.c: Include msvc-nothrow.h.
2509         * tests/test-dup-safer.c: Likewise.
2510         * tests/test-dup2.c: Likewise.
2511         * tests/test-dup3.c: Likewise.
2512         * tests/test-fcntl.c: Likewise.
2513         * tests/test-pipe.c: Likewise.
2514         * tests/test-pipe2.c: Likewise.
2515         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2516         * modules/unistd-safer-tests (Depends-on): Likewise.
2517         * modules/dup2-tests (Depends-on): Likewise.
2518         * modules/dup3-tests (Depends-on): Likewise.
2519         * modules/fcntl-tests (Depends-on): Likewise.
2520         * modules/pipe-posix-tests (Depends-on): Likewise.
2521         * modules/pipe2-tests (Depends-on): Likewise.
2522
2523 2011-09-23  Bruno Haible  <bruno@clisp.org>
2524
2525         dup2: Make code more maintainable.
2526         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2527         (rpl_dup2): Use it.
2528         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2529         * modules/dup2 (configure.ac): Invoke it.
2530         Reported by Paul Eggert.
2531
2532 2011-09-23  Bruno Haible  <bruno@clisp.org>
2533
2534         msvc-inval: Fix compilation error.
2535         * lib/msvc-inval.h: Include <excpt.h>.
2536
2537 2011-09-23  Bruno Haible  <bruno@clisp.org>
2538
2539         mkdir: Tweak for MSVC 9.
2540         * lib/sys_stat.in.h: Update comments.
2541         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2542
2543         Tests for module 'chdir'.
2544         * modules/chdir-tests: New file.
2545         * tests/test-chdir.c: New file.
2546
2547         New module 'chdir'.
2548         * modules/chdir: New file.
2549         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2550         (chdir): New declaration.
2551         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2552         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2553         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2554         * tests/test-unistd-c++.cc: Check signature of chdir.
2555         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2556         * modules/chdir-long (Depends-on): Add chdir.
2557         * modules/fchdir (Depends-on): Likewise.
2558         * modules/rename (Depends-on): Likewise.
2559         * modules/savewd (Depends-on): Likewise.
2560
2561         rmdir: Support for mingw, MSVC 9.
2562         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2563         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2564
2565         getcwd: Tweak for MSVC 9.
2566         * lib/unistd.in.h: Update comments.
2567         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2568
2569 2011-09-22  Bruno Haible  <bruno@clisp.org>
2570
2571         strerror_r-posix: Avoid a link error on MSVC.
2572         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2573         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2574
2575 2011-09-22  Bruno Haible  <bruno@clisp.org>
2576
2577         select: Avoid link errors on MSVC.
2578         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2579         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2580         * modules/pselect (Link): Likewise.
2581         * NEWS: Mention the change.
2582         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2583         test-select-stdin against $(LIB_SELECT).
2584         * modules/pselect-tests (Makefile.am): Link test-pselect against
2585         $(LIB_SELECT).
2586
2587 2011-09-22  Bruno Haible  <bruno@clisp.org>
2588
2589         select: Avoid compilation error on MSVC.
2590         * lib/select.c: Don't include <stdbool.h>.
2591
2592 2011-09-21  Bruno Haible  <bruno@clisp.org>
2593
2594         Consolidate all uses of PATH_MAX in *.m4 files.
2595         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2596         macros.
2597         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2598         and gl_PATHMAX_SNIPPET.
2599         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2600         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2601         * modules/chdir-long (Files): Add m4/pathmax.m4.
2602         * modules/getcwd (Files): Likewise.
2603
2604 2011-09-21  Bruno Haible  <bruno@clisp.org>
2605
2606         ftruncate: Un-deprecate, concentrate on Win32 support.
2607         * modules/ftruncate (Status, Notice): Remove sections.
2608         (Depends-on): Add largefile.
2609         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2610         non-mingw platforms.
2611         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2612         include <io.h>.
2613         * modules/perror-tests (Depends-on): Add ftruncate.
2614         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2615         'ftruncate' module.
2616
2617 2011-09-21  Bruno Haible  <bruno@clisp.org>
2618
2619         Add dependencies to new dirent related modules.
2620         * modules/opendir (Depends-on): Add closedir.
2621         * modules/getcwd (Depends-on): Add opendir, closedir.
2622         * modules/dirent-safer-tests (Depends-on): Likewise.
2623         * modules/fdopendir-tests (Depends-on): Likewise.
2624         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2625         * modules/renameat-tests (Depends-on): Likewise.
2626
2627 2011-09-21  Bruno Haible  <bruno@clisp.org>
2628
2629         opendir: Avoid compilation error on mingw.
2630         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2631         * modules/opendir (Depends-on): Add unistd.
2632
2633 2011-09-21  Bruno Haible  <bruno@clisp.org>
2634
2635         ftruncate tests: Avoid a test failure on mingw.
2636         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2637
2638 2011-09-21  Bruno Haible  <bruno@clisp.org>
2639
2640         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2641         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2642         native Windows.
2643
2644 2011-09-21  Bruno Haible  <bruno@clisp.org>
2645
2646         New module 'fdopen'.
2647         * lib/stdio.in.h (fdopen): New declaration.
2648         * lib/fdopen.c: New file.
2649         * m4/fdopen.m4: New file.
2650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2651         REPLACE_FDOPEN.
2652         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2653         REPLACE_FDOPEN.
2654         * modules/fdopen: New file.
2655         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2656         * tests/test-stdio-c++.cc: Check signature of fdopen.
2657         * doc/posix-functions/fdopen.texi: Mention the new module.
2658
2659 2011-09-21  Bruno Haible  <bruno@clisp.org>
2660
2661         unlockpt tests: Avoid test failure on NetBSD 5.1.
2662         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2663         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2664
2665 2011-09-21  Bruno Haible  <bruno@clisp.org>
2666
2667         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2668         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2669         * tests/test-getlogin_r.c (main): Likewise.
2670
2671 2011-09-20  Bruno Haible  <bruno@clisp.org>
2672
2673         time tests: Don't require pid_t.
2674         * doc/posix-headers/time.texi: Revert last change.
2675         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2676         * tests/test-time.c: Comment out the check for pid_t.
2677
2678 2011-09-20  Bruno Haible  <bruno@clisp.org>
2679
2680         fsync tests: Avoid a test failure on mingw.
2681         * tests/test-fsync.c (main): Allow a failure with EIO.
2682
2683 2011-09-20  Bruno Haible  <bruno@clisp.org>
2684
2685         euidaccess: Update comments.
2686         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2687
2688 2011-09-20  Bruno Haible  <bruno@clisp.org>
2689
2690         Ensure EBADF returns for socket functions on mingw.
2691         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2692         descriptor is invalid.
2693         * lib/bind.c (rpl_bind): Likewise.
2694         * lib/connect.c (rpl_connect): Likewise.
2695         * lib/getpeername.c (rpl_getpeername): Likewise.
2696         * lib/getsockname.c (rpl_getsockname): Likewise.
2697         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2698         * lib/listen.c (rpl_listen): Likewise.
2699         * lib/recv.c (rpl_recv): Likewise.
2700         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2701         * lib/send.c (rpl_send): Likewise.
2702         * lib/sendto.c (rpl_sendto): Likewise.
2703         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2704         * lib/shutdown.c (rpl_shutdown): Likewise.
2705
2706 2011-09-20  Bruno Haible  <bruno@clisp.org>
2707
2708         select tests: EBADF tests.
2709         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2710         test_bad_fd): New functions.
2711         (test_function): Invoke also test_bad_fd.
2712
2713 2011-09-20  Bruno Haible  <bruno@clisp.org>
2714
2715         Tests for module 'posix_spawn_file_actions_addopen.
2716         * modules/posix_spawn_file_actions_addopen-tests: New file.
2717         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2718
2719         Tests for module 'posix_spawn_file_actions_adddup2'.
2720         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2721         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2722
2723         Tests for module 'posix_spawn_file_actions_addclose'.
2724         * modules/posix_spawn_file_actions_addclose-tests: New file.
2725         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2726
2727 2011-09-20  Bruno Haible  <bruno@clisp.org>
2728
2729         Tests for module 'unlockpt'.
2730         * modules/unlockpt-tests: New file.
2731         * tests/test-unlockpt.c: New file.
2732         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2733
2734         Tests for module 'grantpt'.
2735         * modules/grantpt-tests: New file.
2736         * tests/test-grantpt.c: New file.
2737         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2738
2739 2011-09-20  Bruno Haible  <bruno@clisp.org>
2740
2741         freopen tests: EBADF tests.
2742         * tests/test-freopen.c: Include errno.h, unistd.h.
2743         (main): Add tests for EBADF, commented out for the moment.
2744
2745         fclose tests: EBADF tests.
2746         * tests/test-fclose.c (main): Add tests for EBADF.
2747
2748         fflush tests: EBADF tests.
2749         * tests/test-fflush.c: Include errno.h, macros.h.
2750         (main): Add tests for EBADF.
2751
2752         ftello tests: EBADF tests.
2753         * tests/test-ftello4.sh: New file.
2754         * tests/test-ftello4.c: New file.
2755         * modules/ftello-tests (Files): Add them.
2756         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2757
2758         fseeko tests: EBADF tests.
2759         * tests/test-fseeko4.sh: New file.
2760         * tests/test-fseeko4.c: New file.
2761         * modules/fseeko-tests (Files): Add them.
2762         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2763
2764         Tests for function fputc().
2765         * modules/fputc-tests: New file.
2766         * tests/test-fputc.c: New file.
2767         * modules/stdio-tests (Depends-on): Add fputc-tests.
2768
2769         Tests for function fgetc().
2770         * modules/fgetc-tests: New file.
2771         * tests/test-fgetc.c: New file.
2772         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2773
2774         Tests for function fdopen().
2775         * modules/fdopen-tests: New file.
2776         * tests/test-fdopen.c: New file.
2777         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2778
2779         Tests for module 'vdprintf'.
2780         * modules/vdprintf-tests: New file.
2781         * tests/test-vdprintf.c: New file.
2782
2783         Tests for module 'dprintf'.
2784         * modules/dprintf-tests: New file.
2785         * tests/test-dprintf.c: New file.
2786
2787 2011-09-20  Bruno Haible  <bruno@clisp.org>
2788
2789         Tests for module 'ioctl'.
2790         * modules/ioctl-tests: New file.
2791         * tests/test-ioctl.c: New file.
2792
2793 2011-09-20  Bruno Haible  <bruno@clisp.org>
2794
2795         fcntl tests: EBADF tests.
2796         * tests/test-fcntl.c (main): Add more tests for EBADF.
2797
2798 2011-09-20  Bruno Haible  <bruno@clisp.org>
2799
2800         utimensat tests: EBADF tests.
2801         * tests/test-utimensat.c (main): Add tests for EBADF.
2802
2803         renameat tests: EBADF tests.
2804         * tests/test-renameat.c (main): Add tests for EBADF.
2805
2806         mkfifoat tests: EBADF tests.
2807         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2808
2809         readlinkat tests: EBADF tests.
2810         * tests/test-readlinkat.c (main): Add tests for EBADF.
2811
2812         symlinkat tests: EBADF tests.
2813         * tests/test-symlinkat.c (main): Add tests for EBADF.
2814
2815         linkat tests: EBADF tests.
2816         * tests/test-linkat.c (main): Add tests for EBADF.
2817
2818         Tests for module 'faccessat'.
2819         * modules/faccessat-tests: New file.
2820         * tests/test-faccessat.c: New file.
2821
2822         fdopendir tests: EBADF tests.
2823         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2824
2825         openat tests: EBADF tests.
2826         * tests/test-fchownat.c (main): Add tests for EBADF.
2827         * tests/test-fstatat.c (main): Likewise.
2828         * tests/test-mkdirat.c (main): Likewise.
2829         * tests/test-openat.c (main): Likewise.
2830         * tests/test-unlinkat.c (main): Likewise.
2831         * tests/test-fchmodat.c: New file.
2832         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2833         (Makefile.am): Also run 'test-fchmodat'.
2834
2835 2011-09-20  Bruno Haible  <bruno@clisp.org>
2836
2837         utimens, futimens, fdutimensat tests: EBADF tests.
2838         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2839
2840         Tests for function fstat().
2841         * modules/fstat-tests: New file.
2842         * tests/test-fstat.c: New file.
2843         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2844
2845 2011-09-20  Bruno Haible  <bruno@clisp.org>
2846
2847         test-ttyname_r tests: EBADF tests.
2848         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2849
2850         Tests for module 'isatty'.
2851         * modules/isatty-tests: New file.
2852         * tests/test-isatty.c: New file.
2853
2854         Tests for module 'write'.
2855         * modules/write-tests: New file.
2856         * tests/test-write.c: New file.
2857
2858         Tests for module 'read'.
2859         * modules/read-tests: New file.
2860         * tests/test-read.c: New file.
2861
2862         pwrite tests: EBADF tests.
2863         * tests/test-pwrite.c (main): Add tests for EBADF.
2864
2865         pread tests: EBADF tests.
2866         * tests/test-pread.c (main): Add tests for EBADF.
2867
2868         lseek tests: EBADF tests.
2869         * tests/test-lseek.c (main): Add more tests for EBADF.
2870
2871         Tests for module 'ftruncate'.
2872         * modules/ftruncate-tests: New file.
2873         * tests/test-ftruncate.sh: New file.
2874         * tests/test-ftruncate.c: New file.
2875
2876         fsync tests: EBADF tests.
2877         * tests/test-fsync.c (main): Add more tests for EBADF.
2878
2879         fdatasync tests: EBADF tests.
2880         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2881
2882         Tests for module 'fchown'.
2883         * modules/fchown-tests: New file.
2884         * tests/test-fchown.c: New file.
2885
2886         Tests for module 'fchmod'.
2887         * modules/fchmod-tests: New file.
2888         * tests/test-fchmod.c: New file.
2889
2890         fchdir tests: EBADF tests.
2891         * tests/test-fchdir.c (main): Add more tests for EBADF.
2892
2893         dup2 tests: EBADF tests.
2894         * tests/test-dup2.c (main): Add more tests for EBADF.
2895
2896         Tests for module 'dup'.
2897         * modules/dup-tests: New file.
2898         * tests/test-dup.c: New file.
2899
2900         Tests for module 'close'.
2901         * modules/close-tests: New file.
2902         * tests/test-close.c: New file.
2903
2904 2011-09-20  Bruno Haible  <bruno@clisp.org>
2905
2906         Tests for module 'shutdown'.
2907         * modules/shutdown-tests: New file.
2908         * tests/test-shutdown.c: New file.
2909
2910         Tests for module 'setsockopt'.
2911         * modules/setsockopt-tests: New file.
2912         * tests/test-setsockopt.c: New file.
2913
2914         Tests for module 'sendto'.
2915         * modules/sendto-tests: New file.
2916         * tests/test-sendto.c: New file.
2917
2918         Tests for module 'send'.
2919         * modules/send-tests: New file.
2920         * tests/test-send.c: New file.
2921
2922         Tests for module 'recvfrom'.
2923         * modules/recvfrom-tests: New file.
2924         * tests/test-recvfrom.c: New file.
2925
2926         Tests for module 'recv'.
2927         * modules/recv-tests: New file.
2928         * tests/test-recv.c: New file.
2929
2930         Tests for module 'listen'.
2931         * modules/listen-tests: New file.
2932         * tests/test-listen.c: New file.
2933
2934         Tests for module 'getsockopt'.
2935         * modules/getsockopt-tests: New file.
2936         * tests/test-getsockopt.c: New file.
2937
2938         Tests for module 'getsockname'.
2939         * modules/getsockname-tests: New file.
2940         * tests/test-getsockname.c: New file.
2941
2942         Tests for module 'getpeername'.
2943         * modules/getpeername-tests: New file.
2944         * tests/test-getpeername.c: New file.
2945
2946         Tests for module 'connect'.
2947         * modules/connect-tests: New file.
2948         * tests/test-connect.c: New file.
2949
2950         Tests for module 'bind'.
2951         * modules/bind-tests: New file.
2952         * tests/test-bind.c: New file.
2953
2954         accept4 tests: Fix for native Windows.
2955         * tests/test-accept4.c: Include sockets.h.
2956         (main): Invoke gl_sockets_startup.
2957         * modules/accept4-tests (Depends-on): Add sockets.
2958
2959         accept tests: Fix for native Windows.
2960         * tests/test-accept.c: Include sockets.h.
2961         (main): Invoke gl_sockets_startup.
2962         * modules/accept-tests (Depends-on): Add sockets.
2963
2964 2011-09-19  Bruno Haible  <bruno@clisp.org>
2965
2966         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2967         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2968         do...while(0).
2969         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2970         Suggested by Paul Eggert.
2971
2972 2011-09-19  Bruno Haible  <bruno@clisp.org>
2973
2974         sched: Ensure pid_t is defined.
2975         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2976         not define pid_t.
2977         * lib/sched.in.h: Include <sys/types.h>.
2978         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2979         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2980
2981 2011-09-19  Bruno Haible  <bruno@clisp.org>
2982
2983         msvc-inval: Ensure the entire expansion is a single statement.
2984         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2985         of braces.
2986
2987 2011-09-19  Jim Meyering  <meyering@redhat.com>
2988
2989         tests: use printf, not echo in init.sh's warn_ function
2990         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2991         misbehave when given strings containing a backslash or starting
2992         with e.g., -n.  James Youngman suggested setting IFS.
2993
2994 2011-09-19  Eric Blake  <eblake@redhat.com>
2995
2996         futimens: enhance test
2997         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2998         closed non-negative fd.
2999
3000         date: accept 'hence' as opposite of 'ago'
3001         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3002         * tests/test-parse-datetime.c (main): Enhance test.
3003         Suggested by Jesse Wilson.
3004
3005 2011-09-19  Jim Meyering  <meyering@redhat.com>
3006
3007         getcwd: don't fail in a deep directory on a system without openat
3008         Before this change, getcwd would fail when called from a directory
3009         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3010         the non-openat implementation used "..", "../..", "../../..", etc.
3011         to access ancestor directories.  With too many, that string would
3012         be longer than PATH_MAX.
3013         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3014         using gnulib's openat replacement.
3015         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3016         we're using the replacement function.
3017
3018 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3019
3020         maint.mk: avoid warnings from perl about missing files
3021         * top/maint.mk (def_sym_regex): Ignore files listed in
3022         $(gl_other_headers_) that do not exist, say because a project
3023         does not use a corresponding module.
3024
3025 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3026
3027         stat: use pathmax.h only if needed
3028         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3029         This is better for Emacs, which does not have a mingw port and
3030         therefore can avoid the pathmax module.
3031
3032         utimens: remove dependency on dup2
3033         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3034         to work around the Linux kernel bug.
3035         * modules/utimens (Depends-on): Remove dup2.
3036
3037 2011-09-18  Bruno Haible  <bruno@clisp.org>
3038
3039         inet_ntop, inet_pton: Look for it also in libresolv.
3040         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3041         libnsl, search for it in libresolv.
3042         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3043         Needed on Solaris 7.
3044
3045 2011-09-18  Bruno Haible  <bruno@clisp.org>
3046
3047         accept, accept4 tests: Avoid link error on Solaris.
3048         * modules/accept-tests (Makefile.am): Link test-accept against
3049         $(LIBSOCKET).
3050         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3051         $(LIBSOCKET).
3052
3053         accept4: Avoid link error on Solaris.
3054         * modules/accept4 (Link): New section.
3055
3056         socket functions: Avoid link errors on Solaris.
3057         * modules/accept (Depends-on): Add socketlib.
3058         (Link): New section.
3059         * modules/bind (Depends-on): Add socketlib.
3060         (Link): New section.
3061         * modules/connect (Depends-on): Add socketlib.
3062         (Link): New section.
3063         * modules/getpeername (Depends-on): Add socketlib.
3064         (Link): New section.
3065         * modules/getsockname (Depends-on): Add socketlib.
3066         (Link): New section.
3067         * modules/getsockopt (Depends-on): Add socketlib.
3068         (Link): New section.
3069         * modules/listen (Depends-on): Add socketlib.
3070         (Link): New section.
3071         * modules/recv (Depends-on): Add socketlib.
3072         (Link): New section.
3073         * modules/recvfrom (Depends-on): Add socketlib.
3074         (Link): New section.
3075         * modules/send (Depends-on): Add socketlib.
3076         (Link): New section.
3077         * modules/sendto (Depends-on): Add socketlib.
3078         (Link): New section.
3079         * modules/setsockopt (Depends-on): Add socketlib.
3080         (Link): New section.
3081         * modules/shutdown (Depends-on): Add socketlib.
3082         (Link): New section.
3083         * modules/socket (Depends-on): Add socketlib.
3084         (Link): New section.
3085
3086 2011-09-18  Bruno Haible  <bruno@clisp.org>
3087
3088         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3089         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3090         than 5 seconds.
3091         * modules/ptsname-tests (configure.ac): Test for alarm.
3092
3093 2011-09-18  Bruno Haible  <bruno@clisp.org>
3094
3095         posix_spawn_file_actions_add*: Fix module dependencies.
3096         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3097         posix_spawn_file_actions_init.
3098         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3099         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3100
3101 2011-09-18  Bruno Haible  <bruno@clisp.org>
3102
3103         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3104         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3105         * tests/test-renameat.c (main): Likewise.
3106
3107 2011-09-18  Bruno Haible  <bruno@clisp.org>
3108
3109         Tests for module 'accept4'.
3110         * modules/accept4-tests: New file.
3111         * tests/test-accept4.c: New file.
3112
3113 2011-09-18  Bruno Haible  <bruno@clisp.org>
3114
3115         Tests for module 'accept'.
3116         * modules/accept-tests: New file.
3117         * tests/test-accept.c: New file.
3118
3119 2011-09-18  Bruno Haible  <bruno@clisp.org>
3120
3121         dup2: Support for MSVC.
3122         * lib/dup2.c: Include msvc-inval.h.
3123         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3124         _get_osfhandle calls.
3125         * modules/dup2 (Depends-on): Add msvc-inval.
3126         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3127
3128         New module 'msvc-inval'.
3129         * lib/msvc-inval.h: New file.
3130         * lib/msvc-inval.c: New file.
3131         * m4/msvc-inval.m4: New file.
3132         * modules/msvc-inval: New file.
3133
3134 2011-09-17  Bruno Haible  <bruno@clisp.org>
3135
3136         Tests for module 'pclose'.
3137         * modules/pclose-tests: New file.
3138
3139         New module 'pclose'.
3140         * lib/stdio.in.h (pclose): New declaration.
3141         * lib/pclose.c: New file.
3142         * m4/pclose.m4: New file.
3143         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3144         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3145         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3146         * modules/pclose: New file.
3147         * modules/popen-tests (Depends-on): Add pclose.
3148         * modules/popen-safer-tests (Depends-on): Likewise.
3149         * doc/posix-functions/pclose.texi: Mention the new module.
3150
3151 2011-09-17  Bruno Haible  <bruno@clisp.org>
3152
3153         popen: Support for MSVC.
3154         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3155         * lib/popen.c (popen): Provide alternate definition for native Windows.
3156         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3158         * modules/popen (Depends-on, configure.ac): Update condition.
3159         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3160         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3161         fixed.
3162
3163 2011-09-17  Bruno Haible  <bruno@clisp.org>
3164
3165         isnanl, isnand, isnanf: Work around MSVC bug.
3166         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3167
3168 2011-09-17  Bruno Haible  <bruno@clisp.org>
3169
3170         sys_socket tests: Fix recent mistake.
3171         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3172
3173 2011-09-17  Bruno Haible  <bruno@clisp.org>
3174
3175         putenv: Support for MSVC.
3176         * modules/putenv (Depends-on): Add environ.
3177         * lib/putenv.c (environ): Disable declaration.
3178         * lib/unistd.in.h: Update comment.
3179
3180 2011-09-17  Bruno Haible  <bruno@clisp.org>
3181
3182         math: Avoid macro redefinition warnings on MSVC.
3183         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3184         Undefine before redefining.
3185
3186 2011-09-17  Bruno Haible  <bruno@clisp.org>
3187
3188         doc: Mention functions which are declared as macros.
3189         * doc/posix-functions/*[fl].texi: Mention that some functions are
3190         defined as macros with arguments only.
3191
3192 2011-09-17  Bruno Haible  <bruno@clisp.org>
3193
3194         Add dependencies to new dirent related modules.
3195         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3196         * modules/fts (Depends-on): Likewise.
3197         * modules/glob (Depends-on): Likewise.
3198         * modules/savedir (Depends-on): Likewise.
3199         * modules/scandir (Depends-on): Likewise.
3200         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3201         * modules/fdopendir (Depends-on): Add opendir.
3202
3203 2011-09-17  Bruno Haible  <bruno@clisp.org>
3204
3205         inet_pton: Support for MSVC on Windows Vista or newer.
3206         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3207         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3208         HAVE_DECL_INET_PTON is defined.
3209         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3210         On platforms with <winsock2.h>, test whether inet_pton is declared in
3211         <ws2tcpip.h>. If so, arrange to replace it.
3212         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3213         REPLACE_INET_PTON.
3214         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3215         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3216         (Depends-on, configure.ac): Update condition.
3217         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3218
3219 2011-09-17  Bruno Haible  <bruno@clisp.org>
3220
3221         inet_ntop: Support for MSVC on Windows Vista or newer.
3222         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3223         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3224         HAVE_DECL_INET_NTOP is defined.
3225         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3226         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3227         <ws2tcpip.h>. If so, arrange to replace it.
3228         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3229         REPLACE_INET_NTOP.
3230         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3231         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3232         (Depends-on, configure.ac): Update condition.
3233         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3234
3235 2011-09-16  Eric Blake  <eblake@redhat.com>
3236
3237         test-fsync: yet another enhancement
3238         * tests/test-fsync.c (main): Also test behavior on read-only text
3239         file.
3240
3241 2011-09-16  Bruno Haible  <bruno@clisp.org>
3242
3243         Enhance fsync, fdatasync tests.
3244         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3245         * tests/test-fdatasync.c (main): Likewise.
3246
3247 2011-09-16  Bruno Haible  <bruno@clisp.org>
3248
3249         Support for MSVC compiler: Ensure mode_t gets defined.
3250         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3251         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3252         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3253         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3254         * tests/test-fcntl-h.c: Check that mode_t is defined.
3255         * tests/test-sys_stat.c: Likewise.
3256         * tests/test-sys_types.c: Likewise.
3257         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3258         * doc/posix-headers/sys_stat.texi: Likewise.
3259         * doc/posix-headers/sys_types.texi: Likewise.
3260
3261 2011-09-16  Bruno Haible  <bruno@clisp.org>
3262
3263         sys_stat: Support for MSVC.
3264         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3265         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3266         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3267         MSVC.
3268
3269 2011-09-16  Bruno Haible  <bruno@clisp.org>
3270
3271         Support for MSVC compiler: Ensure off_t gets defined.
3272         * lib/unistd.in.h: Include <sys/types.h>.
3273         * tests/test-fcntl-h.c: Check that off_t is defined.
3274         * tests/test-sys_stat.c: Likewise.
3275         * tests/test-sys_types.c: Likewise.
3276
3277 2011-09-16  Eric Blake  <eblake@redhat.com>
3278
3279         fdatasync: port to Solaris
3280         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3281         * modules/fdatasync (Link): Document it.
3282         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3283
3284         fdatasync: port to MacOS X 10.7
3285         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3286         declared.
3287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3288         * modules/unistd (Makefile.am): Substitute it.
3289         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3290         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3291
3292         fdatasync: minor improvements
3293         * modules/fdatasync (Depends-on): Add condition for fsync.
3294         * lib/fdatasync.c (fdatasync): Add comment.
3295         * tests/test-unistd-c++.cc: Test fdatasync.
3296
3297         unistd: update refs to newer POSIX
3298         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3299         Suggested by Bruno Haible.
3300
3301         fdatasync: new module
3302         * modules/fsync (Description): Document difference to fdatasync.
3303         * modules/fdatasync: New module.
3304         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3305         * lib/fdatasync.c (fdatasync): Likewise.
3306         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3307         defaults.
3308         * modules/unistd (Makefile.am): Set witnesses.
3309         * lib/unistd.in.h (fdatasync): Declare.
3310         * MODULES.html.sh: Document it.
3311         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3312         * modules/fdatasync-tests: New test.
3313         * tests/test-fdatasync.c: Likewise.
3314
3315 2011-09-16  Eric Blake  <eblake@redhat.com>
3316
3317         test-fsync: enhance tests
3318         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3319         * tests/test-fsync.c (main): Enhance test.
3320
3321 2011-09-15  Bruno Haible  <bruno@clisp.org>
3322
3323         Support for MSVC compiler: Ensure ssize_t gets defined.
3324         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3325         * doc/posix-headers/stdio.texi: Likewise.
3326         * modules/stdio (Depends-on): Add ssize_t.
3327         * modules/sys_socket (Depends-on): Likewise.
3328         * modules/sys_types (Depends-on): Likewise.
3329         * modules/sys_uio (Depends-on): Likewise.
3330         * modules/unistd (Depends-on): Likewise.
3331         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3332         * tests/test-sys_types.c: Check that ssize_t is defined.
3333
3334 2011-09-14  Bruno Haible  <bruno@clisp.org>
3335
3336         Avoid using #, the m4 comment starter character, near brackets.
3337         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3338         delimiter character in sed expressions.
3339         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3340         Suggested by Eric Blake.
3341
3342         Properly quote AC_CHECK_DECLS' 4th argument.
3343         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3344         argument.
3345         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3346         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3347         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3348         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3349         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3350         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3351         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3352         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3353         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3354         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3355         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3356         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3357         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3358         * m4/isinf.m4 (gl_ISINF): Likewise.
3359         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3360         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3361         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3362         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3363         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3364         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3365         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3366         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3367         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3368         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3369         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3370         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3372         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3374         Reported by Eric Blake.
3375
3376         Properly quote AC_CHECK_DECL's 4th argument.
3377         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3378         argument.
3379         * m4/argp.m4 (gl_ARGP): Likewise.
3380         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3381         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3382         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3383         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3384         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3385         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3387         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3388         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3389         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3390         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3391         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3392         Reported by Eric Blake.
3393
3394 2011-09-14  Eric Blake  <eblake@redhat.com>
3395
3396         opendir: avoid compile warning
3397         * lib/opendir.c (includes): Always include errno.h.
3398         Reported by Tatsuro MATSUOKA.
3399
3400 2011-09-14  Jim Meyering  <meyering@redhat.com>
3401
3402         maint.mk: sc_tight_scope: propagate failure from sub-make
3403         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3404         Reported by Martin von Gagern.
3405
3406 2011-09-13  Bruno Haible  <bruno@clisp.org>
3407
3408         tempname: Support for MSVC.
3409         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3410         MSVC.
3411         * modules/tempname (Depends-on): Add fcntl-h.
3412
3413 2011-09-13  Bruno Haible  <bruno@clisp.org>
3414
3415         sys_time: Support for MSVC.
3416         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3417         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3418         include <winsock2.h>.
3419         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3420         function declarations that collide with POSIX.
3421         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3422         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3423
3424 2011-09-13  Bruno Haible  <bruno@clisp.org>
3425
3426         stat: Support for MSVC.
3427         * lib/stat.c: Include pathmax.h.
3428         * modules/stat (Depends-on): Add pathmax.
3429
3430         pathmax: Support for native Windows.
3431         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3432
3433 2011-09-12  Bruno Haible  <bruno@clisp.org>
3434
3435         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3436         * lib/dirent.in.h (struct dirent): New type.
3437         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3438         DT_WHT): New macros.
3439         (DIR): New type.
3440         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3441         (readdir, rewinddir): New declarations.
3442         * lib/dirent-private.h: New file.
3443         * lib/opendir.c: New file.
3444         * lib/readdir.c: New file.
3445         * lib/rewinddir.c: New file.
3446         * lib/closedir.c: New file.
3447         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3448         * m4/opendir.m4: New file.
3449         * m4/readdir.m4: New file.
3450         * m4/rewinddir.m4: New file.
3451         * m4/closedir.m4: New file.
3452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3453         REPLACE_CLOSEDIR here.
3454         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3455         readdir, rewinddir are declared.
3456         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3457         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3458         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3459         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3460         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3461         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3462         * modules/opendir: New file.
3463         * modules/readdir: New file.
3464         * modules/rewinddir: New file.
3465         * modules/closedir: New file.
3466         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3467         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3468         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3469         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3470         * NEWS: Mention the 'fchdir' change.
3471
3472 2011-09-11  Bruno Haible  <bruno@clisp.org>
3473
3474         asm-underscore.m4: Support for MSVC.
3475         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3476         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3477
3478 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3479
3480         Doc about crypt functions.
3481         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3482         needing for _GNU_SOURCE to get crypt.
3483         * doc/posix-functions/encrypt.texi: Likewise.
3484         * doc/posix-functions/setkey.texi: Likewise.
3485
3486 2011-09-11  Bruno Haible  <bruno@clisp.org>
3487
3488         doc: Update regarding MSVC 9.
3489         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3490         tested".
3491         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3492         * doc/posix-headers/*.texi: Likewise.
3493         * doc/pastposix-functions/*.texi: Likewise.
3494         * doc/glibc-functions/*.texi: Likewise.
3495         * doc/glibc-headers/*.texi: Likewise.
3496
3497 2011-09-11  Bruno Haible  <bruno@clisp.org>
3498
3499         unistd et al.: Don't assume <unistd.h> exists.
3500         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3501         does not exist.
3502         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3503         exist. But include <stdlib.h>.
3504         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3505         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3506         symlink() does not exist.
3507         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3508         include <io.h> instead.
3509         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3510         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3511         include <direct.h> instead.
3512         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3514         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3515         <io.h> instead.
3516         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3517         correctly if the system does not have hard links.
3518         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3519         <direct.h> instead.
3520         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3521         it when looking for function declarations.
3522         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3523         <direct.h> and <io.h> instead.
3524         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3525
3526 2011-09-11  Bruno Haible  <bruno@clisp.org>
3527
3528         strcase: Support for MSVC.
3529         * modules/strcase (Status, Notice): Remove obsoletion mark.
3530         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3531         * doc/posix-functions/strncasecmp.texi: Likewise.
3532
3533         strings: Don't assume <strings.h> exists.
3534         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3535         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3536         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3537         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3538
3539 2011-09-11  Bruno Haible  <bruno@clisp.org>
3540
3541         dirent: Don't assume <dirent.h> exists.
3542         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3543         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3544         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3545         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3546
3547 2011-09-11  Bruno Haible  <bruno@clisp.org>
3548
3549         Fix wint_t on MSVC.
3550         * lib/wchar.in.h (wint_t): On MSVC, override it.
3551         * lib/wctype.in.h (wint_t): Likewise.
3552         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3553         MSVC.
3554         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3555         * doc/posix-headers/wctype.texi: Likewise.
3556
3557 2011-09-11  Bruno Haible  <bruno@clisp.org>
3558
3559         sys_types: Fix typo.
3560         * lib/sys_types.in.h: Fix typo in comment.
3561         Reported by Paul Eggert.
3562
3563         Support for MSVC compiler: Ensure size_t gets defined.
3564         * modules/strings (Depends-on): Add 'sys_types'.
3565         * modules/sys_uio (Depends-on): Likewise.
3566         * lib/sys_uio.in.h: Update comment.
3567
3568         C++ tests for module 'sys_types'.
3569         * modules/sys_types-c++-tests: New file.
3570         * tests/test-sys_types-c++.cc: New file.
3571
3572         Tests for module 'sys_types'.
3573         * modules/sys_types-tests: New file.
3574         * tests/test-sys_types.c: New file.
3575
3576         New module 'sys_types'.
3577         * lib/sys_types.in.h: New file.
3578         * m4/sys_types_h.m4: New file.
3579         * modules/sys_types: New file.
3580         * doc/posix-headers/sys_types.texi: Mention the new module and the
3581         size_t problem on MSVC 9.
3582
3583 2011-09-11  Bruno Haible  <bruno@clisp.org>
3584
3585         Support for MSVC compiler: Avoid division by a literal 0.
3586         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3587         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3588         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3589         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3590         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3591         * tests/infinity.h: New file.
3592         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3593         on MSVC.
3594         * tests/test-ceilf1.c: Include infinity.h.
3595         (main): Use Infinityf.
3596         * tests/test-ceil1.c: Include infinity.h.
3597         (main): Use Infinityd.
3598         * tests/test-ceill.c: Include infinity.h.
3599         (main): Use Infinityl.
3600         * tests/test-dprintf-posix.c: Include infinity.h.
3601         (test_function): Use Infinityd.
3602         * tests/test-floorf1.c: Include infinity.h.
3603         (main): Use Infinityf.
3604         * tests/test-floor1.c: Include infinity.h.
3605         (main): Use Infinityd.
3606         * tests/test-floorl.c: Include infinity.h.
3607         (main): Use Infinityl.
3608         * tests/test-fprintf-posix.c: Include infinity.h.
3609         (test_function): Use Infinityd.
3610         * tests/test-frexp.c: Include infinity.h.
3611         (main): Use Infinityd.
3612         * tests/test-frexpl.c: Include infinity.h.
3613         (main): Use Infinityl.
3614         * tests/test-isfinite.c: Include infinity.h.
3615         (test_isfinitef): Use Infinityf.
3616         (test_isfinited): Use Infinityd.
3617         (test_isfinitel): Use Infinityl.
3618         * tests/test-isinf.c: Include infinity.h.
3619         (test_isinff): Use Infinityf.
3620         (test_isinfd): Use Infinityd.
3621         (test_isinfl): Use Infinityl.
3622         * tests/test-isnan.c: Include infinity.h.
3623         (test_float): Use Infinityf.
3624         (test_double): Use Infinityd.
3625         (test_long_double): Use Infinityl.
3626         * tests/test-isnanf.h: Include infinity.h.
3627         (main): Use Infinityf.
3628         * tests/test-isnand.h: Include infinity.h.
3629         (main): Use Infinityd.
3630         * tests/test-isnanl.h: Include infinity.h.
3631         (main): Use Infinityl.
3632         * tests/test-ldexpl.c: Include infinity.h.
3633         (main): Use Infinityl.
3634         * tests/test-printf-posix.h: Include infinity.h.
3635         (test_function): Use Infinityd.
3636         * tests/test-roundf1.c: Include infinity.h.
3637         (main): Use Infinityf.
3638         * tests/test-round1.c: Include infinity.h.
3639         (main): Use Infinityd.
3640         * tests/test-roundl.c: Include infinity.h.
3641         (main): Use Infinityl.
3642         * tests/test-signbit.c: Include infinity.h.
3643         (test_signbitf): Use Infinityf.
3644         (test_signbitd): Use Infinityd.
3645         (test_signbitl): Use Infinityl.
3646         * tests/test-snprintf-posix.h: Include infinity.h.
3647         (test_function): Use Infinityd, Infinityl.
3648         * tests/test-sprintf-posix.h: Include infinity.h.
3649         (test_function): Use Infinityd, Infinityl.
3650         * tests/test-truncf1.c: Include infinity.h.
3651         (main): Use Infinityf.
3652         * tests/test-trunc1.c: Include infinity.h.
3653         (main): Use Infinityd.
3654         * tests/test-truncl.c: Include infinity.h.
3655         (main): Use Infinityl.
3656         * tests/test-vasnprintf-posix.c: Include infinity.h.
3657         (test_function): Use Infinityd, Infinityl.
3658         * tests/test-vasprintf-posix.c: Include infinity.h.
3659         (test_function): Use Infinityd, Infinityl.
3660         * modules/ceilf-tests (Files): Add tests/infinity.h.
3661         * modules/ceil-tests (Files): Likewise.
3662         * modules/ceill-tests (Files): Likewise.
3663         * modules/dprintf-posix-tests (Files): Likewise.
3664         * modules/floorf-tests (Files): Likewise.
3665         * modules/floor-tests (Files): Likewise.
3666         * modules/floorl-tests (Files): Likewise.
3667         * modules/fprintf-posix-tests (Files): Likewise.
3668         * modules/frexp-tests (Files): Likewise.
3669         * modules/frexp-nolibm-tests (Files): Likewise.
3670         * modules/frexpl-tests (Files): Likewise.
3671         * modules/frexpl-nolibm-tests (Files): Likewise.
3672         * modules/isfinite-tests (Files): Likewise.
3673         * modules/isinf-tests (Files): Likewise.
3674         * modules/isnan-tests (Files): Likewise.
3675         * modules/isnanf-tests (Files): Likewise.
3676         * modules/isnanf-nolibm-tests (Files): Likewise.
3677         * modules/isnand-tests (Files): Likewise.
3678         * modules/isnand-nolibm-tests (Files): Likewise.
3679         * modules/isnanl-tests (Files): Likewise.
3680         * modules/isnanl-nolibm-tests (Files): Likewise.
3681         * modules/ldexpl-tests (Files): Likewise.
3682         * modules/printf-posix-tests (Files): Likewise.
3683         * modules/roundf-tests (Files): Likewise.
3684         * modules/round-tests (Files): Likewise.
3685         * modules/roundl-tests (Files): Likewise.
3686         * modules/signbit-tests (Files): Likewise.
3687         * modules/snprintf-posix-tests (Files): Likewise.
3688         * modules/sprintf-posix-tests (Files): Likewise.
3689         * modules/truncf-tests (Files): Likewise.
3690         * modules/trunc-tests (Files): Likewise.
3691         * modules/truncl-tests (Files): Likewise.
3692         * modules/vasnprintf-posix-tests (Files): Likewise.
3693         * modules/vasprintf-posix-tests (Files): Likewise.
3694         * modules/vdprintf-posix-tests (Files): Likewise.
3695         * modules/vfprintf-posix-tests (Files): Likewise.
3696         * modules/vprintf-posix-tests (Files): Likewise.
3697         * modules/vsnprintf-posix-tests (Files): Likewise.
3698         * modules/vsprintf-posix-tests (Files): Likewise.
3699         * modules/xprintf-posix-tests (Files): Likewise.
3700
3701 2011-09-11  Bruno Haible  <bruno@clisp.org>
3702
3703         Ensure pid_t gets defined.
3704         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3705         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3706         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3707         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3708         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3709         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3710         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3711         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3712         * tests/test-fcntl-h.c: Check that pid_t is defined.
3713         * tests/test-sched.c: Likewise.
3714         * tests/test-termios.c: Likewise.
3715         * tests/test-time.c: Likewise.
3716         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3717         * doc/posix-headers/signal.texi: Likewise.
3718         * doc/posix-headers/sys_types.texi: Likewise.
3719         * doc/posix-headers/time.texi: Likewise.
3720
3721 2011-09-11  Bruno Haible  <bruno@clisp.org>
3722
3723         acl: Fix compilation on Solaris 10 (older version).
3724         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3725         of ACE_EVERYONE.
3726         * lib/set-mode-acl.c (qset_acl): Likewise.
3727         Reported by Christian Jullien <eligis@orange.fr>.
3728
3729 2011-09-10  Bruno Haible  <bruno@clisp.org>
3730
3731         iconv, unsetenv: Add support for MSVC compiler.
3732         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3733         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3734
3735 2011-09-10  Bruno Haible  <bruno@clisp.org>
3736
3737         *printf: Add support for MSVC compiler.
3738         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3739         handles the exception caused by the %n directive. When cross-compiling,
3740         guess no on native Windows.
3741         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3742         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3743         emulate it through vsnprintf.
3744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3745         * doc/posix-functions/dprintf.texi: Update documentation regarding
3746         MSVC 9.
3747         * doc/posix-functions/fprintf.texi: Likewise.
3748         * doc/posix-functions/printf.texi: Likewise.
3749         * doc/posix-functions/snprintf.texi: Likewise.
3750         * doc/posix-functions/sprintf.texi: Likewise.
3751         * doc/posix-functions/swprintf.texi: Likewise.
3752         * doc/posix-functions/vdprintf.texi: Likewise.
3753         * doc/posix-functions/vfprintf.texi: Likewise.
3754         * doc/posix-functions/vprintf.texi: Likewise.
3755         * doc/posix-functions/vsnprintf.texi: Likewise.
3756         * doc/posix-functions/vsprintf.texi: Likewise.
3757         * doc/glibc-functions/asprintf.texi: Likewise.
3758         * doc/glibc-functions/obstack_printf.texi: Likewise.
3759         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3760         * doc/glibc-functions/vasprintf.texi: Likewise.
3761
3762 2011-09-10  Bruno Haible  <bruno@clisp.org>
3763
3764         nocrash: Add support for native Windows.
3765         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3766
3767 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3768             Bruno Haible  <bruno@clisp.org>
3769
3770         absolute-header, include-next: Add support for MSVC compiler.
3771         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3772         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3773         directory separator in #line directives.
3774         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3775         recognize also backslash as directory separator in #line directives.
3776
3777 2011-09-08  Jim Meyering  <meyering@redhat.com>
3778
3779         maint.mk: mark the post-release commit log with "maint: " prefix
3780         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3781         one-line commit-log summary.
3782
3783 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3784             Bruno Haible  <bruno@clisp.org>
3785
3786         Doc about crypt functions.
3787         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3788         systems.
3789         * doc/posix-functions/encrypt.texi: Likewise.
3790         * doc/posix-functions/setkey.texi: Likewise.
3791
3792 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3793
3794         * lib/gc.h: Fix copyright header.
3795
3796 2011-09-07  Bruno Haible  <bruno@clisp.org>
3797
3798         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3799         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3800         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3801
3802 2011-09-07  Bruno Haible  <bruno@clisp.org>
3803
3804         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3805         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3806         * lib/freopen.c: Likewise.
3807         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3808         * lib/lstat.c: Likewise.
3809         * lib/stat.c: Likewise.
3810         * lib/open.c: Use different syntax for include of <fcntl.h>.
3811         * lib/openat.c: Include fcntl.h again, explicitly.
3812
3813 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3814
3815         parse-datetime: document the newly accepted format
3816         * doc/parse-datetime.texi (Combined date and time of day items):
3817         New section.
3818
3819 2011-09-06  Bruno Haible  <bruno@clisp.org>
3820
3821         acl: Fix a test failure on newer Solaris 10 with ZFS.
3822         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3823         ENOSYS as no ACL.
3824         Reported by Jim Meyering.
3825
3826 2011-09-06  Bruno Haible  <bruno@clisp.org>
3827
3828         acl: Update for AIX >= 5.3 with NFS.
3829         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3830         ENOSYS as no ACL.
3831
3832         acl: Fix a test failure on AIX >= 5.3 with NFS.
3833         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3834         as no ACL.
3835
3836 2011-09-06  Bruno Haible  <bruno@clisp.org>
3837
3838         acl: Fix a test failure on IRIX 6.5 with NFS.
3839         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3840         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3841         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3842         * lib/copy-acl.c (qcopy_acl): Likewise.
3843
3844 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3845
3846         openat: port to AIX 7.1 with large files
3847         AIX 7.1 does a "#define openat open64at" if large files are in use,
3848         so we can't simply #undef openat.  Use the orig_openat trick (similar
3849         to orig_open in lib/open.c) to work around the problem.  Problem
3850         reported by Kevin Brott for GNU tar, in the thread containing
3851         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3852         * lib/openat.c (__need_system_fcntl_h): Define first.
3853         Include <fcntl.h> and <sys/types.h> before undefining.
3854         (orig_openat) [HAVE_OPENAT]: New inline function.
3855         (openat) [HAVE_OPENAT]: Do not undef.
3856         (rpl_openat): Use orig_openat, not openat.
3857
3858 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3859             Bruno Haible  <bruno@clisp.org>
3860
3861         acl: Avoid errors on NonStop Kernel.
3862         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3863         ENOTSUP errors.
3864
3865 2011-09-05  Bruno Haible  <bruno@clisp.org>
3866
3867         acl: Clean up Solaris code.
3868         * lib/acl-internal.h: Remove no-op #if.
3869         * lib/file-has-acl.c: Likewise.
3870         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3871         * lib/copy-acl.c (qcopy_acl): Likewise.
3872
3873 2011-09-05  Bruno Haible  <bruno@clisp.org>
3874
3875         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3876         binaries built on the original Solaris 10.
3877         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3878         trivial.
3879
3880 2011-09-05  Bruno Haible  <bruno@clisp.org>
3881
3882         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3883         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3884         10.
3885         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3886         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3887         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3888         instead of acl_get, facl_get, acl_set, facl_set.
3889
3890 2011-09-05  Bruno Haible  <bruno@clisp.org>
3891
3892         copy-file: Try unit tests on more file systems.
3893         * tests/test-copy-file-1.sh: New file.
3894         * tests/test-copy-file-2.sh: New file.
3895         * modules/copy-file-tests (Files): Add them.
3896         (Makefile.am): Add them to TESTS.
3897
3898         acl: Try unit tests on more file systems.
3899         * tests/test-file-has-acl-1.sh: New file.
3900         * tests/test-file-has-acl-2.sh: New file.
3901         * tests/test-set-mode-acl-1.sh: New file.
3902         * tests/test-set-mode-acl-2.sh: New file.
3903         * tests/test-copy-acl-1.sh: New file.
3904         * tests/test-copy-acl-2.sh: New file.
3905         * modules/acl-tests (Files): Add them.
3906         (Makefile.am): Add them to TESTS.
3907
3908 2011-09-04  Bruno Haible  <bruno@clisp.org>
3909
3910         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3911         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3912         10.
3913         (OLD_ALLOW, OLD_DENY): New macros.
3914         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3915         ACE_ACCESS_ALLOWED_ACE_TYPE.
3916         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3917         ACE_ACCESS_DENIED_ACE_TYPE.
3918         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3919         (NEW_ACE_EXECUTE): Fix value.
3920         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3921         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3922         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3923         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3924         NEW_ACE_SYNCHRONIZE): New macros.
3925         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3926         instead of acl_fromtext, acl_set, facl_set.
3927         Fixes a coreutils/tests/cp/perm failure.
3928
3929 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3930
3931         openat: test for fstatat (..., 0) bug
3932         Further testing with tar suggests that fstatat (..., 0)
3933         does not work in general, on AIX 7.1; see
3934         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3935         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3936         replacement fstatat (which is what older AIX releases were using
3937         anyway).
3938         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3939         use is now changed to orig_fstatat.  This was probably the right
3940         thing to do anyway.
3941         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3942         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3943         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3944         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3945         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3946         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3947         if the bug is found.
3948
3949         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3950         This tests for another fstatat bug on AIX 7.1:
3951         fstatat (AT_FDCWD, ..., 0) does not work.  See
3952         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3953         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3954         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3955         (rpl_fstatat): Adjust so that it works around either (or both)
3956         bugs if present.
3957         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3958
3959 2011-09-03  Karl Berry  <karl@gnu.org>
3960
3961         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3962         in index entries.
3963
3964 2011-09-02  Bruno Haible  <bruno@clisp.org>
3965
3966         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3967         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3968         values of AR, ARFLAGS, RANLIB.
3969         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3970
3971 2011-09-02  Bruno Haible  <bruno@clisp.org>
3972
3973         Find 'ar' program that fits with --host argument.
3974         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3975
3976 2011-09-02  Bruno Haible  <bruno@clisp.org>
3977
3978         tests: init.sh: Support any non-GNU diff.
3979         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3980         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3981         Solaris 8.
3982
3983 2011-09-02  Bruno Haible  <bruno@clisp.org>
3984
3985         tests: init.sh: work also with any non-GNU diff that supports -u
3986         * tests/init.sh: Relax check for diff -u support.
3987         Rather than checking for GNU diff via --version, simply check
3988         for support for -u itself.  Useful at least on OpenBSD 4.9,
3989         AIX 7.1, IRIX 6.5, and Solaris 10.
3990
3991 2011-09-01  Bruno Haible  <bruno@clisp.org>
3992
3993         strtoimax, strtoumax: Document problem on HP-UX 11.
3994         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3995         * doc/posix-functions/strtoumax.texi: Likewise.
3996
3997 2011-09-01  Bruno Haible  <bruno@clisp.org>
3998
3999         strtoumax: Avoid link error on OSF/1 with DTK cc.
4000         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4001         defined as a function.
4002         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4003         strtoumax is defined, not whether it is declared.
4004
4005 2011-09-01  Bruno Haible  <bruno@clisp.org>
4006
4007         strtoimax: Avoid link error on OSF/1 with DTK cc.
4008         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4009         defined as a function.
4010         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4011         strtoimax is defined, not whether it is declared.
4012
4013 2011-09-01  Bruno Haible  <bruno@clisp.org>
4014
4015         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4016         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4017         as a function.
4018         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4019         whether it is declared.
4020
4021 2011-09-01  Bruno Haible  <bruno@clisp.org>
4022
4023         imaxabs: Avoid link error on OSF/1 with DTK cc.
4024         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4025         as a function.
4026         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4027         whether it is declared.
4028
4029 2011-09-01  Bruno Haible  <bruno@clisp.org>
4030
4031         Tests for module 'strtoumax'.
4032         * modules/strtoumax-tests: New file.
4033         * tests/test-strtoumax.c: New file.
4034
4035         Tests for module 'strtoimax'.
4036         * modules/strtoimax-tests: New file.
4037         * tests/test-strtoimax.c: New file.
4038
4039         Tests for module 'imaxdiv'.
4040         * modules/imaxdiv-tests: New file.
4041         * tests/test-imaxdiv.c: New file.
4042
4043         Tests for module 'imaxabs'.
4044         * modules/imaxabs-tests: New file.
4045         * tests/test-imaxabs.c: New file.
4046
4047 2011-09-01  Bruno Haible  <bruno@clisp.org>
4048
4049         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4050         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4051         pthread_create.
4052
4053 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4054
4055         openat: work around AIX 7.1 fstatat issue
4056         This should fix the problem that was not properly fixed
4057         in the previous change, dated 2011-08-30.
4058         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4059         __need_system_stat_h defined.
4060         (orig_fstatat) [HAVE_FSTATAT]: New function.
4061         (rpl_fstatat): Go back to the old way of doing things,
4062         except call orig_fstatat instead of fstatat.
4063         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4064         Remove unnecessary check whether fstatat fills in st_size etc.
4065
4066 2011-09-01  Bruno Haible  <bruno@clisp.org>
4067
4068         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4069         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4070         just include the system's header.
4071
4072 2011-08-31  Jim Meyering  <meyering@redhat.com>
4073
4074         tests: avoid spurious assertion failure in test-float.c on ppc64
4075         * tests/test-float.c (test_long_double): Comment out an assertion,
4076         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4077         with gcc-4.4.4.
4078
4079         maint: indent with spaces, not TABs
4080         I need to get in the habit of running gnulib's "make check".
4081         Both of these would have been caught.
4082         * m4/largefile.m4: Indent with spaces, not TABs.
4083         * lib/parse-datetime.y (iso_8601_time): Likewise.
4084         Spotted by Pádraig Brady.
4085
4086         test-parse-datetime.c: accommodate a relatively strict gcc warning
4087         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4088         to avoid a warning from gcc's -Werror=missing-declarations.
4089         Insert a few spaces-before-funcall-parenthesis.
4090
4091 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4092
4093         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4094         The parser now accepts ISO 8601 date-time strings with "T" as the
4095         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4096         with a space between the date and time strings.  Now it also parses
4097         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4098         variants like "2004-02-29T16:21:42.333-07:00"
4099         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4100         of day representation using the 'T' separator character.
4101         * doc/parse-datetime.texi (General date syntax): replace use of
4102         deprecated --iso-8601 option with --rfc-3339 in example of date
4103         command output formats that can be parsed.
4104         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4105         lib/parse-datetime.y.
4106         (gmt_offset): New function.
4107         (main): Add additional test cases to validate ISO8601 extended
4108         date and time of day parsing.
4109
4110 2011-08-31  Bruno Haible  <bruno@clisp.org>
4111
4112         freopen: Documentation.
4113         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4114         name.
4115         Reported by Claudio Bley <claudio.bley@gmail.com>.
4116
4117 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4118
4119         freopen: Don't crash if the filename argument is NULL.
4120         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4121         NULL.
4122
4123 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4124
4125         openat: work around AIX 7.1 fstatat bug
4126         Problem reported by Kevin Brott for GNU tar, in the thread containing
4127         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4128         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4129         FSTATAT_ST_SIZE_ETC_BROKEN.
4130         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4131         rpl_fstatat.
4132         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4133         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4134         AC_CHECK_FUNCS_ONCE for fstatat.
4135         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4136         fchmodat, mkdirat, openat and unlinkat.
4137
4138 2011-08-30  Bruno Haible  <bruno@clisp.org>
4139
4140         Avoid endless recursions if config.h includes some header files.
4141         * lib/fopen.c (__need_FILE): Define already before including config.h.
4142         * lib/freopen.c (__need_FILE): Likewise.
4143         * lib/open.c (__need_system_fcntl_h): Likewise.
4144         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4145         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4146         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4147
4148 2011-08-25  Karl Berry  <karl@gnu.org>
4149
4150         * config/srclist.txt (ylwrap): new try.
4151         * build-aux/ylwrap: new file.
4152
4153 2011-08-23  Bruno Haible  <bruno@clisp.org>
4154
4155         tmpdir: Use a good default directory on native Windows.
4156         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4157         (P_tmpdir): Default to _P_tmpdir on native Windows.
4158         (path_search): On native Windows, try the value returned by GetTempPath
4159         before trying P_tmpdir.
4160         * modules/tmpdir (Depends-on): Add pathmax.
4161         Suggested by John Darrington <john@darrington.wattle.id.au>.
4162
4163 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4164
4165         doc: fix typo in README-release
4166         * top/README-release: Capitalize first word of a sentence.
4167
4168 2011-08-19  Jim Meyering  <meyering@redhat.com>
4169
4170         fts: do not exhaust memory when processing million-entry directories
4171         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4172         directory would require about 256*N bytes of memory.  Thus, it was
4173         easy to construct a directory too large to be processed by any of
4174         those tools.  With this change, fts' maximum memory utilization is
4175         now limited to around 30MB.
4176         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4177         (fts_read): When we've processed the final entry (i.e., when
4178         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4179         using the parent entry to read any remaining entries.  Dispatch
4180         depending on what fts_build returns:
4181         - NULL+stop, aka failure: stop
4182         - NULL otherwise: move up in the dir hierarchy
4183         - non-NULL: handle this new entry
4184         (fts_build): Declare and use new local, continue_readdir.
4185         Prepare to be called from fts_read, when the entries
4186         from a partially-read directory have just been exhausted.
4187         In that case, we'll skip the opendir and instead use the parent's
4188         fts_dirp and derive dir_fd from that.
4189         Finally, in the readdir loop, if we read max_entries entries,
4190         exit the loop ensuring *not* to call closedir.  This is required
4191         so that fts_dirp can be reused on a subsequent call.
4192         Prompted by Ben England's report of memory exhaustion in find
4193         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4194
4195         maint: fts: move decl of `dp' down into while loop; split a long line
4196         * lib/fts.c (fts_build): No semantic change.
4197
4198         fts: add/use new struct member, fts_dirp
4199         We are about to use this to manage any directory with
4200         too many entries to read all of them into memory at once.
4201         To do that, we'll need to save the DIR* pointer in each
4202         affected FTSENT struct.
4203         * lib/fts_.h: Include <dirent.h>.
4204         (struct FTSENT) [fts_dirp]: New member.
4205         * lib/fts.c (closedir_and_clear): Define.
4206         Use it in place of closedir so that we are sure to
4207         clear the new fts_dirp member when done with it.
4208         (fts_alloc): Initialize the new member.
4209         (fts_lfree): Free, if needed.
4210
4211         maint: fts: give __opendir2 a new parameter and rename
4212         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4213         than surreptitiously using sole caller's "dir_fd".
4214         (fts_opendir): Rename from __opendir2.
4215
4216         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4217         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4218
4219         maint: fts.c: correct off-by-one indentation
4220         * lib/fts.c (fts_build): Correct indentation, change style
4221         of a couple of block comments, and bracing style.
4222
4223         maint: fts.c: move __opendir2 #define "up" out of function body
4224         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4225
4226         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4227         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4228         out for a long time and besides was useful only on BSD systems.
4229
4230 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4231
4232         regex: port to Stratus OpenVOS
4233         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4234         define to empty, rather than attempting nonportable optimizations.
4235         Problem reported by Paul Green in:
4236         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4237         and fix suggested by Eric Blake in:
4238         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4239
4240 2011-08-17  Eric Blake  <eblake@redhat.com>
4241
4242         getcwd: fix test failures on mingw
4243         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4244         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4245         test if long directory cannot be created, and allow mingw errno.
4246
4247         getcwd-lgpl: fix m4 to match relaxed test for BSD
4248         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4249         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4250         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4251         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4252         signature problem.
4253
4254         getcwd: fix compilation on mingw64
4255         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4256         getcwd.
4257         Reported by Marc-André Lureau.
4258
4259         pipe2: silence compiler warning
4260         * lib/pipe2.c (pipe2): Hide label if it is not used.
4261
4262 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4263
4264         relocatable-prog: fix link error
4265         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4266         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4267         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4268         into modules/relocatable-lib without noticing that
4269         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4270         also needs to build relocatable.c.
4271
4272 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4273
4274         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4275         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4276         shell code: it contained a 'break' that was not in a loop.
4277         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4278         via a shell-language loop; this may have been true in old Autoconf
4279         versions, but it's not true in Autoconf 2.68.  I found this bug
4280         when testing coreutils git on Solaris 8, whose shell complains
4281         about the syntax error.
4282
4283 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4284
4285         * lib/base64.c: Fix comment to reference RFC 4648.
4286         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4287         <gvtulder@gmail.com>.
4288
4289 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4290
4291         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4292
4293         po/Makefile.in.in: fix make -q problem
4294         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4295         rule, since there's no file named 'check-macro-version' and its
4296         use as a file breaks make -q.
4297         (all): Don't depend on check-macro-version.
4298         (CHECK_MACRO_VERSION): New macro.
4299         (stamp-po): Use it.
4300
4301         configmake: fix make -q problem
4302         * modules/configmake (configmake.h): Update configmake.h's time stamp
4303         even if the file does not change.  Otherwise, 'make -q' fails.
4304         Problem reported by Simon Josefsson in
4305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4306
4307 2011-08-11  Jim Meyering  <meyering@redhat.com>
4308
4309         git-version-gen: correct the advice in a comment
4310         * build-aux/git-version-gen: Correct comment.
4311         Don't recommend to list .tarball-version in .gitignore.
4312
4313 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4314
4315         base64: fix off-by-one buffer size bug
4316         Problem and (trivial) fix reported by Gijs van Tulder in
4317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4318         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4319         * tests/test-base64.c (main): Catch the bug.
4320
4321 2011-08-10  Eric Blake  <eblake@redhat.com>
4322
4323         closein: correct comments
4324         * lib/closein.c (close_stdin): Improve comments.
4325
4326 2011-08-09  Bruno Haible  <bruno@clisp.org>
4327
4328         More tests for 'fseeko'.
4329         * tests/test-fseeko3.c: New file, from Eric Blake.
4330         * tests/test-fseeko3.sh: New file.
4331         * modules/fseeko-tests (Files): Add them.
4332         (TESTS): Add test-fseeko3.sh.
4333         (check_PROGRAMS): Add test-fseeko3.
4334
4335 2011-08-09  Eric Blake  <eblake@redhat.com>
4336
4337         fseeko: remove unneeded hack
4338         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4339
4340         fseeko: fix bug on glibc
4341         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4342         Reported by John W. Eaton.
4343
4344 2011-08-08  Bruno Haible  <bruno@clisp.org>
4345
4346         unictype/base: Fix interoperability with preinstalled libunistring.
4347         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4348         Reported by Simon Josefsson.
4349
4350 2011-08-08  Bruno Haible  <bruno@clisp.org>
4351
4352         iswblank: Detect declaration correctly.
4353         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4354         AC_CHECK_DECLS invocation.
4355
4356 2011-08-08  Bruno Haible  <bruno@clisp.org>
4357
4358         tcgetsid: Detect declaration correctly.
4359         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4360         AC_CHECK_DECLS invocation.
4361         Reported by Simon Josefsson.
4362
4363 2011-08-08  Eric Blake  <eblake@redhat.com>
4364
4365         largefile: fix typo that regressed large file support
4366         * modules/largefile (configure.ac-early): Fix section name.
4367
4368 2011-08-06  Karl Berry  <karl@gnu.org>
4369
4370         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4371         a separate module.
4372
4373 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4374
4375         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4376         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4377         get prototype for free.
4378
4379 2011-08-04  Bruno Haible  <bruno@clisp.org>
4380
4381         Tests for module 'pathmax'.
4382         * modules/pathmax-tests: New file.
4383         * tests/test-pathmax.c: New file.
4384
4385         canonicalize-lgpl: Support larger filenames on the Hurd.
4386         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4387         Reported by Paul Eggert.
4388
4389         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4390         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4391         * lib/chdir-long.h: Include pathmax.h.
4392         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4393         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4394         (PATH_MAX): Remove code that is done by pathmax.h.
4395         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4396         * lib/tmpfile.c: Add a comment.
4397         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4398         * modules/chdir-long (Depends-on): Add pathmax.
4399         * modules/getcwd (Depends-on): Add pathmax.
4400         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4401         is not defined.
4402         * doc/posix-headers/limits.texi: Mention the pathmax module.
4403         * NEWS: Mention the change.
4404
4405 2011-08-02  Bruno Haible  <bruno@clisp.org>
4406
4407         pthread_sigmask: Actually use results of gl_THREADLIB.
4408         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4409         gl_THREADLIB, not gl_[]THREADLIB.
4410         Reported by Eric Blake.
4411
4412 2011-08-02  Jim Meyering  <meyering@redhat.com>
4413
4414         maint.mk: relax the default _gl_TS_function_match regexp
4415         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4416         space between function name and "(" in an "extern" declaration.
4417         That would fail to match a decl with no space there: extern void foo();
4418
4419 2011-07-31  Iain Nicol  <iain@thenicols.net>
4420
4421         git-version-gen: document that EXTRA_DIST must include .version
4422         * build-aux/git-version-gen: In the how-to-use comment, document
4423         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4424         will fail when run from an unpacked distribution tarball.
4425
4426 2011-08-01  Bruno Haible  <bruno@clisp.org>
4427
4428         wctype-h: Fix last change.
4429         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4430         REPLACE_TOWLOWER to 0.
4431         Reported by Sam Steingold <sds@gnu.org>.
4432
4433 2011-07-31  Bruno Haible  <bruno@clisp.org>
4434
4435         frexpl: Update autoconf test.
4436         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4437         according to changes of 2011-06-20.
4438
4439 2011-07-31  Bruno Haible  <bruno@clisp.org>
4440
4441         sys_utsname: Add support for Minix.
4442         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4443         <sys/utsname.h>.
4444         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4445         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4446
4447 2011-07-31  Bruno Haible  <bruno@clisp.org>
4448
4449         strings: Add support for Minix.
4450         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4451         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4452         * doc/posix-headers/strings.texi: Document the Minix problem.
4453
4454 2011-07-31  Bruno Haible  <bruno@clisp.org>
4455
4456         wctype-h: Add support for Minix.
4457         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4458         REPLACE_TOWLOWER.
4459         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4460         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4461         REPLACE_ISWCNTRL.
4462
4463 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4464
4465         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4466         This is a performance improvement for 64-bit hosts: it causes the
4467         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4468
4469 2011-07-31  Bruno Haible  <bruno@clisp.org>
4470
4471         stdioext: Add support for Minix.
4472         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4473         * lib/fpurge.c (fpurge): Likewise.
4474         * lib/freadahead.c (freadahead): Likewise.
4475         * lib/freadable.c (freadable): Likewise.
4476         * lib/freading.c (freading): Likewise.
4477         * lib/freadptr.c (freadptr): Likewise.
4478         * lib/freadseek.c (freadptrinc): Likewise.
4479         * lib/fseeko.c (rpl_fseeko): Likewise.
4480         * lib/fseterr.c (fseterr): Likewise.
4481         * lib/fwritable.c (fwritable): Likewise.
4482         * lib/fwriting.c (fwriting): Likewise.
4483         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4484         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4485
4486 2011-07-31  Bruno Haible  <bruno@clisp.org>
4487
4488         errno: Port to Minix.
4489         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4490         ECONNABORTED are defined.
4491         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4492         GNULIB_defined_ECONNABORTED): New macros.
4493         * lib/strerror-override.h (strerror_override): Test also
4494         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4495         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4496         ECONNABORTED.
4497         * doc/posix-headers/errno.texi: Mention the Minix problem.
4498
4499 2011-07-31  Bruno Haible  <bruno@clisp.org>
4500
4501         Work around declaration collisions on Minix.
4502         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4503         defined, set REPLACE_MBSINIT.
4504         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4505         defined, set REPLACE_MBRTOWC.
4506         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4507         set REPLACE_MBRLEN.
4508         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4509         defined, set REPLACE_MBSRTOWCS.
4510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4511         defined, set REPLACE_WCRTOMB.
4512         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4513         defined, set REPLACE_WCSRTOMBS.
4514
4515 2011-07-31  Bruno Haible  <bruno@clisp.org>
4516
4517         Add support for Minix with ACK compiler.
4518         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4519         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4520         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4521
4522 2011-07-31  Bruno Haible  <bruno@clisp.org>
4523
4524         Documentation about Minix.
4525         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4526         * doc/glibc-headers/*.texi: Likewise.
4527         * doc/posix-functions/*.texi: Likewise.
4528         * doc/glibc-functions/*.texi: Likewise.
4529
4530 2011-07-31  Bruno Haible  <bruno@clisp.org>
4531
4532         snippet/warn-on-use: Fix indentation.
4533         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4534
4535 2011-07-25  Jim Meyering  <meyering@redhat.com>
4536
4537         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4538         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4539         commands.
4540
4541 2011-07-27  Jim Meyering  <meyering@redhat.com>
4542
4543         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4544         * top/maint.mk (gl_extract_significant_defines_): Now that
4545         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4546         gnulib/lib/signal.in.h, and now that we recommend to
4547         define-if-undefined those two symbols in application code,
4548         we must filter them out of the "significant" list.
4549         This avoids a "make syntax-check" failure in coreutils.
4550
4551 2011-07-26  Eric Blake  <eblake@redhat.com>
4552
4553         warnings: add comments about previous patch
4554         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4555         * m4/include_next.m4: Likewise.
4556         * m4/warn-on-use.m4: Likewise.
4557         * m4/warnings.m4: Likewise, and simplify use.
4558         Suggested by Stefano Lattarini.
4559
4560         include-next, warnings: support older autoconf
4561         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4562         AS_VAR_PUSHDEF in a way that works with older autoconf.
4563         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4564         Reported by Daniel P. Berrange.
4565
4566 2011-07-25  Bruno Haible  <bruno@clisp.org>
4567
4568         fseek, ftell: Fix doc.
4569         * doc/posix-functions/fseek.texi: Reword statement about
4570         AC_SYS_LARGEFILE.
4571         * doc/posix-functions/ftell.texi: Likewise.
4572
4573 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4574             Bruno Haible  <bruno@clisp.org>
4575
4576         Add dependencies to the 'largefile' module.
4577         * modules/fopen (Depends-on): Add 'largefile'.
4578         * modules/freopen (Depends-on): Likewise.
4579         * modules/fseeko (Depends-on): Likewise.
4580         * modules/ftello (Depends-on): Likewise.
4581         * modules/glob (Depends-on): Likewise.
4582         * modules/lseek (Depends-on): Likewise.
4583         * modules/lstat (Depends-on): Likewise.
4584         * modules/mkostemp (Depends-on): Likewise.
4585         * modules/mkostemps (Depends-on): Likewise.
4586         * modules/mkstemp (Depends-on): Likewise.
4587         * modules/mkstemps (Depends-on): Likewise.
4588         * modules/open (Depends-on): Likewise.
4589         * modules/openat (Depends-on): Likewise.
4590         * modules/pread (Depends-on): Likewise.
4591         * modules/pwrite (Depends-on): Likewise.
4592         * modules/scandir (Depends-on): Likewise.
4593         * modules/stat (Depends-on): Likewise.
4594         * modules/tmpfile (Depends-on): Likewise.
4595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4596         since the containing module now depends on the largefile module.
4597         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4598         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4599         off_t is fixed by gnulib.
4600         * doc/posix-functions/freopen.texi: Likewise.
4601         * doc/posix-functions/fseeko.texi: Likewise.
4602         * doc/posix-functions/fstatat.texi: Likewise.
4603         * doc/posix-functions/ftello.texi: Likewise.
4604         * doc/posix-functions/glob.texi: Likewise.
4605         * doc/posix-functions/lseek.texi: Likewise.
4606         * doc/posix-functions/lstat.texi: Likewise.
4607         * doc/posix-functions/mkstemp.texi: Likewise.
4608         * doc/posix-functions/open.texi: Likewise.
4609         * doc/posix-functions/openat.texi: Likewise.
4610         * doc/posix-functions/pread.texi: Likewise.
4611         * doc/posix-functions/pwrite.texi: Likewise.
4612         * doc/posix-functions/scandir.texi: Likewise.
4613         * doc/posix-functions/stat.texi: Likewise.
4614         * doc/posix-functions/tmpfile.texi: Likewise.
4615         * doc/glibc-functions/mkostemp.texi: Likewise.
4616         * doc/glibc-functions/mkostemps.texi: Likewise.
4617         * doc/glibc-functions/mkstemps.texi: Likewise.
4618
4619 2011-07-25  Bruno Haible  <bruno@clisp.org>
4620
4621         fcntl: Move AC_LIBOBJ invocation to module description.
4622         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4623         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4624
4625         fcntl: Remove call-in from fchdir.m4.
4626         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4628
4629         dup3: Remove potential call-in from fchdir.m4.
4630         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4632
4633         dup2: Move AC_LIBOBJ invocation to module description.
4634         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4635         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4636         Don't invoke AC_LIBOBJ.
4637         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4638
4639         dup2: Remove call-in from fchdir.m4.
4640         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4642
4643         fclose: Move AC_LIBOBJ invocation to module description.
4644         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4645         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4646         to 1.
4647         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4648
4649         fclose: Remove call-in from close.m4.
4650         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4651         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4652
4653         close: Move AC_LIBOBJ invocation to module description.
4654         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4655         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4656         1.
4657         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4658
4659         close: Remove call-in from fchdir.m4.
4660         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4662
4663         open: Move AC_LIBOBJ invocation to module description.
4664         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4665         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4666         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4667
4668         open: Remove call-in from fchdir.m4.
4669         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4671
4672         fchdir: Start to remove gl_REPLACE_* idiom.
4673         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4674         (gl_FUNC_FCHDIR): Invoke it.
4675
4676 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4677
4678         * lib/ftell.c (ftell): Comment out cast.
4679
4680         close: use gl_REPLACE_FCLOSE only if defined
4681         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4682         is defined.  The close module doesn't depend on the fclose module
4683         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4685         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4686
4687 2011-07-24  Jim Meyering  <meyering@redhat.com>
4688
4689         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4690         * tests/test-select.h (test_function): Declare as "static".
4691
4692 2011-07-24  Bruno Haible  <bruno@clisp.org>
4693
4694         doc: Mention the effects of AC_SYS_LARGEFILE.
4695         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4696         on this function.
4697         * doc/posix-functions/aio_error.texi: Likewise.
4698         * doc/posix-functions/aio_fsync.texi: Likewise.
4699         * doc/posix-functions/aio_read.texi: Likewise.
4700         * doc/posix-functions/aio_return.texi: Likewise.
4701         * doc/posix-functions/aio_suspend.texi: Likewise.
4702         * doc/posix-functions/aio_write.texi: Likewise.
4703         * doc/posix-functions/fgetpos.texi: Likewise.
4704         * doc/posix-functions/fopen.texi: Likewise.
4705         * doc/posix-functions/freopen.texi: Likewise.
4706         * doc/posix-functions/fsetpos.texi: Likewise.
4707         * doc/posix-functions/fstatvfs.texi: Likewise.
4708         * doc/posix-functions/ftruncate.texi: Likewise.
4709         * doc/posix-functions/ftw.texi: Likewise.
4710         * doc/posix-functions/getrlimit.texi: Likewise.
4711         * doc/posix-functions/glob.texi: Likewise.
4712         * doc/posix-functions/lio_listio.texi: Likewise.
4713         * doc/posix-functions/lockf.texi: Likewise.
4714         * doc/posix-functions/mkstemp.texi: Likewise.
4715         * doc/posix-functions/mmap.texi: Likewise.
4716         * doc/posix-functions/nftw.texi: Likewise.
4717         * doc/posix-functions/openat.texi: Likewise.
4718         * doc/posix-functions/opendir.texi: Likewise.
4719         * doc/posix-functions/posix_fadvise.texi: Likewise.
4720         * doc/posix-functions/posix_fallocate.texi: Likewise.
4721         * doc/posix-functions/pread.texi: Likewise.
4722         * doc/posix-functions/pwrite.texi: Likewise.
4723         * doc/posix-functions/readdir.texi: Likewise.
4724         * doc/posix-functions/readdir_r.texi: Likewise.
4725         * doc/posix-functions/rewinddir.texi: Likewise.
4726         * doc/posix-functions/scandir.texi: Likewise.
4727         * doc/posix-functions/seekdir.texi: Likewise.
4728         * doc/posix-functions/setrlimit.texi: Likewise.
4729         * doc/posix-functions/statvfs.texi: Likewise.
4730         * doc/posix-functions/telldir.texi: Likewise.
4731         * doc/posix-functions/tmpfile.texi: Likewise.
4732         * doc/posix-functions/truncate.texi: Likewise.
4733         * doc/glibc-functions/fallocate.texi: Likewise.
4734         * doc/glibc-functions/fstatfs.texi: Likewise.
4735         * doc/glibc-functions/fts_children.texi: Likewise.
4736         * doc/glibc-functions/fts_read.texi: Likewise.
4737         * doc/glibc-functions/getdirentries.texi: Likewise.
4738         * doc/glibc-functions/mkostemp.texi: Likewise.
4739         * doc/glibc-functions/mkostemps.texi: Likewise.
4740         * doc/glibc-functions/mkstemps.texi: Likewise.
4741         * doc/glibc-functions/preadv.texi: Likewise.
4742         * doc/glibc-functions/pwritev.texi: Likewise.
4743         * doc/glibc-functions/sendfile.texi: Likewise.
4744         * doc/glibc-functions/statfs.texi: Likewise.
4745
4746 2011-07-24  Bruno Haible  <bruno@clisp.org>
4747
4748         doc: Fix typo.
4749         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4750
4751 2011-07-24  Bruno Haible  <bruno@clisp.org>
4752
4753         doc: Mention fsusage.
4754         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4755
4756 2011-07-24  Bruno Haible  <bruno@clisp.org>
4757
4758         doc: Mention new glibc headers and functions.
4759         * doc/glibc-headers/gshadow.texi: New file.
4760         * doc/glibc-functions/endsgent.texi: New file.
4761         * doc/glibc-functions/fgetsgent.texi: New file.
4762         * doc/glibc-functions/fgetsgent_r.texi: New file.
4763         * doc/glibc-functions/getsgent.texi: New file.
4764         * doc/glibc-functions/getsgent_r.texi: New file.
4765         * doc/glibc-functions/getsgnam.texi: New file.
4766         * doc/glibc-functions/getsgnam_r.texi: New file.
4767         * doc/glibc-functions/putsgent.texi: New file.
4768         * doc/glibc-functions/setsgent.texi: New file.
4769         * doc/glibc-functions/sgetsgent.texi: New file.
4770         * doc/glibc-functions/sgetsgent_r.texi: New file.
4771         * doc/glibc-functions/malloc_info.texi: New file.
4772         * doc/glibc-functions/preadv.texi: New file.
4773         * doc/glibc-functions/pwritev.texi: New file.
4774         * doc/glibc-functions/register_printf_modifier.texi: New file.
4775         * doc/glibc-functions/register_printf_specifier.texi: New file.
4776         * doc/glibc-functions/register_printf_type.texi: New file.
4777         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4778         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4779         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4780         * doc/glibc-functions/pthread_getname_np.texi: New file.
4781         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4782         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4783         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4784         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4785         * doc/glibc-functions/pthread_setname_np.texi: New file.
4786         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4787         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4788         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4789         * doc/glibc-functions/qsort_r.texi: New file.
4790         * doc/glibc-functions/quick_exit.texi: New file.
4791         * doc/glibc-functions/syncfs.texi: New file.
4792         * doc/gnulib.texi: Include them.
4793         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4794         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4795         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4796         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4797         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4798         * doc/glibc-functions/execvpe.texi: Likewise.
4799
4800 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4801
4802         ftell: don't include <unistd.h>
4803         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4804         guaranteed to define off_t, and the ftell module depends on the
4805         stdio module.
4806
4807         ftell: do not assume wraparound signed arithmetic
4808         * lib/ftell.c: Include <limits.h>.
4809         (ftell): Don't assume wraparound signed arithmetic.
4810
4811 2011-07-24  Bruno Haible  <bruno@clisp.org>
4812
4813         close: No longer depend on module 'fclose'.
4814         * modules/close (Depends-on): Remove fclose.
4815         * NEWS: Mention the change.
4816         Suggested by Sam Steingold <sds@gnu.org>.
4817
4818 2011-07-24  Bruno Haible  <bruno@clisp.org>
4819
4820         fsusage: Enable large volume support on AIX >= 5.2.
4821         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4822         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4823         instead of STAT_STATVFS.
4824         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4825
4826         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4828         f_blocks field only on MacOS X.
4829
4830         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4831         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4832         * modules/fsusage (Depends-on): Add largefile.
4833
4834 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4835
4836         * README: Modernize discussion of signed integers.
4837         Assuming overflow wraparound is no longer safe.
4838         Mention ones' complement and signed magnitude.
4839
4840 2011-07-22  Bruno Haible  <bruno@clisp.org>
4841
4842         select tests, pselect tests: Refactor.
4843         * tests/test-select.h: New file, extracted from tests/test-select.c.
4844         (select_fn): New type.
4845         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4846         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4847         test_pipe): Add my_select argument.
4848         (test_function): Renamed from main. Add my_select argument.
4849         * tests/test-select.c: Move most code to tests/test-select.h. Include
4850         test-select.h.
4851         * modules/select-tests (Files): Add tests/test-select.h.
4852         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4853         (my_select, main): New functions.
4854         * modules/pselect-tests (Files): Add tests/test-select.h,
4855         tests/macros.h, tests/signature.h.
4856         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4857         (configure.ac): Check for <sys/wait.h>.
4858
4859 2011-07-22  Bruno Haible  <bruno@clisp.org>
4860
4861         sys_select tests: Check the signature of FD_*.
4862         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4863         signature tests from here...
4864         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4865         here.
4866         * modules/sys_select-tests (Files): Add tests/signature.h.
4867
4868 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4869
4870         largefile: new module, replacing large-inode
4871         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4872         * MODULES.html.sh: Add largefile, remove large-inode.
4873         * modules/largefile, m4/largefile.m4: New files.
4874         * modules/large-inode, m4/large-inode.m4: Remove.
4875
4876         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4877         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4878         implementations that use only 32 bits to count blocks.
4879         On typical hosts with 1024-byte blocks, this fails with file
4880         systems as small as 4 TiB.  Problem reported by Herb Wartens
4881         <http://debbugs.gnu.org/9140> and this should also fix a similar
4882         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4883
4884         large-inode: New module
4885         * MODULES.html.sh: Add it.
4886         * modules/large-inode, m4/large-inode.m4: New files.
4887
4888         extensions: Enable extensions on MacOS X 10.5 and later.
4889         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4890
4891 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4892
4893         file-has-acl: use acl_extended_file_nofollow if available
4894         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4895         (acl_extended_file): New macro.
4896         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4897         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4898
4899 2011-07-21  Bruno Haible  <bruno@clisp.org>
4900
4901         Declare system functions in a way that works with C++.
4902         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4903         declare fdopendir as extern "C".
4904         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4905         declare frexpl as extern "C".
4906         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4907         declare gai_strerror as extern "C".
4908         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4909         programs, declare gai_strerror as extern "C".
4910         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4911         declare getlogin_r as extern "C".
4912         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4913         as extern "C".
4914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4915         declare ldexpl as extern "C".
4916         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4917         as extern "C".
4918         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4919         program, declare getmntinfo as extern "C".
4920         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4921         stpncpy as extern "C".
4922         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4923         program, declare __xpg_strerror_r as extern "C".
4924         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4925         strndup as extern "C".
4926         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4927         declare memset and bzero as extern "C".
4928         Reported by Sam Steingold <sds@gnu.org>.
4929
4930 2011-07-12  Jim Meyering  <meyering@redhat.com>
4931
4932         maint.mk: prohibit inclusion of "verify.h" without use
4933         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4934
4935 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4936
4937         timer-time: A new module to check for timer_settime()
4938         * m4/timer_time.m4: Check for the posix function.
4939         * modules/timer-time: Add the new module.
4940         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4941         Mention it.
4942
4943 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4944             Bruno Haible  <bruno@clisp.org>
4945
4946         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4947         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4948         not defined, assume POSIX threads and look for pthread_sigmask in
4949         $LIBS, without changing $CPPFLAGS.
4950
4951 2011-07-19  Bruno Haible  <bruno@clisp.org>
4952
4953         strstr: Update cross-compilation guess.
4954         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4955         CPUs, guess no, in view of glibc
4956         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4957         Suggested by Eric Blake. Reported by Reuben Thomas.
4958
4959 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4960
4961         getopt-gnu: suppress core dumps from detection code
4962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4963         to suppress core dumps that may well occur on glibc systems.
4964         * modules/getopt-gnu: Depend on nocrash.
4965
4966 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4967
4968         pthread_sigmask: ensure usleep is declared
4969         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4970         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4971
4972 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4973
4974         doc: Document NonStop portability issues.
4975         * doc/posix-functions/sigaction.texi (sigaction):
4976         * doc/posix-headers/signal.texi (signal.h):
4977         Document NonStop.  See Joachim Schmitz in
4978         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4979
4980 2011-07-15  Bruno Haible  <bruno@clisp.org>
4981
4982         ffsl, ffsll: Avoid unportable behaviour.
4983         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4984
4985 2011-07-15  Bruno Haible  <bruno@clisp.org>
4986
4987         ffs: More tests.
4988         * tests/test-ffs.c (NBITS): New macro.
4989         (main): Add more tests.
4990         * tests/test-ffsl.c (NBITS): New macro.
4991         (main): Add more tests.
4992         * tests/test-ffsll.c (NBITS): New macro.
4993         (main): Add more tests.
4994
4995 2011-07-15  Eric Blake  <eblake@redhat.com>
4996
4997         ffsl, ffsll: new modules
4998         * modules/ffsl: New file.
4999         * modules/ffsll: Likewise.
5000         * m4/ffsl.m4: Likewise.
5001         * m4/ffsll.m4: Likewise.
5002         * lib/ffsl.c: Likewise.
5003         * lib/ffsl.h: Likewise.
5004         * lib/ffsll.c: Likewise.
5005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5006         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5007         * modules/string (Makefile.am): Substitute witnesses.
5008         * lib/strings.in.h (ffsl, ffsll): Declare.
5009         * modules/ffsl-tests: New test file.
5010         * modules/ffsll-tests: Likewise.
5011         * tests/test-ffsl.c: Likewise.
5012         * tests/test-ffsll.c: Likewise.
5013         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5014         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5015         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5016
5017         ffs: fix m4 prerequisite
5018         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5019
5020         ffs: avoid undefined behavior
5021         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5022         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5023         Reported by Bruno Haible.
5024
5025 2011-07-12  Bruno Haible  <bruno@clisp.org>
5026
5027         pthread_sigmask: Rely on module 'threadlib'.
5028         * modules/pthread_sigmask (Depends-on): Add threadlib.
5029         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5030         is defined.
5031
5032 2011-07-12  Bruno Haible  <bruno@clisp.org>
5033
5034         regex: Depend on module 'strcase'.
5035         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5036
5037 2011-07-12  Jim Meyering  <meyering@redhat.com>
5038
5039         warn-on-use: fix typo in file name
5040         * modules/snippet/warn-on-use (Files): Correct file name:
5041         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5042
5043 2011-07-12  Bruno Haible  <bruno@clisp.org>
5044
5045         strings: Document module.
5046         * doc/posix-headers/strings.texi: Mention module 'strings'.
5047
5048 2011-07-12  Bruno Haible  <bruno@clisp.org>
5049
5050         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5051         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5052         (Files, Makefile.am): Update.
5053         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5054         * modules/stdlib (Depends-on): Update.
5055
5056 2011-07-12  Bruno Haible  <bruno@clisp.org>
5057
5058         * NEWS: Mention the changes.
5059
5060         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5061         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5062         (Files, Makefile.am): Update.
5063         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5064         * modules/arpa_inet (Depends-on): Update.
5065         * modules/ctype (Depends-on): Update.
5066         * modules/dirent (Depends-on): Update.
5067         * modules/fcntl-h (Depends-on): Update.
5068         * modules/glob (Depends-on): Update.
5069         * modules/iconv-h (Depends-on): Update.
5070         * modules/inttypes-incomplete (Depends-on): Update.
5071         * modules/langinfo (Depends-on): Update.
5072         * modules/locale (Depends-on): Update.
5073         * modules/math (Depends-on): Update.
5074         * modules/netdb (Depends-on): Update.
5075         * modules/poll-h (Depends-on): Update.
5076         * modules/pty (Depends-on): Update.
5077         * modules/search (Depends-on): Update.
5078         * modules/signal (Depends-on): Update.
5079         * modules/spawn (Depends-on): Update.
5080         * modules/stdio (Depends-on): Update.
5081         * modules/stdlib (Depends-on): Update.
5082         * modules/string (Depends-on): Update.
5083         * modules/strings (Depends-on): Update.
5084         * modules/sys_file (Depends-on): Update.
5085         * modules/sys_ioctl (Depends-on): Update.
5086         * modules/sys_select (Depends-on): Update.
5087         * modules/sys_socket (Depends-on): Update.
5088         * modules/sys_stat (Depends-on): Update.
5089         * modules/sys_time (Depends-on): Update.
5090         * modules/sys_times (Depends-on): Update.
5091         * modules/sys_utsname (Depends-on): Update.
5092         * modules/sys_wait (Depends-on): Update.
5093         * modules/termios (Depends-on): Update.
5094         * modules/time (Depends-on): Update.
5095         * modules/unistd (Depends-on): Update.
5096         * modules/wchar (Depends-on): Update.
5097         * modules/wctype-h (Depends-on): Update.
5098         * MODULES.html.sh (Support for building libraries and executables):
5099         Update.
5100
5101         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5102         * modules/snippet/unused-parameter: Renamed from
5103         modules/unused-parameter.
5104         (Files, Makefile.am): Update.
5105         * build-aux/snippet/unused-parameter.h: Renamed from
5106         build-aux/unused-parameter.h.
5107         * modules/selinux-h (Depends-on): Update.
5108         * modules/unistr/base (Depends-on): Update.
5109         * MODULES.html.sh (Core language properties): Update.
5110
5111         Rename module 'link-warning' to 'snippet/link-warning'.
5112         * modules/snippet/link-warning: Renamed from modules/link-warning.
5113         (Files, Makefile.am): Update.
5114         * build-aux/snippet/link-warning.h: Renamed from
5115         build-aux/link-warning.h.
5116         * MODULES.html.sh (Support for building libraries and executables):
5117         Update.
5118
5119         Rename module 'c++defs' to 'snippet/c++defs'.
5120         * modules/snippet/c++defs: Renamed from modules/c++defs.
5121         (Files, Makefile.am): Update.
5122         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5123         * modules/arpa_inet (Depends-on): Update.
5124         * modules/ctype (Depends-on): Update.
5125         * modules/dirent (Depends-on): Update.
5126         * modules/fcntl-h (Depends-on): Update.
5127         * modules/glob (Depends-on): Update.
5128         * modules/iconv-h (Depends-on): Update.
5129         * modules/langinfo (Depends-on): Update.
5130         * modules/locale (Depends-on): Update.
5131         * modules/math (Depends-on): Update.
5132         * modules/netdb (Depends-on): Update.
5133         * modules/poll-h (Depends-on): Update.
5134         * modules/pty (Depends-on): Update.
5135         * modules/search (Depends-on): Update.
5136         * modules/signal (Depends-on): Update.
5137         * modules/spawn (Depends-on): Update.
5138         * modules/stdio (Depends-on): Update.
5139         * modules/stdlib (Depends-on): Update.
5140         * modules/string (Depends-on): Update.
5141         * modules/strings (Depends-on): Update.
5142         * modules/sys_ioctl (Depends-on): Update.
5143         * modules/sys_select (Depends-on): Update.
5144         * modules/sys_socket (Depends-on): Update.
5145         * modules/sys_stat (Depends-on): Update.
5146         * modules/sys_time (Depends-on): Update.
5147         * modules/sys_wait (Depends-on): Update.
5148         * modules/termios (Depends-on): Update.
5149         * modules/time (Depends-on): Update.
5150         * modules/unistd (Depends-on): Update.
5151         * modules/wchar (Depends-on): Update.
5152         * modules/wctype-h (Depends-on): Update.
5153
5154         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5155         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5156         (Files, Makefile.am): Update.
5157         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5158         * modules/argv-iter (Depends-on): Update.
5159         * modules/arpa_inet (Depends-on): Update.
5160         * modules/dirent (Depends-on): Update.
5161         * modules/fcntl-h (Depends-on): Update.
5162         * modules/fnmatch (Depends-on): Update.
5163         * modules/getopt-posix (Depends-on): Update.
5164         * modules/glob (Depends-on): Update.
5165         * modules/iconv-h (Depends-on): Update.
5166         * modules/inttypes-incomplete (Depends-on): Update.
5167         * modules/locale (Depends-on): Update.
5168         * modules/math (Depends-on): Update.
5169         * modules/netdb (Depends-on): Update.
5170         * modules/search (Depends-on): Update.
5171         * modules/signal (Depends-on): Update.
5172         * modules/spawn (Depends-on): Update.
5173         * modules/stdio (Depends-on): Update.
5174         * modules/stdlib (Depends-on): Update.
5175         * modules/string (Depends-on): Update.
5176         * modules/strings (Depends-on): Update.
5177         * modules/sys_socket (Depends-on): Update.
5178         * modules/sys_stat (Depends-on): Update.
5179         * modules/sys_time (Depends-on): Update.
5180         * modules/sys_times (Depends-on): Update.
5181         * modules/sys_utsname (Depends-on): Update.
5182         * modules/time (Depends-on): Update.
5183         * modules/unistd (Depends-on): Update.
5184         * modules/wchar (Depends-on): Update.
5185         * MODULES.html.sh (Support for building libraries and executables):
5186         Update.
5187
5188 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5189
5190         Improvements on _Noreturn and related modules.
5191
5192         modules/_Exit-tests: test _Noreturn too
5193         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5194         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5195         (main): Use them.
5196
5197         stdnoreturn, stdnoreturn-tests: remove modules
5198         They're not needed here and a bit premature for use elsewhere.  See
5199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5200         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5201         * tests/test-stdnoreturn.c: Remove files.
5202         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5203         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5204         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5205         and using noreturn.
5206         * modules/openat, modules/sigpipe-die, modules/xalloc:
5207         * modules/xmemdup0, modules/xstrtol:
5208         Remove dependency on stdnoreturn.
5209
5210         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5211         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5212         Reparenthesize to avoid GCC warning.
5213         Support Microsoft's syntax.
5214         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5215
5216         _Noreturn-tests: remove module
5217         * modules/_Noreturn-tests: Remove.
5218         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5219         * tests/test-_Noreturn.c: Remove.
5220         * tests/test-stdnoreturn.c: Merge from the old
5221         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5222
5223 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5224
5225         _Noreturn, stdnoreturn, and related modules.
5226
5227         * top/maint.mk: Adjust to new noreturn support.
5228         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5229         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5230
5231         xalloc: use stdnoreturn.h
5232         * lib/xalloc.h: Include <stdnoreturn.h>.
5233         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5234         * modules/xalloc (Depends-on): Add stdnoreturn.
5235
5236         xstrtol: use stdnoreturn.h
5237         * lib/xstrtol.h: Include <stdnoreturn.h>.
5238         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5239         * modules/xstrtol (Depends-on): Add stdnoreturn.
5240
5241         xmemdup0: use stdnoreturn.h
5242         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5243         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5244         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5245
5246         sigpipe-die: use stdnoreturn.h
5247         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5248         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5249         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5250
5251         openat: use stdnoreturn.h
5252         * lib/openat.h: Include <stdnoreturn.h>.
5253         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5254         * modules/openat (Depends-on): Add stdnoreturn.
5255
5256         * lib/openat-die.c (openat_save_fail): Modernize comment.
5257
5258         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5259
5260         * lib/glthread/thread.h: Modernize comment.
5261
5262         obstack: use _Noreturn
5263         * lib/obstack.c (__attribute__): Remove macro.
5264         (print_and_abort): Use _Noreturn.
5265
5266         c-stack: use _Noreturn
5267         * lib/c-stack.c (die, overflow_handler, segv_handler):
5268         Use _Noreturn rather than __attribute__((noreturn)).
5269
5270         argmatch-tests, exclude_tests: use _Noreturn
5271         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5272         Remove.
5273         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5274
5275         stdlib: use _Noreturn
5276         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5277         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5278         * modules/stdlib (Depends-on): Add _Noreturn.
5279         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5280
5281         stdnoreturn-tests: new module
5282         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5283
5284         stdnoreturn: new module
5285         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5286         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5287
5288         _Noreturn-tests: new module
5289         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5290
5291         _Noreturn: new module
5292         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5293         New section, mentioning it.
5294         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5295
5296         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5297
5298 2011-07-11  Eric Blake  <eblake@redhat.com>
5299
5300         ffs: new module
5301         * modules/ffs: New file.
5302         * m4/ffs.m4: Likewise.
5303         * lib/ffs.c: Likewise.
5304         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5305         * modules/strings (Makefile.am): Substitute witness.
5306         (Depends-on): Add c++defs.
5307         * lib/strings.in.h (ffs): Declare.
5308         * modules/ffs-tests: New test file.
5309         * tests/test-ffs.c: Test new module.
5310         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5311         * doc/posix-functions/ffs.texi (ffs): Likewise.
5312
5313         regex: avoid compiler warning
5314         * lib/regex.c (includes): Include <strings.h>, for use of
5315         strcasecmp in regcomp.c.
5316         Reported by Joachim Schmitz.
5317
5318 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5319
5320         stdint: respect system's intmax_t if INTMAX_MAX
5321         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5322         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5323         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5324         long but int64_t is long long, and where we will clash with the
5325         system intmax_t if we override it.  See
5326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5327         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5328         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5329         similarly for UINTMAX_C.
5330
5331 2011-07-08  Bruno Haible  <bruno@clisp.org>
5332
5333         pthread_sigmask tests: Avoid a compiler warning.
5334         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5335         non-zero.
5336
5337         sigprocmask tests: A better way to avoid a compiler warning.
5338         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5339         (main): Complain if system() returns non-zero.
5340         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5341
5342 2011-07-08  Bruno Haible  <bruno@clisp.org>
5343
5344         pthread_sigmask: Work around IRIX bug.
5345         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5346         bug.
5347         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5348         there may be unblocked pending signals.
5349         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5350
5351 2011-07-08  Bruno Haible  <bruno@clisp.org>
5352
5353         pthread_sigmask: Work around Cygwin bug.
5354         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5355         bug.
5356         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5357         the system's pthread_sigmask function.
5358         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5359
5360 2011-07-08  Bruno Haible  <bruno@clisp.org>
5361
5362         pthread_sigmask: Work around bug in single-threaded implementation.
5363         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5364         FreeBSD, HP-UX, Solaris bug.
5365         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5366         * lib/pthread_sigmask.c: Include <stddef.h>.
5367         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5368         the system's pthread_sigmask function.
5369         * modules/pthread_sigmask (configure.ac): Invoke
5370         gl_PREREQ_PTHREAD_SIGMASK.
5371         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5372         HP-UX, Solaris.
5373
5374 2011-07-08  Eric Blake  <eblake@redhat.com>
5375
5376         test-sigprocmask: avoid compiler warning
5377         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5378         * tests/test-sigprocmask.c (main): Use it to silence warning.
5379         Reported by Jim Meyering.
5380
5381         test-snprintf: avoid compiler warning
5382         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5383         * tests/test-vsnprintf.c (main): Likewise.
5384         Reported by Jim Meyering.
5385
5386 2011-07-08  Bruno Haible  <bruno@clisp.org>
5387
5388         Tests for module 'pthread_sigmask'.
5389         * modules/pthread_sigmask-tests: New file.
5390         * tests/test-pthread_sigmask1.c: New file, based on
5391         tests/test-sigprocmask.c.
5392         * tests/test-pthread_sigmask2.c: New file.
5393
5394 2011-07-08  Jim Meyering  <meyering@redhat.com>
5395
5396         test-getopt.h: avoid warning about an unused variable
5397         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5398
5399 2011-07-07  Jim Meyering  <meyering@redhat.com>
5400
5401         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5402         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5403         now that it no longer contains leading TABs.
5404         Remove unused "url=FIXME" statement.
5405
5406 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5407
5408         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5409         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5410         When gl_THREADLIB is not in use, assume that the POSIX sematics
5411         are desired.  This is better for Emacs, which uses POSIX semantics
5412         on GNUish and/or POSIXish platforms, and does not use threads at
5413         all otherwise.
5414
5415         pthread_sigmask: fix typo when testing for libraries
5416         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5417         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5418
5419 2011-07-08  Eric Blake  <eblake@redhat.com>
5420
5421         fts: introduce FTS_NOATIME
5422         * lib/fts_.h (FTS_NOATIME): New bit flag.
5423         (FTS_OPTIONMASK): Adjust.
5424         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5425         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5426
5427 2011-07-08  Bruno Haible  <bruno@clisp.org>
5428
5429         Tests for module 'thread'.
5430         * modules/thread-tests: New file.
5431         * tests/test-thread_self.c: New file.
5432         * tests/test-thread_create.cc: New file.
5433
5434 2011-07-08  Bruno Haible  <bruno@clisp.org>
5435
5436         thread: Avoid gcc warnings when using gl_thread_self().
5437         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5438         'void *'.
5439         (gl_thread_self_pointer): Update.
5440
5441 2011-07-07  Bruno Haible  <bruno@clisp.org>
5442
5443         signal-c++-tests: Check declaration of pthread_sigmask.
5444         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5445         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5446         $(LIB_PTHREAD_SIGMASK).
5447
5448 2011-07-07  Bruno Haible  <bruno@clisp.org>
5449
5450         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5451         * lib/signal.in.h (pthread_sigmask): Override if
5452         REPLACE_PTHREAD_SIGMASK is 1.
5453         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5454         REPLACE_PTHREAD_SIGMASK.
5455         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5456         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5457         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5458         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5459         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5460
5461 2011-07-07  Bruno Haible  <bruno@clisp.org>
5462
5463         pthread_sigmask: Ensure declaration in <signal.h>.
5464         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5465         include <pthread.h>.
5466         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5467         problem.
5468
5469 2011-07-07  Bruno Haible  <bruno@clisp.org>
5470
5471         pthread_sigmask: Document the module.
5472         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5473
5474 2011-07-07  Bruno Haible  <bruno@clisp.org>
5475
5476         pthread_sigmask: Follow gnulib conventions.
5477         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5478         gl_PTHREAD_SIGMASK.
5479         * modules/pthread_sigmask (configure.ac): Update.
5480
5481 2011-07-07  Bruno Haible  <bruno@clisp.org>
5482
5483         pthread_sigmask: Make declaration C++ safe.
5484         * lib/signal.in.h: In two special conditions, just do an #include_next.
5485         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5486         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5487         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5488         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5489         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5490         not REPLACE_PTHREAD_MASK.
5491         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5492         not REPLACE_PTHREAD_MASK.
5493         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5494
5495 2011-07-07  Bruno Haible  <bruno@clisp.org>
5496
5497         pthread_sigmask: Fix return value.
5498         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5499         * lib/pthread_sigmask.c: New file.
5500         * modules/pthread_sigmask (Files): Add it.
5501         (configure.ac): Invoke AC_LIBOBJ.
5502
5503 2011-07-07  Eric Blake  <eblake@redhat.com>
5504
5505         getopt: more portable argv creation
5506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5507         const, use char arrays rather than strings.
5508         Suggested by Paul Eggert.
5509
5510 2011-07-07  Bruno Haible  <bruno@clisp.org>
5511
5512         Tests for module 'sigprocmask'.
5513         * modules/sigprocmask-tests: New file.
5514         * tests/test-sigprocmask.c: New file.
5515
5516 2011-07-07  Bruno Haible  <bruno@clisp.org>
5517
5518         float tests: Tweak.
5519         * tests/test-float.c (main): Tweak skip message.
5520
5521 2011-07-07  Eric Blake  <eblake@redhat.com>
5522
5523         getopt: avoid compiler warning during configure
5524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5525         assigning string literals to non-const pointer.
5526
5527         getopt-gnu: avoid crash in glibc getopt
5528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5529         * tests/test-getopt.h (test_getopt): Enhance test.
5530         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5531         * doc/posix-functions/getopt.texi (getopt): Document it.
5532         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5533         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5534         Likewise.
5535
5536 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5537
5538         getopt: handle W; without long options in getopt [BZ #12922]
5539         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5540         but no long options are defined, just return 'W'.
5541
5542 2011-07-07  Bruno Haible  <bruno@clisp.org>
5543
5544         Avoid literal tabs.
5545         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5546         variable containing a tab instead of a literal tab.
5547         Reported by Jim Meyering.
5548
5549 2011-07-07  Bruno Haible  <bruno@clisp.org>
5550
5551         Comments.
5552         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5553
5554 2011-07-06  Bruno Haible  <bruno@clisp.org>
5555
5556         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5557         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5558         <winsock2.h>.
5559         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5560         lib/sys_socket.in.h.
5561         (close, gethostname): Hide declarations from <winsock2.h>.
5562         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5563         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5564         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5565         (select): Don't override if gnulib's <sys/select.h> was already
5566         included.
5567         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5568         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5569         setsockopt, shutdown, select): Tweak indentation.
5570
5571 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5572
5573         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5574         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5575         in an application that does not use the sys_select module.
5576
5577 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5578
5579         poll: do not return 0 on timeout=-1
5580         * lib/poll.c: Loop with yield if no events occured
5581
5582 2011-07-06  Eric Blake  <eblake@redhat.com>
5583
5584         pthread_sigmask: always replace when not using pthread
5585         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5586         replacement when using some threading other than pthread.  Fix
5587         logic bug.
5588
5589 2011-07-06  Bruno Haible  <bruno@clisp.org>
5590
5591         Comments.
5592         * m4/printf.m4: Update comments about mingw.
5593
5594 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5595
5596         sys_select: define sigset_t more portably
5597         * lib/sys_select.in.h: Always include <sys/types.h>, since
5598         we now need sigset_t and mingw defines it there.
5599         Include <signal.h> before split inclusion guard, to avoid
5600         mishaps on Solaris, whose <signal.h> eventually includes us.
5601         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5602         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5603         which come from ...
5604         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5605         gl_CHECK_TYPE_SIGSET_T.
5606         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5607         does the real work.
5608         * modules/sys_select (Depends-on): Add 'signal'.
5609
5610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5611         Suggested by Bruno Haible.
5612
5613         pselect: Use pthread_sigmask, not sigprocmask.
5614         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5615         multithreaded apps better than sigprocmask does.
5616         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5617         sigprocmask directly.
5618
5619 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5620
5621         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5622         Don't #undef,  since we don't need any underlying pselect.
5623         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5624         (Depends-on): Add select.
5625         (Link): Add $(LIBSOCKET).
5626         These changes suggested by Bruno Haible.
5627
5628         pselect: document better
5629         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5630         * doc/posix-functions/pselect.texi (pselect): Document new module.
5631
5632         pthread_sigmask: new module
5633         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5634         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5635         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5636         This is done only as a macro; I don't know how well that'll
5637         work for C++.  Move <sys/types.h> include before the include_next,
5638         to avoid mishap on Solaris.
5639         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5640         * modules/signal (Makefile.am): Substitute the check's results.
5641         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5642
5643         test-pselect: new module
5644         * modules/pselect-tests, tests/test-pselect.c: New files.
5645         * tests/test-select.c, tests/test-sys_select-c++.cc:
5646         If TEST_PSELECT is defined, test pselect instead of testing select.
5647
5648         * tests/test-sys_select.c (sigset_t): Test for it, too.
5649         Suggested by Bruno Haible.
5650
5651 2011-07-05  Eric Blake  <eblake@redhat.com>
5652
5653         snprintf: guarantee %1$d, for libintl
5654         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5655         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5656         * doc/posix-functions/snprintf.texi (snprintf): Update.
5657         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5658         * tests/test-snprintf.c (main): Enhance test.
5659         * tests/test-vsnprintf.c (main): Likewise.
5660
5661 2011-07-05  Jim Meyering  <meyering@redhat.com>
5662
5663         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5664         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5665         per Bruno's request, to accommodate this idiom (no space after "#")
5666         even when the function is inside an #if block:
5667         char *
5668         gets (char *s)
5669         #undef gets
5670         {
5671           ...
5672         }
5673
5674 2011-07-04  Jim Meyering  <meyering@redhat.com>
5675
5676         maint: indent with spaces, not TABs, and add a rule to check this
5677         * tests/test-userspec.c: Indent with spaces, not TABs.
5678         * tests/test-argp.c: Likewise.
5679         * tests/test-c-stack2.sh: Likewise.
5680         * tests/test-parse-duration.sh: Likewise
5681         * m4/strtod.m4: Likewise.
5682         * m4/alloca.m4: Likewise.
5683         * m4/pselect.m4: Likewise.
5684         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5685
5686 2011-07-03  Jim Meyering  <meyering@redhat.com>
5687
5688         maint.mk: correct omissions in prohibit_argmatch_without_use check
5689         This rule would mistakenly report that argmatch.h is included without
5690         use even when both the argmatch and invalid_arg macro were used.
5691         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5692         of argmatch and invalid_arg.
5693
5694 2011-07-03  Bruno Haible  <bruno@clisp.org>
5695
5696         Comments about EINTR.
5697         * lib/safe-read.h: Explain the purpose of this module.
5698         * lib/safe-write.h: Likewise.
5699         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5700         module.
5701         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5702         module.
5703         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5704
5705 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5706
5707         xnanosleep: Rewrite to use new dtotimespec module.
5708         It has the conversion code that used to be in xnanosleep.
5709         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5710         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5711         (TIME_T_MAX): Remove.
5712         (xnanosleep): Rewrite in terms of dtotimespec.
5713         * modules/xnanosleep (Depends-on): Add dtotimespec.
5714         Remove intprops, stdbool.
5715
5716         timespec-add, timespec-sub: new modules
5717         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5718         * lib/timespec-add.c, lib/timespec-sub.c:
5719         * modules/timespec-add, modules/timespec-sub: New files.
5720
5721         dtotimespec: new module
5722         * lib/timespec.h (dtotimespec): New decl.
5723         * lib/dtotimespec.c, modules/dtotimespec: New files.
5724
5725         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5726
5727         pselect: new module
5728         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5729         (pselect): New decls.
5730         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5731         since the standard pselect decl uses 'restrict'.
5732         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5733         HAVE_PSELECT, REPLACE_PSELECT.
5734         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5735         HAVE_PSELECT, REPLACE_PSELECT.
5736         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5737
5738         sys_select: don't depend on sys_socket
5739         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5740         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5741         This fix works on GNU and GNU-like platforms, but has not been tested
5742         on native Windows.
5743         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5744         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5745         gl_HEADER_SYS_SOCKET.
5746         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5747         gl_PREREQ_SYS_H_WINSOCK2.
5748
5749 2011-06-29  Eric Blake  <eblake@redhat.com>
5750
5751         pipe2: fix C89 compile problem
5752         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5753         Reported by Bruno Haible.
5754
5755         pipe, pipe2: don't corrupt fd on error
5756         * lib/pipe.c (pipe): Leave fd unchanged on error.
5757         * lib/pipe2.c (pipe2): Likewise.
5758         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5759         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5760
5761 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5762
5763         mmap-anon: do not use regular expressions inadvertently
5764         * m4/mmap-anon.m4: Remove trailing period from strings sought
5765         in the output.
5766
5767 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5768
5769         nanosleep: fix integer overflow problem
5770         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5771         arithmetic wraps around on overflow.
5772
5773         nanosleep: simplify carrying
5774         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5775         first call to the underyling nanosleep, not for the last one.
5776         This doesn't fix any bugs, but it simplifies the computation of
5777         the remaining delay.  Found while auditing integer overflow issues.
5778
5779         dup2: remove test for existence of fcntl
5780         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5781         "#if HAVE_FCNTL", in the configure-time test program.
5782         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5783         and therefore speeds up "configure" a bit.  Found while
5784         adding the dup2 module to Emacs.
5785
5786 2011-06-24  Eric Blake  <eblake@redhat.com>
5787
5788         maint.mk: enhance useless header checks
5789         * top/maint.mk (_sc_header_without_use): Check both include
5790         styles.
5791         (sc_prohibit_assert_without_use)
5792         (sc_prohibit_close_stream_without_use)
5793         (sc_prohibit_getopt_without_use)
5794         (sc_prohibit_quotearg_without_use)
5795         (sc_prohibit_quote_without_use)
5796         (sc_prohibit_long_options_without_use)
5797         (sc_prohibit_inttostr_without_use)
5798         (sc_prohibit_ignore_value_without_use)
5799         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5800         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5801         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5802         (sc_prohibit_hash_pjw_without_use)
5803         (sc_prohibit_safe_read_without_use)
5804         (sc_prohibit_argmatch_without_use)
5805         (sc_prohibit_canonicalize_without_use)
5806         (sc_prohibit_root_dev_ino_without_use)
5807         (sc_prohibit_openat_without_use)
5808         (sc_prohibit_c_ctype_without_use)
5809         (sc_prohibit_signal_without_use)
5810         (sc_prohibit_stdio--_without_use)
5811         (sc_prohibit_stdio-safer_without_use)
5812         (sc_prohibit_strings_without_use)
5813         (sc_prohibit_intprops_without_use)
5814         (sc_prohibit_stddef_without_use)
5815         (sc_prohibit_xfreopen_without_use): Update clients.
5816
5817 2011-06-24  Jim Meyering  <meyering@redhat.com>
5818
5819         syntax-check: keep one maint.mk rule in sync with its header
5820         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5821         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5822         I prefer to avoid temporary files here, so use <(...), but that
5823         is not supported by /bin/sh, so...
5824         (SHELL): Define to /bin/bash.
5825
5826 2011-06-24  Eric Blake  <eblake@redhat.com>
5827
5828         maint.mk: update sc_prohibit_intprops_without_use
5829         * top/maint.mk (_intprops_names): Match recent changes.
5830
5831 2011-06-24  Bruno Haible  <bruno@clisp.org>
5832
5833         strerror-override: No-op tweak.
5834         * lib/strerror-override.h (strerror_override): Reorder conditions,
5835         for consistency with lib/strerror-override.c.
5836
5837 2011-06-23  Eric Blake  <eblake@redhat.com>
5838
5839         maint.mk: test further PATH_MAX issues
5840         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5841         (sc_prohibit_path_max_allocation): ...and also test alloca.
5842         Suggested by Jim Meyering.
5843
5844 2011-06-22  Eric Blake  <eblake@redhat.com>
5845
5846         maint.mk: add syntax-check to avoid char[PATH_MAX]
5847         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5848
5849         stat: be robust to PATH_MAX definition
5850         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5851         * modules/stat (Depends-on): Add verify.
5852
5853         link: work around IRIX bug
5854         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5855         * lib/link.c (rpl_link): Work around it.
5856         * tests/test-link.h (test_link): Enhance test.
5857         * doc/posix-functions/link.texi (link): Document the bug.
5858
5859         getopt: silence clang warning
5860         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5861         dereference.
5862         Reported by Gustavo Martin Domato.
5863
5864 2011-06-22  Jim Meyering  <meyering@redhat.com>
5865
5866         bootstrap: do not insert a blank line into each .gitignore file
5867         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5868
5869 2011-06-21  Eric Blake  <eblake@redhat.com>
5870
5871         perror: test for output mismatch
5872         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5873         perror on IRIX.
5874
5875         strerror_r: fix OpenBSD behavior on out-of-range
5876         * lib/strerror_r.c (strerror_r): Always use maximal string.
5877         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5878
5879         strerror_r: fix OpenBSD behavior on 0
5880         * lib/strerror-override.c (strerror_override): Also override 0
5881         when needed.
5882         * lib/strerror-override.h (strerror_override): Likewise.
5883         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5884         earlier.
5885         * lib/strerror_r.c (strerror_r): Likewise.
5886         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5887         behavior...
5888         (gl_FUNC_STRERROR_0): ...into new macro.
5889         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5890         is overridden.
5891         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5892         * modules/strerror-override (Files): Add strerror.m4.
5893         (configure.ac): Also provide override for 0 when needed.
5894         * doc/posix-functions/strerror.texi (strerror): Document this.
5895         * doc/posix-functions/perror.texi (perror): Likewise.
5896
5897         perror: adjust array size
5898         * modules/perror (Depends-on): Add strerror-override.
5899         * lib/perror.c (perror): Use it to avoid magic number.
5900
5901         strerror-override: reduce size
5902         * lib/strerror-override.c (strerror_override): Use fewer lines.
5903
5904 2011-06-20  Bruno Haible  <bruno@clisp.org>
5905
5906         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5907         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5908
5909 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5910
5911         alloca: port to compilers that can optimize like GCC 4.6.0
5912         * lib/alloca.c (find_stack_direction): New signature, taken from
5913         Autoconf git.  This works with GCC 4.6.0.  This code should never
5914         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5915         be used with other compilers that optimize as well as GCC 4.6.0 does.
5916         (alloca): Adjust to new signature.
5917         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5918         New macro, which patches Autoconf in a similar way.
5919
5920         c-stack: stop worrying about stack direction
5921         * lib/c-stack.c (find_stack_direction): Remove.
5922         (segv_handler): Don't worry about stack direction growth, as it's
5923         too much of a pain to configure this correctly, given how compilers
5924         are optimizing-away our stack-growth detection code.  Instead, assume
5925         that any access to just before or just after the stack is OK.
5926         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5927         Don't require AC_FUNC_ALLOCA; no longer needed.
5928
5929 2011-06-20  Eric Blake  <eblake@redhat.com>
5930
5931         test-stat: don't allocate PATH_MAX bytes
5932         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5933         PATH_MAX-sized buffer.
5934         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5935         * modules/stat-tests (Depends-on): Likewise.
5936         * tests/test-fstatat.c (includes): Drop pathmax.h.
5937         * tests/test-stat.c (includes): Likewise.
5938         Reported by Bruno Haible.
5939
5940 2011-06-20  Bruno Haible  <bruno@clisp.org>
5941
5942         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5943         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5944         * lib/float.c: New file.
5945         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5946         REPLACE_FLOAT_LDBL.
5947         * modules/float (Files): Add lib/float.c.
5948         (configure.ac): Invoke AC_LIBOBJ.
5949         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5950
5951 2011-06-20  Bruno Haible  <bruno@clisp.org>
5952
5953         Tests for module 'float'.
5954         * modules/float-tests: New file.
5955         * tests/test-float.c: New file.
5956
5957 2011-06-19  Bruno Haible  <bruno@clisp.org>
5958
5959         isinf: Coding style.
5960         * lib/isinf.c: Use GNU coding style.
5961
5962 2011-06-19  Bruno Haible  <bruno@clisp.org>
5963
5964         linkat test: Avoid test failure on AIX 7.1.
5965         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5966         * tests/test-link.h (test_link): Likewise.
5967
5968 2011-06-19  Bruno Haible  <bruno@clisp.org>
5969
5970         pread test: Avoid test failure on OpenBSD 4.9.
5971         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5972
5973 2011-06-19  Bruno Haible  <bruno@clisp.org>
5974
5975         sprintf-posix: Fix test failure on AIX 7.1.
5976         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5977         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5978         on AIX.
5979         * doc/posix-functions/fprintf.texi: Likewise.
5980         * doc/posix-functions/printf.texi: Likewise.
5981         * doc/posix-functions/snprintf.texi: Likewise.
5982         * doc/posix-functions/sprintf.texi: Likewise.
5983         * doc/posix-functions/vdprintf.texi: Likewise.
5984         * doc/posix-functions/vfprintf.texi: Likewise.
5985         * doc/posix-functions/vprintf.texi: Likewise.
5986         * doc/posix-functions/vsnprintf.texi: Likewise.
5987         * doc/posix-functions/vsprintf.texi: Likewise.
5988
5989 2011-06-19  Bruno Haible  <bruno@clisp.org>
5990
5991         roundl-ieee: Fix test failure on AIX 7.1.
5992         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5993         * doc/posix-functions/roundl.texi: Mention problem with negative
5994         arguments.
5995
5996 2011-06-19  Bruno Haible  <bruno@clisp.org>
5997
5998         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5999         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6000         * doc/posix-functions/round.texi: Mention problem with negative
6001         arguments.
6002         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6003
6004 2011-06-19  Bruno Haible  <bruno@clisp.org>
6005
6006         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6007         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6008         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6009         * doc/posix-functions/roundf.texi: Mention problem with negative
6010         arguments.
6011         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6012
6013 2011-06-19  Bruno Haible  <bruno@clisp.org>
6014
6015         ceilf-ieee: Work around bug on MacOS X 10.5.
6016         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6017
6018         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6019         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6020         IEEE compliant, avoid compiler optimizations.
6021         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6022         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6023         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6024         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6025         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6026         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6027         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6029         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6030         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6031
6032 2011-06-19  Bruno Haible  <bruno@clisp.org>
6033
6034         ceilf-ieee: Work around bug on AIX 7.1.
6035         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6036         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6037
6038 2011-06-19  Bruno Haible  <bruno@clisp.org>
6039
6040         ceil-ieee: Work around bug on AIX 7.1.
6041         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6042         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6043
6044 2011-06-18  Bruno Haible  <bruno@clisp.org>
6045
6046         fsync test: Avoid test failure on MacOS X and AIX.
6047         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6048         EINVAL.
6049
6050 2011-06-18  Bruno Haible  <bruno@clisp.org>
6051
6052         openat, fdopendir tests: Fix link errors.
6053         * modules/openat-tests (Depends-on): Add progname.
6054         * modules/fdopendir-tests (Depends-on): Likewise.
6055         * tests/test-fchownat.c: Include progname.h.
6056         (main): Call set_program_name.
6057         * tests/test-fstatat.c: Include progname.h.
6058         (main): Call set_program_name.
6059         * tests/test-mkdirat.c: Include progname.h.
6060         (main): Call set_program_name.
6061         * tests/test-openat.c: Include progname.h.
6062         (main): Call set_program_name.
6063         * tests/test-unlinkat.c: Include progname.h.
6064         (main): Call set_program_name.
6065         * tests/test-fdopendir.c: Include progname.h.
6066         (main): Call set_program_name.
6067
6068 2011-06-18  Bruno Haible  <bruno@clisp.org>
6069
6070         Doc update.
6071         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6072         HP-UX.
6073         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6074
6075 2011-06-18  Bruno Haible  <bruno@clisp.org>
6076
6077         getcwd tests: Avoid compilation error on HP-UX 11.31.
6078         * modules/getcwd-tests (Depends-on): Add pathmax.
6079         * tests/test-getcwd.c: Include pathmax.h.
6080
6081 2011-06-18  Bruno Haible  <bruno@clisp.org>
6082
6083         isfinite, isinf: Fix link error on AIX 6 and 7.
6084         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6085         needed, also test the macro with a 'float' argument.
6086         * m4/isinf.m4 (gl_ISINF): Likewise.
6087
6088 2011-06-18  Bruno Haible  <bruno@clisp.org>
6089
6090         getloadavg: Don't clobber LIBS. Regression from previous commit.
6091         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6092         AC_CHECK_LIB from here...
6093         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6094         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6095         gl_func_getloadavg_done.
6096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6097
6098 2011-06-18  Bruno Haible  <bruno@clisp.org>
6099
6100         clean-temp: Improve documentation.
6101         * lib/clean-temp.h: Explain better how to use this module.
6102         Reported by John Darrington <john@darrington.wattle.id.au>.
6103
6104 2011-06-17  Bruno Haible  <bruno@clisp.org>
6105
6106         pread, pwrite: Avoid cc warning on AIX.
6107         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6108         (pwrite): Likewise.
6109
6110 2011-06-17  Bruno Haible  <bruno@clisp.org>
6111
6112         spawn-pipe tests: Fix link error.
6113         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6114         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6115
6116 2011-06-17  Bruno Haible  <bruno@clisp.org>
6117
6118         Tests: Remove unnecessary dependency.
6119         * modules/canonicalize-tests (Depends-on): Remove progname.
6120         * modules/chown-tests (Depends-on): Likewise.
6121         * modules/dirname-tests (Depends-on): Likewise.
6122         * modules/fdopendir-tests (Depends-on): Likewise.
6123         * modules/fdutimensat-tests (Depends-on): Likewise.
6124         * modules/hash-tests (Depends-on): Likewise.
6125         * modules/lchown-tests (Depends-on): Likewise.
6126         * modules/linkat-tests (Depends-on): Likewise.
6127         * modules/renameat-tests (Depends-on): Likewise.
6128         * modules/spawn-pipe-tests (Depends-on): Likewise.
6129         * modules/utimensat-tests (Depends-on): Likewise.
6130
6131 2011-06-17  Bruno Haible  <bruno@clisp.org>
6132
6133         spawn-pipe tests: Fix link error.
6134         * tests/test-spawn-pipe-child.c: Undefine fflush.
6135
6136 2011-06-17  Bruno Haible  <bruno@clisp.org>
6137
6138         Fix tests link errors.
6139         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6140         * modules/chown-tests (Makefile.am): Don't link test-chown with
6141         LIBINTL.
6142         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6143         LIBINTL.
6144         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6145         LIBINTL.
6146         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6147         LIBINTL.
6148
6149 2011-06-16  Bruno Haible  <bruno@clisp.org>
6150
6151         crypto/gc-sha1: Fix recent regression.
6152         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6153         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6154
6155         crypto/gc-md5: Fix recent regression.
6156         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6157
6158         crypto/gc-md4: Fix recent regression.
6159         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6160         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6161
6162         crypto/gc-arctwo: Fix recent regression.
6163         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6164         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6165
6166         crypto/gc-rijndael: Fix recent regression.
6167         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6168         (configure.ac): Invoke AC_LIBOBJ here.
6169         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6171
6172         crypto/gc-hmac-sha1: Fix recent regression.
6173         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6174         (configure.ac): Invoke AC_LIBOBJ here.
6175         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6177
6178         crypto/gc-hmac-md5: Fix recent regression.
6179         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6180         (configure.ac): Invoke AC_LIBOBJ here.
6181         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6183
6184         crypto/gc-des: Fix recent regression.
6185         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6186         (configure.ac): Invoke AC_LIBOBJ here.
6187         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6189
6190         crypto/gc-arcfour: Fix recent regression.
6191         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6192         (configure.ac): Invoke AC_LIBOBJ here.
6193         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6195
6196 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6197
6198         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6199         After the 2011-05-21 change, this macro requires
6200         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6201         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6202
6203 2011-06-16  Bruno Haible  <bruno@clisp.org>
6204
6205         fprintftime: Move AC_LIBOBJ invocations to module description.
6206         * m4/fprintftime.m4: Remove file.
6207         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6208         (configure.ac): Remove gl_FPRINTFTIME call.
6209         (Makefile.am): Augment lib_SOURCES.
6210         Reported by Jim Meyering.
6211
6212 2011-06-16  Bruno Haible  <bruno@clisp.org>
6213
6214         tmpfile-safer: Finish 2011-05-23 commit.
6215         * m4/stdio-safer.m4: Really remove file.
6216         Reported by Jim Meyering.
6217
6218 2011-06-16  Bruno Haible  <bruno@clisp.org>
6219
6220         syntax-check: Fix typo.
6221         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6222         printf-posix.m4.
6223         Reported by Jim Meyering.
6224
6225 2011-06-13  Jim Meyering  <meyering@redhat.com>
6226
6227         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6228         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6229
6230 2011-05-23  Bruno Haible  <bruno@clisp.org>
6231
6232         yesno: Move AC_LIBOBJ invocations to module description.
6233         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6234         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6235
6236 2011-05-23  Bruno Haible  <bruno@clisp.org>
6237
6238         xstrtol: Move AC_LIBOBJ invocations to module description.
6239         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6240         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6241
6242 2011-05-23  Bruno Haible  <bruno@clisp.org>
6243
6244         xstrtold: Move AC_LIBOBJ invocations to module description.
6245         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6246         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6247
6248 2011-05-23  Bruno Haible  <bruno@clisp.org>
6249
6250         xstrtod: Move AC_LIBOBJ invocations to module description.
6251         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6252         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6253
6254 2011-05-23  Bruno Haible  <bruno@clisp.org>
6255
6256         xnanosleep: Move AC_LIBOBJ invocations to module description.
6257         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6258         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6259
6260 2011-05-23  Bruno Haible  <bruno@clisp.org>
6261
6262         xgetcwd: Move AC_LIBOBJ invocations to module description.
6263         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6264         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6265
6266 2011-05-23  Bruno Haible  <bruno@clisp.org>
6267
6268         xalloc: Move AC_LIBOBJ invocations to module description.
6269         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6270         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6271
6272 2011-05-23  Bruno Haible  <bruno@clisp.org>
6273
6274         write-any-file: Move AC_LIBOBJ invocations to module description.
6275         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6276         invocation.
6277         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6278
6279 2011-05-23  Bruno Haible  <bruno@clisp.org>
6280
6281         utimens: Move AC_LIBOBJ invocations to module description.
6282         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6283         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6284
6285 2011-05-23  Bruno Haible  <bruno@clisp.org>
6286
6287         utimecmp: Move AC_LIBOBJ invocations to module description.
6288         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6289         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6290
6291 2011-05-23  Bruno Haible  <bruno@clisp.org>
6292
6293         userspec: Move AC_LIBOBJ invocations to module description.
6294         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6295         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6296
6297 2011-05-23  Bruno Haible  <bruno@clisp.org>
6298
6299         unlinkdir: Move AC_LIBOBJ invocations to module description.
6300         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6301         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6302
6303 2011-05-23  Bruno Haible  <bruno@clisp.org>
6304
6305         unistd-safer: Move AC_LIBOBJ invocations to module description.
6306         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6307         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6308
6309 2011-05-23  Bruno Haible  <bruno@clisp.org>
6310
6311         tempname: Move AC_LIBOBJ invocations to module description.
6312         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6313         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6314
6315 2011-05-23  Bruno Haible  <bruno@clisp.org>
6316
6317         strftime: Move AC_LIBOBJ invocations to module description.
6318         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6319         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6320
6321 2011-05-23  Bruno Haible  <bruno@clisp.org>
6322
6323         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6324         * m4/stdlib-safer.m4: Remove file.
6325         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6326         (configure.ac): Remove gl_STDLIB_SAFER call.
6327         (Makefile.am): Augment lib_SOURCES.
6328
6329 2011-05-23  Bruno Haible  <bruno@clisp.org>
6330
6331         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6332         * m4/stdio-safer.m4: Remove file.
6333         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6334         (configure.ac): Remove gl_TMPFILE_SAFER call.
6335         (Makefile.am): Augment lib_SOURCES.
6336
6337 2011-05-23  Bruno Haible  <bruno@clisp.org>
6338
6339         popen-safer: Move AC_LIBOBJ invocations to module description.
6340         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6341         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6342         (configure.ac): Remove gl_POPEN_SAFER call.
6343         (Makefile.am): Augment lib_SOURCES.
6344
6345 2011-05-23  Bruno Haible  <bruno@clisp.org>
6346
6347         freopen-safer: Move AC_LIBOBJ invocations to module description.
6348         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6349         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6350         (configure.ac): Remove gl_FREOPEN_SAFER call.
6351         (Makefile.am): Augment lib_SOURCES.
6352
6353 2011-05-23  Bruno Haible  <bruno@clisp.org>
6354
6355         fopen-safer: Move AC_LIBOBJ invocations to module description.
6356         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6357         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6358         (configure.ac): Remove gl_FOPEN_SAFER call.
6359         (Makefile.am): Augment lib_SOURCES.
6360
6361 2011-05-23  Bruno Haible  <bruno@clisp.org>
6362
6363         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6364         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6365         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6366
6367 2011-05-23  Bruno Haible  <bruno@clisp.org>
6368
6369         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6370         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6371         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6372
6373 2011-05-23  Bruno Haible  <bruno@clisp.org>
6374
6375         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6376         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6377         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6378
6379 2011-05-23  Bruno Haible  <bruno@clisp.org>
6380
6381         settime: Move AC_LIBOBJ invocations to module description.
6382         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6383         * modules/settime (Makefile.am): Augment lib_SOURCES.
6384
6385 2011-05-23  Bruno Haible  <bruno@clisp.org>
6386
6387         savedir: Move AC_LIBOBJ invocations to module description.
6388         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6389         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6390
6391 2011-05-23  Bruno Haible  <bruno@clisp.org>
6392
6393         save-cwd: Move AC_LIBOBJ invocations to module description.
6394         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6395         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6396
6397 2011-05-23  Bruno Haible  <bruno@clisp.org>
6398
6399         same: Move AC_LIBOBJ invocations to module description.
6400         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6401         * modules/same (Makefile.am): Augment lib_SOURCES.
6402
6403 2011-05-23  Bruno Haible  <bruno@clisp.org>
6404
6405         safe-write: Move AC_LIBOBJ invocations to module description.
6406         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6407         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6408         instead of gl_SAFE_WRITE.
6409         (Makefile.am): Augment lib_SOURCES.
6410
6411 2011-05-23  Bruno Haible  <bruno@clisp.org>
6412
6413         safe-read: Move AC_LIBOBJ invocations to module description.
6414         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6415         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6416         of gl_SAFE_READ.
6417         (Makefile.am): Augment lib_SOURCES.
6418
6419 2011-05-23  Bruno Haible  <bruno@clisp.org>
6420
6421         safe-alloc: Move AC_LIBOBJ invocations to module description.
6422         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6423         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6424
6425 2011-05-23  Bruno Haible  <bruno@clisp.org>
6426
6427         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6428         * m4/rijndael.m4: Remove file.
6429         * modules/crypto/rijndael (Files): Remove it.
6430         (configure.ac): Remove gl_RIJNDAEL call.
6431         (Makefile.am): Augment lib_SOURCES.
6432
6433 2011-05-23  Bruno Haible  <bruno@clisp.org>
6434
6435         readtokens: Move AC_LIBOBJ invocations to module description.
6436         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6437         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6438
6439 2011-05-23  Bruno Haible  <bruno@clisp.org>
6440
6441         read-file: Move AC_LIBOBJ invocations to module description.
6442         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6443         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6444         of gl_FUNC_READ_FILE.
6445         (Makefile.am): Augment lib_SOURCES.
6446
6447 2011-05-23  Bruno Haible  <bruno@clisp.org>
6448
6449         quotearg: Move AC_LIBOBJ invocations to module description.
6450         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6451         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6452
6453 2011-05-23  Bruno Haible  <bruno@clisp.org>
6454
6455         quote: Move AC_LIBOBJ invocations to module description.
6456         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6457         * modules/quote (Makefile.am): Augment lib_SOURCES.
6458
6459 2011-05-23  Bruno Haible  <bruno@clisp.org>
6460
6461         posixver: Move AC_LIBOBJ invocations to module description.
6462         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6463         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6464
6465 2011-05-23  Bruno Haible  <bruno@clisp.org>
6466
6467         posixtm: Move AC_LIBOBJ invocations to module description.
6468         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6469         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6470
6471 2011-05-23  Bruno Haible  <bruno@clisp.org>
6472
6473         physmem: Move AC_LIBOBJ invocations to module description.
6474         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6475         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6476
6477 2011-05-23  Bruno Haible  <bruno@clisp.org>
6478
6479         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6480         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6481         invocation.
6482         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6483
6484 2011-05-23  Bruno Haible  <bruno@clisp.org>
6485
6486         mpsort: Move AC_LIBOBJ invocations to module description.
6487         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6488         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6489
6490 2011-05-23  Bruno Haible  <bruno@clisp.org>
6491
6492         modechange: Move AC_LIBOBJ invocations to module description.
6493         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6494         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6495
6496 2011-05-23  Bruno Haible  <bruno@clisp.org>
6497
6498         mkdir-p: Move AC_LIBOBJ invocations to module description.
6499         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6500         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6501
6502 2011-05-23  Bruno Haible  <bruno@clisp.org>
6503
6504         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6505         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6506         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6507
6508 2011-05-23  Bruno Haible  <bruno@clisp.org>
6509
6510         mgetgroups: Move AC_LIBOBJ invocations to module description.
6511         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6512         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6513
6514 2011-05-23  Bruno Haible  <bruno@clisp.org>
6515
6516         memxor: Move AC_LIBOBJ invocations to module description.
6517         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6518         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6519
6520 2011-05-23  Bruno Haible  <bruno@clisp.org>
6521
6522         memcoll: Move AC_LIBOBJ invocations to module description.
6523         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6524         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6525
6526 2011-05-23  Bruno Haible  <bruno@clisp.org>
6527
6528         memcasecmp: Move AC_LIBOBJ invocations to module description.
6529         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6530         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6531
6532 2011-05-23  Bruno Haible  <bruno@clisp.org>
6533
6534         crypto/md5: Move AC_LIBOBJ invocations to module description.
6535         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6536         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6537
6538 2011-05-23  Bruno Haible  <bruno@clisp.org>
6539
6540         crypto/md4: Move AC_LIBOBJ invocations to module description.
6541         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6542         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6543
6544 2011-05-23  Bruno Haible  <bruno@clisp.org>
6545
6546         crypto/md2: Move AC_LIBOBJ invocations to module description.
6547         * m4/md2.m4: Remove file.
6548         * modules/crypto/md2 (Files): Remove it.
6549         (configure.ac): Remove gl_MD2 call.
6550         (Makefile.am): Augment lib_SOURCES.
6551
6552 2011-05-23  Bruno Haible  <bruno@clisp.org>
6553
6554         long-options: Move AC_LIBOBJ invocations to module description.
6555         * m4/long-options.m4: Remove file.
6556         * modules/long-options (Files): Remove it.
6557         (configure.ac): Remove gl_LONG_OPTIONS call.
6558         (Makefile.am): Augment lib_SOURCES.
6559
6560 2011-05-23  Bruno Haible  <bruno@clisp.org>
6561
6562         i-ring: Move AC_LIBOBJ invocations to module description.
6563         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6564         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6565
6566 2011-05-23  Bruno Haible  <bruno@clisp.org>
6567
6568         idcache: Move AC_LIBOBJ invocations to module description.
6569         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6570         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6571
6572 2011-05-23  Bruno Haible  <bruno@clisp.org>
6573
6574         human: Move AC_LIBOBJ invocations to module description.
6575         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6576         * modules/human (Makefile.am): Augment lib_SOURCES.
6577
6578 2011-05-23  Bruno Haible  <bruno@clisp.org>
6579
6580         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6581         * m4/hmac-sha1.m4: Remove file.
6582         * modules/crypto/hmac-sha1 (Files): Remove it.
6583         (configure.ac): Remove gl_HMAC_SHA1 call.
6584         (Makefile.am): Augment lib_SOURCES.
6585
6586 2011-05-23  Bruno Haible  <bruno@clisp.org>
6587
6588         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6589         * m4/hmac-md5.m4: Remove file.
6590         * modules/crypto/hmac-md5 (Files): Remove it.
6591         (configure.ac): Remove gl_HMAC_MD5 call.
6592         (Makefile.am): Augment lib_SOURCES.
6593
6594 2011-05-23  Bruno Haible  <bruno@clisp.org>
6595
6596         hash: Move AC_LIBOBJ invocations to module description.
6597         * m4/hash.m4: Remove file.
6598         * modules/hash (Files): Remove it.
6599         (configure.ac): Remove gl_HASH call.
6600         (Makefile.am): Augment lib_SOURCES.
6601
6602 2011-05-23  Bruno Haible  <bruno@clisp.org>
6603
6604         hard-locale: Move AC_LIBOBJ invocations to module description.
6605         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6606         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6607
6608 2011-05-23  Bruno Haible  <bruno@clisp.org>
6609
6610         getugroups: Move AC_LIBOBJ invocations to module description.
6611         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6612         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6613
6614 2011-05-23  Bruno Haible  <bruno@clisp.org>
6615
6616         gettime: Move AC_LIBOBJ invocations to module description.
6617         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6618         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6619
6620 2011-05-23  Bruno Haible  <bruno@clisp.org>
6621
6622         getndelim2: Move AC_LIBOBJ invocations to module description.
6623         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6624         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6625
6626 2011-05-23  Bruno Haible  <bruno@clisp.org>
6627
6628         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6629         * m4/gc-pbkdf2-sha1.m4: Remove file.
6630         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6631         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6632         (Makefile.am): Augment lib_SOURCES.
6633
6634 2011-05-23  Bruno Haible  <bruno@clisp.org>
6635
6636         fts: Move AC_LIBOBJ invocations to module description.
6637         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6638         * modules/fts (configure.ac): ... to here.
6639
6640 2011-05-23  Bruno Haible  <bruno@clisp.org>
6641
6642         file-type: Move AC_LIBOBJ invocations to module description.
6643         * m4/file-type.m4: Remove file.
6644         * modules/file-type (Files): Remove it.
6645         (configure.ac): Remove gl_FILE_TYPE call.
6646         (Makefile.am): Augment lib_SOURCES.
6647
6648 2011-05-23  Bruno Haible  <bruno@clisp.org>
6649
6650         filenamecat*: Respect rules for use of AC_LIBOBJ.
6651         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6652         Remove AC_LIBOBJ invocation.
6653         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6654         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6655
6656 2011-05-23  Bruno Haible  <bruno@clisp.org>
6657
6658         filemode: Move AC_LIBOBJ invocations to module description.
6659         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6660         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6661
6662 2011-05-23  Bruno Haible  <bruno@clisp.org>
6663
6664         openat-safer: Move AC_LIBOBJ invocations to module description.
6665         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6666         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6667
6668 2011-05-23  Bruno Haible  <bruno@clisp.org>
6669
6670         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6671         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6672         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6673
6674 2011-05-23  Bruno Haible  <bruno@clisp.org>
6675
6676         exclude: Move AC_LIBOBJ invocations to module description.
6677         * m4/exclude.m4: Remove file.
6678         * modules/exclude (Files): Remove it.
6679         (configure.ac): Remove gl_EXCLUDE call.
6680         (Makefile.am): Augment lib_SOURCES.
6681
6682 2011-05-23  Bruno Haible  <bruno@clisp.org>
6683
6684         dirname*: Respect rules for use of AC_LIBOBJ.
6685         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6686         invocations.
6687         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6688         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6689
6690 2011-05-23  Bruno Haible  <bruno@clisp.org>
6691
6692         dirent-safer: Move AC_LIBOBJ invocations to module description.
6693         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6694         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6695
6696 2011-05-23  Bruno Haible  <bruno@clisp.org>
6697
6698         crypto/des: Move AC_LIBOBJ invocations to module description.
6699         * m4/des.m4: Remove file.
6700         * modules/crypto/des (Files): Remove it.
6701         (configure.ac): Remove gl_DES call.
6702         (Makefile.am): Augment lib_SOURCES.
6703
6704 2011-05-23  Bruno Haible  <bruno@clisp.org>
6705
6706         cycle-check: Move AC_LIBOBJ invocations to module description.
6707         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6708         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6709
6710 2011-05-23  Bruno Haible  <bruno@clisp.org>
6711
6712         c-strtold: Move AC_LIBOBJ invocations to module description.
6713         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6714         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6715
6716 2011-05-23  Bruno Haible  <bruno@clisp.org>
6717
6718         c-strtod: Move AC_LIBOBJ invocations to module description.
6719         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6720         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6721
6722 2011-05-23  Bruno Haible  <bruno@clisp.org>
6723
6724         crc: Move AC_LIBOBJ invocations to module description.
6725         * m4/crc.m4: Remove file.
6726         * modules/crc (Files): Remove it.
6727         (configure.ac): Remove gl_CRC call.
6728         (Makefile.am): Augment lib_SOURCES.
6729
6730 2011-05-23  Bruno Haible  <bruno@clisp.org>
6731
6732         close-stream: Move AC_LIBOBJ invocations to module description.
6733         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6734         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6735
6736 2011-05-23  Bruno Haible  <bruno@clisp.org>
6737
6738         closeout: Move AC_LIBOBJ invocations to module description.
6739         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6740         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6741
6742 2011-05-23  Bruno Haible  <bruno@clisp.org>
6743
6744         closein: Move AC_LIBOBJ invocations to module description.
6745         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6746         * modules/closein (Makefile.am): Augment lib_SOURCES.
6747
6748 2011-05-23  Bruno Haible  <bruno@clisp.org>
6749
6750         cloexec: Move AC_LIBOBJ invocations to module description.
6751         * m4/cloexec.m4: Remove file.
6752         * modules/cloexec (Files): Remove it.
6753         (configure.ac): Remove gl_CLOEXEC call.
6754         (Makefile.am): Augment lib_SOURCES.
6755
6756 2011-05-23  Bruno Haible  <bruno@clisp.org>
6757
6758         check-version: Move AC_LIBOBJ invocations to module description.
6759         * m4/check-version.m4: Remove file.
6760         * modules/check-version (Files): Remove it.
6761         (configure.ac): Remove gl_CHECK_VERSION call.
6762         (Makefile.am): Augment lib_SOURCES.
6763
6764 2011-05-23  Bruno Haible  <bruno@clisp.org>
6765
6766         chdir-safer: Move AC_LIBOBJ invocations to module description.
6767         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6768         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6769
6770 2011-05-23  Bruno Haible  <bruno@clisp.org>
6771
6772         canonicalize: Move AC_LIBOBJ invocations to module description.
6773         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6774         AC_LIBOBJ invocation.
6775         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6776
6777 2011-05-23  Bruno Haible  <bruno@clisp.org>
6778
6779         canon-host: Move AC_LIBOBJ invocations to module description.
6780         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6781         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6782         instead of gl_CANON_HOST.
6783         (Makefile.am): Augment lib_SOURCES.
6784
6785 2011-05-23  Bruno Haible  <bruno@clisp.org>
6786
6787         backupfile: Move AC_LIBOBJ invocations to module description.
6788         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6789         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6790
6791 2011-05-23  Bruno Haible  <bruno@clisp.org>
6792
6793         argmatch: Move AC_LIBOBJ invocations to module description.
6794         * m4/argmatch.m4: Remove file.
6795         * modules/argmatch (Files): Remove it.
6796         (configure.ac): Remove gl_ARGMATCH call.
6797         (Makefile.am): Augment lib_SOURCES.
6798
6799 2011-05-23  Bruno Haible  <bruno@clisp.org>
6800
6801         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6802         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6803         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6804
6805 2011-05-23  Bruno Haible  <bruno@clisp.org>
6806
6807         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6808         * m4/arcfour.m4: Remove file.
6809         * modules/crypto/arcfour (Files): Remove it.
6810         (configure.ac): Remove gl_ARCFOUR call.
6811         (Makefile.am): Augment lib_SOURCES.
6812
6813 2011-05-22  Bruno Haible  <bruno@clisp.org>
6814
6815         write: Move AC_LIBOBJ invocations to module description.
6816         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6817         * modules/write (configure.ac): ... to here.
6818
6819 2011-05-22  Bruno Haible  <bruno@clisp.org>
6820
6821         wmemset: Move AC_LIBOBJ invocations to module description.
6822         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6823         here...
6824         * modules/wmemset (configure.ac): ... to here.
6825
6826 2011-05-22  Bruno Haible  <bruno@clisp.org>
6827
6828         wmemmove: Move AC_LIBOBJ invocations to module description.
6829         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6830         here...
6831         * modules/wmemmove (configure.ac): ... to here.
6832
6833 2011-05-22  Bruno Haible  <bruno@clisp.org>
6834
6835         wmemcpy: Move AC_LIBOBJ invocations to module description.
6836         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6837         here...
6838         * modules/wmemcpy (configure.ac): ... to here.
6839
6840 2011-05-22  Bruno Haible  <bruno@clisp.org>
6841
6842         wmemcmp: Move AC_LIBOBJ invocations to module description.
6843         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6844         here...
6845         * modules/wmemcmp (configure.ac): ... to here.
6846
6847 2011-05-22  Bruno Haible  <bruno@clisp.org>
6848
6849         wmemchr: Move AC_LIBOBJ invocations to module description.
6850         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6851         here...
6852         * modules/wmemchr (configure.ac): ... to here.
6853
6854 2011-05-22  Bruno Haible  <bruno@clisp.org>
6855
6856         wcswidth: Move AC_LIBOBJ invocations to module description.
6857         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6858         here...
6859         * modules/wcswidth (configure.ac): ... to here.
6860
6861 2011-05-22  Bruno Haible  <bruno@clisp.org>
6862
6863         wcwidth: Respect rules for use of AC_LIBOBJ.
6864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6865         invocation from here...
6866         * modules/wcwidth (configure.ac): ... to here.
6867         (Depends-on): Update conditions.
6868
6869 2011-05-22  Bruno Haible  <bruno@clisp.org>
6870
6871         wctype: Move AC_LIBOBJ invocations to module description.
6872         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6873         invocation from here...
6874         * modules/wctype (configure.ac): ... to here.
6875         (Depends-on): Update conditions.
6876
6877 2011-05-22  Bruno Haible  <bruno@clisp.org>
6878
6879         wctrans: Move AC_LIBOBJ invocations to module description.
6880         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6881         invocation from here...
6882         * modules/wctrans (configure.ac): ... to here.
6883
6884 2011-05-22  Bruno Haible  <bruno@clisp.org>
6885
6886         wctomb: Move AC_LIBOBJ invocations to module description.
6887         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6888         invocations from here...
6889         * modules/wctomb (configure.ac): ... to here.
6890
6891 2011-05-22  Bruno Haible  <bruno@clisp.org>
6892
6893         wctob: Move AC_LIBOBJ invocations to module description.
6894         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6895         gl_PREREQ_WCTOB invocations from here...
6896         * modules/wctob (configure.ac): ... to here.
6897         (Depends-on): Update conditions.
6898
6899 2011-05-22  Bruno Haible  <bruno@clisp.org>
6900
6901         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6902         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6903         here...
6904         * modules/wcsxfrm (configure.ac): ... to here.
6905
6906 2011-05-22  Bruno Haible  <bruno@clisp.org>
6907
6908         wcstok: Move AC_LIBOBJ invocations to module description.
6909         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6910         * modules/wcstok (configure.ac): ... to here.
6911
6912 2011-05-22  Bruno Haible  <bruno@clisp.org>
6913
6914         wcsstr: Move AC_LIBOBJ invocations to module description.
6915         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6916         * modules/wcsstr (configure.ac): ... to here.
6917
6918 2011-05-22  Bruno Haible  <bruno@clisp.org>
6919
6920         wcsspn: Move AC_LIBOBJ invocations to module description.
6921         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6922         * modules/wcsspn (configure.ac): ... to here.
6923
6924 2011-05-22  Bruno Haible  <bruno@clisp.org>
6925
6926         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6927         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6928         gl_PREREQ_WCSRTOMBS invocations from here...
6929         * modules/wcsrtombs (configure.ac): ... to here.
6930
6931 2011-05-22  Bruno Haible  <bruno@clisp.org>
6932
6933         wcsrchr: Move AC_LIBOBJ invocations to module description.
6934         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6935         here...
6936         * modules/wcsrchr (configure.ac): ... to here.
6937
6938 2011-05-22  Bruno Haible  <bruno@clisp.org>
6939
6940         wcspbrk: Move AC_LIBOBJ invocations to module description.
6941         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6942         here...
6943         * modules/wcspbrk (configure.ac): ... to here.
6944
6945 2011-05-22  Bruno Haible  <bruno@clisp.org>
6946
6947         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6948         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6949         gl_PREREQ_WCSNRTOMBS invocations from here...
6950         * modules/wcsnrtombs (configure.ac): ... to here.
6951
6952 2011-05-22  Bruno Haible  <bruno@clisp.org>
6953
6954         wcsnlen: Move AC_LIBOBJ invocations to module description.
6955         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6956         here...
6957         * modules/wcsnlen (configure.ac): ... to here.
6958
6959 2011-05-22  Bruno Haible  <bruno@clisp.org>
6960
6961         wcsncpy: Move AC_LIBOBJ invocations to module description.
6962         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6963         here...
6964         * modules/wcsncpy (configure.ac): ... to here.
6965
6966 2011-05-22  Bruno Haible  <bruno@clisp.org>
6967
6968         wcsncmp: Move AC_LIBOBJ invocations to module description.
6969         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6970         here...
6971         * modules/wcsncmp (configure.ac): ... to here.
6972
6973 2011-05-22  Bruno Haible  <bruno@clisp.org>
6974
6975         wcsncat: Move AC_LIBOBJ invocations to module description.
6976         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6977         here...
6978         * modules/wcsncat (configure.ac): ... to here.
6979
6980 2011-05-22  Bruno Haible  <bruno@clisp.org>
6981
6982         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6983         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6984         from here...
6985         * modules/wcsncasecmp (configure.ac): ... to here.
6986
6987 2011-05-22  Bruno Haible  <bruno@clisp.org>
6988
6989         wcslen: Move AC_LIBOBJ invocations to module description.
6990         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6991         * modules/wcslen (configure.ac): ... to here.
6992
6993 2011-05-22  Bruno Haible  <bruno@clisp.org>
6994
6995         wcsdup: Move AC_LIBOBJ invocations to module description.
6996         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6997         * modules/wcsdup (configure.ac): ... to here.
6998
6999 2011-05-22  Bruno Haible  <bruno@clisp.org>
7000
7001         wcscspn: Move AC_LIBOBJ invocations to module description.
7002         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7003         here...
7004         * modules/wcscspn (configure.ac): ... to here.
7005
7006 2011-05-22  Bruno Haible  <bruno@clisp.org>
7007
7008         wcscpy: Move AC_LIBOBJ invocations to module description.
7009         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7010         * modules/wcscpy (configure.ac): ... to here.
7011
7012 2011-05-22  Bruno Haible  <bruno@clisp.org>
7013
7014         wcscoll: Move AC_LIBOBJ invocations to module description.
7015         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7016         here...
7017         * modules/wcscoll (configure.ac): ... to here.
7018
7019 2011-05-22  Bruno Haible  <bruno@clisp.org>
7020
7021         wcscmp: Move AC_LIBOBJ invocations to module description.
7022         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7023         * modules/wcscmp (configure.ac): ... to here.
7024
7025 2011-05-22  Bruno Haible  <bruno@clisp.org>
7026
7027         wcschr: Move AC_LIBOBJ invocations to module description.
7028         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7029         * modules/wcschr (configure.ac): ... to here.
7030
7031 2011-05-22  Bruno Haible  <bruno@clisp.org>
7032
7033         wcscat: Move AC_LIBOBJ invocations to module description.
7034         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7035         * modules/wcscat (configure.ac): ... to here.
7036
7037 2011-05-22  Bruno Haible  <bruno@clisp.org>
7038
7039         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7040         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7041         here...
7042         * modules/wcscasecmp (configure.ac): ... to here.
7043
7044 2011-05-22  Bruno Haible  <bruno@clisp.org>
7045
7046         wcrtomb: Move AC_LIBOBJ invocations to module description.
7047         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7048         invocations from here...
7049         * modules/wcrtomb (configure.ac): ... to here.
7050
7051 2011-05-22  Bruno Haible  <bruno@clisp.org>
7052
7053         wcpncpy: Move AC_LIBOBJ invocations to module description.
7054         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7055         here...
7056         * modules/wcpncpy (configure.ac): ... to here.
7057
7058 2011-05-22  Bruno Haible  <bruno@clisp.org>
7059
7060         wcpcpy: Move AC_LIBOBJ invocations to module description.
7061         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7062         * modules/wcpcpy (configure.ac): ... to here.
7063
7064 2011-05-22  Bruno Haible  <bruno@clisp.org>
7065
7066         waitpid: Move AC_LIBOBJ invocations to module description.
7067         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7068         invocation from here...
7069         * modules/waitpid (configure.ac): ... to here.
7070
7071 2011-05-22  Bruno Haible  <bruno@clisp.org>
7072
7073         utimensat: Move AC_LIBOBJ invocations to module description.
7074         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7075         here...
7076         * modules/utimensat (configure.ac): ... to here.
7077
7078 2011-05-22  Bruno Haible  <bruno@clisp.org>
7079
7080         usleep: Move AC_LIBOBJ invocations to module description.
7081         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7082         here...
7083         * modules/usleep (configure.ac): ... to here.
7084
7085 2011-05-22  Bruno Haible  <bruno@clisp.org>
7086
7087         unlockpt: Move AC_LIBOBJ invocations to module description.
7088         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7089         gl_PREREQ_UNLOCKPT invocations from here...
7090         * modules/unlockpt (configure.ac): ... to here.
7091
7092 2011-05-22  Bruno Haible  <bruno@clisp.org>
7093
7094         unlink: Respect rules for use of AC_LIBOBJ.
7095         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7096         * modules/unlink (configure.ac): ... to here.
7097
7098 2011-05-22  Bruno Haible  <bruno@clisp.org>
7099
7100         uname: Move AC_LIBOBJ invocations to module description.
7101         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7102         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7103         here...
7104         * modules/uname (configure.ac): ... to here.
7105
7106 2011-05-22  Bruno Haible  <bruno@clisp.org>
7107
7108         ttyname_r: Move AC_LIBOBJ invocations to module description.
7109         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7110         gl_PREREQ_TTYNAME_R invocations from here...
7111         * modules/ttyname_r (configure.ac): ... to here.
7112
7113 2011-05-22  Bruno Haible  <bruno@clisp.org>
7114
7115         tsearch: Move AC_LIBOBJ invocations to module description.
7116         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7117         invocations from here...
7118         * modules/tsearch (configure.ac): ... to here.
7119
7120 2011-05-22  Bruno Haible  <bruno@clisp.org>
7121
7122         towctrans: Move AC_LIBOBJ invocations to module description.
7123         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7124         AC_LIBOBJ invocation from here...
7125         * modules/towctrans (configure.ac): ... to here.
7126
7127 2011-05-22  Bruno Haible  <bruno@clisp.org>
7128
7129         tmpfile: Move AC_LIBOBJ invocations to module description.
7130         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7131         invocations from here...
7132         * modules/tmpfile (configure.ac): ... to here.
7133
7134 2011-05-22  Bruno Haible  <bruno@clisp.org>
7135
7136         times: Move AC_LIBOBJ invocations to module description.
7137         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7138         * modules/times (configure.ac): ... to here.
7139
7140 2011-05-22  Bruno Haible  <bruno@clisp.org>
7141
7142         time_r: Move AC_LIBOBJ invocations to module description.
7143         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7144         invocations from here...
7145         * modules/time_r (configure.ac): ... to here.
7146
7147 2011-05-22  Bruno Haible  <bruno@clisp.org>
7148
7149         timegm: Move AC_LIBOBJ invocations to module description.
7150         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7151         invocations from here...
7152         * modules/timegm (configure.ac): ... to here.
7153
7154 2011-05-22  Bruno Haible  <bruno@clisp.org>
7155
7156         tcgetsid: Move AC_LIBOBJ invocations to module description.
7157         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7158         and gl_PREREQ_TCGETSID invocations from here...
7159         * modules/tcgetsid (configure.ac): ... to here.
7160         (Depends-on): Update conditions.
7161
7162 2011-05-22  Bruno Haible  <bruno@clisp.org>
7163
7164         symlinkat: Move AC_LIBOBJ invocations to module description.
7165         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7166         here...
7167         * modules/symlinkat (configure.ac): ... to here.
7168
7169 2011-05-22  Bruno Haible  <bruno@clisp.org>
7170
7171         symlink: Move AC_LIBOBJ invocations to module description.
7172         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7173         here...
7174         * modules/symlink (configure.ac): ... to here.
7175
7176 2011-05-22  Bruno Haible  <bruno@clisp.org>
7177
7178         strverscmp: Move AC_LIBOBJ invocations to module description.
7179         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7181         from here...
7182         * modules/strverscmp (configure.ac): ... to here.
7183
7184 2011-05-22  Bruno Haible  <bruno@clisp.org>
7185
7186         strtok_r: Move AC_LIBOBJ invocations to module description.
7187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7188         and gl_PREREQ_STRTOK_R invocations from here...
7189         * modules/strtok_r (configure.ac): ... to here.
7190         (Depends-on): Update conditions.
7191
7192 2011-05-22  Bruno Haible  <bruno@clisp.org>
7193
7194         strtoumax: Move AC_LIBOBJ invocations to module description.
7195         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7196         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7197         from here...
7198         * modules/strtoumax (configure.ac): ... to here.
7199
7200 2011-05-22  Bruno Haible  <bruno@clisp.org>
7201
7202         strtoimax: Move AC_LIBOBJ invocations to module description.
7203         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7205         from here...
7206         * modules/strtoimax (configure.ac): ... to here.
7207
7208 2011-05-22  Bruno Haible  <bruno@clisp.org>
7209
7210         strtoull: Move AC_LIBOBJ invocations to module description.
7211         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7213         from here...
7214         * modules/strtoull (configure.ac): ... to here.
7215
7216 2011-05-22  Bruno Haible  <bruno@clisp.org>
7217
7218         strtoll: Move AC_LIBOBJ invocations to module description.
7219         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7220         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7221         here...
7222         * modules/strtoll (configure.ac): ... to here.
7223
7224 2011-05-22  Bruno Haible  <bruno@clisp.org>
7225
7226         strtoul: Move AC_LIBOBJ invocations to module description.
7227         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7228         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7229         * modules/strtoul (configure.ac): ... to here.
7230
7231 2011-05-22  Bruno Haible  <bruno@clisp.org>
7232
7233         strtol: Move AC_LIBOBJ invocations to module description.
7234         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7235         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7236         * modules/strtol (configure.ac): ... to here.
7237
7238 2011-05-22  Bruno Haible  <bruno@clisp.org>
7239
7240         strtod: Move AC_LIBOBJ invocations to module description.
7241         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7242         invocations from here...
7243         * modules/strtod (configure.ac): ... to here.
7244
7245 2011-05-22  Bruno Haible  <bruno@clisp.org>
7246
7247         strstr*: Move AC_LIBOBJ invocations to module description.
7248         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7249         invocations from here...
7250         * modules/strstr-simple (configure.ac): ... to here.
7251         * modules/strstr (configure.ac): ... and here.
7252
7253 2011-05-22  Bruno Haible  <bruno@clisp.org>
7254
7255         strsignal: Move AC_LIBOBJ invocations to module description.
7256         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7257         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7258         * modules/strsignal (configure.ac): ... to here.
7259         (Depends-on): Update conditions.
7260
7261 2011-05-22  Bruno Haible  <bruno@clisp.org>
7262
7263         strsep: Move AC_LIBOBJ invocations to module description.
7264         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7266         here...
7267         * modules/strsep (configure.ac): ... to here.
7268
7269 2011-05-22  Bruno Haible  <bruno@clisp.org>
7270
7271         strptime: Move AC_LIBOBJ invocations to module description.
7272         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7273         gl_PREREQ_STRPTIME invocations from here...
7274         * modules/strptime (configure.ac): ... to here.
7275
7276 2011-05-22  Bruno Haible  <bruno@clisp.org>
7277
7278         strpbrk: Move AC_LIBOBJ invocations to module description.
7279         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7280         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7281         here...
7282         * modules/strpbrk (configure.ac): ... to here.
7283
7284 2011-05-22  Bruno Haible  <bruno@clisp.org>
7285
7286         strnlen: Move AC_LIBOBJ invocations to module description.
7287         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7288         invocations from here...
7289         * modules/strnlen (configure.ac): ... to here.
7290
7291 2011-05-22  Bruno Haible  <bruno@clisp.org>
7292
7293         strndup: Move AC_LIBOBJ invocations to module description.
7294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7295         invocations from here...
7296         * modules/strndup (configure.ac): ... to here.
7297         (Depends-on): Update conditions.
7298
7299 2011-05-22  Bruno Haible  <bruno@clisp.org>
7300
7301         strncat: Move AC_LIBOBJ invocations to module description.
7302         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7303         invocations from here...
7304         * modules/strncat (configure.ac): ... to here.
7305
7306 2011-05-22  Bruno Haible  <bruno@clisp.org>
7307
7308         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7309         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7310         invocations from here...
7311         * modules/strdup (configure.ac): ... to here.
7312         * modules/strdup-posix (configure.ac): ... and here.
7313
7314 2011-05-22  Bruno Haible  <bruno@clisp.org>
7315
7316         strcspn: Move AC_LIBOBJ invocations to module description.
7317         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7318         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7319         here...
7320         * modules/strcspn (configure.ac): ... to here.
7321
7322 2011-05-22  Bruno Haible  <bruno@clisp.org>
7323
7324         strchrnul: Move AC_LIBOBJ invocations to module description.
7325         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7326         gl_PREREQ_STRCHRNUL invocations from here...
7327         * modules/strchrnul (configure.ac): ... to here.
7328
7329 2011-05-22  Bruno Haible  <bruno@clisp.org>
7330
7331         strcasestr*: Move AC_LIBOBJ invocations to module description.
7332         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7333         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7334         * modules/strcasestr-simple (configure.ac): ... to here.
7335         * modules/strcasestr (configure.ac): ... and here.
7336
7337 2011-05-22  Bruno Haible  <bruno@clisp.org>
7338
7339         strcase: Move AC_LIBOBJ invocations to module description.
7340         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7341         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7342         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7343         gl_PREREQ_STRNCASECMP invocations from here...
7344         * modules/strcase (configure.ac): ... to here.
7345
7346 2011-05-22  Bruno Haible  <bruno@clisp.org>
7347
7348         stpncpy: Move AC_LIBOBJ invocations to module description.
7349         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7350         here...
7351         * modules/stpncpy (configure.ac): ... to here.
7352
7353 2011-05-22  Bruno Haible  <bruno@clisp.org>
7354
7355         stpcpy: Move AC_LIBOBJ invocations to module description.
7356         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7357         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7358         here...
7359         * modules/stpcpy (configure.ac): ... to here.
7360
7361 2011-05-21  Bruno Haible  <bruno@clisp.org>
7362
7363         stat: Move AC_LIBOBJ invocations to module description.
7364         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7365         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7366         here...
7367         * modules/stat (configure.ac): ... to here.
7368
7369 2011-05-21  Bruno Haible  <bruno@clisp.org>
7370
7371         sleep: Move AC_LIBOBJ invocations to module description.
7372         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7373         * modules/sleep (configure.ac): ... to here.
7374
7375 2011-05-21  Bruno Haible  <bruno@clisp.org>
7376
7377         signbit: Move AC_LIBOBJ invocations to module description.
7378         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7379         * modules/signbit (configure.ac): ... to here.
7380
7381 2011-05-21  Bruno Haible  <bruno@clisp.org>
7382
7383         sigprocmask: Move AC_LIBOBJ invocations to module description.
7384         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7385         gl_PREREQ_SIGPROMASK invocations from here...
7386         * modules/sigprocmask (configure.ac): ... to here.
7387
7388 2011-05-21  Bruno Haible  <bruno@clisp.org>
7389
7390         sigaction: Move AC_LIBOBJ invocations to module description.
7391         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7392         gl_PREREQ_SIGACTION invocations from here...
7393         * modules/sigaction (configure.ac): ... to here.
7394
7395 2011-05-21  Bruno Haible  <bruno@clisp.org>
7396
7397         sig2str: Move AC_LIBOBJ invocations to module description.
7398         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7399         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7400         here...
7401         * modules/sig2str (configure.ac): ... to here.
7402
7403 2011-05-21  Bruno Haible  <bruno@clisp.org>
7404
7405         setlocale: Move AC_LIBOBJ invocations to module description.
7406         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7407         gl_PREREQ_SETLOCALE invocations from here...
7408         * modules/setlocale (configure.ac): ... to here.
7409
7410 2011-05-21  Bruno Haible  <bruno@clisp.org>
7411
7412         unsetenv: Move AC_LIBOBJ invocations to module description.
7413         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7414         and gl_PREREQ_UNSETENV invocations from here...
7415         * modules/unsetenv (configure.ac): ... to here.
7416         (Depends-on): Update.
7417
7418 2011-05-21  Bruno Haible  <bruno@clisp.org>
7419
7420         setenv: Move AC_LIBOBJ invocations to module description.
7421         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7422         here...
7423         * modules/setenv (configure.ac): ... to here.
7424
7425 2011-05-21  Bruno Haible  <bruno@clisp.org>
7426
7427         selinux-h: Move AC_LIBOBJ invocations to module description.
7428         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7429         AC_LIBOBJ invocation from here...
7430         * modules/selinux-h (configure.ac): ... to here.
7431
7432 2011-05-21  Bruno Haible  <bruno@clisp.org>
7433
7434         select: Respect rules for use of AC_LIBOBJ.
7435         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7436         here...
7437         * modules/select (configure.ac): ... to here.
7438
7439 2011-05-21  Bruno Haible  <bruno@clisp.org>
7440
7441         scandir: Move AC_LIBOBJ invocations to module description.
7442         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7443         invocations from here...
7444         * modules/scandir (configure.ac): ... to here.
7445
7446 2011-05-21  Bruno Haible  <bruno@clisp.org>
7447
7448         rpmatch: Move AC_LIBOBJ invocations to module description.
7449         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7450         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7451         here...
7452         * modules/rpmatch (configure.ac): ... to here.
7453
7454 2011-05-21  Bruno Haible  <bruno@clisp.org>
7455
7456         rmdir: Respect rules for use of AC_LIBOBJ.
7457         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7458         * modules/rmdir (configure.ac): ... to here.
7459
7460 2011-05-21  Bruno Haible  <bruno@clisp.org>
7461
7462         renameat: Move AC_LIBOBJ invocations to module description.
7463         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7464         here...
7465         * modules/renameat (configure.ac): ... to here.
7466
7467 2011-05-21  Bruno Haible  <bruno@clisp.org>
7468
7469         rename: Respect rules for use of AC_LIBOBJ.
7470         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7471         here...
7472         * modules/rename (configure.ac): ... to here.
7473
7474 2011-05-21  Bruno Haible  <bruno@clisp.org>
7475
7476         remove: Move AC_LIBOBJ invocations to module description.
7477         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7478         here...
7479         * modules/remove (configure.ac): ... to here.
7480
7481 2011-05-21  Bruno Haible  <bruno@clisp.org>
7482
7483         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7484         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7485         macro.
7486         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7487         * modules/relocatable-lib (configure.ac): ... to here.
7488         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7489         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7490
7491 2011-05-21  Bruno Haible  <bruno@clisp.org>
7492
7493         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7494         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7495         here...
7496         * modules/relocatable-prog (configure.ac): ... to here.
7497
7498 2011-05-21  Bruno Haible  <bruno@clisp.org>
7499
7500         regex: Move AC_LIBOBJ invocations to module description.
7501         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7502         invocations from here...
7503         * modules/regex (configure.ac): ... to here.
7504
7505 2011-05-21  Bruno Haible  <bruno@clisp.org>
7506
7507         realloc-*: Move AC_LIBOBJ invocations to module description.
7508         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7509         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7510         AC_LIBOBJ invocations from here...
7511         * modules/realloc-gnu (configure.ac): ... to here.
7512         * modules/realloc-posix (configure.ac): ... and here.
7513
7514 2011-05-21  Bruno Haible  <bruno@clisp.org>
7515
7516         readutmp: Move AC_LIBOBJ invocations to module description.
7517         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7518         * modules/readutmp (configure.ac): ... to here.
7519
7520 2011-05-21  Bruno Haible  <bruno@clisp.org>
7521
7522         readlinkat: Move AC_LIBOBJ invocations to module description.
7523         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7524         here...
7525         * modules/readlinkat (configure.ac): ... to here.
7526
7527 2011-05-21  Bruno Haible  <bruno@clisp.org>
7528
7529         readlink: Move AC_LIBOBJ invocations to module description.
7530         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7531         gl_PREREQ_READLINK invocations from here...
7532         * modules/readlink (configure.ac): ... to here.
7533
7534 2011-05-21  Bruno Haible  <bruno@clisp.org>
7535
7536         readline: Move AC_LIBOBJ invocations to module description.
7537         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7538         gl_PREREQ_READLINE invocations from here...
7539         * modules/readline (configure.ac): ... to here.
7540
7541 2011-05-21  Bruno Haible  <bruno@clisp.org>
7542
7543         read: Move AC_LIBOBJ invocations to module description.
7544         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7545         * modules/read (configure.ac): ... to here.
7546
7547 2011-05-21  Bruno Haible  <bruno@clisp.org>
7548
7549         rawmemchr: Move AC_LIBOBJ invocations to module description.
7550         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7551         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7552         from here...
7553         * modules/rawmemchr (configure.ac): ... to here.
7554
7555 2011-05-21  Bruno Haible  <bruno@clisp.org>
7556
7557         random_r: Move AC_LIBOBJ invocations to module description.
7558         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7559         gl_PREREQ_RANDOM_R invocations from here...
7560         * modules/random_r (configure.ac): ... to here.
7561
7562 2011-05-21  Bruno Haible  <bruno@clisp.org>
7563
7564         pwrite: Move AC_LIBOBJ invocations to module description.
7565         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7566         * modules/pwrite (configure.ac): ... to here.
7567
7568 2011-05-21  Bruno Haible  <bruno@clisp.org>
7569
7570         putenv: Move AC_LIBOBJ invocations to module description.
7571         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7572         * modules/putenv (configure.ac): ... to here.
7573
7574 2011-05-21  Bruno Haible  <bruno@clisp.org>
7575
7576         login_tty: Move AC_LIBOBJ invocations to module description.
7577         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7578         * modules/login_tty (configure.ac): ... to here.
7579
7580 2011-05-21  Bruno Haible  <bruno@clisp.org>
7581
7582         openpty: Move AC_LIBOBJ invocations to module description.
7583         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7584         * modules/openpty (configure.ac): ... to here.
7585
7586 2011-05-21  Bruno Haible  <bruno@clisp.org>
7587
7588         forkpty: Move AC_LIBOBJ invocations to module description.
7589         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7590         * modules/forkpty (configure.ac): ... to here.
7591
7592 2011-05-21  Bruno Haible  <bruno@clisp.org>
7593
7594         ptsname: Move AC_LIBOBJ invocations to module description.
7595         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7596         invocations from here...
7597         * modules/ptsname (configure.ac): ... to here.
7598
7599 2011-05-21  Bruno Haible  <bruno@clisp.org>
7600
7601         pread: Move AC_LIBOBJ invocations to module description.
7602         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7603         * modules/pread (configure.ac): ... to here.
7604
7605 2011-05-21  Bruno Haible  <bruno@clisp.org>
7606
7607         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7608         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7609         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7610         * modules/posix_spawn (configure.ac): ... to here.
7611         * modules/posix_spawnp (configure.ac): ... and here.
7612
7613 2011-05-21  Bruno Haible  <bruno@clisp.org>
7614
7615         popen: Move AC_LIBOBJ invocations to module description.
7616         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7617         invocations from here...
7618         * modules/popen (configure.ac): ... to here.
7619
7620 2011-05-21  Bruno Haible  <bruno@clisp.org>
7621
7622         poll: Move AC_LIBOBJ invocations to module description.
7623         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7624         invocations from here...
7625         * modules/poll (configure.ac): ... to here.
7626
7627 2011-05-21  Bruno Haible  <bruno@clisp.org>
7628
7629         pipe-posix: Move AC_LIBOBJ invocations to module description.
7630         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7631         * modules/pipe-posix (configure.ac): ... to here.
7632
7633 2011-05-21  Bruno Haible  <bruno@clisp.org>
7634
7635         openat: Respect rules for use of AC_LIBOBJ.
7636         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7637         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7638         * modules/openat (configure.ac): ... to here.
7639
7640 2011-05-21  Bruno Haible  <bruno@clisp.org>
7641
7642         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7643         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7644         invocation from here...
7645         * modules/obstack-printf (configure.ac): ... to here.
7646         * modules/obstack-printf-posix (configure.ac): ... and here.
7647
7648 2011-05-21  Bruno Haible  <bruno@clisp.org>
7649
7650         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7651         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7652         from here...
7653         * modules/nl_langinfo (configure.ac): ... to here.
7654
7655 2011-05-21  Bruno Haible  <bruno@clisp.org>
7656
7657         nanosleep: Move AC_LIBOBJ invocations to module description.
7658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7659         gl_PREREQ_NANOSLEEP invocations from here...
7660         * modules/nanosleep (configure.ac): ... to here.
7661
7662 2011-05-21  Bruno Haible  <bruno@clisp.org>
7663
7664         mountlist: Move AC_LIBOBJ invocations to module description.
7665         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7666         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7667         * modules/mountlist (configure.ac): ... to here.
7668
7669 2011-05-21  Bruno Haible  <bruno@clisp.org>
7670
7671         mktime: Respect rules for use of AC_LIBOBJ.
7672         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7673         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7674         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7675         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7676         * modules/mktime (configure.ac): ... to here.
7677         * modules/mktime-internal (configure.ac): ... and here.
7678         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7679
7680 2011-05-21  Bruno Haible  <bruno@clisp.org>
7681
7682         mkstemps: Move AC_LIBOBJ invocations to module description.
7683         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7684         here...
7685         * modules/mkstemps (configure.ac): ... to here.
7686
7687 2011-05-21  Bruno Haible  <bruno@clisp.org>
7688
7689         mkstemp: Move AC_LIBOBJ invocations to module description.
7690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7691         gl_PREREQ_MKSTEMP invocations from here...
7692         * modules/mkstemp (configure.ac): ... to here.
7693
7694 2011-05-21  Bruno Haible  <bruno@clisp.org>
7695
7696         mkostemps: Move AC_LIBOBJ invocations to module description.
7697         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7698         here...
7699         * modules/mkostemps (configure.ac): ... to here.
7700
7701 2011-05-21  Bruno Haible  <bruno@clisp.org>
7702
7703         mkostemp: Move AC_LIBOBJ invocations to module description.
7704         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7705         gl_PREREQ_MKOSTEMP invocations from here...
7706         * modules/mkostemp (configure.ac): ... to here.
7707
7708 2011-05-21  Bruno Haible  <bruno@clisp.org>
7709
7710         mknod: Move AC_LIBOBJ invocations to module description.
7711         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7712         * modules/mknod (configure.ac): ... to here.
7713
7714 2011-05-21  Bruno Haible  <bruno@clisp.org>
7715
7716         mkfifoat: Move AC_LIBOBJ invocations to module description.
7717         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7718         here...
7719         * modules/mkfifoat (configure.ac): ... to here.
7720
7721 2011-05-21  Bruno Haible  <bruno@clisp.org>
7722
7723         mkfifo: Respect rules for use of AC_LIBOBJ.
7724         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7725         here...
7726         * modules/mkfifo (configure.ac): ... to here.
7727
7728 2011-05-21  Bruno Haible  <bruno@clisp.org>
7729
7730         mkdtemp: Move AC_LIBOBJ invocations to module description.
7731         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7732         invocations from here...
7733         * modules/mkdtemp (configure.ac): ... to here.
7734
7735 2011-05-21  Bruno Haible  <bruno@clisp.org>
7736
7737         mkdir: Move AC_LIBOBJ invocations to module description.
7738         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7739         * modules/mkdir (configure.ac): ... to here.
7740
7741 2011-05-21  Bruno Haible  <bruno@clisp.org>
7742
7743         memset: Move AC_LIBOBJ invocations to module description.
7744         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7745         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7746         here...
7747         * modules/memset (configure.ac): ... to here.
7748
7749 2011-05-21  Bruno Haible  <bruno@clisp.org>
7750
7751         memrchr: Move AC_LIBOBJ invocations to module description.
7752         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7754         here...
7755         * modules/memrchr (configure.ac): ... to here.
7756
7757 2011-05-21  Bruno Haible  <bruno@clisp.org>
7758
7759         mempcpy: Move AC_LIBOBJ invocations to module description.
7760         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7761         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7762         here...
7763         * modules/mempcpy (configure.ac): ... to here.
7764
7765 2011-05-21  Bruno Haible  <bruno@clisp.org>
7766
7767         memmove: Move AC_LIBOBJ invocations to module description.
7768         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7769         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7770         here...
7771         * modules/memmove (configure.ac): ... to here.
7772
7773 2011-05-21  Bruno Haible  <bruno@clisp.org>
7774
7775         memmem*: Move AC_LIBOBJ invocations to module description.
7776         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7777         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7778         here...
7779         (gl_FUNC_MEMMEM): ... and here...
7780         * modules/memmem-simple (configure.ac): ... to here.
7781         * modules/memmem (configure.ac): ... and here.
7782
7783 2011-05-21  Bruno Haible  <bruno@clisp.org>
7784
7785         memcpy: Move AC_LIBOBJ invocations to module description.
7786         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7787         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7788         here...
7789         * modules/memcpy (configure.ac): ... to here.
7790
7791 2011-05-21  Bruno Haible  <bruno@clisp.org>
7792
7793         memcmp: Simplify autoconf macro.
7794         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7795         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7796         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7797
7798 2011-05-21  Bruno Haible  <bruno@clisp.org>
7799
7800         memcmp: Move AC_LIBOBJ invocations to module description.
7801         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7802         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7803         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7804         * modules/memcmp (configure.ac): ... to here.
7805         (Depends-on): Update conditions.
7806
7807 2011-05-21  Bruno Haible  <bruno@clisp.org>
7808
7809         memchr: Respect rules for use of AC_LIBOBJ.
7810         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7811         invocations from here...
7812         * modules/memchr (configure.ac): ... to here.
7813
7814 2011-05-21  Bruno Haible  <bruno@clisp.org>
7815
7816         mbtowc: Move AC_LIBOBJ invocations to module description.
7817         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7818         invocations from here...
7819         * modules/mbtowc (configure.ac): ... to here.
7820
7821 2011-05-21  Bruno Haible  <bruno@clisp.org>
7822
7823         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7824         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7825         gl_PREREQ_MBSRTOWCS invocations from here...
7826         * modules/mbsrtowcs (configure.ac): ... to here.
7827
7828 2011-05-21  Bruno Haible  <bruno@clisp.org>
7829
7830         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7831         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7832         gl_PREREQ_MBSNRTOWCS invocations from here...
7833         * modules/mbsnrtowcs (configure.ac): ... to here.
7834
7835 2011-05-21  Bruno Haible  <bruno@clisp.org>
7836
7837         mbsinit: Move AC_LIBOBJ invocations to module description.
7838         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7839         invocations from here...
7840         * modules/mbsinit (configure.ac): ... to here.
7841
7842 2011-05-21  Bruno Haible  <bruno@clisp.org>
7843
7844         mbrlen: Move AC_LIBOBJ invocations to module description.
7845         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7846         invocations from here...
7847         * modules/mbrlen (configure.ac): ... to here.
7848
7849 2011-05-21  Bruno Haible  <bruno@clisp.org>
7850
7851         mbrtowc: Respect rules for use of AC_LIBOBJ.
7852         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7853         invocations from here...
7854         * modules/mbrtowc (configure.ac): ... to here.
7855
7856 2011-05-21  Bruno Haible  <bruno@clisp.org>
7857
7858         malloc-*: Move AC_LIBOBJ invocations to module description.
7859         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7860         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7861         AC_LIBOBJ invocations from here...
7862         * modules/malloc-gnu (configure.ac): ... to here.
7863         * modules/malloc-posix (configure.ac): ... and here.
7864
7865 2011-05-21  Bruno Haible  <bruno@clisp.org>
7866
7867         lstat, openat: Respect rules for use of AC_LIBOBJ.
7868         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7869         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7870         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7871         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7872         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7873         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7874         here.
7875         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7876
7877 2011-05-21  Bruno Haible  <bruno@clisp.org>
7878
7879         lseek: Move AC_LIBOBJ invocations to module description.
7880         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7881         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7882         * modules/lseek (configure.ac): ... to here.
7883
7884 2011-05-21  Bruno Haible  <bruno@clisp.org>
7885
7886         linkat: Move AC_LIBOBJ invocations to module description.
7887         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7888         here...
7889         * modules/linkat (configure.ac): ... to here.
7890
7891 2011-05-21  Bruno Haible  <bruno@clisp.org>
7892
7893         link: Respect rules for use of AC_LIBOBJ.
7894         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7895         * modules/link (configure.ac): ... to here.
7896
7897 2011-05-21  Bruno Haible  <bruno@clisp.org>
7898
7899         lchown: Move AC_LIBOBJ invocations to module description.
7900         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7901         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7902         * modules/lchown (configure.ac): ... to here.
7903
7904 2011-05-21  Bruno Haible  <bruno@clisp.org>
7905
7906         iswctype: Move AC_LIBOBJ invocations to module description.
7907         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7908         here...
7909         * modules/iswctype (configure.ac): ... to here.
7910
7911 2011-05-21  Bruno Haible  <bruno@clisp.org>
7912
7913         iswblank: Move AC_LIBOBJ invocations to module description.
7914         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7915         here...
7916         * modules/iswblank (configure.ac): ... to here.
7917
7918 2011-05-21  Bruno Haible  <bruno@clisp.org>
7919
7920         atanl: Move AC_LIBOBJ invocations to module description.
7921         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7922         * modules/atanl (configure.ac): ... to here.
7923
7924 2011-05-21  Bruno Haible  <bruno@clisp.org>
7925
7926         acosl: Move AC_LIBOBJ invocations to module description.
7927         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7928         * modules/acosl (configure.ac): ... to here.
7929
7930 2011-05-21  Bruno Haible  <bruno@clisp.org>
7931
7932         asinl: Respect rules for use of AC_LIBOBJ.
7933         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7934         * modules/asinl (configure.ac): ... to here.
7935
7936 2011-05-21  Bruno Haible  <bruno@clisp.org>
7937
7938         tanl: Move AC_LIBOBJ invocations to module description.
7939         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7940         * modules/tanl (configure.ac): ... to here.
7941
7942 2011-05-21  Bruno Haible  <bruno@clisp.org>
7943
7944         cosl: Move AC_LIBOBJ invocations to module description.
7945         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7946         * modules/cosl (configure.ac): ... to here.
7947
7948 2011-05-21  Bruno Haible  <bruno@clisp.org>
7949
7950         sinl: Move AC_LIBOBJ invocations to module description.
7951         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7952         * modules/sinl (configure.ac): ... to here.
7953
7954 2011-05-21  Bruno Haible  <bruno@clisp.org>
7955
7956         logl: Move AC_LIBOBJ invocations to module description.
7957         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7958         * modules/logl (configure.ac): ... to here.
7959
7960 2011-05-21  Bruno Haible  <bruno@clisp.org>
7961
7962         expl: Move AC_LIBOBJ invocations to module description.
7963         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7964         * modules/expl (configure.ac): ... to here.
7965
7966 2011-05-21  Bruno Haible  <bruno@clisp.org>
7967
7968         roundl: Move AC_LIBOBJ invocations to module description.
7969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7970         * modules/roundl (configure.ac): ... to here.
7971
7972 2011-05-21  Bruno Haible  <bruno@clisp.org>
7973
7974         round: Move AC_LIBOBJ invocations to module description.
7975         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7976         * modules/round (configure.ac): ... to here.
7977
7978 2011-05-21  Bruno Haible  <bruno@clisp.org>
7979
7980         roundf: Move AC_LIBOBJ invocations to module description.
7981         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7982         * modules/roundf (configure.ac): ... to here.
7983
7984 2011-05-21  Bruno Haible  <bruno@clisp.org>
7985
7986         truncl: Move AC_LIBOBJ invocations to module description.
7987         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7988         * modules/truncl (configure.ac): ... to here.
7989
7990 2011-05-21  Bruno Haible  <bruno@clisp.org>
7991
7992         trunc: Move AC_LIBOBJ invocations to module description.
7993         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7994         * modules/trunc (configure.ac): ... to here.
7995
7996 2011-05-21  Bruno Haible  <bruno@clisp.org>
7997
7998         truncf: Move AC_LIBOBJ invocations to module description.
7999         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8000         * modules/truncf (configure.ac): ... to here.
8001
8002 2011-05-21  Bruno Haible  <bruno@clisp.org>
8003
8004         ceill: Move AC_LIBOBJ invocations to module description.
8005         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8006         * modules/ceill (configure.ac): ... to here.
8007
8008 2011-05-21  Bruno Haible  <bruno@clisp.org>
8009
8010         ceil: Move AC_LIBOBJ invocations to module description.
8011         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8012         * modules/ceil (configure.ac): ... to here.
8013
8014 2011-05-21  Bruno Haible  <bruno@clisp.org>
8015
8016         ceilf: Move AC_LIBOBJ invocations to module description.
8017         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8018         * modules/ceilf (configure.ac): ... to here.
8019
8020 2011-05-21  Bruno Haible  <bruno@clisp.org>
8021
8022         floorl: Respect rules for use of AC_LIBOBJ.
8023         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8024         * modules/floorl (configure.ac): ... to here.
8025
8026 2011-05-21  Bruno Haible  <bruno@clisp.org>
8027
8028         floor: Respect rules for use of AC_LIBOBJ.
8029         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8030         * modules/floor (configure.ac): ... to here.
8031
8032 2011-05-21  Bruno Haible  <bruno@clisp.org>
8033
8034         floorf: Move AC_LIBOBJ invocations to module description.
8035         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8036         * modules/floorf (configure.ac): ... to here.
8037
8038 2011-05-20  Bruno Haible  <bruno@clisp.org>
8039
8040         sqrtl: Respect rules for use of AC_LIBOBJ.
8041         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8042         * modules/sqrtl (configure.ac): ... to here.
8043
8044 2011-05-20  Bruno Haible  <bruno@clisp.org>
8045
8046         ldexpl: Respect rules for use of AC_LIBOBJ.
8047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8048         * modules/ldexpl (configure.ac): ... to here.
8049
8050 2011-05-20  Bruno Haible  <bruno@clisp.org>
8051
8052         frexpl*: Respect rules for use of AC_LIBOBJ.
8053         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8054         invocation from here...
8055         * modules/frexpl (configure.ac): ... to here.
8056         * modules/frexpl-nolibm (configure.ac): ... and here.
8057
8058 2011-05-20  Bruno Haible  <bruno@clisp.org>
8059
8060         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8061         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8062         invocation from here...
8063         * modules/frexp (configure.ac): ... to here.
8064         * modules/frexp-nolibm (configure.ac): ... and here.
8065
8066 2011-05-20  Bruno Haible  <bruno@clisp.org>
8067
8068         isnan: Respect rules for use of AC_LIBOBJ.
8069         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8070         invocations here.
8071         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8072         REPLACE_ISNAN.
8073         * modules/isnand (configure.ac): Likewise.
8074         * modules/isnanl (configure.ac): Likewise.
8075
8076 2011-05-20  Bruno Haible  <bruno@clisp.org>
8077
8078         isnanl*: Respect rules for use of AC_LIBOBJ.
8079         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8080         invocation from here...
8081         * modules/isnanl (configure.ac): ... to here.
8082         * modules/isnanl-nolibm (configure.ac): ... and here.
8083
8084 2011-05-20  Bruno Haible  <bruno@clisp.org>
8085
8086         isnand*: Move AC_LIBOBJ invocations to module description.
8087         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8088         invocation from here...
8089         * modules/isnand (configure.ac): ... to here.
8090         * modules/isnand-nolibm (configure.ac): ... and here.
8091
8092 2011-05-20  Bruno Haible  <bruno@clisp.org>
8093
8094         isnanf*: Move AC_LIBOBJ invocations to module description.
8095         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8096         invocation from here...
8097         * modules/isnanf (configure.ac): ... to here.
8098         * modules/isnanf-nolibm (configure.ac): ... and here.
8099
8100 2011-05-20  Bruno Haible  <bruno@clisp.org>
8101
8102         isnan*: Separate the AC_LIBOBJ invocations.
8103         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8104         AC_LIBOBJ invocation.
8105         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8106         here.
8107         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8108         AC_LIBOBJ invocation.
8109         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8110         here.
8111         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8112         AC_LIBOBJ invocation.
8113         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8114         here.
8115         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8116
8117 2011-05-08  Bruno Haible  <bruno@clisp.org>
8118
8119         isinf: Move AC_LIBOBJ invocations to module description.
8120         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8121         * modules/isinf (configure.ac): ... to here.
8122
8123 2011-05-08  Bruno Haible  <bruno@clisp.org>
8124
8125         isfinite: Move AC_LIBOBJ invocations to module description.
8126         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8127         * modules/isfinite (configure.ac): ... to here.
8128
8129 2011-05-08  Bruno Haible  <bruno@clisp.org>
8130
8131         isblank: Move AC_LIBOBJ invocations to module description.
8132         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8133         here...
8134         * modules/isblank (configure.ac): ... to here.
8135
8136 2011-05-08  Bruno Haible  <bruno@clisp.org>
8137
8138         isapipe: Move AC_LIBOBJ invocations to module description.
8139         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8140         gl_PREREQ_ISAPIPE invocations from here...
8141         * modules/isapipe (configure.ac): ... to here.
8142         (Depends-on): Update condition.
8143
8144 2011-05-08  Bruno Haible  <bruno@clisp.org>
8145
8146         ioctl: Move AC_LIBOBJ invocations to module description.
8147         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8148         invocations from here...
8149         * modules/ioctl (configure.ac): ... to here.
8150         (Depends-on): Update condition.
8151
8152 2011-05-08  Bruno Haible  <bruno@clisp.org>
8153
8154         imaxdiv: Move AC_LIBOBJ invocations to module description.
8155         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8156         invocations from here...
8157         * modules/imaxdiv (configure.ac): ... to here.
8158
8159 2011-05-08  Bruno Haible  <bruno@clisp.org>
8160
8161         imaxabs: Move AC_LIBOBJ invocations to module description.
8162         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8163         invocations from here...
8164         * modules/imaxabs (configure.ac): ... to here.
8165
8166 2011-05-08  Bruno Haible  <bruno@clisp.org>
8167
8168         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8170         AC_LIBOBJ invocations from here...
8171         * modules/getaddrinfo (configure.ac): ... to here.
8172         (Depends-on): Add conditions.
8173
8174 2011-05-08  Bruno Haible  <bruno@clisp.org>
8175
8176         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8177         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8178         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8179         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8180         (gl_PREREQ_INET_PTON): ... from here.
8181         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8182         gl_PREREQ_INET_PTON here.
8183         (Depends-on): Update condition.
8184
8185 2011-05-08  Bruno Haible  <bruno@clisp.org>
8186
8187         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8188         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8189         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8190         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8191         (gl_PREREQ_INET_NTOP): ... from here.
8192         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8193         gl_PREREQ_INET_NTOP here.
8194         (Depends-on): Update condition.
8195
8196 2011-05-08  Bruno Haible  <bruno@clisp.org>
8197
8198         iconv_open: Move AC_LIBOBJ invocations to module description.
8199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8200         AC_LIBOBJ invocations from here...
8201         * modules/iconv_open (configure.ac): ... to here.
8202
8203 2011-05-08  Bruno Haible  <bruno@clisp.org>
8204
8205         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8206         If module 'iconv_open' is among the main modules and module
8207         'iconv_open-utf' is among the tests dependencies, then
8208         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8209         return the special iconv_t values. Therefore iconv() and iconv_close()
8210         must support these special iconv_t values, already in lib, not only in
8211         tests.
8212         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8213         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8214         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8215         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8216         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8217         (Depends-on): Add the dependencies of iconv_open-utf.
8218         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8219         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8220         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8221
8222 2011-05-08  Bruno Haible  <bruno@clisp.org>
8223
8224         group-member: Move AC_LIBOBJ invocations to module description.
8225         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8226         gl_PREREQ_GROUP_MEMBER invocations from here...
8227         * modules/group-member (configure.ac): ... to here.
8228
8229 2011-05-08  Bruno Haible  <bruno@clisp.org>
8230
8231         grantpt: Move AC_LIBOBJ invocations to module description.
8232         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8233         invocations from here...
8234         * modules/grantpt (configure.ac): ... to here.
8235
8236 2011-05-08  Bruno Haible  <bruno@clisp.org>
8237
8238         glob: Move AC_LIBOBJ invocations to module description.
8239         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8240         from here...
8241         * modules/glob (configure.ac): ... to here.
8242
8243 2011-05-08  Bruno Haible  <bruno@clisp.org>
8244
8245         getusershell: Move AC_LIBOBJ invocations to module description.
8246         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8247         Move AC_LIBOBJ invocation from here...
8248         * modules/getusershell (configure.ac): ... to here.
8249         (Depends-on): Update condition.
8250
8251 2011-05-08  Bruno Haible  <bruno@clisp.org>
8252
8253         gettimeofday: Move AC_LIBOBJ invocations to module description.
8254         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8255         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8256         gl_PREREQ_GETTIMEOFDAY invocations from here...
8257         * modules/gettimeofday (configure.ac): ... to here.
8258
8259 2011-05-08  Bruno Haible  <bruno@clisp.org>
8260
8261         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8262         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8263         just gl_FUNC_TZSET.
8264         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8265         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8267         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8268
8269 2011-05-08  Bruno Haible  <bruno@clisp.org>
8270
8271         getsubopt: Move AC_LIBOBJ invocations to module description.
8272         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8273         gl_PREREQ_GETSUBOPT invocations from here...
8274         * modules/getsubopt (configure.ac): ... to here.
8275
8276 2011-05-08  Bruno Haible  <bruno@clisp.org>
8277
8278         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8279         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8280         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8281         * modules/getpass-gnu (configure.ac): ... to here.
8282
8283 2011-05-08  Bruno Haible  <bruno@clisp.org>
8284
8285         getpass: Move AC_LIBOBJ invocations to module description.
8286         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8287         gl_PREREQ_GETPASS invocations from here...
8288         * modules/getpass (configure.ac): ... to here.
8289
8290 2011-05-08  Bruno Haible  <bruno@clisp.org>
8291
8292         getpagesize: Move AC_LIBOBJ invocations to module description.
8293         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8294         from here...
8295         * modules/getpagesize (configure.ac): ... to here.
8296
8297 2011-05-08  Bruno Haible  <bruno@clisp.org>
8298
8299         getopt: Move AC_LIBOBJ invocations to module description.
8300         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8301         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8302         invocations from here...
8303         * modules/getopt-gnu (configure.ac): ... to here.
8304         * modules/getopt-posix (configure.ac): ... and here.
8305         (Depends-on): Update condition.
8306
8307 2011-05-08  Bruno Haible  <bruno@clisp.org>
8308
8309         getopt, argp: Respect rules for use of AC_LIBOBJ.
8310         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8311         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8312         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8313         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8314
8315 2011-05-08  Bruno Haible  <bruno@clisp.org>
8316
8317         getlogin_r: Move AC_LIBOBJ invocations to module description.
8318         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8319         gl_PREREQ_GETLOGIN_R invocations from here...
8320         * modules/getlogin_r (configure.ac): ... to here.
8321
8322 2011-05-08  Bruno Haible  <bruno@clisp.org>
8323
8324         getlogin: Move AC_LIBOBJ invocations to module description.
8325         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8326         here...
8327         * modules/getlogin (configure.ac): ... to here.
8328
8329 2011-05-08  Bruno Haible  <bruno@clisp.org>
8330
8331         getloadavg: Move AC_LIBOBJ invocations to module description.
8332         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8333         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8334         * modules/getloadavg (configure.ac): ... to here.
8335
8336 2011-05-08  Bruno Haible  <bruno@clisp.org>
8337
8338         gethrxtime: Move AC_LIBOBJ invocations to module description.
8339         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8340         LIB_GETHRXTIME from here...
8341         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8342         invocations from here...
8343         * modules/gethrxtime (configure.ac): ... to here.
8344
8345 2011-05-08  Bruno Haible  <bruno@clisp.org>
8346
8347         gethostname: Move AC_LIBOBJ invocations to module description.
8348         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8349         gl_PREREQ_GETHOSTNAME invocations from here...
8350         * modules/gethostname (configure.ac): ... to here.
8351
8352 2011-05-08  Bruno Haible  <bruno@clisp.org>
8353
8354         getgroups: Move AC_LIBOBJ invocations to module description.
8355         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8356         here...
8357         * modules/getgroups (configure.ac): ... to here.
8358
8359 2011-05-08  Bruno Haible  <bruno@clisp.org>
8360
8361         getdtablesize: Move AC_LIBOBJ invocations to module description.
8362         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8363         invocation from here...
8364         * modules/getdtablesize (configure.ac): ... to here.
8365
8366 2011-05-08  Bruno Haible  <bruno@clisp.org>
8367
8368         getdomainname: Move AC_LIBOBJ invocations to module description.
8369         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8370         gl_PREREQ_GETDOMAINNAME invocations from here...
8371         * modules/getdomainname (configure.ac): ... to here.
8372
8373 2011-05-08  Bruno Haible  <bruno@clisp.org>
8374
8375         getline: Move AC_LIBOBJ invocations to module description.
8376         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8377         invocations from here...
8378         * modules/getline (configure.ac): ... to here.
8379
8380 2011-05-08  Bruno Haible  <bruno@clisp.org>
8381
8382         getline: Simplify.
8383         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8384         It's already handled through the module dependency.
8385
8386 2011-05-08  Bruno Haible  <bruno@clisp.org>
8387
8388         getdelim: Move AC_LIBOBJ invocations to module description.
8389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8390         and gl_PREREQ_GETDELIM invocations from here...
8391         * modules/getdelim (configure.ac): ... to here.
8392         (Depends-on): Fix condition.
8393
8394 2011-05-08  Bruno Haible  <bruno@clisp.org>
8395
8396         getcwd: Move AC_LIBOBJ invocations to module description.
8397         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8398         invocations from here...
8399         * modules/getcwd (configure.ac): ... to here.
8400
8401 2011-05-08  Bruno Haible  <bruno@clisp.org>
8402
8403         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8404         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8405         here...
8406         * modules/getcwd-lgpl (configure.ac): ... to here.
8407
8408 2011-05-07  Bruno Haible  <bruno@clisp.org>
8409
8410         crypto/gc: Move AC_LIBOBJ invocations to module description.
8411         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8412         * modules/crypto/gc (configure.ac): ... to here.
8413
8414 2011-05-07  Bruno Haible  <bruno@clisp.org>
8415
8416         fwriting: Move AC_LIBOBJ invocations to module description.
8417         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8418         here...
8419         * modules/fwriting (configure.ac): ... to here.
8420
8421 2011-05-07  Bruno Haible  <bruno@clisp.org>
8422
8423         fwritable: Move AC_LIBOBJ invocations to module description.
8424         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8425         here...
8426         * modules/fwritable (configure.ac): ... to here.
8427
8428 2011-05-07  Bruno Haible  <bruno@clisp.org>
8429
8430         futimens: Move AC_LIBOBJ invocations to module description.
8431         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8432         here...
8433         * modules/futimens (configure.ac): ... to here.
8434
8435 2011-05-07  Bruno Haible  <bruno@clisp.org>
8436
8437         ftruncate: Move AC_LIBOBJ invocations to module description.
8438         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8439         gl_PREREQ_FTRUNCATE invocations from here...
8440         * modules/ftruncate (configure.ac): ... to here.
8441
8442 2011-05-07  Bruno Haible  <bruno@clisp.org>
8443
8444         fsync: Move AC_LIBOBJ invocations to module description.
8445         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8446         invocations from here...
8447         * modules/fsync (configure.ac): ... to here.
8448
8449 2011-05-07  Bruno Haible  <bruno@clisp.org>
8450
8451         fsusage: Move AC_LIBOBJ invocations to module description.
8452         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8453         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8454         * modules/fsusage (configure.ac): ... to here.
8455
8456 2011-05-07  Bruno Haible  <bruno@clisp.org>
8457
8458         freopen: Move AC_LIBOBJ invocations to module description.
8459         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8460         invocations from here...
8461         * modules/freopen (configure.ac): ... to here.
8462
8463 2011-05-07  Bruno Haible  <bruno@clisp.org>
8464
8465         free: Move AC_LIBOBJ invocations to module description.
8466         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8467         invocations from here...
8468         * modules/free (configure.ac): ... to here.
8469
8470 2011-05-07  Bruno Haible  <bruno@clisp.org>
8471
8472         freadable: Move AC_LIBOBJ invocations to module description.
8473         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8474         here...
8475         * modules/freadable (configure.ac): ... to here.
8476
8477 2011-05-07  Bruno Haible  <bruno@clisp.org>
8478
8479         fpurge: Move AC_LIBOBJ invocations to module description.
8480         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8481         invocations from here...
8482         * modules/fpurge (configure.ac): ... to here.
8483
8484 2011-05-07  Bruno Haible  <bruno@clisp.org>
8485
8486         fpending: Move AC_LIBOBJ invocations to module description.
8487         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8488         gl_FUNC_FPENDING.
8489         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8490         invocations from here...
8491         * modules/fpending (configure.ac): ... to here.
8492
8493 2011-05-07  Bruno Haible  <bruno@clisp.org>
8494
8495         fopen: Move AC_LIBOBJ invocations to module description.
8496         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8497         invocations from here...
8498         * modules/fopen (configure.ac): ... to here.
8499
8500 2011-05-07  Bruno Haible  <bruno@clisp.org>
8501
8502         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8503         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8504         gl_FUNC_FNMATCH_POSIX.
8505         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8506         invocations from here...
8507         * modules/fnmatch (configure.ac): ... to here.
8508         * modules/fnmatch-gnu (configure.ac): ... and here.
8509
8510 2011-05-07  Bruno Haible  <bruno@clisp.org>
8511
8512         flock: Move AC_LIBOBJ invocations to module description.
8513         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8514         invocations from here...
8515         * modules/flock (configure.ac): ... to here.
8516
8517 2011-05-07  Bruno Haible  <bruno@clisp.org>
8518
8519         fileblocks: Move AC_LIBOBJ invocations to module description.
8520         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8521         gl_PREREQ_FILEBLOCKS invocations from here...
8522         * modules/fileblocks (configure.ac): ... to here.
8523
8524 2011-05-06  Bruno Haible  <bruno@clisp.org>
8525
8526         fflush: Move AC_LIBOBJ invocations to module description.
8527         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8528         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8529         invocations from here...
8530         * modules/fflush (configure.ac): ... to here.
8531
8532 2011-05-06  Bruno Haible  <bruno@clisp.org>
8533
8534         fdopendir: Move AC_LIBOBJ invocations to module description.
8535         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8536         here...
8537         * modules/fdopendir (configure.ac): ... to here.
8538         (Depends-on): Improve conditions.
8539
8540 2011-05-06  Bruno Haible  <bruno@clisp.org>
8541
8542         _Exit: Move AC_LIBOBJ invocations to module description.
8543         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8544         invocations from here...
8545         * modules/_Exit (configure.ac): ... to here.
8546
8547 2011-05-21  Bruno Haible  <bruno@clisp.org>
8548
8549         euidaccess: Respect rules for use of AC_LIBOBJ.
8550         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8551         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8552         from here...
8553         * modules/euidaccess (configure.ac): ... to here.
8554
8555 2011-05-06  Bruno Haible  <bruno@clisp.org>
8556
8557         error: Move AC_LIBOBJ invocations to module description.
8558         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8559         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8560         invocations from here...
8561         * modules/error (configure.ac): ... to here.
8562
8563 2011-05-06  Bruno Haible  <bruno@clisp.org>
8564
8565         duplocale: Move AC_LIBOBJ invocations to module description.
8566         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8567         gl_PREREQ_DUPLOCALE invocations from here...
8568         * modules/duplocale (configure.ac): ... to here.
8569
8570 2011-05-05  Bruno Haible  <bruno@clisp.org>
8571
8572         dirfd: Move AC_LIBOBJ invocations to module description.
8573         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8574         gl_FUNC_DIRFD.
8575         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8576         here...
8577         * modules/dirfd (configure.ac): ... to here.
8578         (Depends-on): Fix condition.
8579
8580 2011-05-05  Bruno Haible  <bruno@clisp.org>
8581
8582         chown: Respect rules for use of AC_LIBOBJ.
8583         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8584         * modules/chown (configure.ac): ... to here.
8585
8586 2011-05-05  Bruno Haible  <bruno@clisp.org>
8587
8588         chdir-long: Move AC_LIBOBJ invocations to module description.
8589         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8590         gl_PREREQ_CHDIR_LONG invocations from here...
8591         * modules/chdir-long (configure.ac): ... to here.
8592
8593 2011-05-05  Bruno Haible  <bruno@clisp.org>
8594
8595         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8596         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8597         from here...
8598         * modules/canonicalize-lgpl (configure.ac): ... to here.
8599
8600 2011-05-05  Bruno Haible  <bruno@clisp.org>
8601
8602         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8603         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8604         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8605         REPLACE_CALLOC.
8606         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8607         * modules/calloc-gnu (configure.ac): Likewise.
8608
8609 2011-05-05  Bruno Haible  <bruno@clisp.org>
8610
8611         btowc: Move AC_LIBOBJ invocations to module description.
8612         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8613         invocations from here...
8614         * modules/btowc (configure.ac): ... to here.
8615
8616 2011-05-21  Bruno Haible  <bruno@clisp.org>
8617
8618         atexit: Move AC_LIBOBJ invocations to module description.
8619         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8620         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8621         here...
8622         * modules/atexit (configure.ac): ... to here.
8623
8624 2011-05-05  Bruno Haible  <bruno@clisp.org>
8625
8626         atoll: Move AC_LIBOBJ invocations to module description.
8627         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8628         invocations from here...
8629         * modules/atoll (configure.ac): ... to here.
8630
8631 2011-05-05  Bruno Haible  <bruno@clisp.org>
8632
8633         argz: Move AC_LIBOBJ invocations to module description.
8634         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8635         * modules/argz (configure.ac): ... to here.
8636
8637 2011-05-05  Bruno Haible  <bruno@clisp.org>
8638
8639         alphasort: Move AC_LIBOBJ invocations to module description.
8640         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8641         gl_PREREQ_ALPHASORT invocations from here...
8642         * modules/alphasort (configure.ac): ... to here.
8643
8644 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8645
8646         verify: new macro verify_expr; verify_true deprecated
8647         * NEWS: Mention this.
8648         * doc/verify.texi (Compile-time Assertions): Document this.
8649         * lib/verify.h (verify_true): Deprecate.
8650         (verify_expr): New macro.
8651         * tests/test-verify.c (function): Test verify_expr.
8652
8653 2011-06-14  Jim Meyering  <meyering@redhat.com>
8654
8655         init.sh: give more portable redirection-related advice in a comment
8656         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8657         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8658         for lots of discussion.  Stefano Lattarini suggested the solution
8659         of putting "9>&2" after the command.  Reported by Bruno Haible.
8660
8661 2011-06-13  Bruno Haible  <bruno@clisp.org>
8662
8663         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8664         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8665         'none'.
8666
8667 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8668
8669         ftoastr: use strtof only if HAVE_STRTOF
8670         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8672         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8673         * modules/ftoastr (configure.ac): Check for strtof.
8674
8675 2011-06-13  Bruno Haible  <bruno@clisp.org>
8676
8677         gnulib-tool: Addendum to 2011-06-08 commit.
8678         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8679         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8680
8681 2011-06-13  Bruno Haible  <bruno@clisp.org>
8682
8683         fseeko: Provide a non-inline replacement of fseek().
8684         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8685         * modules/fseeko (Depends-on): Add fseek.
8686         * modules/fseek (License): Change to LGPLv2+.
8687
8688 2011-06-13  Bruno Haible  <bruno@clisp.org>
8689
8690         ftello: Provide a non-inline replacement of ftell().
8691         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8692         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8693         not have ftello() (such as on mingw).
8694         * modules/ftello (Depends-on): Add ftell.
8695         * modules/ftell (License): Change to LGPLv2+.
8696
8697 2011-05-07  Bruno Haible  <bruno@clisp.org>
8698
8699         ftell: Move AC_LIBOBJ invocations to module description.
8700         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8701         * modules/ftell (configure.ac): ... to here.
8702
8703 2011-05-07  Bruno Haible  <bruno@clisp.org>
8704
8705         ftello: Respect rules for use of AC_LIBOBJ.
8706         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8707         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8708         here...
8709         * modules/ftello (configure.ac): ... to here.
8710
8711 2011-05-07  Bruno Haible  <bruno@clisp.org>
8712
8713         fseeko: Simplify.
8714         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8715         (gl_FUNC_FSEEKO): Inline it here.
8716
8717 2011-05-07  Bruno Haible  <bruno@clisp.org>
8718
8719         fseek: Move AC_LIBOBJ invocations to module description.
8720         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8721         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8722         * modules/fseek (configure.ac): ... to here.
8723
8724 2011-05-07  Bruno Haible  <bruno@clisp.org>
8725
8726         fseek: Respect rules for use of AC_LIBOBJ.
8727         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8728         here...
8729         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8730
8731 2011-05-07  Bruno Haible  <bruno@clisp.org>
8732
8733         fseeko: Respect rules for use of AC_LIBOBJ.
8734         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8735         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8736         here...
8737         * modules/fseeko (configure.ac): ... to here.
8738
8739 2011-06-13  Bruno Haible  <bruno@clisp.org>
8740
8741         gnulib-tool: Allow comments in the 'Depends-on' section.
8742         * doc/gnulib.texi (Module description): Mention comment syntax in the
8743         Depends-on section.
8744         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8745
8746 2011-06-13  Bruno Haible  <bruno@clisp.org>
8747
8748         file-set.h: guard __attibute__ use, now that it's not always defined
8749         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8750         versions that support it.  This fixes a coreutils build failure with
8751         the vendor cc on HP-UX 11.31.
8752
8753 2011-06-12  Bruno Haible  <bruno@clisp.org>
8754
8755         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8756         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8757         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8758         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8759         (acl, aclsort): New declarations.
8760         (aclv_nontrivial): New declaration.
8761         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8762         (file_has_acl): Read also the second kind of HP-UX ACLs.
8763         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8764         kind of HP-UX ACLs if the first kind fails.
8765         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8766         second kind of HP-UX ACLs.
8767         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8768         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8769         agree.
8770         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8771         hpuxjfs.
8772         Handle hpuxjfs.
8773         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8774         hpuxjfs.
8775         Handle hpuxjfs.
8776         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8777         (func_test_same_acls): Use both lsacl and getacl.
8778         Handle hpuxjfs.
8779         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8780         (func_test_same_acls): Use both lsacl and getacl.
8781         Handle hpuxjfs.
8782
8783 2011-06-12  Bruno Haible  <bruno@clisp.org>
8784
8785         acl: Complete the 2010-08-10 fix.
8786         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8787         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8788         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8789         explicitly.
8790         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8791         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8792
8793 2011-06-12  Bruno Haible  <bruno@clisp.org>
8794
8795         spawn-pipe tests: Comments.
8796         * tests/test-spawn-pipe-child.c (main): Update comment.
8797         Reported by James Youngman <jay@gnu.org>.
8798
8799 2011-06-11  James Youngman  <jay@gnu.org>
8800
8801         New module 'stat-size'.
8802         * modules/stat-size: New module.  Provides macros for accessing
8803         file size information in instances of struct stat.  Depends on the
8804         fileblocks module because it calls st_blocks.
8805         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8806         * doc/gnulib.texi: Include stat-size.texi.
8807         * doc/stat-size.texi: Documentation for this module.
8808         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8809         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8810         AC_STRUCT_ST_BLOCKS.
8811
8812 2011-06-09  Bruno Haible  <bruno@clisp.org>
8813
8814         thread: Support pthreads-win32.
8815         * lib/glthread/thread.h (gl_thread_self): Define differently on
8816         pthreads-win32.
8817         (gl_null_thread): New declaration.
8818         (gl_thread_self_pointer): New macro.
8819         * lib/glthread/thread.c (gl_null_thread): New constant.
8820         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8821         gl_thread_self.
8822         * tests/test-tls.c: Likewise.
8823         Suggested by Paul Eggert. Reported by Eric Blake.
8824
8825 2011-06-09  Bruno Haible  <bruno@clisp.org>
8826
8827         thread: Fix confusion between NULL and 0.
8828         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8829         Reported by Paul Eggert.
8830
8831 2011-06-09  Bruno Haible  <bruno@clisp.org>
8832
8833         spawn-pipe tests: Avoid test failure on HP-UX 11.
8834         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8835         is closed.
8836
8837 2011-06-09  Bruno Haible  <bruno@clisp.org>
8838
8839         acl tests: Fix compilation error on HP-UX 11.
8840         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8841
8842 2011-06-09  Bruno Haible  <bruno@clisp.org>
8843
8844         rmdir: Avoid test failure on HP-UX 10.20.
8845         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8846         EEXIST.
8847
8848 2011-06-08  Eric Blake  <eblake@redhat.com>
8849
8850         perror: fix test on mingw
8851         * modules/perror-tests (Depends-on): Add dup2.
8852
8853         strerror_r-posix: fix on MacOS
8854         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8855         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8856         logic bug.
8857         * lib/strerror_r.c (strerror_r): Fix the bug.
8858         * lib/strerror.c (strerror): Likewise.
8859         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8860         problem.
8861         * doc/posix-functions/strerror.texi (strerror): Likewise.
8862         * doc/posix-functions/perror.texi (perror): Likewise.
8863         * tests/test-strerror.c (main): Enhance test.
8864         * tests/test-strerror_r.c (main): Likewise.
8865
8866 2011-06-08  Bruno Haible  <bruno@clisp.org>
8867
8868         gnulib-tool: Better isolation between different gnulib-tool invocations.
8869         * gnulib-tool: New option --witness-c-macro.
8870         (witness_c_macro): New variable.
8871         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8872         AM_CPPFLAGS define it as a C macro.
8873         (func_emit_tests_Makefile_am): Likewise.
8874         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8875         read it from there.
8876         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8877         m4_define, not AC_DEFUN.
8878         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8879         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8880         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8881         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8882         s|...|...|, to substitute the values of the GNULIB_* module indicator
8883         variables.
8884         * modules/dirent (Makefile.am): Likewise.
8885         * modules/fcntl-h (Makefile.am): Likewise.
8886         * modules/iconv-h (Makefile.am): Likewise.
8887         * modules/langinfo (Makefile.am): Likewise.
8888         * modules/locale (Makefile.am): Likewise.
8889         * modules/math (Makefile.am): Likewise.
8890         * modules/netdb (Makefile.am): Likewise.
8891         * modules/poll-h (Makefile.am): Likewise.
8892         * modules/pty (Makefile.am): Likewise.
8893         * modules/search (Makefile.am): Likewise.
8894         * modules/signal (Makefile.am): Likewise.
8895         * modules/spawn (Makefile.am): Likewise.
8896         * modules/stdio (Makefile.am): Likewise.
8897         * modules/stdlib (Makefile.am): Likewise.
8898         * modules/string (Makefile.am): Likewise.
8899         * modules/sys_ioctl (Makefile.am): Likewise.
8900         * modules/sys_select (Makefile.am): Likewise.
8901         * modules/sys_socket (Makefile.am): Likewise.
8902         * modules/sys_stat (Makefile.am): Likewise.
8903         * modules/sys_times (Makefile.am): Likewise.
8904         * modules/sys_utsname (Makefile.am): Likewise.
8905         * modules/sys_wait (Makefile.am): Likewise.
8906         * modules/termios (Makefile.am): Likewise.
8907         * modules/time (Makefile.am): Likewise.
8908         * modules/unistd (Makefile.am): Likewise.
8909         * modules/wchar (Makefile.am): Likewise.
8910
8911 2011-06-08  Eric Blake  <eblake@redhat.com>
8912
8913         strerror: simplify replacement
8914         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8915         * modules/strerror (configure.ac): No prereqs needed here...
8916         * modules/strerror-override (configure.ac): ...but this needs it.
8917         (Files): Add file for needed prereq macro.
8918
8919 2011-06-08  Bruno Haible  <bruno@clisp.org>
8920
8921         strerror_r-posix: Tweaks.
8922         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8923         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8924         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8925         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8926         (gl_FUNC_STRERROR_R): ... to here.
8927         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8928
8929 2011-06-07  Eric Blake  <eblake@redhat.com>
8930
8931         perror: document fixed bugs
8932         * doc/posix-functions/perror.texi (perror): Document recent
8933         patches.
8934
8935 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8936
8937         stat-time: get_stat_birthtime failure is better-defined
8938         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8939         return a timestamp whose tv_sec and tv_nsec values are both -1.
8940         Previously, the spec said only that the tv_nsec value was negative.
8941         This upward-compatible change simplifies GNU tar a bit.
8942
8943 2011-06-07  Eric Blake  <eblake@redhat.com>
8944
8945         strerror_r-posix: work around cygwin 1.7.9
8946         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8947         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8948         bug without replacing strerror_r.
8949         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8950         strerror_r is buggy, but without requiring strerror_r compilation.
8951         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8952
8953         test-perror: relax test to ignore cygwin bug
8954         * tests/test-perror2.c (main): Relax test on requiring detection
8955         of stream errors, and use unbuffered stream.
8956         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8957         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8958         * doc/posix-functions/fputc.texi (fputc): Likewise.
8959         * doc/posix-functions/fputs.texi (fputs): Likewise.
8960         * doc/posix-functions/fputws.texi (fputws): Likewise.
8961         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8962         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8963         * doc/posix-functions/getopt.texi (getopt): Likewise.
8964         * doc/posix-functions/perror.texi (perror): Likewise.
8965         * doc/posix-functions/printf.texi (printf): Likewise.
8966         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8967         * doc/posix-functions/psignal.texi (psignal): Likewise.
8968         * doc/posix-functions/putc.texi (putc): Likewise.
8969         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8970         Likewise.
8971         * doc/posix-functions/putchar.texi (putchar): Likewise.
8972         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8973         Likewise.
8974         * doc/posix-functions/puts.texi (puts): Likewise.
8975         * doc/posix-functions/putwc.texi (putwc): Likewise.
8976         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8977         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8978         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8979         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8980         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8981         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8982         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8983         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8984
8985 2011-05-22  Bruno Haible  <bruno@clisp.org>
8986
8987         strerror: Move AC_LIBOBJ invocations to module description.
8988         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8989         gl_PREREQ_STRERROR invocations from here...
8990         * modules/strerror (configure.ac): ... to here.
8991
8992 2011-05-21  Bruno Haible  <bruno@clisp.org>
8993
8994         perror: Use common idiom.
8995         * modules/perror (configure.ac): Reorder statements.
8996
8997 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8998
8999         tests: fix usage message in 'mktempd_'
9000         * tests/init.sh (mktempd_): In the usage message, use literal
9001         'mktempd_', not '$ME' (which is even undefined), as the name of
9002         the subroutine.
9003
9004 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9005
9006         tests init: new function 'fatal_', for hard errors
9007         Before this patch, the only way offered by tests/init.sh to
9008         properly signal a hard error was the `framework_failure_'
9009         function.  But the error message issued by that function,
9010         as its name would suggest, refers to a set-up failure in the
9011         testsuite, while hard errors can obviously also be due to
9012         other reasons.  The best way to fix this inconsistency is to
9013         introduce a new function with a more general error message.
9014         * tests/init.sh (fatal_): New function.
9015
9016 2011-06-06  Eric Blake  <eblake@redhat.com>
9017
9018         canonicalize-lgpl: use common idiom
9019         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9020         over newer POSIX -Rf.
9021         Reported by Bruno Haible.
9022
9023         canonicalize-lgpl: work around AIX realpath bug
9024         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9025         * doc/posix-functions/realpath.texi (realpath): Document it.
9026         Reported by Bruno Haible.
9027
9028         strerror: work around FreeBSD bug
9029         * lib/strerror.c (strerror): Special case 0.
9030         Reported by Bruno Haible.
9031
9032         strerror-override: avoid bloating errno module
9033         * modules/errno (Files, configure.ac): Move replacement strings...
9034         * modules/strerror-override: ...to new module.
9035         * modules/strerror (Depends-on): Add strerror-override.
9036         * modules/strerror_r-posix (Depends-on): Likewise.
9037         * MODULES.html.sh: Document new module.
9038         Reported by Bruno Haible.
9039
9040 2011-06-06  Bruno Haible  <bruno@clisp.org>
9041
9042         spawn-pipe tests: Rename program.
9043         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9044         * tests/test-spawn-pipe-child.c: Update comment.
9045         * tests/test-spawn-pipe.sh: Update.
9046         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9047
9048         spawn-pipe tests: Link the child program only against libc.
9049         * tests/test-spawn-pipe-child.c: New file, extracted from
9050         tests/test-spawn-pipe.c.
9051         (main): Expect only one argument.
9052         (is_open): New function, copied from tests/test-pipe.c.
9053         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9054         (child_main): Remove function.
9055         (test_pipe): Pass only one argument to the child program.
9056         (main): Remove child process code. Expect the child program's name as
9057         first argument.
9058         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9059         argument.
9060         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9061         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9062         test-spawn-pipe-child against no libraries.
9063
9064 2011-06-06  Bruno Haible  <bruno@clisp.org>
9065
9066         careadlinkat: Avoid mismatch between ssize_t and int.
9067         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9068         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9069
9070 2011-06-06  Jim Meyering  <meyering@redhat.com>
9071
9072         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9073         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9074         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9075
9076 2011-06-05  Bruno Haible  <bruno@clisp.org>
9077
9078         ansi-c++-opt: Interoperability with libtool.
9079         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9080         set the variable to "no", not to ":".
9081         * NEWS: Mention the change.
9082
9083 2011-06-05  Bruno Haible  <bruno@clisp.org>
9084
9085         acl: Fix test failure on AIX 7.
9086         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9087         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9088
9089 2011-06-05  Bruno Haible  <bruno@clisp.org>
9090
9091         pipe-filter-ii: Fix test failure on AIX and IRIX.
9092         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9093         with EAGAIN, retry with a smaller buffer size.
9094
9095 2011-06-05  Bruno Haible  <bruno@clisp.org>
9096
9097         localename: Fix link dependencies.
9098         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9099         * modules/localename-tests (Makefile.am): Link test-localename with
9100         $(LIBTHREAD).
9101
9102 2011-06-05  Bruno Haible  <bruno@clisp.org>
9103
9104         error: Avoid gcc warning.
9105         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9106
9107 2011-06-05  Bruno Haible  <bruno@clisp.org>
9108
9109         unsetenv: Avoid gcc warning.
9110         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9111
9112 2011-06-05  Bruno Haible  <bruno@clisp.org>
9113
9114         setenv: Avoid gcc warning.
9115         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9116
9117 2011-06-05  Bruno Haible  <bruno@clisp.org>
9118
9119         sys_select: Ensure memset is declared also on AIX 7.
9120         * lib/sys_select.in.h: Include <string.h> also on AIX.
9121         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9122         self-contained also on AIX 7.1.
9123
9124 2011-06-04  Jim Meyering  <meyering@redhat.com>
9125
9126         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9127         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9128         function name, "error".
9129         (_gl_translatable_diag_func_re): New configurable variable.
9130
9131 2011-06-04  Bruno Haible  <bruno@clisp.org>
9132
9133         getopt: Avoid gcc warning.
9134         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9135
9136 2011-06-04  Bruno Haible  <bruno@clisp.org>
9137
9138         strerror_r: Fix comments.
9139         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9140         commit.
9141
9142 2011-06-04  Bruno Haible  <bruno@clisp.org>
9143
9144         perror: Fix compilation error.
9145         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9146         Undefine fprintf, not sprintf.
9147         * modules/perror (Depends-on): Remove intprops, verify.
9148
9149 2011-06-04  Bruno Haible  <bruno@clisp.org>
9150
9151         setlocale: Enable replacement on Cygwin 1.5.
9152         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9153         Cygwin 1.5.x.
9154         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9155         LC_CTYPE category also exists on Cygwin 1.5.x.
9156
9157 2011-06-04  Bruno Haible  <bruno@clisp.org>
9158
9159         strerror-override: Don't disable symbol renamings.
9160         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9161         * lib/strerror-override.c: Include config.h.
9162         (strerror_override): Don't undefine.
9163
9164 2011-06-03  Bruno Haible  <bruno@clisp.org>
9165
9166         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9167         * lib/localename.h: Update copyright header.
9168         * lib/localename.c: Likewise.
9169         * lib/relocatable.h: Likewise.
9170         * lib/relocatable.c: Likewise.
9171
9172 2011-06-02  Bruno Haible  <bruno@clisp.org>
9173
9174         doc: Fix a module name.
9175         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9176
9177 2011-06-02  Bruno Haible  <bruno@clisp.org>
9178
9179         pipe2: Remove dependency on 'nonblocking' module.
9180         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9181         O_NONBLOCK is defined by gnulib.
9182         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9183         is zero.
9184         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9185         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9186         defined by gnulib.
9187         (get_nonblocking_flag): New function.
9188         (main): Test O_NONBLOCK flag only if it is nonzero.
9189         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9190
9191 2011-06-03  Jim Meyering  <meyering@redhat.com>
9192
9193         maint: three new prohibit-header-without-use rules
9194         Prohibit use of cloexec.h, posixver.h, same.h without use.
9195         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9196         (sc_prohibit_posixver_without_use): Likewise.
9197         (sc_prohibit_same_without_use): Likewise.
9198
9199 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9200
9201         allocator: 'die' routine is now given requested size
9202         * lib/allocator.h (struct allocator.die): New size arg.
9203         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9204         If the actual problem is an ssize_t limitation, not a size_t or
9205         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9206
9207 2011-06-01  Eric Blake  <eblake@redhat.com>
9208
9209         strerror: drop strerror_r dependency
9210         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9211         * lib/strerror-override.c (strerror_override): ...to new file.
9212         * lib/strerror-override.h: Add prototype.
9213         * lib/strerror-impl.h: Delete.
9214         * lib/strerror.c (strerror): New implementation.
9215         * modules/errno (Files): Add new files.
9216         (configure.ac): Compile new file as appropriate.
9217         * modules/strerror (Files): Drop unused file.
9218         (Depends-on): Drop strerror_r-posix.
9219         * MODULES.html.sh: Document strerror_r-posix.
9220         Requested by Sam Steingold.
9221
9222         perror: call strerror_r directly
9223         * modules/perror (Files): Drop strerror-impl.h.
9224         * lib/perror.c (perror): Use our own stack buffer, rather than
9225         calling a wrapper that uses static storage.
9226         * doc/posix-functions/perror.texi (perror): Document a limitation
9227         of our replacement.
9228
9229         strerror_r: fix includes for FreeBSD
9230         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9231         since we use abort on some platforms.
9232         Reported by Matthias Bolte.
9233
9234 2011-05-31  Bruno Haible  <bruno@clisp.org>
9235
9236         Fix link errors in tests: openat-die uses gettext-h.
9237         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9238         against $(LIBINTL).
9239         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9240         against $(LIBINTL).
9241         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9242         $(LIBINTL).
9243         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9244         against $(LIBINTL).
9245         * modules/linkat-tests (Makefile.am): Link test-linkat against
9246         $(LIBINTL).
9247         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9248         $(LIBINTL).
9249         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9250         against $(LIBINTL).
9251         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9252         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9253         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9254         $(LIBINTL).
9255         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9256         $(LIBINTL).
9257         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9258         $(LIBINTL).
9259         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9260
9261 2011-05-31  Bruno Haible  <bruno@clisp.org>
9262
9263         Fix link errors in tests: wait-process uses gettext-h.
9264         * modules/nonblocking-pipe-tests (Makefile.am): Set
9265         test_nonblocking_pipe_main_LDADD.
9266         * modules/nonblocking-socket-tests (Makefile.am): Link
9267         test-nonblocking-socket-main against $(LIBINTL).
9268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9269
9270 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9271
9272         assert-h: work around 'verify' incompatibility
9273         * lib/verify.h: Use @...@ directives, not ifdef.
9274         * modules/assert-h (assert.h): Implement the directives.
9275         (assert.h): Substitute the symbol-prefix more consistently.
9276
9277 2011-05-29  Jim Meyering  <meyering@redhat.com>
9278
9279         trim: remove three superfluous assignments
9280         * lib/trim.c (trim2): Remove three superfluous assignments
9281         and correct brace positioning.
9282
9283 2011-05-29  Bruno Haible  <bruno@clisp.org>
9284
9285         wctype-h: Avoid namespace pollution on Solaris 2.6.
9286         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9287         identifiers.
9288         * doc/posix-headers/wctype.texi: Mention the problem.
9289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9290
9291 2011-05-28  Jim Meyering  <meyering@redhat.com>
9292
9293         parse-datetime.y: accommodate -Wstrict-overflow
9294         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9295         placate -Wstrict-overflow.
9296
9297         trim: avoid a warning from -O2 -Wstrict-overflow
9298         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9299
9300 2011-05-29  Bruno Haible  <bruno@clisp.org>
9301
9302         gnulib-tool: Fix bug in yesterday's commit.
9303         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9304         twice.
9305
9306 2011-05-29  Bruno Haible  <bruno@clisp.org>
9307
9308         Allow multiple gnulib generated include files to be combined.
9309         * gnulib-tool (func_compute_include_guard_prefix): New function.
9310         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9311         ${gl_include_guard_prefix} references.
9312         (func_import, func_create_testdir): Invoke
9313         func_compute_include_guard_prefix.
9314         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9315         * lib/ctype.in.h: Likewise.
9316         * lib/dirent.in.h: Likewise.
9317         * lib/errno.in.h: Likewise.
9318         * lib/fcntl.in.h: Likewise.
9319         * lib/float.in.h: Likewise.
9320         * lib/getopt.in.h: Likewise.
9321         * lib/iconv.in.h: Likewise.
9322         * lib/langinfo.in.h: Likewise.
9323         * lib/locale.in.h: Likewise.
9324         * lib/math.in.h: Likewise.
9325         * lib/netdb.in.h: Likewise.
9326         * lib/netinet_in.in.h: Likewise.
9327         * lib/poll.in.h: Likewise.
9328         * lib/pthread.in.h: Likewise.
9329         * lib/pty.in.h: Likewise.
9330         * lib/sched.in.h: Likewise.
9331         * lib/se-selinux.in.h: Likewise.
9332         * lib/search.in.h: Likewise.
9333         * lib/signal.in.h: Likewise.
9334         * lib/spawn.in.h: Likewise.
9335         * lib/stdarg.in.h: Likewise.
9336         * lib/stddef.in.h: Likewise.
9337         * lib/stdint.in.h: Likewise.
9338         * lib/stdio.in.h: Likewise.
9339         * lib/stdlib.in.h: Likewise.
9340         * lib/string.in.h: Likewise.
9341         * lib/strings.in.h: Likewise.
9342         * lib/sys_file.in.h: Likewise.
9343         * lib/sys_ioctl.in.h: Likewise.
9344         * lib/sys_select.in.h: Likewise.
9345         * lib/sys_socket.in.h: Likewise.
9346         * lib/sys_stat.in.h: Likewise.
9347         * lib/sys_time.in.h: Likewise.
9348         * lib/sys_times.in.h: Likewise.
9349         * lib/sys_uio.in.h: Likewise.
9350         * lib/sys_utsname.in.h: Likewise.
9351         * lib/sys_wait.in.h: Likewise.
9352         * lib/sysexits.in.h: Likewise.
9353         * lib/termios.in.h: Likewise.
9354         * lib/time.in.h: Likewise.
9355         * lib/unistd.in.h: Likewise.
9356         * lib/wchar.in.h: Likewise.
9357         * lib/wctype.in.h: Likewise.
9358         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9359         * modules/ctype (Makefile.am): Likewise.
9360         * modules/dirent (Makefile.am): Likewise.
9361         * modules/errno (Makefile.am): Likewise.
9362         * modules/fcntl-h (Makefile.am): Likewise.
9363         * modules/float (Makefile.am): Likewise.
9364         * modules/getopt-posix (Makefile.am): Likewise.
9365         * modules/iconv-h (Makefile.am): Likewise.
9366         * modules/langinfo (Makefile.am): Likewise.
9367         * modules/locale (Makefile.am): Likewise.
9368         * modules/math (Makefile.am): Likewise.
9369         * modules/netdb (Makefile.am): Likewise.
9370         * modules/netinet_in (Makefile.am): Likewise.
9371         * modules/poll-h (Makefile.am): Likewise.
9372         * modules/pthread (Makefile.am): Likewise.
9373         * modules/pty (Makefile.am): Likewise.
9374         * modules/sched (Makefile.am): Likewise.
9375         * modules/search (Makefile.am): Likewise.
9376         * modules/selinux-h (Makefile.am): Likewise.
9377         * modules/signal (Makefile.am): Likewise.
9378         * modules/spawn (Makefile.am): Likewise.
9379         * modules/stdarg (Makefile.am): Likewise.
9380         * modules/stddef (Makefile.am): Likewise.
9381         * modules/stdint (Makefile.am): Likewise.
9382         * modules/stdio (Makefile.am): Likewise.
9383         * modules/stdlib (Makefile.am): Likewise.
9384         * modules/string (Makefile.am): Likewise.
9385         * modules/strings (Makefile.am): Likewise.
9386         * modules/sys_file (Makefile.am): Likewise.
9387         * modules/sys_ioctl (Makefile.am): Likewise.
9388         * modules/sys_select (Makefile.am): Likewise.
9389         * modules/sys_socket (Makefile.am): Likewise.
9390         * modules/sys_stat (Makefile.am): Likewise.
9391         * modules/sys_time (Makefile.am): Likewise.
9392         * modules/sys_times (Makefile.am): Likewise.
9393         * modules/sys_uio (Makefile.am): Likewise.
9394         * modules/sys_utsname (Makefile.am): Likewise.
9395         * modules/sys_wait (Makefile.am): Likewise.
9396         * modules/sysexits (Makefile.am): Likewise.
9397         * modules/termios (Makefile.am): Likewise.
9398         * modules/time (Makefile.am): Likewise.
9399         * modules/unistd (Makefile.am): Likewise.
9400         * modules/wchar (Makefile.am): Likewise.
9401         * modules/wctype-h (Makefile.am): Likewise.
9402         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9403
9404 2011-05-29  Bruno Haible  <bruno@clisp.org>
9405
9406         assert-h: Allow multiple gnulib generated replacements to coexist.
9407         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9408
9409 2011-05-29  Bruno Haible  <bruno@clisp.org>
9410
9411         argp: Allow coexistence with strerror_r-posix module.
9412         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9413         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9414         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9415         not the glibc signature.
9416
9417 2011-05-28  Bruno Haible  <bruno@clisp.org>
9418
9419         gnulib-tool: Alternative structure of testdirs, similar to --import.
9420         * gnulib-tool: New option --single-configure.
9421         (func_usage): Document it.
9422         (single_configure): New variable.
9423         (func_modules_transitive_closure_separately,
9424         func_modules_transitive_closure_separately,
9425         func_determine_use_libtests, func_modules_add_dummy_separately,
9426         func_modules_to_filelist_separately): New functions, extracted from
9427         func_import.
9428         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9429         (func_import): Use the new functions.
9430         (func_create_testdir): Set final_modules. Handle $single_configure =
9431         true case.
9432
9433 2011-05-28  Bruno Haible  <bruno@clisp.org>
9434
9435         getloadavg: Remove an unreliable safety check.
9436         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9437         getloadavg.c is in place.
9438         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9439         Reported by Sam Steingold <sds@gnu.org>.
9440
9441 2011-05-28  Bruno Haible  <bruno@clisp.org>
9442
9443         doc: Cleanup yet another file produced by texinfo.tex.
9444         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9445
9446 2011-05-28  Bruno Haible  <bruno@clisp.org>
9447
9448         Finish the conditional dependencies mechanism.
9449         * gnulib-tool: New option --no-conditional-dependencies.
9450         (func_usage): Document it. Don't mark --conditional-dependencies as
9451         experimental.
9452         (cond_dependencies): The possible values can now be true, false, empty.
9453         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9454         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9455         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9456
9457 2011-05-28  Bruno Haible  <bruno@clisp.org>
9458
9459         doc: Use a recent texinfo.tex.
9460         * doc/Makefile (tex_opts): New variable.
9461         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9462
9463 2011-05-28  Jim Meyering  <meyering@redhat.com>
9464
9465         intprops.h: adjust comment to match code change
9466         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9467         only once, it *may* have side effects.  Also fix an unrelated typo.
9468         (_GL_INT_SIGNED): Likewise.
9469
9470 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9471
9472         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9473
9474 2011-05-26  Bruno Haible  <bruno@clisp.org>
9475
9476         mbsrchr: Avoid collision with system function on Interix.
9477         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9478         Reported by Markus Duft <mduft@gentoo.org>.
9479
9480 2011-05-15  James Youngman  <jay@gnu.org>
9481
9482         getopt: for ambiguous options, enumerate the possibilities.
9483         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9484         the ambiguous options when an ambiguous prefix is given. This was
9485         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9486         glibc change was
9487         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9488
9489 2011-05-25  Eric Blake  <eblake@redhat.com>
9490
9491         getcwd: work around mingw bug
9492         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9493         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9494         Reported by Matthias Bolte.
9495
9496 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9497
9498         test-intprops: disable -Wtype-limits diagnostics
9499         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9500         diagnostics.  Otherwise, the integer overflow macros generate many
9501         diagnostics.  Reported by Jim Meyering in
9502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9503
9504         intprops: shorten, to pacify gcc -Woverlength-strings
9505         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9506         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9507         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9508         likely to run afoul of C compiler limits for string constant lengths.
9509         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9510
9511 2011-05-24  Eric Blake  <eblake@redhat.com>
9512
9513         docs: document recently fixed glibc printf bug
9514         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9515         * doc/posix-functions/printf.texi (printf): Likewise.
9516         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9517         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9518
9519         closein-tests: convert to init.sh
9520         * modules/closein-tests (Files): Add init.sh
9521         * tests/test-closein.sh Use it.
9522
9523         yesno-tests: convert to init.sh
9524         * modules/yesno-tests (Files): Add init.sh.
9525         * tests/test-yesno.sh: Use it.
9526
9527         atexit-tests: ensure reliable exit status
9528         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9529         Reported by Bruno Haible.
9530
9531 2011-05-24  Bruno Haible  <bruno@clisp.org>
9532
9533         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9535         gl_PREREQ_STRERROR_R invocations from here...
9536         * modules/strerror_r-posix (configure.ac): ... to here.
9537
9538 2011-05-24  Eric Blake  <eblake@redhat.com>
9539
9540         strerror_r: fix missing header
9541         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9542
9543         strerror_r: fix AIX test failures
9544         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9545         ERANGE failure.
9546
9547         strerror_r: fix Solaris test failures
9548         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9549         failures.
9550         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9551
9552         strerror_r: enforce POSIX recommendations
9553         * lib/strerror_r.c (safe_copy): New helper method.
9554         (strerror_r): Guarantee a non-empty string.
9555         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9556         recent POSIX rulings and to match our strerror guarantees.
9557         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9558
9559 2011-05-24  Jim Meyering  <meyering@redhat.com>
9560
9561         test-perror2.c: avoid warning about unused variable
9562         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9563
9564 2011-05-24  Eric Blake  <eblake@redhat.com>
9565
9566         perror: avoid spurious test failure on HP-UX
9567         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9568
9569         tests: fix logic bug in init.sh
9570         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9571         shell.
9572
9573 2011-05-24  Jim Meyering  <meyering@redhat.com>
9574
9575         utimensat: do not reference an out-of-scope buffer
9576         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9577         declared in an inner scope, yet "times" would be dereferenced outside
9578         the scope in which "ts" was valid.
9579         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9580         of ts[2] "out/up", so that the use of aliased "times" (via
9581         "times = ts;") does not end up referencing an out-of-scope "ts"
9582
9583         opendir-safer.c: don't clobber errno; don't close negative FD
9584         * lib/opendir-safer.c (opendir_safer):
9585         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9586         file descriptor, and more importantly, don't clobber the
9587         offending errno value with EINVAL.  Before, upon failure
9588         of dup_safer, we would pass the negative file descriptor to
9589         fdopendir, which would clobber errno.
9590
9591 2011-05-23  Bruno Haible  <bruno@clisp.org>
9592
9593         idcache: Fix module description.
9594         * modules/idcache (Include): Set to "idcache.h".
9595
9596 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9597
9598         gnulib-tool: fix portability problem with MacOS sed
9599         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9600         before the "}".  Problem reported by Leo in
9601         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9602         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9603         sed_extract_condition1, sed_extract_condition2.
9604
9605 2011-05-23  Bruno Haible  <bruno@clisp.org>
9606
9607         hash: Simplify autoconf macro.
9608         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9609
9610 2011-05-23  Bruno Haible  <bruno@clisp.org>
9611
9612         getugroups: Fix module description.
9613         * modules/getugroups (Include): Set to "getugroups.h".
9614
9615 2011-05-23  Bruno Haible  <bruno@clisp.org>
9616
9617         linkat: Simplify autoconf macro.
9618         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9619
9620 2011-05-23  Bruno Haible  <bruno@clisp.org>
9621             Eric Blake  <eblake@redhat.com>
9622
9623         linkat, renameat: Update dependencies.
9624         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9625         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9626         symlinkat.
9627
9628 2011-05-23  Jim Meyering  <meyering@redhat.com>
9629
9630         maint.mk: more tight_scope improvements
9631         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9632         (_gl_TS_headers): Define only in if-0'd block.
9633         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9634         sometimes we must *not* use it.  Adjust uses accordingly.
9635         (sc_tight_scope): Use much simpler grep-based test to determine
9636         whether we skip this rule.
9637
9638         maint.mk: generalize/improve the tight-scope rule
9639         * top/maint.mk: Emit a warning when the test is skipped.
9640         (_gl_TS_dir): Add $(srcdir)/ prefix.
9641         (_gl_TS_function_match): Simplify, rather than trying
9642         to enumerate common types.  Otherwise, it would fail to match an
9643         "extern unsigned char const *" declaration in idutils.
9644         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9645         a way to support use of that type of macro.
9646         (_gl_TS_var_match): Simplify regexp.
9647         (_gl_TS_obj_files): New configurable variable.
9648         (_gl_TS_headers): Likewise.
9649
9650 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9651
9652         verify: fix bug when gnulib <assert.h> is also included
9653         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9654         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9655         Perhaps there's a better way, but this fixes the immediate problem.
9656         Problem reported by Bruno Haible in
9657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9658
9659 2011-05-22  Bruno Haible  <bruno@clisp.org>
9660
9661         xgetcwd: Simplify autoconf macro.
9662         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9663
9664 2011-05-22  Bruno Haible  <bruno@clisp.org>
9665
9666         New module 'mktime-internal'.
9667         * modules/mktime-internal: New file.
9668         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9669         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9670         mktime_internal as a C macro if libc has __mktime_internal.
9671         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9672         conditions.
9673         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9674
9675 2011-05-22  Bruno Haible  <bruno@clisp.org>
9676
9677         timegm: Correct mktime replacement statements.
9678         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9679         defining mktime as a C macro. This completes a 2009-07-28 commit.
9680
9681 2011-05-22  Bruno Haible  <bruno@clisp.org>
9682
9683         timegm: Simplify autoconf macro.
9684         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9685
9686 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9687
9688         clock-time: change to LGPLv2+.
9689         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9690         BSD-like but we have no mark for that; this is good enough for now.
9691
9692 2011-05-21  Bruno Haible  <bruno@clisp.org>
9693
9694         strerror_r: Fix comments.
9695         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9696
9697 2011-05-21  Bruno Haible  <bruno@clisp.org>
9698
9699         relocatable-prog-wrapper: Fix possible link error.
9700         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9701         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9702         (gl_FUNC_SETENV): ... to here.
9703         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9704         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9705
9706 2011-05-21  Bruno Haible  <bruno@clisp.org>
9707
9708         relocatable-prog-wrapper: Assume strerror() exists.
9709         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9710         m4/strerror.m4.
9711         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9712         * lib/relocwrapper.c: Remove mention of strerror module.
9713         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9714         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9715         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9716         C macro.
9717
9718 2011-05-21  Bruno Haible  <bruno@clisp.org>
9719
9720         select: Simplify replacement idiom.
9721         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9722         Win32 platforms.
9723         * lib/sys_select.in.h (select): Simplify accordingly.
9724         * modules/select (Depends-on): Likewise.
9725
9726 2011-05-21  Bruno Haible  <bruno@clisp.org>
9727
9728         mkdir-p: Simplify autoconf macro.
9729         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9730         gl_FUNC_LCHOWN.
9731
9732 2011-05-21  Eric Blake  <eblake@redhat.com>
9733
9734         strerror_r: avoid clobbering strerror on cygwin
9735         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9736         fall back instead to sys_errlist.
9737         * modules/strerror (configure.ac): Add witness.
9738         * tests/test-strerror_r.c (main): Enhance test.
9739         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9740         * tests/test-perror2.c (main): Free memory before exit.
9741
9742 2011-05-21  Bruno Haible  <bruno@clisp.org>
9743
9744         mkdtemp: Use gnulib naming conventions.
9745         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9746         * modules/mkdtemp (configure.ac): Update.
9747
9748 2011-05-20  Eric Blake  <eblake@redhat.com>
9749
9750         strerror_r: avoid corrupting errno on Solaris
9751         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9752         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9753
9754         strerror_r: avoid compiler warning
9755         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9756
9757         strerror_r: simplify AIX code
9758         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9759
9760         test-perror: avoid spurious failure on FreeBSD
9761         * modules/perror-tests (Depends-on): Add strerror, now that
9762         strerror_r no longer pulls it in.
9763
9764 2011-05-20  Bruno Haible  <bruno@clisp.org>
9765
9766         strerror_r-posix: Remove unused dependencies.
9767         * modules/strerror_r-posix (Depends-on): Remove strerror.
9768         Reported by Eric Blake.
9769
9770 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9771
9772         intprops: remove assumption about A|B representation
9773         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9774         is a valid integer if both A and B are.  Although this is true for
9775         all known practical hosts, the C standard doesn't guarantee it,
9776         and the code need not assume it.  Also, this change may work around
9777         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9779
9780 2011-05-20  Eric Blake  <eblake@redhat.com>
9781
9782         perror: work around FreeBSD bug
9783         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9784         is broken.  Move AC_LIBOBJ...
9785         * modules/perror (configure.ac): Here.
9786         * doc/posix-functions/perror.texi (perror): Document this.
9787         * tests/test-perror2.c (main): Enhance test.
9788
9789         test-perror: check for strerror interactions
9790         * tests/macros.h (STREQ): Add macro.
9791         * modules/perror-tests (Files): Add second test.
9792         * tests/test-perror2.c (main): New file.
9793         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9794
9795         test-perror: rewrite to use init script
9796         * modules/perror-tests (Files): Add init.sh.
9797         * tests/test-perror.sh: Use temporary directory.
9798
9799 2011-05-20  Jim Meyering  <meyering@redhat.com>
9800
9801         maint: replace misused "a" with "an"
9802         * doc/intprops.texi: "a integer"
9803         * doc/regex.texi: "a explanation"
9804         * lib/alignof.h: "a object"
9805         * lib/argmatch.h: "a explanation"
9806         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9807         * lib/stdint.in.h: "a integer"
9808         * lib/userspec.c: "a owner"
9809         * doc/gnulib.texi: Fix "a idea", and reword.
9810
9811 2011-05-19  Jim Meyering  <meyering@redhat.com>
9812
9813         maint: correct misuse of "a" and "an"
9814         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9815         * lib/argp-help.c: "an docum...": s/an/a/
9816         * lib/argp-parse.c: "An vector": s/An/A/
9817         * lib/execute.c: "an native": s/an/a/
9818         * lib/spawn-pipe.c: Likewise.
9819         * lib/gc.h: "an Gc_rc": s/an/a/
9820         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9821         * lib/fts.c: "an stat.st_dev": s/an/a/
9822
9823 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9824
9825         intprops-tests: work around HP-UX 11.23 cc bug with constants
9826         * tests/test-intprops.c (VERIFY): New macro.
9827         (main): Use it, instead of verify, to work around the compiler bug; see
9828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9829
9830         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9831         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9832         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9833         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9834         (_GL_REMAINDER_OVERFLOW): Use it.
9835
9836         intprops-tests: revert unsigned part of previous change
9837         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9838         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9839         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9841
9842 2011-05-19  Bruno Haible  <bruno@clisp.org>
9843
9844         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9845         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9846         strerror_r() returned without filling the buffer.
9847         Reported by Eric Blake.
9848
9849 2011-05-19  Eric Blake  <eblake@redhat.com>
9850
9851         strerror_r: guarantee unchanged errno
9852         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9853         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9854         failure.
9855         * tests/test-strerror_r.c (main): Enhance test.
9856
9857 2011-05-19  Bruno Haible  <bruno@clisp.org>
9858
9859         strerror_r: Reorder #if blocks.
9860         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9861         for consistency with the previous commit.
9862
9863 2011-05-19  Bruno Haible  <bruno@clisp.org>
9864
9865         perror: Avoid clobbering the strerror buffer when possible.
9866         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9867         * lib/strerror.c: Include it.
9868         * modules/strerror (Files): Add lib/strerror-impl.h.
9869         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9870         (my_strerror): New function, defined through lib/strerror-impl.h.
9871         (perror): Use it instead of strerror.
9872         * modules/perror (Files): Add lib/strerror-impl.h.
9873         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9874
9875 2011-05-19  Eric Blake  <eblake@redhat.com>
9876
9877         strerror_r: fix on newer cygwin
9878         * lib/strerror_r.c (strerror_r): Cygwin now has
9879         __xpg_strerror_r, use it.
9880
9881 2011-05-19  Bruno Haible  <bruno@clisp.org>
9882
9883         strerror_r: Avoid clobbering the strerror buffer when possible.
9884         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9885         (sys_nerr, sys_errlist): New declarations.
9886         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9887         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9888         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9889
9890 2011-05-19  Bruno Haible  <bruno@clisp.org>
9891
9892         strerror_r: Fix test failure on mingw.
9893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9894         EXTEND_STRERROR_R.
9895         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9896         macros from errno.in.h instead.
9897
9898 2011-05-19  Eric Blake  <eblake@redhat.com>
9899
9900         strerror: relax test for Solaris
9901         * tests/test-strerror.c (main): Permit Solaris behavior.
9902         * tests/test-strerror_r.c (main): Likewise.
9903
9904         strerror: enforce POSIX ruling on strerror(0)
9905         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9906         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9907         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9908         * doc/posix-functions/strerror.texi (strerror): Document it.
9909         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9910         * tests/test-strerror.c (main): Strengthen test.
9911         * tests/test-strerror_r.c (main): Likewise.
9912
9913 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9914
9915         intprop-tests: port to older and more-pedantic compilers
9916         * modules/intprops-tests (Files): Add tests/macros.h.
9917         * tests/test-intprops.c: Include macros.h.
9918         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9919         it's no longer documented to expand to an integer constant expression.
9920         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9921         argument is floating point, as it's no longer documented to expand
9922         to an integer constant expression in that case.
9923         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9924         compiler bugs reported by Bruno Haible.  See
9925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9926         (U0, U1): New constants, to work around the same bugs.  Also,
9927         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9928
9929         intprops: work around C compiler bugs
9930         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9931         bug in Sun C 5.11 2010/08/13 and other compilers; see
9932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9933
9934         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9935         * doc/intprops.texi (Integer Type Determination): Fix
9936         documentation for TYPE_IS_INTEGER: it returns an constant
9937         expression, not an integer constant expression.  Fix doc for
9938         TYPE_SIGNED: it returns an integer constant expression only if its
9939         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9940         hardly worth documented that way....)
9941
9942 2011-05-18  Bruno Haible  <bruno@clisp.org>
9943
9944         strerror_r: Avoid clobbering the strerror buffer when possible.
9945         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9946         Handle gnulib defined errno values here. When strerror() returns NULL
9947         or an empty string, return EINVAL.
9948         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9949         gnulib defined errno values here.
9950         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9951
9952 2011-05-18  Eric Blake  <eblake@redhat.com>
9953
9954         fnmatch: avoid compiler warning
9955         * lib/fnmatch_loop.c (FCT): Use correct type.
9956         Reported by Matthias Bolte.
9957
9958 2011-05-13  Jim Meyering  <meyering@redhat.com>
9959
9960         maint.mk: three new prohibit_<HDR>_without_use rules
9961         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9962         (sc_prohibit_stdio-safer_without_use): Likewise.
9963         (sc_prohibit_xfreopen_without_use): Likewise.
9964
9965 2011-05-17  Jim Meyering  <meyering@redhat.com>
9966
9967         announce-gen: fail if the NEWS delta is empty
9968         If there's nothing noteworthy in NEWS, then either you forgot
9969         or you shouldn't be releasing.
9970         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9971
9972 2011-05-17  Pádraig Brady <P@draigBrady.com>
9973
9974         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9975         reserved symbols starting with double underscore from the check.
9976
9977 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9978
9979         intprops: add doc
9980         * doc/intprops.texi: New file, documenting intprops.
9981         * doc/gnulib.texi (Particular Modules): Include it.
9982
9983         verify: add doc to gnulib manual and fix example
9984         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9985         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9986         (Compile-time Assertions): Fix example so it can't overflow.
9987
9988 2011-05-17  Jim Meyering  <meyering@redhat.com>
9989
9990         warnings.m4: don't usurp save_CPPFLAGS variable name
9991         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9992
9993         doc: fix typo
9994         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9995
9996 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9997             Bruno Haible  <bruno@clisp.org>
9998
9999         doc: Tweak recent change.
10000         * README (Portability guidelines): Tweak new text.
10001         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10002         Interix 6.1.
10003
10004 2011-05-16  Eric Blake  <eblake@redhat.com>
10005
10006         inttypes: avoid autoconf warning
10007         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10008         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10009
10010 2011-05-16  Sam Steingold <sds@gnu.org>
10011         and Eric Blake  <eblake@redhat.com>
10012
10013         vc-list-files: accept multiple directory operands
10014         * build-aux/vc-list-files: Iterate over all remaining operands.
10015
10016 2011-05-16  Bruno Haible  <bruno@clisp.org>
10017
10018         Fix confusion regarding deprecated modules.
10019         * modules/calloc (Status, Notice): Mark module as deprecated, not
10020         obsolete.
10021         * modules/fnmatch-posix (Status, Notice): Likewise.
10022         * modules/getdate (Status, Notice): Likewise.
10023         * modules/getopt (Status, Notice): Likewise.
10024         * modules/malloc (Status, Notice): Likewise.
10025         * modules/pipe (Status, Notice): Likewise.
10026         * modules/realloc (Status, Notice): Likewise.
10027         * modules/rename-dest-slash (Status, Notice): Likewise.
10028         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10029         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10030         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10031         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10032         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10033
10034 2011-05-16  Bruno Haible  <bruno@clisp.org>
10035
10036         doc: List the target platforms.
10037         * doc/gnulib-intro.texi (Target Platforms): New section.
10038         * doc/gnulib.texi (Introduction): Update menu.
10039         * README (Portability guidelines): Refer to the new section. Update
10040         statement about oldest supported environment. Remove rationale why
10041         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10042         unportable C89 function.
10043         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10044         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10045
10046 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10047
10048         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10049
10050 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10051
10052         intprops-tests: new module
10053         * modules/intprops-tests, tests/test-intprops.c: New files.
10054
10055         intprops: add safe, portable integer overflow checking
10056         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10057         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10058         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10059         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10060         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10061         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10062         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10063         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10064         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10065         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10066         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10067
10068 2011-05-12  James Youngman  <jay@gnu.org>
10069
10070         Add a test for glibc's Bugzilla bug #12378.
10071         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10072         doesn't allow the literal matching of a lone "[" (which is
10073         required by POSIX).
10074         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10075
10076 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10077
10078         Sync glibc change fixing Bugzilla bug #12378.
10079         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10080         beginning and fall back to matching as normal character if the
10081         string ends before the matching ']' is found.  This is what POSIX
10082         requires.
10083
10084 2011-05-13  Eric Blake  <eblake@redhat.com>
10085
10086         getcwd-lgpl: relax test for FreeBSD
10087         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10088         issue.
10089         * tests/test-getcwd-lgpl.c (main): Relax test.
10090         Reported by Matthias Bolte.
10091
10092 2011-05-11  Eric Blake  <eblake@redhat.com>
10093
10094         test-fflush: silence compiler warning
10095         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10096
10097 2011-05-11  Bruno Haible  <bruno@clisp.org>
10098
10099         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10100         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10101         * modules/canonicalize (Depends-on): Add 'nocrash'.
10102         * modules/canonicalize-lgpl (Depends-on): Likewise.
10103         * doc/posix-functions/realpath.texi: Update platforms list.
10104         Reported by Ryan Schmidt <ryandesign@macports.org>.
10105
10106 2011-05-11  Bruno Haible  <bruno@clisp.org>
10107
10108         group-member: Declare function in <unistd.h>.
10109         * lib/unistd.in.h (group_member): New declaration.
10110         * lib/group-member.h: Remove file.
10111         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10112         * tests/test-unistd-c++.cc: Check signature of group_member.
10113         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10114         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10115         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10116         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10117         HAVE_GROUP_MEMBER.
10118         * modules/group-member (Files): Remove lib/group-member.h.
10119         (Depends-on): Add unistd. Specify conditions.
10120         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10121         (Include): Change to <unistd.h>.
10122         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10123         HAVE_GROUP_MEMBER.
10124         * NEWS: Mention the change.
10125         * lib/euidaccess.c: Don't include group-member.h.
10126
10127 2011-05-11  Bruno Haible  <bruno@clisp.org>
10128
10129         group-member: Document module.
10130         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10131         module.
10132
10133 2011-05-11  Bruno Haible  <bruno@clisp.org>
10134
10135         fclose: Fix mistake earlier today.
10136         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10137
10138 2011-05-11  Eric Blake  <eblake@redhat.com>
10139
10140         fclose: preserve fflush errors
10141         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10142         Reported by Jim Meyering.
10143
10144         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10145         * build-aux/bootstrap (check_versions): When no specific version
10146         is required, merely check that the app produces an exit status
10147         that indicates its existence.
10148
10149         maint.mk: drop redundant check
10150         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10151         the same but better.
10152
10153 2011-05-11  Bruno Haible  <bruno@clisp.org>
10154
10155         fclose: Fix possible link error.
10156         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10157         unregister_shadow_fd. Improve comments.
10158         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10159         Eric Blake.
10160
10161 2011-05-11  Jim Meyering  <meyering@redhat.com>
10162
10163         maint.mk: improve "can not" detection and generalize rule name
10164         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10165         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10166         Use the same technique as in sc_prohibit_doubled_word, so that
10167         we recognize "can not" also when the words are separated by a newline.
10168         Suggested by Eric Blake.
10169         (perl_filename_lineno_text_): Define.  Factored out of...
10170         (prohibit_doubled_word_): ...here.  Use the new definition.
10171         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10172         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10173         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10174
10175 2011-05-10  Eric Blake  <eblake@redhat.com>
10176
10177         fclose: avoid double close race when possible
10178         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10179         all but WINDOWS_SOCKETS.
10180
10181 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10182
10183         openat: correct new comment
10184         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10185
10186 2011-05-10  Jim Meyering  <meyering@redhat.com>
10187
10188         openat: add comments
10189         * lib/openat-proc.c (openat_proc_name): Add comments,
10190         mostly from Eric Blake.
10191
10192 2011-05-09  Eric Blake  <eblake@redhat.com>
10193
10194         openat: reduce syscalls in first probe of /proc
10195         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10196         be a directory.  Simplify the probe for .. bugs.
10197         * modules/openat (Depends-on): Drop same-inode.
10198         Reported by Bastien ROUCARIES.
10199
10200 2011-05-09  Jim Meyering  <meyering@redhat.com>
10201
10202         maint.mk: change semantics/name of tight_scope variables
10203         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10204         Rename variables to align with semantics that make them more useful.
10205
10206         maint.mk: tweak new rule's name not to impinge
10207         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10208         (sc_tight_scope): Use new rule name rather than $@-0.
10209
10210         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10211         * top/maint.mk (sc_tight_scope): New rule.
10212         (sc_tight_scope-0): New rule, ifdef'd out.
10213         (_gl_TS_dir): Default.
10214         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10215         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10216
10217 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10218
10219         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10220         Haible <bruno@clisp.org>.
10221
10222 2011-05-08  Bruno Haible  <bruno@clisp.org>
10223
10224         Comments.
10225         * m4/isnanf.m4: Add comment.
10226         * m4/isnanl.m4: Likewise.
10227
10228 2011-05-08  Bruno Haible  <bruno@clisp.org>
10229
10230         glob: Remove obsolete macro.
10231         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10232
10233 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10234
10235         intprops: Sun C 5.11 supports __typeof__
10236         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10237         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10238         which is new.
10239         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10240
10241         intprops: switch to usual gnulib indenting and naming
10242         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10243         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10244
10245         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10246
10247 2011-05-08  Jim Meyering  <meyering@redhat.com>
10248
10249         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10250         * top/maint.mk (release-prep): Use make's --no-print-directory
10251         option when generating the announcement.  This eliminates the
10252         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10253         generated announcement template.
10254
10255 2011-05-08  Bruno Haible  <bruno@clisp.org>
10256
10257         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10258         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10259         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10260
10261 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10262
10263         ignore-value, verify: Omit include files from lib_SOURCES.
10264         * modules/ignore-value, modules/verify (Makefile.am):
10265         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10266         that leads Automake to duplicate use of am__objects_... variables
10267         in Makefile.in.  See
10268         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10269
10270 2011-05-07  Bruno Haible  <bruno@clisp.org>
10271
10272         fclose: Simplify autoconf macro.
10273         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10274         defined.
10275
10276 2011-05-07  Bruno Haible  <bruno@clisp.org>
10277
10278         canonicalize-lgpl: Fix autoconf macro ordering bug.
10279         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10280         gl_STDLIB_H_DEFAULTS.
10281
10282 2011-05-06  Eric Blake  <eblake@redhat.com>
10283
10284         maintainer-makefile: make sc_po_check easier to tune
10285         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10286         to probe for strings, such as an alternate location for gnulib.
10287
10288         fclose: guarantee behavior on seekable stdin
10289         * modules/fclose (Depends-on): Add fflush.
10290         * doc/posix-functions/fclose.texi (fclose): Document this.
10291         * tests/test-fclose.c (main): Make test for this unconditional.
10292
10293 2011-05-06  Bruno Haible  <bruno@clisp.org>
10294
10295         fflush, fpurge: Relicense under LGPLv2+.
10296         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10297         * modules/fpurge (License): Likewise.
10298         With permission from Eric Blake and Jim Meyering.
10299         Suggested by Eric Blake.
10300
10301 2011-05-06  Karl Berry  <karl@gnu.org>
10302
10303         * MODULES.html.sh (func_all_modules): remove exit.
10304
10305 2011-05-06  Jim Meyering  <meyering@redhat.com>
10306
10307         maint.mk: use info-gnu@ as the default only for a stable release
10308         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10309         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10310         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10311         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10312
10313 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10314
10315         assert-h: new module, which supports C1X-style static_assert
10316         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10317         * lib/verify.h: Revamp so that this can be copied into assert.h,
10318         while retaining the ability to use it standalone as before.
10319         Rename private identifiers so as not to encroach on the
10320         standard C namespace, since this is now used by assert.h.
10321         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10322         the old verify_true.
10323         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10324         the old verify_true.  Use _GL_VERIFY_TYPE.
10325         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10326         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10327         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10328         defined when this file is copied into the replacement assert.h.
10329         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10330         and _Static_assert is not built in.
10331         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10332         defined, and use the new macros mentioned above.
10333         * doc/posix-headers/assert.texi: Document this.
10334
10335 2011-05-05  Bruno Haible  <bruno@clisp.org>
10336
10337         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10338         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10339         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10340         gl_REPLACE_FCLOSE here.
10341         * modules/fflush (Depends-on): Remove fclose.
10342         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10343         combination with module 'fclose'.
10344
10345 2011-05-05  Bruno Haible  <bruno@clisp.org>
10346
10347         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10348         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10349         gl_FUNC_FFLUSH.
10350         (gl_FUNC_FFLUSH): Use it.
10351         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10352         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10353         gl_REPLACE_FSEEKO here.
10354
10355 2011-05-05  Bruno Haible  <bruno@clisp.org>
10356
10357         tzset: Relicense under LGPL.
10358         * modules/tzset (License): Change to LGPL.
10359         No agreement needed; it's a no-op.
10360
10361         strtoimax, strtoumax: Relicense under LGPL.
10362         * modules/strtoimax (License): Change to LGPL.
10363         * modules/strtoumax (License): Likewise.
10364         With permission from Jim Meyering, Paul Eggert:
10365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10367
10368         getgroups: Relicense under LGPL.
10369         * modules/getgroups (License): Change to LGPL.
10370         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10374
10375         nanosleep: Relicense under LGPL.
10376         * modules/nanosleep (License): Change to LGPL.
10377         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10378         Haible:
10379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10383
10384         futimens: Relicense under LGPL.
10385         * modules/futimens (License): Change to LGPL.
10386         With permission from Eric Blake:
10387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10388
10389         fflush: Relicense under LGPL.
10390         * modules/fflush (License): Change to LGPL.
10391         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10395
10396         tmpfile: Relicense under LGPL.
10397         * modules/tmpfile (License): Change to LGPL.
10398         With permission from Ben Pfaff:
10399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10400
10401         isfinite: Relicense under LGPL.
10402         * modules/isfinite (License): Change to LGPL.
10403         With permission from Ben Pfaff, Bruno Haible:
10404         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10405         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10406
10407         acosl..tanl: Relicense under LGPL.
10408         * modules/acosl (License): Change to LGPL.
10409         * modules/asinl (License): Likewise.
10410         * modules/atanl (License): Likewise.
10411         * modules/cosl (License): Likewise.
10412         * modules/expl (License): Likewise.
10413         * modules/logl (License): Likewise.
10414         * modules/sinl (License): Likewise.
10415         * modules/sqrtl (License): Likewise.
10416         * modules/tanl (License): Likewise.
10417         Source code originally from glibc and Paolo Bonzini. Agreements:
10418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10420
10421 2011-05-05  Bruno Haible  <bruno@clisp.org>
10422
10423         signal: Define sighandler_t.
10424         * lib/signal.in.h (sighandler_t): New type.
10425         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10426         whether sighandler_t is defined.
10427         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10428         * modules/signal (Depends-on): Add extensions.
10429         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10430         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10431         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10432
10433 2011-05-05  Eric Blake  <eblake@redhat.com>
10434
10435         maint: remove useless REPLACE_*_H macros
10436         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10437         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10438         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10439         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10440         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10441         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10442         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10443         * m4/btowc.m4: Update callers.
10444         * m4/dirfd.m4: Likewise.
10445         * m4/duplocale.m4: Likewise.
10446         * m4/fchdir.m4: Likewise.
10447         * m4/fdopendir.m4: Likewise.
10448         * m4/inet_ntop.m4: Likewise.
10449         * m4/inet_pton.m4: Likewise.
10450         * m4/ioctl.m4: Likewise.
10451         * m4/mbrlen.m4: Likewise.
10452         * m4/mbrtowc.m4: Likewise.
10453         * m4/mbsinit.m4: Likewise.
10454         * m4/mbsnrtowcs.m4: Likewise.
10455         * m4/mbsrtowcs.m4: Likewise.
10456         * m4/poll.m4: Likewise.
10457         * m4/setlocale.m4: Likewise.
10458         * m4/wcrtomb.m4: Likewise.
10459         * m4/wcsnrtombs.m4: Likewise.
10460         * m4/wcsrtombs.m4: Likewise.
10461         * m4/wctob.m4: Likewise.
10462         * m4/wcwidth.m4: Likewise.
10463         * modules/posix_spawn: Likewise.
10464         * modules/posix_spawn_file_actions_addclose: Likewise.
10465         * modules/posix_spawn_file_actions_adddup2: Likewise.
10466         * modules/posix_spawn_file_actions_addopen: Likewise.
10467         * modules/posix_spawn_file_actions_destroy: Likewise.
10468         * modules/posix_spawn_file_actions_init: Likewise.
10469         * modules/posix_spawnattr_destroy: Likewise.
10470         * modules/posix_spawnattr_getflags: Likewise.
10471         * modules/posix_spawnattr_getpgroup: Likewise.
10472         * modules/posix_spawnattr_getschedparam: Likewise.
10473         * modules/posix_spawnattr_getschedpolicy: Likewise.
10474         * modules/posix_spawnattr_getsigdefault: Likewise.
10475         * modules/posix_spawnattr_getsigmask: Likewise.
10476         * modules/posix_spawnattr_init: Likewise.
10477         * modules/posix_spawnattr_setflags: Likewise.
10478         * modules/posix_spawnattr_setpgroup: Likewise.
10479         * modules/posix_spawnattr_setschedparam: Likewise.
10480         * modules/posix_spawnattr_setschedpolicy: Likewise.
10481         * modules/posix_spawnattr_setsigdefault: Likewise.
10482         * modules/posix_spawnattr_setsigmask: Likewise.
10483         * modules/posix_spawnp: Likewise.
10484
10485 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10486
10487         Add option to do-release-commit-and-tag to specify branch.
10488         * build-aux/do-release-commit-and-tag: Add --branch.
10489
10490 2011-05-03  Bruno Haible  <bruno@clisp.org>
10491
10492         Avoid unnecessary compilation units, through conditional dependencies.
10493         * modules/accept (Depends-on): Add conditions to the dependencies.
10494         * modules/acosl (Depends-on): Likewise.
10495         * modules/argz (Depends-on): Likewise.
10496         * modules/asinl (Depends-on): Likewise.
10497         * modules/atanl (Depends-on): Likewise.
10498         * modules/atoll (Depends-on): Likewise.
10499         * modules/bind (Depends-on): Likewise.
10500         * modules/btowc (Depends-on): Likewise.
10501         * modules/canonicalize-lgpl (Depends-on): Likewise.
10502         * modules/ceil (Depends-on): Likewise.
10503         * modules/ceilf (Depends-on): Likewise.
10504         * modules/ceill (Depends-on): Likewise.
10505         * modules/chdir-long (Depends-on): Likewise.
10506         * modules/chown (Depends-on): Likewise.
10507         * modules/close (Depends-on): Likewise.
10508         * modules/connect (Depends-on): Likewise.
10509         * modules/cosl (Depends-on): Likewise.
10510         * modules/dirfd (Depends-on): Likewise.
10511         * modules/dprintf (Depends-on): Likewise.
10512         * modules/dprintf-posix (Depends-on): Likewise.
10513         * modules/error (Depends-on): Likewise.
10514         * modules/euidaccess (Depends-on): Likewise.
10515         * modules/expl (Depends-on): Likewise.
10516         * modules/faccessat (Depends-on): Likewise.
10517         * modules/fchdir (Depends-on): Likewise.
10518         * modules/fclose (Depends-on): Likewise.
10519         * modules/fcntl (Depends-on): Likewise.
10520         * modules/fdopendir (Depends-on): Likewise.
10521         * modules/fflush (Depends-on): Likewise.
10522         * modules/floor (Depends-on): Likewise.
10523         * modules/floorf (Depends-on): Likewise.
10524         * modules/floorl (Depends-on): Likewise.
10525         * modules/fnmatch (Depends-on): Likewise.
10526         * modules/fopen (Depends-on): Likewise.
10527         * modules/fprintf-posix (Depends-on): Likewise.
10528         * modules/frexp (Depends-on): Likewise.
10529         * modules/frexp-nolibm (Depends-on): Likewise.
10530         * modules/frexpl (Depends-on): Likewise.
10531         * modules/frexpl-nolibm (Depends-on): Likewise.
10532         * modules/fseek (Depends-on): Likewise.
10533         * modules/fsusage (Depends-on): Likewise.
10534         * modules/ftell (Depends-on): Likewise.
10535         * modules/ftello (Depends-on): Likewise.
10536         * modules/futimens (Depends-on): Likewise.
10537         * modules/getcwd (Depends-on): Likewise.
10538         * modules/getcwd-lgpl (Depends-on): Likewise.
10539         * modules/getdelim (Depends-on): Likewise.
10540         * modules/getdomainname (Depends-on): Likewise.
10541         * modules/getgroups (Depends-on): Likewise.
10542         * modules/gethostname (Depends-on): Likewise.
10543         * modules/getline (Depends-on): Likewise.
10544         * modules/getlogin_r (Depends-on): Likewise.
10545         * modules/getopt-posix (Depends-on): Likewise.
10546         * modules/getpeername (Depends-on): Likewise.
10547         * modules/getsockname (Depends-on): Likewise.
10548         * modules/getsockopt (Depends-on): Likewise.
10549         * modules/getsubopt (Depends-on): Likewise.
10550         * modules/getusershell (Depends-on): Likewise.
10551         * modules/glob (Depends-on): Likewise.
10552         * modules/grantpt (Depends-on): Likewise.
10553         * modules/iconv_open (Depends-on): Likewise.
10554         * modules/iconv_open-utf (Depends-on): Likewise.
10555         * modules/inet_ntop (Depends-on): Likewise.
10556         * modules/inet_pton (Depends-on): Likewise.
10557         * modules/ioctl (Depends-on): Likewise.
10558         * modules/isapipe (Depends-on): Likewise.
10559         * modules/isfinite (Depends-on): Likewise.
10560         * modules/isinf (Depends-on): Likewise.
10561         * modules/lchown (Depends-on): Likewise.
10562         * modules/ldexpl (Depends-on): Likewise.
10563         * modules/link (Depends-on): Likewise.
10564         * modules/linkat (Depends-on): Likewise.
10565         * modules/listen (Depends-on): Likewise.
10566         * modules/logl (Depends-on): Likewise.
10567         * modules/lstat (Depends-on): Likewise.
10568         * modules/mbrlen (Depends-on): Likewise.
10569         * modules/mbrtowc (Depends-on): Likewise.
10570         * modules/mbsinit (Depends-on): Likewise.
10571         * modules/mbsnrtowcs (Depends-on): Likewise.
10572         * modules/mbsrtowcs (Depends-on): Likewise.
10573         * modules/mbtowc (Depends-on): Likewise.
10574         * modules/memcmp (Depends-on): Likewise.
10575         * modules/mkdir (Depends-on): Likewise.
10576         * modules/mkdtemp (Depends-on): Likewise.
10577         * modules/mkfifo (Depends-on): Likewise.
10578         * modules/mkfifoat (Depends-on): Likewise.
10579         * modules/mknod (Depends-on): Likewise.
10580         * modules/mkostemp (Depends-on): Likewise.
10581         * modules/mkostemps (Depends-on): Likewise.
10582         * modules/mkstemp (Depends-on): Likewise.
10583         * modules/mkstemps (Depends-on): Likewise.
10584         * modules/mktime (Depends-on): Likewise.
10585         * modules/nanosleep (Depends-on): Likewise.
10586         * modules/open (Depends-on): Likewise.
10587         * modules/openat (Depends-on): Likewise.
10588         * modules/perror (Depends-on): Likewise.
10589         * modules/poll (Depends-on): Likewise.
10590         * modules/popen (Depends-on): Likewise.
10591         * modules/posix_spawn (Depends-on): Likewise.
10592         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10593         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10594         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10595         * modules/posix_spawnp (Depends-on): Likewise.
10596         * modules/pread (Depends-on): Likewise.
10597         * modules/printf-posix (Depends-on): Likewise.
10598         * modules/ptsname (Depends-on): Likewise.
10599         * modules/putenv (Depends-on): Likewise.
10600         * modules/pwrite (Depends-on): Likewise.
10601         * modules/readline (Depends-on): Likewise.
10602         * modules/readlink (Depends-on): Likewise.
10603         * modules/readlinkat (Depends-on): Likewise.
10604         * modules/recv (Depends-on): Likewise.
10605         * modules/recvfrom (Depends-on): Likewise.
10606         * modules/regex (Depends-on): Likewise.
10607         * modules/remove (Depends-on): Likewise.
10608         * modules/rename (Depends-on): Likewise.
10609         * modules/renameat (Depends-on): Likewise.
10610         * modules/rmdir (Depends-on): Likewise.
10611         * modules/round (Depends-on): Likewise.
10612         * modules/roundf (Depends-on): Likewise.
10613         * modules/roundl (Depends-on): Likewise.
10614         * modules/rpmatch (Depends-on): Likewise.
10615         * modules/select (Depends-on): Likewise.
10616         * modules/send (Depends-on): Likewise.
10617         * modules/sendto (Depends-on): Likewise.
10618         * modules/setenv (Depends-on): Likewise.
10619         * modules/setlocale (Depends-on): Likewise.
10620         * modules/setsockopt (Depends-on): Likewise.
10621         * modules/shutdown (Depends-on): Likewise.
10622         * modules/sigaction (Depends-on): Likewise.
10623         * modules/signbit (Depends-on): Likewise.
10624         * modules/sigprocmask (Depends-on): Likewise.
10625         * modules/sinl (Depends-on): Likewise.
10626         * modules/sleep (Depends-on): Likewise.
10627         * modules/snprintf (Depends-on): Likewise.
10628         * modules/snprintf-posix (Depends-on): Likewise.
10629         * modules/socket (Depends-on): Likewise.
10630         * modules/sprintf-posix (Depends-on): Likewise.
10631         * modules/sqrtl (Depends-on): Likewise.
10632         * modules/stat (Depends-on): Likewise.
10633         * modules/strchrnul (Depends-on): Likewise.
10634         * modules/strdup-posix (Depends-on): Likewise.
10635         * modules/strerror (Depends-on): Likewise.
10636         * modules/strerror_r-posix (Depends-on): Likewise.
10637         * modules/strndup (Depends-on): Likewise.
10638         * modules/strnlen (Depends-on): Likewise.
10639         * modules/strptime (Depends-on): Likewise.
10640         * modules/strsep (Depends-on): Likewise.
10641         * modules/strsignal (Depends-on): Likewise.
10642         * modules/strstr-simple (Depends-on): Likewise.
10643         * modules/strtod (Depends-on): Likewise.
10644         * modules/strtoimax (Depends-on): Likewise.
10645         * modules/strtok_r (Depends-on): Likewise.
10646         * modules/strtoumax (Depends-on): Likewise.
10647         * modules/symlink (Depends-on): Likewise.
10648         * modules/symlinkat (Depends-on): Likewise.
10649         * modules/tanl (Depends-on): Likewise.
10650         * modules/tcgetsid (Depends-on): Likewise.
10651         * modules/tmpfile (Depends-on): Likewise.
10652         * modules/trunc (Depends-on): Likewise.
10653         * modules/truncf (Depends-on): Likewise.
10654         * modules/truncl (Depends-on): Likewise.
10655         * modules/uname (Depends-on): Likewise.
10656         * modules/unlink (Depends-on): Likewise.
10657         * modules/unlockpt (Depends-on): Likewise.
10658         * modules/unsetenv (Depends-on): Likewise.
10659         * modules/usleep (Depends-on): Likewise.
10660         * modules/utimensat (Depends-on): Likewise.
10661         * modules/vasprintf (Depends-on): Likewise.
10662         * modules/vdprintf (Depends-on): Likewise.
10663         * modules/vdprintf-posix (Depends-on): Likewise.
10664         * modules/vfprintf-posix (Depends-on): Likewise.
10665         * modules/vprintf-posix (Depends-on): Likewise.
10666         * modules/vsnprintf (Depends-on): Likewise.
10667         * modules/vsnprintf-posix (Depends-on): Likewise.
10668         * modules/vsprintf-posix (Depends-on): Likewise.
10669         * modules/wcrtomb (Depends-on): Likewise.
10670         * modules/wcscasecmp (Depends-on): Likewise.
10671         * modules/wcscspn (Depends-on): Likewise.
10672         * modules/wcsdup (Depends-on): Likewise.
10673         * modules/wcsncasecmp (Depends-on): Likewise.
10674         * modules/wcsnrtombs (Depends-on): Likewise.
10675         * modules/wcspbrk (Depends-on): Likewise.
10676         * modules/wcsrtombs (Depends-on): Likewise.
10677         * modules/wcsspn (Depends-on): Likewise.
10678         * modules/wcsstr (Depends-on): Likewise.
10679         * modules/wcstok (Depends-on): Likewise.
10680         * modules/wcswidth (Depends-on): Likewise.
10681         * modules/wctob (Depends-on): Likewise.
10682         * modules/wctomb (Depends-on): Likewise.
10683         * modules/wctype (Depends-on): Likewise.
10684         * modules/wcwidth (Depends-on): Likewise.
10685         * modules/write (Depends-on): Likewise.
10686
10687 2011-05-03  Bruno Haible  <bruno@clisp.org>
10688
10689         Support for conditional dependencies.
10690         * doc/gnulib.texi (Module description): Document the syntax of
10691         conditional dependencies.
10692         * gnulib-tool: New option --conditional-dependencies.
10693         (func_usage): Document it.
10694         (cond_dependencies): New variable.
10695         (func_get_automake_snippet_conditional,
10696         func_get_automake_snippet_unconditional): New functions, extracted from
10697         func_get_automake_snippet.
10698         (func_get_automake_snippet): Use them.
10699         (sed_first_32_chars): New variable.
10700         (func_module_shellfunc_name): New function.
10701         (func_module_shellvar_name): New function.
10702         (func_module_conditional_name): New function.
10703         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10704         func_cond_module_condition): New functions.
10705         (func_modules_transitive_closure): Add support for conditional
10706         dependencies.
10707         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10708         conditional automake snippet in an automake conditional.
10709         (func_emit_autoconf_snippets): Emit shell functions that contain the
10710         code for conditional modules.
10711         (func_import, func_create_testdir): Update specification.
10712
10713 2011-05-03  Eric Blake  <eblake@redhat.com>
10714
10715         test-getaddrinfo: report error information
10716         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10717
10718 2011-05-03  Jim Meyering  <meyering@redhat.com>
10719
10720         bootstrap: avoid build failure when $GZIP is set
10721         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10722         program name.  If defined at all, it is supposed to list gzip options.
10723         Reported by Alan Curry in http://debbugs.gnu.org/8609
10724
10725 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10726
10727         readme-release: new module with release instructions
10728         * modules/readme-release: New module.
10729         * top/README-release: New file, from coreutils, grep, diffutils.
10730         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10731
10732 2011-05-02  Eric Blake  <eblake@redhat.com>
10733
10734         fflush: also replace fclose when fixing fflush
10735         * modules/fflush (Depends-on): Add fclose.
10736         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10737         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10738         memstreams with no backing fd.
10739         * doc/posix-functions/fclose.texi (fclose): Document the use of
10740         fflush module to fix the bug.
10741         * tests/test-fclose.c (main): Relax test when fclose is used in
10742         isolation.
10743
10744         fclose: add some tests
10745         * modules/fclose-tests: New test module.
10746         * tests/test-fclose.c: New file.
10747         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10748
10749         fclose: reduced dependencies
10750         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10751         simpler lseek.
10752         * lib/fclose.c (rpl_fclose): Likewise.
10753         Reported by Simon Josefsson.
10754
10755         exit: drop remaining clients
10756         * modules/argmatch (Depends-on): Replace exit with stdlib.
10757         * modules/copy-file (Depends-on): Likewise.
10758         * modules/execute (Depends-on): Likewise.
10759         * modules/exitfail (Depends-on): Likewise.
10760         * modules/obstack (Depends-on): Likewise.
10761         * modules/pagealign_alloc (Depends-on): Likewise.
10762         * modules/pipe-filter-gi (Depends-on): Likewise.
10763         * modules/pipe-filter-ii (Depends-on): Likewise.
10764         * modules/savewd (Depends-on): Likewise.
10765         * modules/spawn-pipe (Depends-on): Likewise.
10766         * modules/wait-process (Depends-on): Likewise.
10767         * modules/xsetenv (Depends-on): Likewise.
10768         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10769         * modules/git-merge-changelog (Depends-on): Likewise.
10770         * modules/long-options (Depends-on): Likewise.
10771         * modules/pt_chown (Depends-on): Likewise.
10772         * modules/sysexits (Depends-on): Likewise.
10773
10774         freading: relax license from LGPLv3+ to LGPLv2+
10775         * modules/freading (License): Relax LGPL version.
10776
10777 2011-05-02  Bruno Haible  <bruno@clisp.org>
10778
10779         fchdir: Remove unused dependencies.
10780         * modules/fchdir (Depends-on): Remove include_next.
10781
10782 2011-05-02  Bruno Haible  <bruno@clisp.org>
10783
10784         gnulib-tool: Refactor.
10785         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10786         from func_emit_autoconf_snippets.
10787         (func_emit_autoconf_snippets): Use it.
10788
10789 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10790
10791         * NEWS: Document removal of 'exit'.
10792         * modules/exit: Remove file.
10793
10794 2011-05-01  Bruno Haible  <bruno@clisp.org>
10795
10796         Update DEPENDENCIES.
10797         * DEPENDENCIES (gettext): Recommend the newest release.
10798         Reported by Simon Josefsson.
10799
10800 2011-05-01  Bruno Haible  <bruno@clisp.org>
10801
10802         gnulib-tool: Reduce code duplication.
10803         * gnulib-tool (func_emit_autoconf_snippets): New function.
10804         (func_import, func_create_testdir): Use it.
10805
10806 2011-04-30  Eric Blake  <eblake@redhat.com>
10807
10808         fclose: don't fail on non-seekable input stream
10809         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10810         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10811         since fflush is allowed to fail in that case.
10812
10813 2011-04-30  Bruno Haible  <bruno@clisp.org>
10814
10815         dup3: cleanup
10816         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10817
10818 2011-04-30  Bruno Haible  <bruno@clisp.org>
10819
10820         netdb: Make it work in C++ mode.
10821         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10822         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10823         module.
10824         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10825         gl_MODULE_INDICATOR_FOR_TESTS.
10826         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10827         * modules/netdb-c++-tests: New file.
10828         * tests/test-netdb-c++.cc: New file.
10829
10830 2011-04-30  Bruno Haible  <bruno@clisp.org>
10831
10832         New modules 'vfscanf', 'vscanf'.
10833         * modules/vfscanf: New file.
10834         * modules/vscanf: New file.
10835         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10836         here.
10837         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10838         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10839
10840 2011-04-30  Bruno Haible  <bruno@clisp.org>
10841
10842         passfd: Add comments.
10843         * lib/passfd.c: Add comments about platforms.
10844
10845 2011-04-30  Bruno Haible  <bruno@clisp.org>
10846
10847         sys_uio: Make <sys/uio.h> self-contained.
10848         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10849         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10850
10851 2011-04-30  Bruno Haible  <bruno@clisp.org>
10852
10853         sys_socket: Ensure 'struct iovec' definition.
10854         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10855         <sys/socket.h>.
10856         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10857
10858 2011-04-30  Bruno Haible  <bruno@clisp.org>
10859
10860         sys_uio: Protect definition of 'struct iovec'.
10861         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10862         it as a C struct.
10863
10864 2011-04-30  Bruno Haible  <bruno@clisp.org>
10865
10866         manywarnings: fix indentation
10867         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10868
10869 2011-04-30  Pádraig Brady <P@draigBrady.com>
10870
10871         manywarnings: add -Wno-missing-field-initializers if needed.
10872         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10873         option if it's needed to allow initialization with { 0, }
10874
10875 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10876
10877         announce-gen: cosmetic improvement
10878         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10879
10880 2011-04-29  Jim Meyering  <meyering@redhat.com>
10881
10882         vc-list-files: indent with spaces, not TABs
10883         * build-aux/vc-list-files: Convert leading TABs to spaces,
10884         to match the style of most other files in gnulib.
10885
10886         announce-gen: indent with spaces, not TABs
10887         * build-aux/announce-gen: Convert all TABs to spaces, to match
10888         the style of most other files in gnulib.
10889
10890 2011-04-29  Eric Blake  <eblake@redhat.com>
10891
10892         quotearg: avoid uninitialized variable use
10893         * lib/quotearg.c (quoting_options_from_style): Initialize
10894         remaining fields, and ensure that custom styles are only used via
10895         quoting_options rather than quoting_style.
10896
10897 2011-04-29  Jim Meyering  <meyering@redhat.com>
10898
10899         maint.mk: remove unused VC-tag variable
10900         * top/maint.mk (VC-tag): Remove unused variable.
10901
10902 2011-04-29  Bruno Haible  <bruno@clisp.org>
10903
10904         netdb: fix gai_strerror replacements
10905         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10906         * modules/netdb: Substitute it.
10907
10908 2011-04-29  Jim Meyering  <meyering@redhat.com>
10909
10910         test-getcwd.c: avoid new set-but-not-used warning
10911         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10912         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10913         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10914         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10915
10916         test-hash.c: avoid a new shadowing warning
10917         * tests/test-hash.c (main): Don't shadow "dup".
10918
10919 2011-04-28  Eric Blake  <eblake@redhat.com>
10920
10921         getaddrinfo: fix gai_strerror signature
10922         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10923         and work around mingw with UNICODE defined.
10924         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10925         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10926         * modules/netdb (Makefile.am): Substitute it.
10927         * lib/netdb.in.h (gai_strerror): Declare replacement.
10928         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10929         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10930         the fix.
10931
10932         getsockopt: avoid compiler warning
10933         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10934         Reported by Matthias Bolte.
10935
10936         tests: drop unused link dependency
10937         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10938         * modules/dirent-safer-tests (Makefile.am): Likewise.
10939         * modules/fdopendir-tests (Makefile.am): Likewise.
10940         * modules/mkfifoat-tests (Makefile.am): Likewise.
10941         * modules/openat-safer-tests (Makefile.am): Likewise.
10942         * modules/openat-tests (Makefile.am): Likewise.
10943         * modules/readlinkat-tests (Makefile.am): Likewise.
10944         * modules/symlinkat-tests (Makefile.am): Likewise.
10945         * modules/linkat-tests (Makefile.am): Likewise.
10946         (Depends-on): Switch to filenamecat-lgpl.
10947         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10948         LIBINTL.
10949         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10950         * tests/test-linkat.c (main): Don't require xalloc.
10951
10952         hash, mgetgroups: drop xalloc dependency
10953         * lib/hash.c (includes): Adjust includes.
10954         * lib/mgetgroups.c (includes): Likewise.
10955         (xgetgroups): Move...
10956         * lib/xgetgroups.c: ...to new file.
10957         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10958         * modules/xgetgroups: New file, split from...
10959         * modules/mgetgroups: ...here.
10960         (Depends-on): Add xalloc-oversized.
10961         * modules/hash (Depends-on): Likewise.
10962         * modules/hash-tests (Depends-on): Drop xalloc.
10963         (test_hash_LDADD): Drop unused library.
10964         * tests/test-hash.c (main): Break xalloc dependency.
10965         (includes): Drop unused include.
10966
10967         xalloc-oversized: new module
10968         * modules/xalloc-oversized: New module.
10969         * modules/xalloc (Depends-on): Add it.
10970         * lib/xalloc.h (xalloc_oversized): Move...
10971         * lib/xalloc-oversized.h: ...into new file.
10972
10973         utimecmp: drop dependency on xmalloc
10974         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10975         due to memory pressure.
10976         * modules/utimecmp (Depends-on): Drop xalloc.
10977
10978 2011-04-27  Eric Blake  <eblake@redhat.com>
10979
10980         getcwd: fix mingw bugs
10981         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10982         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10983         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10984
10985 2011-04-27  Bruno Haible  <bruno@clisp.org>
10986
10987         mkstemps: Ensure declaration on MacOS X 10.5.
10988         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10989         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10990         MacOS X.
10991
10992 2011-04-27  Bruno Haible  <bruno@clisp.org>
10993
10994         mkstemp: More documentation.
10995         * doc/posix-functions/mkstemp.texi: Document header file problem on
10996         MacOS X.
10997
10998 2011-04-27  Bruno Haible  <bruno@clisp.org>
10999
11000         mkstemp: Tweak configure message when cross-compiling.
11001         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11002         result as a guess.
11003
11004 2011-04-27  Bruno Haible  <bruno@clisp.org>
11005
11006         clean-temp: Clarify what it does.
11007         * lib/clean-temp.h: Add more comments.
11008         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11009         module.
11010         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11011         * doc/glibc-functions/mkstemps.texi: Likewise.
11012         * doc/glibc-functions/mkostemps.texi: Likewise.
11013
11014 2011-04-27  Eric Blake  <eblake@redhat.com>
11015
11016         fchdir: avoid extra chdir and fix test
11017         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11018         getcwd-lgpl.
11019         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11020         have to be canonical.
11021         (canonicalize_file_name): Drop unused macro.
11022         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11023
11024         filenamecat-lgpl: fix licence
11025         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11026         when it was first created.
11027
11028         linkat, renameat: add missing dependency
11029         * modules/linkat (Depends-on): Require getcwd-lgpl.
11030         * modules/renameat (Depends-on): Likewise.
11031
11032         tests: reduce dependencies
11033         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11034         * tests/test-renameat.c (main): Likewise.
11035         * modules/linkat-tests (Depends-on): Relax dependency.
11036         * modules/renameat-tests (Depends-on): Likewise.
11037         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11038         dependency explicit.
11039
11040         save-cwd: reduce default dependency
11041         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11042         * lib/save-cwd.c: Update comments.
11043         * NEWS: Document the semantic change.
11044
11045         getcwd: enhance tests
11046         * tests/test-getcwd-lgpl.c: New file, taken from...
11047         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11048         repeat long path stress tests from m4 probe.
11049         * modules/getcwd-lgpl-tests: New module.
11050         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11051         * m4/getcwd-abort-bug.m4: Update comment.
11052         * m4/getcwd-path-max.m4: Likewise.
11053
11054         getcwd-lgpl: new module
11055         * modules/getcwd-lgpl: New module.
11056         * lib/getcwd-lgpl.c: New file.
11057         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11058         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11059         * modules/getcwd (configure.ac): Set C witness.
11060         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11061
11062         getcwd: tweak comments
11063         * m4/getcwd-abort-bug.m4: Fix comments.
11064         * m4/getcwd-path-max.m4: Likewise.
11065         * m4/getcwd.m4: Likewise.
11066
11067 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11068         and Eric Blake  <eblake@redhat.com>
11069
11070         mkstemp: replace if system version uses wrong permissions
11071         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11072         read/write mode bits set in file created by mkstemp.
11073         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11074
11075 2011-04-27  Eric Blake  <eblake@redhat.com>
11076
11077         passfd: avoid compiler warning
11078         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11079         Reported by Laine Stump.
11080
11081 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11082
11083         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11084         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11085
11086 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11087         and Eric Blake  <eblake@redhat.com>
11088
11089         mkstemp: mention clean-temp module
11090         * lib/mkstemp.c: Add comment.
11091         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11092
11093 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11094
11095         inttypes: also provide default values for 32-bit tests
11096         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11097         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11098
11099 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11100
11101         strtoumax: remove dependency on strtoimax
11102         This is like the strtoull change of yesterday.
11103         * modules/strtoumax (Files): Add lib/strtoimax.c.
11104         (Depends-on): Remove strtoimax and add verify.
11105
11106         inttypes-incomplete: new module
11107         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11108         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11109         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11110         of gl_INTTYPES_H.
11111         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11112         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11113         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11114         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11115         * modules/strtoumax, modules/xstrtol (Depends-on):
11116         Depend on inttypes-incomplete, not inttypes.
11117         * modules/inttypes-incomplete: New module, containing the contents
11118         of the old modules/inttypes module, except that the Files: section
11119         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11120         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11121         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11122         (Depends-on): Depend only on inttypes-incomplete.
11123         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11124
11125         inttypes: omit now-redundant strtoimax and strtoumax work
11126         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11127         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11128
11129         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11130         This supports apps that need pointers to strtoimax and strtoumax,
11131         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11132         nonexistent functions.  See
11133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11134         et seq.
11135         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11136         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11137         a macro.
11138         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11139
11140 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11141
11142         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11143
11144 2011-04-25  Bruno Haible  <bruno@clisp.org>
11145
11146         strtol, strtoul: Mark modules as obsolete.
11147         * modules/strtol (Status, Notice): New sections.
11148         * modules/strtoul (Status, Notice): New sections.
11149
11150 2011-04-25  Bruno Haible  <bruno@clisp.org>
11151
11152         strtod: Remove check for strtod, unless supporting old platforms.
11153         * modules/strtod-obsolete: New file.
11154         * m4/strtod-obsolete.m4: New file.
11155         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11156         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11157         * modules/strtod (Depends-on): Add strtod-obsolete.
11158         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11159
11160 2011-04-25  Bruno Haible  <bruno@clisp.org>
11161
11162         strcase: Make module obsolete.
11163         * modules/strcase (Status, Notice): New sections.
11164
11165 2011-04-25  Bruno Haible  <bruno@clisp.org>
11166
11167         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11168         * modules/dup2-obsolete: New file.
11169         * m4/dup2-obsolete.m4: New file.
11170         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11171         gl_FUNC_DUP2_OBSOLETE is not also defined.
11172         * modules/dup2 (Depends-on): Add dup2-obsolete.
11173         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11174
11175 2011-04-25  Bruno Haible  <bruno@clisp.org>
11176
11177         strnlen: Avoid memchr related link error on old obsolete platforms.
11178         * modules/memchr-obsolete: New file.
11179         * m4/memchr-obsolete.m4: New file.
11180         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11181         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11182         * modules/memchr (Depends-on): Add memchr-obsolete.
11183         * modules/strnlen (Depends-on): Likewise.
11184         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11185
11186 2011-04-25  Jim Meyering  <meyering@redhat.com>
11187
11188         maint.mk: makefile_at_at_check extend and clean up
11189         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11190         in addition to */Makefile.am.
11191         Exempt legitimate uses of @VAR@ notation, e.g.,
11192         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11193         Remove obsolete coreutils-specific comment.
11194         Prompted by discussion here:
11195         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11196
11197 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11198
11199         strtoul: remove dependency on strtol
11200         This is so that 'configure' need not check for strtol merely because
11201         the application needs strtoul.
11202         * modules/strtoul (Files): Add lib/strtol.c.
11203         (Depends-on): Remove strtol.
11204
11205         strtoull: remove dependency on strtoul
11206         This is like the strtoll change.
11207         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11208         (Depends-on): Remove strtoul.
11209
11210         strtoll: remove dependency on strtol
11211         This is so that 'configure' need not check for strtol merely because
11212         the application needs strtoll.
11213         * modules/strtoll (Files): Add lib/strtol.c.
11214         (Depends-on): Remove strtol.
11215
11216 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11217
11218         inttypes: Move some configure check to module 'imaxdiv'.
11219         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11220         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11221         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11222
11223 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11224
11225         inttypes: Move some configure check to module 'imaxabs'.
11226         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11227         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11228         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11229
11230 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11231
11232         inttypes: Remove configure tests that are not needed since 2009-12-31.
11233         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11234         gl_cv_header_working_inttypes_h.
11235
11236 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11237
11238         * modules/strnlen (Depends-on): Remove memchr.
11239         The strnlen implementation doesn't need the memchr module's fixes; see
11240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11241
11242         strtol: remove dependency on wchar
11243         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11244         * modules/strtol (Depends-on): Remove wchar.
11245
11246 2011-04-21  Eric Blake  <eblake@redhat.com>
11247
11248         passfd: fix test regression on Linux
11249         * modules/passfd-tests (configure.ac): Correct socketpair check.
11250
11251         passfd: speed up configure and drop unused code
11252         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11253         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11254         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11255         Instead of probing at configure for unix_scm_rights_bsd44_way,
11256         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11257         check to a struct member probe.
11258         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11259         (sendfd, recvfd): Update preprocessor checks.
11260         * modules/passfd (Files): Reflect rename, and drop unused file.
11261         (Depends-on): Drop unused dependency.
11262
11263         passfd: allow compilation on mingw
11264         * modules/sys_socket (Depends-on): Add sys_uio.
11265         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11266         iovec and a minimal struct msghdr.
11267         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11268         * tests/test-sys_socket.c (main): Enhance test.
11269         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11270         guaranteed to provide what we need.
11271         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11272         * modules/passfd-tests (Depends-on): Add sys_wait.
11273         * tests/test-passfd.c (main): Skip test on mingw, for now.
11274         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11275         partial 'struct msghdr' implementation.
11276
11277         sys_uio: new module
11278         * modules/sys_uio: New module.
11279         * modules/sys_uio-tests: Likewise.
11280         * lib/sys_uio.in.h: New file.
11281         * m4/sys_uio_h.m4: Likewise.
11282         * tests/test-sys_uio.c: Likewise.
11283         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11284         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11285
11286 2011-04-20  Jim Meyering  <meyering@redhat.com>
11287
11288         useless-if-before-free: avoid false-positive
11289         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11290         disjunct so that it too requires a terminating ";".  Without that,
11291         this script would identify as useless one statement from gcc that
11292         was not:
11293           if (aligned_ptr)
11294             free (((void **) aligned_ptr) [-1]);
11295
11296 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11297
11298         doc: update users.txt.
11299         * users.txt: Add barcode.
11300
11301 2011-04-19  Bruno Haible  <bruno@clisp.org>
11302
11303         ioctl: Remove link dependency on native Windows.
11304         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11305         (gl_close_fn, gl_ioctl_fn): New types.
11306         (struct fd_hook): Renamed from struct close_hook. Change type of
11307         private_close_fn field. Add private_ioctl_fn field.
11308         (close_hook_fn): Add parameter for primary close method.
11309         (execute_close_hooks, execute_all_close_hooks): Likewise.
11310         (ioctl_hook_fn): New type.
11311         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11312         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11313         argument.
11314         (unregister_fd_hook): Renamed from unregister_close_hook.
11315         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11316         Don't include <unistd.h>.
11317         (close): Remove undef.
11318         (anchor): Update.
11319         (execute_close_hooks): Add argument for primary close method.
11320         (execute_all_close_hooks): Likewise.
11321         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11322         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11323         argument. Allow each argument to be NULL.
11324         (unregister_fd_hook): Renamed from unregister_close_hook.
11325         * lib/close.c (rpl_close): Pass 'close' function pointer to
11326         execute_all_close_hooks.
11327         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11328         (primary_ioctl): New function.
11329         (ioctl): Don't call ioctlsocket here. Instead, call
11330         execute_all_ioctl_hooks.
11331         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11332         close method.
11333         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11334         (fd_sockets_hook): Renamed from close_sockets_hook.
11335         (gl_sockets_startup, gl_sockets_cleanup): Update.
11336         * modules/fd-hook: Renamed from modules/close-hook. Update.
11337         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11338         * modules/sockets (Depends-on): Likewise.
11339         * modules/ioctl (Depends-on): Add fd-hook.
11340         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11341         GNULIB_SOCKET.
11342
11343 2011-04-19  Bruno Haible  <bruno@clisp.org>
11344
11345         Move the support of O_NONBLOCK in open() to the 'open' module.
11346         * modules/nonblocking (Depends-on): Remove 'open'.
11347         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11348         gl_cv_have_open_O_NONBLOCK.
11349         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11350         O_NONBLOCK support.
11351         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11352
11353 2011-04-17  Bruno Haible  <bruno@clisp.org>
11354
11355         pipe2: Simplify code.
11356         * lib/pipe2.c (pipe2): Reduce code duplication.
11357
11358 2011-04-17  Bruno Haible  <bruno@clisp.org>
11359
11360         nonblocking: Add comment.
11361         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11362
11363 2011-04-17  Bruno Haible  <bruno@clisp.org>
11364
11365         nonblocking: Add tests for sockets.
11366         * tests/test-nonblocking-socket.sh: New file.
11367         * tests/test-nonblocking-socket-main.c: New file.
11368         * tests/test-nonblocking-socket-child.c: New file.
11369         * tests/test-nonblocking-socket.h: New file.
11370         * tests/socket-server.h: New file.
11371         * tests/socket-client.h: New file.
11372         * modules/nonblocking-socket-tests: New file.
11373         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11374
11375 2011-04-17  Bruno Haible  <bruno@clisp.org>
11376
11377         nonblocking: Add tests for pipes.
11378         * tests/test-nonblocking-pipe.sh: New file.
11379         * tests/test-nonblocking-pipe-main.c: New file.
11380         * tests/test-nonblocking-pipe-child.c: New file.
11381         * tests/test-nonblocking-pipe.h: New file.
11382         * tests/test-nonblocking-writer.h: New file.
11383         * tests/test-nonblocking-reader.h: New file.
11384         * tests/test-nonblocking-misc.h: New file.
11385         * modules/nonblocking-pipe-tests: New file.
11386         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11387
11388 2011-04-16  Bruno Haible  <bruno@clisp.org>
11389
11390         gettext: Clarify the needed programmer actions.
11391         * modules/gettext (Notice): New field.
11392         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11393
11394 2011-04-16  Bruno Haible  <bruno@clisp.org>
11395
11396         strchrnul: Tweak last commit.
11397         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11398         bug.
11399         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11400         as in _GL_FUNCDECL_SYS.
11401         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11402         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11403
11404 2011-04-15  Eric Blake  <eblake@redhat.com>
11405
11406         strchrnul: work around cygwin bug
11407         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11408         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11410         * modules/string (Makefile.am): Substitute it.
11411         * lib/string.in.h (strchrnul): Use it.
11412
11413 2011-04-15  Bruno Haible  <bruno@clisp.org>
11414
11415         Don't require lib/stdio-write.c when only module 'stdio' is used.
11416         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11417         invocation.
11418         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11419
11420 2011-04-14  Bruno Haible  <bruno@clisp.org>
11421
11422         Support non-blocking pipe I/O in read() on native Windows.
11423         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11424         (read): New declaration.
11425         * lib/read.c: New file.
11426         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11427         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11428         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11429         vscanf): New declarations.
11430         * lib/stdio-read.c: New file.
11431         * m4/read.m4: New file.
11432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11433         REPLACE_READ.
11434         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11435         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11436         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11437         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11438         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11439         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11440         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11441         * modules/read: New file.
11442         * modules/nonblocking (Files): Add lib/stdio-read.c.
11443         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11444         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11445         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11446         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11447         * modules/pread (Depends-on): Add read.
11448         * modules/safe-read (Depends-on): Likewise.
11449         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11450         gets, scanf, vfscanf, vscanf): Verify signatures.
11451         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11452         problem with non-blocking pipes.
11453         * doc/posix-functions/fgetc.texi: Likewise.
11454         * doc/posix-functions/fgets.texi: Likewise.
11455         * doc/posix-functions/fread.texi: Likewise.
11456         * doc/posix-functions/fscanf.texi: Likewise.
11457         * doc/posix-functions/getc.texi: Likewise.
11458         * doc/posix-functions/getchar.texi: Likewise.
11459         * doc/posix-functions/gets.texi: Likewise.
11460         * doc/posix-functions/scanf.texi: Likewise.
11461         * doc/posix-functions/vfscanf.texi: Likewise.
11462         * doc/posix-functions/vscanf.texi: Likewise.
11463
11464 2011-04-14  Bruno Haible  <bruno@clisp.org>
11465
11466         Support non-blocking pipe I/O in write() on native Windows.
11467         * lib/write.c (rpl_write): Split a write request that failed merely
11468         because the byte count was larger than the pipe buffer's size.
11469         * doc/posix-functions/write.texi: Mention the problem with large byte
11470         counts.
11471
11472 2011-04-14  Bruno Haible  <bruno@clisp.org>
11473
11474         wchar: Ensure that wchar_t gets defined on uClibc.
11475         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11476         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11477
11478 2011-04-13  Bruno Haible  <bruno@clisp.org>
11479
11480         safe-write, full-read: Avoid unnecessary compilation units.
11481         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11482         (Depends-on): Remove safe-read. Add ssize_t.
11483         * modules/full-read (Files): Add lib/full-write.c.
11484         (Depends-on): Add full-write.
11485
11486 2011-04-13  Bruno Haible  <bruno@clisp.org>
11487
11488         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11489         * modules/pwrite (Depends-on): Add 'write'.
11490
11491 2011-04-13  Bruno Haible  <bruno@clisp.org>
11492
11493         Support non-blocking pipe I/O in write() on native Windows.
11494         * lib/unistd.in.h (write): Enable replacement also if
11495         GNULIB_UNISTD_H_NONBLOCKING is 1.
11496         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11497         (rpl_write): When failing to write on a non-blocking pipe, change
11498         errno from ENOSPC to EAGAIN.
11499         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11500         putchar, puts, vfprintf, vprintf): Enable replacement also if
11501         GNULIB_STDIO_H_NONBLOCKING is 1.
11502         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11503         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11504         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11505         CALL_WITH_SIGPIPE_EMULATION.
11506         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11507         * m4/nonblocking.m4: New file.
11508         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11509         for non-blocking I/O support.
11510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11511         GNULIB_UNISTD_H_NONBLOCKING.
11512         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11513         required for non-blocking I/O support.
11514         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11515         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11516         lib/stdio-write.c, m4/asm-underscore.m4.
11517         (Depends-on): Add stdio, unistd.
11518         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11519         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11520         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11521         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11522         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11523         problem with non-blocking pipes.
11524         * doc/posix-functions/fputc.texi: Likewise.
11525         * doc/posix-functions/fputs.texi: Likewise.
11526         * doc/posix-functions/fwrite.texi: Likewise.
11527         * doc/posix-functions/printf.texi: Likewise.
11528         * doc/posix-functions/putc.texi: Likewise.
11529         * doc/posix-functions/putchar.texi: Likewise.
11530         * doc/posix-functions/puts.texi: Likewise.
11531         * doc/posix-functions/vfprintf.texi: Likewise.
11532         * doc/posix-functions/vprintf.texi: Likewise.
11533         * doc/posix-functions/write.texi: Likewise.
11534
11535 2011-04-10  Jim Meyering  <meyering@redhat.com>
11536
11537         maint.mk: prohibit doubled words
11538         Detect them also when they're separated by a newline.
11539         There are 3 ways to customize it:
11540           - disable the test on a per file basis, as usual with rules using
11541             $(VC_LIST_EXCEPT)
11542           - replace the default doubled-word-selecting regexp (affects all files)
11543           - ignore a particular file-vs-doubled-word match
11544         I nearly used that last one to ignore the "is is" match in
11545         coreutils' NEWS file, since the text was "ls -is is ..."
11546         To do that, I would have added this line to cfg.mk:
11547           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11548         but it would have ignored any "is is" match in NEWS.
11549         Low probability, but still...
11550         Instead, I changed the text, slightly:
11551           -  ls -is is now consistent with ls -lis in ignoring values returned
11552           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11553         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11554         (prohibit_doubled_word_): Define.
11555         (sc_prohibit_doubled_word): New rule.
11556         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11557
11558 2011-04-10  Jim Meyering  <meyering@redhat.com>
11559
11560         maint: fix doubled-word typo in comment
11561         * m4/gethostname.m4: s/is is/it is/
11562         * m4/getdomainname.m4: Likewise.
11563
11564 2011-04-10  Jim Meyering  <meyering@redhat.com>
11565
11566         maint: remove doubled word: s/it it/it/
11567         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11568
11569 2011-04-10  Jim Meyering  <meyering@redhat.com>
11570
11571         maint.mk: remove useless semicolon and backslash
11572         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11573         semicolon and backslash.
11574
11575 2011-04-10  Bruno Haible  <bruno@clisp.org>
11576
11577         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11578         * modules/stdint-tests (Depends-on): Add wchar.
11579
11580 2011-04-10  Jim Meyering  <meyering@redhat.com>
11581
11582         maint: remove doubled words in comments, e.g., s/a a/a/
11583         * lib/strptime.c (day_of_the_week): s/the the/the/
11584         * tests/test-chown.h (test_chown): s/a a/a/
11585
11586         test-chown.h: correct a cast
11587         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11588         when the destination is a stat.st_gid.
11589
11590 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11591
11592         getaddrinfo: Fix test for sa_len member.
11593         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11594         include <sys/types.h> before <sys/socket.h>.
11595
11596 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11597
11598         maint: change "can not" to "cannot"
11599         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11600         boundaries.
11601
11602 2011-04-09  Jim Meyering  <meyering@redhat.com>
11603
11604         maint: change "a a" to "a"
11605         * tests/test-lchown.h (test_lchown): s/a a/a/
11606
11607         maint.mk: prohibit \<the the\>
11608         * top/maint.mk (sc_prohibit_the_the): New rule.
11609
11610         maint: fix "the the" in comment
11611         * lib/count-one-bits.h: s/the the/the/
11612
11613         maint: change "can not" to "cannot"
11614         But do not change the occurrences in maintain.texi or in
11615         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11616         * doc/gnulib-tool.texi: s/can not/cannot/
11617         * doc/posix-functions/accept.texi (accept): Likewise.
11618         * doc/posix-functions/socket.texi (socket): Likewise.
11619         * lib/mbrtowc.c: Likewise.
11620
11621         maint.mk: prohibit use of "can not"
11622         * top/maint.mk (sc_prohibit_can_not): New rule.
11623         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11624
11625 2011-04-09  Bruno Haible  <bruno@clisp.org>
11626
11627         careadlinkat: Guard against misuse of careadlinkatcwd.
11628         * lib/careadlinkat.c: Include <stdlib.h>.
11629         (careadlinkatcwd): Check that the fd argument is as expected.
11630
11631 2011-04-09  Bruno Haible  <bruno@clisp.org>
11632
11633         careadlinkat: Use common coding style.
11634         * lib/careadlinkat.c: Move gnulib includes after system includes.
11635
11636 2011-04-09  Bruno Haible  <bruno@clisp.org>
11637
11638         careadlinkat: Clarify specification.
11639         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11640         (careadlinkatcwd): Add comment.
11641         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11642
11643 2011-04-09  Bruno Haible  <bruno@clisp.org>
11644
11645         areadlinkat: Avoid link error on many platforms.
11646         * modules/areadlinkat (Depends-on): Add areadlink.
11647
11648 2011-04-09  Bruno Haible  <bruno@clisp.org>
11649
11650         allocator, careadlinkat: Fix double-inclusion guard.
11651         * lib/allocator.h: Fix double-inclusion guard.
11652         * lib/careadlinkat.h: Likewise.
11653
11654 2011-04-09  Bruno Haible  <bruno@clisp.org>
11655
11656         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11657         * lib/relocwrapper.c: Update dependencies hierarchy.
11658         * build-aux/install-reloc: Update list of files to be compiled.
11659         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11660         lib/allocator.[hc].
11661
11662 2011-04-08  Eric Blake  <eblake@redhat.com>
11663
11664         strftime: silence gnulib-tool warning
11665         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11666
11667 2011-04-08  Bruno Haible  <bruno@clisp.org>
11668
11669         verify: Fix syntax error with GCC 4.6 in C++ mode.
11670         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11671         (HAVE_STATIC_ASSERT): New macro.
11672         (verify_true, verify): Use 'static_assert' if it is supported and
11673         '_Static_assert' is not supported.
11674
11675 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11676
11677         allocator: New module.
11678         * modules/allocator, lib/allocator.c: New files.
11679         * lib/allocator.h (stdlib_allocator): New decl.
11680         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11681         Remove.  Do not include <stdlib.h>.
11682         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11683         * modules/careadlinkat (Files): Remove lib/allocator.h.
11684         (Depends-on): Add allocator.
11685
11686         stdlib: let modules use system malloc, realloc
11687         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11688         if !_GL_USE_STDLIB_ALLOC.
11689         (malloc, realloc): Limit this change to a smaller scope.
11690
11691         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11692         (malloc, realloc): Don't #undef; no longer needed.
11693         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11694         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11695         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11696         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11697         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11698         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11699         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11700         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11701
11702         careadlinkat: rename members to avoid problem
11703         * lib/allocator.h (struct allocator): Rename members from
11704         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11705         and realloc are #define'd.  Reported by Eric Blake in
11706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11707         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11708
11709 2011-04-08  Eric Blake  <eblake@redhat.com>
11710
11711         nonblocking: reduce dependency
11712         * tests/test-nonblocking.c: Only test sockets when in use.
11713         * modules/nonblocking-tests (Depends-on): Drop socket.
11714         (Makefile.am): Link even if sockets are not present.
11715         * modules/pipe2-tests (Makefile.am): Likewise.
11716         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11717
11718         pipe2: fix O_NONBLOCK support on mingw
11719         * modules/pipe2 (Depends-on): Add nonblocking.
11720         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11721         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11722         * tests/test-nonblocking.c (main): Likewise.
11723         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11724
11725         fcntl-h: fix O_ACCMODE on cygwin
11726         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11727         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11728
11729         pipe-filter: drop O_NONBLOCK workarounds
11730         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11731         * modules/pipe-filter-ii (Depends-on): Likewise.
11732         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11733
11734         nonblocking: provide O_NONBLOCK for mingw
11735         * modules/nonblocking (Depends-on): Add open.
11736         (configure.ac): Set new witness macro.
11737         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11738         * modules/fcntl-h (Makefile.am): Substitute it.
11739         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11740         nonblocking module is in use.
11741         * lib/nonblocking.c: Adjust portability test.
11742         * lib/open.c (open): Don't let native open see gnulib flag.
11743         * tests/test-fcntl-h.c (main): Enhance test.
11744         * tests/test-open.h (test_open): Likewise.
11745         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11746
11747         careadlinkat: fix compilation error on mingw
11748         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11749         within struct allocator.
11750
11751 2011-04-06  Eric Blake  <eblake@redhat.com>
11752
11753         binary-io: relicense under LGPLv2+
11754         * modules/binary-io (License): Relax to LGPLv2+.
11755         Requested for libvirt, and required by pipe2.
11756
11757 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11758
11759         verify: use _Static_assert if available
11760         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11761         (verify_true, verify): Use it if available.  This generates better
11762         diagnostics with GCC 4.6.0 and later.
11763
11764 2011-04-05  Bruno Haible  <bruno@clisp.org>
11765
11766         Remove leftover generated .h files after config.status changed.
11767
11768         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11769         GL_GENERATE_ALLOCA_H.
11770         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11771         GL_GENERATE_ALLOCA_H evaluates to false.
11772
11773         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11774         GL_GENERATE_ARGZ_H.
11775         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11776         evaluates to false.
11777
11778         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11779         GL_GENERATE_BYTESWAP_H.
11780         * modules/byteswap (Makefile.am): Remove byteswap.h if
11781         GL_GENERATE_BYTESWAP_H evaluates to false.
11782
11783         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11784         GL_GENERATE_ERRNO_H.
11785         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11786         evaluates to false.
11787
11788         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11789         GL_GENERATE_FLOAT_H.
11790         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11791         evaluates to false.
11792
11793         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11794         GL_GENERATE_FNMATCH_H.
11795         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11796         GL_GENERATE_FNMATCH_H evaluates to false.
11797
11798         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11799         GL_GENERATE_GLOB_H.
11800         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11801         evaluates to false.
11802
11803         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11804         automake conditional GL_GENERATE_ICONV_H.
11805         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11806         evaluates to false.
11807
11808         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11809         GL_GENERATE_NETINET_IN_H.
11810         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11811         GL_GENERATE_NETINET_IN_H evaluates to false.
11812
11813         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11814         conditional GL_GENERATE_PTHREAD_H.
11815         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11816         * modules/pthread (Makefile.am): Remove pthread.h if
11817         GL_GENERATE_PTHREAD_H evaluates to false.
11818
11819         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11820         GL_GENERATE_SCHED_H.
11821         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11822         evaluates to false.
11823
11824         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11825         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11826         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11827         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11828
11829         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11830         GL_GENERATE_STDARG_H.
11831         * modules/stdarg (Makefile.am): Remove stdarg.h if
11832         GL_GENERATE_STDARG_H evaluates to false.
11833
11834         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11835         GL_GENERATE_STDBOOL_H.
11836         * modules/stdbool (Makefile.am): Remove stdbool.h if
11837         GL_GENERATE_STDBOOL_H evaluates to false.
11838
11839         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11840         conditional GL_GENERATE_STDDEF_H.
11841         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11842         * modules/stddef (Makefile.am): Remove stddef.h if
11843         GL_GENERATE_STDDEF_H evaluates to false.
11844
11845         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11846         GL_GENERATE_STDINT_H.
11847         * modules/stdint (Makefile.am): Remove stdint.h if
11848         GL_GENERATE_STDINT_H evaluates to false.
11849
11850         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11851         GL_GENERATE_SYSEXITS_H.
11852         * modules/sysexits (Makefile.am): Remove sysexits.h if
11853         GL_GENERATE_SYSEXITS_H evaluates to false.
11854
11855         Reported by Karl Berry and Ralf Wildenhues.
11856
11857 2011-04-05  Bruno Haible  <bruno@clisp.org>
11858
11859         Ensure to rebuild generated .h files when config.status has changed.
11860         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11861         config.status.
11862         * modules/ctype (Makefile.am): Likewise.
11863         * modules/dirent (Makefile.am): Likewise.
11864         * modules/errno (Makefile.am): Likewise.
11865         * modules/fcntl-h (Makefile.am): Likewise.
11866         * modules/float (Makefile.am): Likewise.
11867         * modules/getopt-posix (Makefile.am): Likewise.
11868         * modules/glob (Makefile.am): Likewise.
11869         * modules/iconv-h (Makefile.am): Likewise.
11870         * modules/inttypes (Makefile.am): Likewise.
11871         * modules/langinfo (Makefile.am): Likewise.
11872         * modules/locale (Makefile.am): Likewise.
11873         * modules/math (Makefile.am): Likewise.
11874         * modules/netdb (Makefile.am): Likewise.
11875         * modules/netinet_in (Makefile.am): Likewise.
11876         * modules/poll-h (Makefile.am): Likewise.
11877         * modules/pthread (Makefile.am): Likewise.
11878         * modules/pty (Makefile.am): Likewise.
11879         * modules/sched (Makefile.am): Likewise.
11880         * modules/search (Makefile.am): Likewise.
11881         * modules/selinux-h (Makefile.am): Likewise.
11882         * modules/signal (Makefile.am): Likewise.
11883         * modules/spawn (Makefile.am): Likewise.
11884         * modules/stdarg (Makefile.am): Likewise.
11885         * modules/stdbool (Makefile.am): Likewise.
11886         * modules/stddef (Makefile.am): Likewise.
11887         * modules/stdint (Makefile.am): Likewise.
11888         * modules/stdio (Makefile.am): Likewise.
11889         * modules/stdlib (Makefile.am): Likewise.
11890         * modules/string (Makefile.am): Likewise.
11891         * modules/strings (Makefile.am): Likewise.
11892         * modules/sys_file (Makefile.am): Likewise.
11893         * modules/sys_ioctl (Makefile.am): Likewise.
11894         * modules/sys_select (Makefile.am): Likewise.
11895         * modules/sys_socket (Makefile.am): Likewise.
11896         * modules/sys_stat (Makefile.am): Likewise.
11897         * modules/sys_time (Makefile.am): Likewise.
11898         * modules/sys_times (Makefile.am): Likewise.
11899         * modules/sys_utsname (Makefile.am): Likewise.
11900         * modules/sys_wait (Makefile.am): Likewise.
11901         * modules/sysexits (Makefile.am): Likewise.
11902         * modules/termios (Makefile.am): Likewise.
11903         * modules/time (Makefile.am): Likewise.
11904         * modules/unistd (Makefile.am): Likewise.
11905         * modules/wchar (Makefile.am): Likewise.
11906         * modules/wctype-h (Makefile.am): Likewise.
11907         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11908
11909 2011-04-05  Bruno Haible  <bruno@clisp.org>
11910
11911         pipe2: Relicense under LGPLv2+.
11912         * modules/pipe2 (License): Change to LGPLv2+.
11913         Requested by Eric Blake, for libvirt.
11914
11915 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11916
11917         bootstrap: compute gnulib_extra_files after updating build_aux
11918         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11919         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11920
11921 2011-04-05  Eric Blake  <eblake@redhat.com>
11922
11923         bootstrap: preserve git whitelist item sorting
11924         * build-aux/bootstrap (sort_patterns): New function.
11925         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11926
11927 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11928
11929         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11930         sc_space_tab check.
11931
11932 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11933
11934         areadlink, areadlinkat: rewrite in terms of careadlinkat
11935         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11936         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11937         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11938         (malloc, realloc): Remove #undefs.
11939         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11940         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11941         readlink, ssize_t, stdint, unistd.
11942         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11943         areadlink, stdint.
11944
11945         careadlinkat: new module
11946         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11947         * modules/careadlinkat: New files, written by me with
11948         a review and feedback from Ben Pfaff in
11949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11950
11951 2011-04-01  Bruno Haible  <bruno@clisp.org>
11952
11953         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11954         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11955         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11956         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11957         Reported by Bruce Korb <bruce.korb@gmail.com>.
11958
11959 2011-04-01  Bruno Haible  <bruno@clisp.org>
11960
11961         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11962         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11963         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11964         * modules/wcpcpy (Depends-on): Add extensions.
11965         * modules/wcpncpy (Depends-on): Likewise.
11966         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11967         systems.
11968         * doc/posix-functions/wcpncpy.texi: Likewise.
11969         * doc/posix-functions/wcwidth.texi: Likewise.
11970
11971 2011-03-31  Eric Blake  <eblake@redhat.com>
11972
11973         nonblocking: fix mingw test failures
11974         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11975         non-blocking flag on regular file.
11976         (get_nonblocking_flag): Set errno on invalid fd.
11977         * tests/test-nonblocking.c (main): Avoid test failure on
11978         directories if fchdir is not active.
11979         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11980
11981 2011-03-31  Bruno Haible  <bruno@clisp.org>
11982
11983         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11984         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11985         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11986         Reported by Simon Josefsson <simon@josefsson.org>.
11987
11988 2011-03-31  Bruno Haible  <bruno@clisp.org>
11989         and Eric Blake  <eblake@redhat.com>
11990
11991         nonblocking: new module
11992         * modules/nonblocking: New module.
11993         * modules/nonblocking-tests: Likewise.
11994         * lib/nonblocking.h: New file.
11995         * lib/nonblocking.c: Likewise.
11996         * tests/test-nonblocking.c: New test.
11997         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11998
11999 2011-03-30  Bruno Haible  <bruno@clisp.org>
12000
12001         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12002         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12003         instead of 'printf' format for GCC >= 4.4.
12004         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12005         (fprintf, printf, vfprintf, vprintf): Declare with
12006         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12007         the system's vfprintf() function.
12008         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12009
12010 2011-03-30  Eric Blake  <eblake@redhat.com>
12011
12012         passfd: fix scoping bug
12013         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12014         before sendmsg/recvmsg.
12015
12016         passfd: standardize coding conventions
12017         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12018         can be learned at compile time.
12019         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12020         ifdefs.
12021         (sendfd, recvfd): Follow gnulib code conventions.
12022
12023         passfd: fix incorrect sendmsg arguments
12024         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12025         incorrect msg_controllen value.
12026         * modules/passfd-tests (Depends-on): Check for alarm.
12027         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12028         Reported by Bastien ROUCARIES.
12029
12030 2011-03-30  Bruno Haible  <bruno@clisp.org>
12031
12032         c-strcasestr: Relicense under LGPLv2+.
12033         * modules/c-strcasestr (License): Change to LGPLv2+.
12034         Requested by Eric Blake, for libvirt.
12035
12036 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12037
12038         * users.txt: Add libidn2.  Fix libtasn1 link.
12039
12040 2011-03-30  Jim Meyering  <meyering@redhat.com>
12041
12042         tests: readlink* ("",... fails with EINVAL on newer kernels
12043         readlink and readlinkat have typically failed with ENOENT for
12044         the invalid, empty file name,  "".  However, with the advent
12045         of linux-2.6.39, they fail with EINVAL.
12046         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12047         when operating on the empty file name.
12048         * tests/test-readlink.h (test_readlink): Likewise.
12049
12050 2011-03-29  Bruno Haible  <bruno@clisp.org>
12051
12052         Relicense some modules under LGPLv2+, for libidn2.
12053         * modules/array-mergesort (License): Change to LGPLv2+.
12054         * modules/c-strcaseeq (License): Likewise.
12055         * modules/striconveh (License): Likewise.
12056         * modules/striconveha (License): Likewise.
12057         * modules/uniconv/base (License): Likewise.
12058         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12059         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12060         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12061         * modules/unictype/base (License): Likewise.
12062         * modules/unictype/bidiclass-of (License): Likewise.
12063         * modules/unictype/category-M (License): Likewise.
12064         * modules/unictype/category-none (License): Likewise.
12065         * modules/unictype/category-of (License): Likewise.
12066         * modules/unictype/category-test (License): Likewise.
12067         * modules/unictype/category-test-withtable (License): Likewise.
12068         * modules/unictype/combining-class (License): Likewise.
12069         * modules/unictype/joiningtype-of (License): Likewise.
12070         * modules/unictype/scripts (License): Likewise.
12071         * modules/uninorm/base (License): Likewise.
12072         * modules/uninorm/canonical-decomposition (License): Likewise.
12073         * modules/uninorm/composition (License): Likewise.
12074         * modules/uninorm/decompose-internal (License): Likewise.
12075         * modules/uninorm/decomposition-table (License): Likewise.
12076         * modules/uninorm/nfc (License): Likewise.
12077         * modules/uninorm/nfd (License): Likewise.
12078         * modules/uninorm/u32-normalize (License): Likewise.
12079         * modules/unistr/base (License): Likewise.
12080         * modules/unistr/u32-cpy (License): Likewise.
12081         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12082         * modules/unistr/u32-to-u8 (License): Likewise.
12083         * modules/unistr/u32-uctomb (License): Likewise.
12084         * modules/unistr/u8-check (License): Likewise.
12085         * modules/unistr/u8-mblen (License): Likewise.
12086         * modules/unistr/u8-mbtouc (License): Likewise.
12087         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12088         * modules/unistr/u8-mbtoucr (License): Likewise.
12089         * modules/unistr/u8-prev (License): Likewise.
12090         * modules/unistr/u8-strlen (License): Likewise.
12091         * modules/unistr/u8-to-u32 (License): Likewise.
12092         * modules/unistr/u8-uctomb (License): Likewise.
12093         * modules/unitypes (License): Likewise.
12094         Requested by Simon Josefsson.
12095
12096 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12097
12098         lib-symbol-visibility: Add a notice.
12099         * modules/lib-symbol-visibility (Notice): New field.
12100
12101 2011-03-29  Bruno Haible  <bruno@clisp.org>
12102
12103         getaddrinfo: Doc fix.
12104         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12105         section "fixed in Gnulib".
12106
12107 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12108
12109         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12110         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12111
12112 2011-03-26  Bruno Haible  <bruno@clisp.org>
12113
12114         unictype/property-byname: Reduce the number of load-time relocations.
12115         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12116         (UC_PROPERTY_INDEX_*): New enumeration values.
12117         (uc_property_byname): Convert an index from the lookup table to an
12118         uc_property_t.
12119         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12120         values.
12121
12122 2011-03-26  Bruno Haible  <bruno@clisp.org>
12123
12124         unictype/property-byname: Allow omitted word separators and aliases.
12125         * lib/unictype/pr_byname.gperf: Add property names without word
12126         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12127         for 'space'.
12128
12129 2011-03-26  Bruno Haible  <bruno@clisp.org>
12130
12131         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12132         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12133         also hyphens to space.
12134         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12135         without spaces.
12136         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12137
12138 2011-03-26  Bruno Haible  <bruno@clisp.org>
12139
12140         unictype/joiningtype-byname: Recognize long names as well.
12141         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12142         a long name.
12143         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12144         unictype/joiningtype_byname.h.
12145         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12146         * lib/unictype/joiningtype_byname.gperf: New file.
12147         * modules/unictype/joiningtype-byname (Files): Add
12148         lib/unictype/joiningtype_byname.gperf.
12149         (Depends-on): Add gperf.
12150         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12151         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12152         long names.
12153
12154         Tests for module 'unictype/joiningtype-longname'.
12155         * modules/unictype/joiningtype-longname-tests: New file.
12156         * tests/unictype/test-joiningtype_longname.c: New file.
12157
12158         New module 'unictype/joiningtype-longname'.
12159         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12160         * lib/unictype/joiningtype_longname.c: New file.
12161         * modules/unictype/joiningtype-longname: New file.
12162         * modules/unictype/joiningtype-all (Depends-on): Add
12163         unictype/joiningtype-longname.
12164
12165 2011-03-26  Bruno Haible  <bruno@clisp.org>
12166
12167         unictype/bidiclass-byname: Recognize long names as well.
12168         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12169         name.
12170         * lib/unictype/bidi_byname.c: Include <string.h>,
12171         unictype/bidi_byname.h.
12172         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12173         * lib/unictype/bidi_byname.gperf: New file.
12174         * modules/unictype/bidiclass-byname (Files): Add
12175         lib/unictype/bidi_byname.gperf.
12176         (Depends-on): Add gperf.
12177         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12178         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12179         long names.
12180
12181         Tests for module 'unictype/bidiclass-longname'.
12182         * modules/unictype/bidiclass-longname-tests: New file.
12183         * tests/unictype/test-bidi_longname.c: New file.
12184
12185         New module 'unictype/bidiclass-longname'.
12186         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12187         * lib/unictype/bidi_longname.c: New file.
12188         * modules/unictype/bidiclass-longname: New file.
12189         * modules/unictype/bidiclass-all (Depends-on): Add
12190         unictype/bidiclass-longname.
12191
12192 2011-03-26  Bruno Haible  <bruno@clisp.org>
12193
12194         unictype/bidi*: Rename modules.
12195         * modules/unictype/bidiclass-all: Renamed from
12196         modules/unictype/bidicategory-all.
12197         * modules/unictype/bidiclass-name: Renamed from
12198         modules/unictype/bidiclass-name.
12199         (Description): Update.
12200         * modules/unictype/bidiclass-name-tests: Renamed from
12201         modules/unictype/bidicategory-name-tests.
12202         * modules/unictype/bidiclass-byname: Renamed from
12203         modules/unictype/bidicategory-byname.
12204         (Description): Update.
12205         * modules/unictype/bidiclass-byname-tests: Renamed from
12206         modules/unictype/bidicategory-byname-tests.
12207         * modules/unictype/bidiclass-of: Renamed from
12208         modules/unictype/bidicategory-of.
12209         (Description): Update.
12210         * modules/unictype/bidiclass-of-tests: Renamed from
12211         modules/unictype/bidicategory-of-tests.
12212         * modules/unictype/bidiclass-test: Renamed from
12213         modules/unictype/bidicategory-test.
12214         (Description): Update.
12215         * modules/unictype/bidiclass-test-tests: Renamed from
12216         modules/unictype/bidicategory-test-tests.
12217         * modules/unictype/bidicategory-all: New file, a simple redirection.
12218         * modules/unictype/bidicategory-name: Likewise.
12219         * modules/unictype/bidicategory-byname: Likewise.
12220         * modules/unictype/bidicategory-of: Likewise.
12221         * modules/unictype/bidicategory-test: Likewise.
12222         * modules/unictype/property-bidi-* (Dependencies): Update.
12223         * lib/unictype/bidi_*.c: Update comment.
12224
12225 2011-03-26  Bruno Haible  <bruno@clisp.org>
12226
12227         unictype/bidi*: Rename functions, part 2.
12228         * modules/unictype/bidicategory-name (configure.ac): Update required
12229         libunistring version.
12230         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12231
12232 2011-03-25  Bruno Haible  <bruno@clisp.org>
12233
12234         New module 'unictype/combining-class-all'.
12235         * modules/unictype/combining-class-all: New file.
12236
12237         Tests for module 'unictype/combining-class-byname'.
12238         * modules/unictype/combining-class-byname-tests: New file.
12239         * tests/unictype/test-combiningclass_byname.c: New file.
12240
12241         New module 'unictype/combining-class-byname'.
12242         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12243         * lib/unictype/combiningclass_byname.c: New file.
12244         * lib/unictype/combiningclass_byname.gperf: New file.
12245         * modules/unictype/combining-class-byname: New file.
12246
12247         Tests for module 'unictype/combining-class-longname'.
12248         * modules/unictype/combining-class-longname-tests: New file.
12249         * tests/unictype/test-combiningclass_longname.c: New file.
12250
12251         New module 'unictype/combining-class-longname'.
12252         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12253         * lib/unictype/combiningclass_longname.c: New file.
12254         * modules/unictype/combining-class-longname: New file.
12255
12256         Tests for module 'unictype/combining-class-name'.
12257         * modules/unictype/combining-class-name-tests: New file.
12258         * tests/unictype/test-combiningclass_name.c: New file.
12259
12260         New module 'unictype/combining-class-name'.
12261         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12262         * lib/unictype/combiningclass_name.c: New file.
12263         * modules/unictype/combining-class-name: New file.
12264
12265 2011-03-25  Bruno Haible  <bruno@clisp.org>
12266
12267         unictype/combining-class: Rename source files.
12268         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12269         of unictype/combining.h.
12270         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12271         Update.
12272         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12273         * modules/unictype/combining-class (Description): Fix.
12274         (Files, Makefile.am): Update.
12275         * tests/unictype/test-combiningclass.c: Renamed from
12276         tests/unictype/test-combining.c.
12277         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12278
12279 2011-03-25  Bruno Haible  <bruno@clisp.org>
12280
12281         unictype: Update list of canonical combining classes.
12282         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12283
12284 2011-03-25  Bruno Haible  <bruno@clisp.org>
12285
12286         unictype/category-byname: Recognize long names as well.
12287         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12288         a long name.
12289         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12290         unictype/categ_byname.h.
12291         (UC_CATEGORY_INDEX_*): New enumeration values.
12292         (uc_general_category_byname): Use uc_general_category_lookup and
12293         convert from index to value.
12294         * lib/unictype/categ_byname.gperf: New file.
12295         * modules/unictype/category-byname (Files): Add
12296         lib/unictype/categ_byname.gperf.
12297         (Depends-on): Add gperf.
12298         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12299         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12300         long names.
12301
12302         Tests for module 'unictype/category-longname'.
12303         * modules/unictype/category-longname-tests: New file.
12304         * tests/unictype/test-categ_longname.c: New file.
12305
12306         New module 'unictype/category-longname'.
12307         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12308         * lib/unictype/categ_longname.c: New file.
12309         * modules/unictype/category-longname: New file.
12310         * modules/unictype/category-all (Depends-on): Add it.
12311
12312 2011-03-25  Bruno Haible  <bruno@clisp.org>
12313
12314         Tests for module 'unictype/category-LC'.
12315         * modules/unictype/category-LC-tests: New file.
12316         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12317
12318         New module 'unictype/category-LC'.
12319         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12320         (UC_CATEGORY_LC): New declaration.
12321         (UC_CASED_LETTER): New macro.
12322         * lib/gen-uni-tables.c (is_category_LC): New function.
12323         (output_categories): Also handle category LC.
12324         (UC_CATEGORY_MASK_LC): New enumeration value.
12325         (general_category_byname): Also handle category LC.
12326         * lib/unictype/categ_LC.c: New file.
12327         * lib/unictype/categ_LC.h: New file, automatically generated.
12328         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12329         category LC.
12330         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12331         * modules/unictype/category-LC: New file.
12332         * modules/unictype/category-byname (Depends-on): Add
12333         unictype/category-LC.
12334         * modules/unictype/category-all (Depends-on): Likewise.
12335
12336 2011-03-25  Eric Blake  <eblake@redhat.com>
12337
12338         xmalloc: revert yesterday's regression
12339         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12340         realloc's underlying behavior (allowing allocation of zero-size
12341         objects, especially if malloc-gnu is also in use).
12342
12343 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12344
12345         maint.mk: add missing version to VC-tag
12346         * top/maint.mk: git tag was missing actual tag name; add it.
12347
12348         valgrind: do leak checking, and exit with code 1 on error (not 0)
12349         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12350         to VALGRIND.
12351
12352 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12353
12354         posix-modules: say what it does.
12355         * posix-modules: Add a line to the --help output saying what it does.
12356
12357 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12358
12359         xmalloc: Do not leak if underlying realloc is C99 compatible.
12360         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12361         This avoids a leak on C99-based systems.  See
12362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12363
12364 2011-03-24  Eric Blake  <eblake@redhat.com>
12365
12366         realloc: document portability problem
12367         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12368         passing 0 size to realloc.
12369
12370 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12371
12372         doc: update users.txt
12373         * users.txt: Add cvsps, tmpwatch
12374
12375 2011-03-23  Matt Rice  <ratmice@gmail.com>
12376
12377         doc: update users.txt
12378         * users.txt: Add gdb.
12379
12380 2011-03-23  Jim Meyering  <meyering@redhat.com>
12381
12382         doc: update users.txt
12383         Looking through matches up to the following URL (there are still
12384         several more pages), I found several projects that use gnulib:
12385         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12386         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12387         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12388
12389 2011-03-22  Bruno Haible  <bruno@clisp.org>
12390
12391         unictype/bidi*: Rename functions.
12392         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12393         uc_bidi_class, uc_is_bidi_class): New declarations.
12394         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12395         uc_bidi_category_byname.
12396         (uc_bidi_category_byname): New function.
12397         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12398         u_bidi_category_name.
12399         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12400         (uc_bidi_category_name): New function.
12401         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12402         uc_bidi_category.
12403         (uc_bidi_category): New function.
12404         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12405         uc_is_bidi_category. Invoke uc_bidi_class.
12406         (uc_is_bidi_category): New function.
12407         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12408         instead of uc_bidi_category_byname.
12409         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12410         instead of uc_bidi_category_name.
12411         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12412         uc_bidi_category.
12413         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12414         instead of uc_is_bidi_category.
12415
12416 2011-03-21  Bruno Haible  <bruno@clisp.org>
12417
12418         New module 'unictype/joininggroup-all'.
12419         * modules/unictype/joininggroup-all: New file.
12420
12421         Tests for module 'unictype/joininggroup-of'.
12422         * modules/unictype/joininggroup-of-tests: New file.
12423         * tests/unictype/test-joininggroup_of.c: New file.
12424         * tests/unictype/test-joininggroup_of.h: New file, automatically
12425         generated by gen-uni-tables.
12426
12427         New module 'unictype/joininggroup-of'.
12428         * modules/unictype/joininggroup-of: New file.
12429         * lib/unictype/joininggroup_of.c: New file.
12430         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12431         gen-uni-tables.
12432
12433         Tests for module 'unictype/joininggroup-byname'.
12434         * modules/unictype/joininggroup-byname-tests: New file.
12435         * tests/unictype/test-joininggroup_byname.c: New file.
12436
12437         New module 'unictype/joininggroup-byname'.
12438         * modules/unictype/joininggroup-byname: New file.
12439         * lib/unictype/joininggroup_byname.c: New file.
12440         * lib/unictype/joininggroup_byname.gperf: New file.
12441
12442         Tests for module 'unictype/joininggroup-name'.
12443         * modules/unictype/joininggroup-name-tests: New file.
12444         * tests/unictype/test-joininggroup_name.c: New file.
12445
12446         New module 'unictype/joininggroup-name'.
12447         * modules/unictype/joininggroup-name: New file.
12448         * lib/unictype/joininggroup_name.c: New file.
12449         * lib/unictype/joininggroup_name.h: New file.
12450
12451         New module 'unictype/joiningtype-all'.
12452         * modules/unictype/joiningtype-all: New file.
12453
12454         Tests for module 'unictype/joiningtype-of'.
12455         * modules/unictype/joiningtype-of-tests: New file.
12456         * tests/unictype/test-joiningtype_of.c: New file.
12457         * tests/unictype/test-joiningtype_of.h: New file, automatically
12458         generated by gen-uni-tables.
12459
12460         New module 'unictype/joiningtype-of'.
12461         * modules/unictype/joiningtype-of: New file.
12462         * lib/unictype/joiningtype_of.c: New file.
12463         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12464         gen-uni-tables.
12465
12466         Tests for module 'unictype/joiningtype-byname'.
12467         * modules/unictype/joiningtype-byname-tests: New file.
12468         * tests/unictype/test-joiningtype_byname.c: New file.
12469
12470         New module 'unictype/joiningtype-byname'.
12471         * modules/unictype/joiningtype-byname: New file.
12472         * lib/unictype/joiningtype_byname.c: New file.
12473
12474         Tests for module 'unictype/joiningtype-name'.
12475         * modules/unictype/joiningtype-name-tests: New file.
12476         * tests/unictype/test-joiningtype_name.c: New file.
12477
12478         New module 'unictype/joiningtype-name'.
12479         * modules/unictype/joiningtype-name: New file.
12480         * lib/unictype/joiningtype_name.c: New file.
12481
12482         unictype: Add support for Arabic shaping properties.
12483         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12484         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12485         declarations.
12486         (UC_JOINING_GROUP_*): New enumeration values.
12487         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12488         declarations.
12489         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12490         (unicode_joining_type): New variable.
12491         (UC_JOINING_GROUP_*): New enumeration values.
12492         (unicode_joining_group): New variable.
12493         (fill_arabicshaping, joining_type_as_c_identifier,
12494         output_joining_type_test, output_joining_type,
12495         joining_group_as_c_identifier, output_joining_group_test,
12496         output_joining_group): New functions.
12497         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12498         fill_arabicshaping and output_joining_type_test, output_joining_type,
12499         output_joining_group_test, output_joining_group.
12500         Reported by Simon Josefsson.
12501
12502 2011-03-21  Jim Meyering  <meyering@redhat.com>
12503
12504         strftime: fix a bug in yesterday's change
12505         * lib/strftime.c (add): Accommodate width's initial value of -1.
12506         Otherwise, nstrftime would copy uninitialized data into
12507         the result buffer.
12508
12509 2011-03-21  Jim Meyering  <meyering@redhat.com>
12510
12511         tests: add strftime-tests module
12512         * tests/test-strftime.c: New file.
12513         * modules/strftime-tests: New module.
12514
12515 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12516
12517         strftime: don't assume a byte count fits in 'int'
12518         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12519         found this problem by static analysis, using gcc -Wstrict-overflow
12520         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12521         on an integer overflow having undefined behavior, but it turns out
12522         that the argument is a size, which might not fit in 'int' anyway,
12523
12524 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12525
12526         stdio: don't require ignore_value around fwrite
12527
12528         This patch works around libc bug 11959
12529         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12530         Without this patch, applications must often write
12531         ignore_value (fwrite (...)) even though the ignore_value is
12532         not helpful here.  It's common to write many objects, using
12533         fwrite/printf/etc., and then use ferror to detect output error.
12534
12535         I considered making this patch optional, but decided against it,
12536         because libc is obviously being inconsistent here: there is no
12537         reason libc should insist that user code must inspect fwrite
12538         return's value without also insisting that it inspect printf's,
12539         putchar's, etc.  If user code wants to have a strict style where
12540         all these functions' values are checked (so that ferror need not
12541         be checked), we could add support for that style in a new gnulib
12542         module, but in the meantime it's better to be consistent and to
12543         support common usage.
12544
12545         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12546         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12547         that we are compiling in checking mode, and if not C++, and
12548         if not already wrapping fwrite for some other reason.
12549         (fwrite): #define to rpl_fwrite if the latter is defined.
12550
12551 2011-03-20  Bruno Haible  <bruno@clisp.org>
12552
12553         verror: Fix compilation error introduced on 2011-02-13.
12554         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12555         instead of __attribute__.
12556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12557
12558 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12559             Bruno Haible  <bruno@clisp.org>
12560
12561         socklen: do not depend on sys_socket
12562         While trying to modify Emacs to use gnulib's socklen module,
12563         I discovered a circular dependency: socklen depends on sys_socket
12564         and vice versa.  Emacs can use socklen, but it does not need
12565         sys_socket because it has its own substitute for sys/socket.h.
12566         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12567         gl_TYPE_SOCKLEN_T.
12568         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12569         gl_PREREQ_SYS_H_SOCKET.
12570         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12571         gl_PREREQ_SYS_H_SOCKET.
12572         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12573         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12574         * modules/socklen (Depends-on): Do not depend on sys_socket.
12575         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12576
12577 2011-03-20  Jim Meyering  <meyering@redhat.com>
12578
12579         maint.mk: sort file names *after* new transformation
12580         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12581         prefix would have led to an unwarranted failure in GNU parted.
12582         Sort after that transformation.
12583
12584 2011-03-19  Jim Meyering  <meyering@redhat.com>
12585
12586         maint.mk: fix po-file syntax-check rule
12587         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12588         Patch by Bruno Haible.
12589
12590 2011-03-19  Bruno Haible  <bruno@clisp.org>
12591
12592         socklen: Update comment.
12593         * m4/socklen.m4: Update comment about platforms.
12594
12595 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12596             Bruno Haible  <bruno@clisp.org>
12597
12598         inet_ntop, inet_pton: Simplify.
12599         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12600         documented to provide socklen_t and we already depend on sys_socket.
12601         * modules/inet_pton (Depends-on): Likewise.
12602         * lib/arpa_inet.in.h: Adjust comment.
12603
12604 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12605             Bruno Haible  <bruno@clisp.org>
12606
12607         netdb: Simplify.
12608         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12609         documented to provide socklen_t and we already depend on sys_socket.
12610         * lib/netdb.in.h: Adjust comment.
12611
12612 2011-03-19  Bruno Haible  <bruno@clisp.org>
12613
12614         sys_socket, netdb: Document problem with socklen_t.
12615         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12616         platforms.
12617         * doc/posix-headers/netdb.texi: Likewise.
12618
12619 2011-03-18  Eric Blake  <eblake@redhat.com>
12620
12621         maint.mk: let po check work in VPATH build
12622         * top/maint.mk (po_file): Allow cfg.mk override.
12623         (sc_po_check): Allow VPATH use.
12624         Reported by Jiri Denemark.
12625
12626 2011-03-16  Jim Meyering  <meyering@redhat.com>
12627
12628         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12629         Before, you would have had to create one .x-sc_ file per rule in order
12630         to exempt offending files.  Now, you may instead use a Make variable --
12631         usually defined in cfg.mk -- whose name identifies the affected rule.
12632         * top/maint.mk (_sc_excl): Define.
12633         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12634         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12635
12636 2011-03-13  Bruno Haible  <bruno@clisp.org>
12637
12638         ignore-value tests: Avoid warnings.
12639         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12640         empty for gcc < 3.4.
12641
12642 2011-03-13  Bruno Haible  <bruno@clisp.org>
12643
12644         passfd: Fix link error on Solaris.
12645         * modules/passfd (Description): Correct.
12646         (Depends-on): Add socketlib.
12647         (Link): New section.
12648         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12649
12650 2011-03-13  Bruno Haible  <bruno@clisp.org>
12651
12652         passfd: Fix link error on AIX 5.2.
12653         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12654
12655 2011-03-13  Bruno Haible  <bruno@clisp.org>
12656
12657         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12658         * lib/sys_socket.in.h: Include <stddef.h>.
12659         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12660         CMSG_FIRSTHDR. Remove unused variable.
12661
12662 2011-03-13  Bruno Haible  <bruno@clisp.org>
12663
12664         passfd: Fix compilation error on OpenBSD.
12665         * lib/passfd.c: Include <sys/uio.h>.
12666
12667 2011-03-13  Bruno Haible  <bruno@clisp.org>
12668
12669         passfd test: Fix warnings.
12670         * tests/test-passfd.c: Include <sys/wait.h>.
12671         (main): Fix typo.
12672
12673 2011-03-13  Bruno Haible  <bruno@clisp.org>
12674
12675         passfd module, part 4, tweaks.
12676         * tests/test-passfd.c: Reorder includes.
12677         (main): Fix perror and printf calls.
12678
12679 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12680
12681         passfd module, part 4.
12682         * modules/passfd-tests: New file.
12683         * tests/test-passfd.c: New file.
12684
12685 2011-03-13  Jim Meyering  <meyering@redhat.com>
12686
12687         Makefile: rely on GNU make; derive syntax-check rule names
12688         Rather than requiring that each sc_ rule be listed as a dependent
12689         of "check", use features of GNU make to derive the list.
12690         * Makefile (syntax-check-rules): Define.
12691         (check): Depend on the new variable, not the hard-coded list.
12692
12693 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12694             Bruno Haible  <bruno@clisp.org>
12695
12696         passfd module, part 3.
12697         * lib/passfd.h (recvfd): Add a flags argument.
12698         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12699         (recvfd): Add a flags argument.
12700         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12701         exists.
12702         * modules/passfd (Depends-on): Add cloexec.
12703         Suggested by Eric Blake.
12704
12705 2011-03-13  Bruno Haible  <bruno@clisp.org>
12706
12707         passfd module, part 2, tweaks.
12708         * modules/passfd (Files): Reorder.
12709         (Depends-on): Remove errno.
12710         (Include): Remove <sys/socket.h>, <sys/un.h>.
12711         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12712         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12713         specification header. Include <sys/socket.h> always. Don't include
12714         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12715         (sendfd): Clarify that it sets errno when it fails.
12716         (recvfd): Fix specification.
12717
12718 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12719
12720         passfd module, part 2.
12721         * modules/passfd: New file.
12722         * lib/passfd.h: New file.
12723         * lib/passfd.c: New file.
12724
12725 2011-03-12  Bruno Haible  <bruno@clisp.org>
12726
12727         wcswidth, mbswidth: Avoid integer overflow.
12728         * lib/wcswidth.c: Include <limits.h>.
12729         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12730         * lib/mbswidth.c: Include <limits.h>.
12731         (mbsnwidth): Avoid 'int' overflow.
12732         Reported by Jim Meyering.
12733
12734 2011-03-12  Bruno Haible  <bruno@clisp.org>
12735
12736         futimens, utimensat: Avoid endless recursion on Solaris 10.
12737         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12738         Solaris.
12739         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12740         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12741
12742 2011-03-11  Jim Meyering  <meyering@redhat.com>
12743
12744         maint.mk: relax a regexp to accommodate other formatting styles
12745         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12746         between "ngettext" and the following "(".
12747
12748 2011-03-11  Pádraig Brady <P@draigBrady.com>
12749
12750         maint.mk: suppress a false positive warning
12751         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12752         diagnostics are marked with ngettext.
12753
12754 2011-03-10  Eric Blake  <eblake@redhat.com>
12755
12756         wchar: add explicit dependencies, for Tru64
12757         * modules/mbmemcasecoll (Depends-on): Add wchar.
12758         * modules/mbtowc (Depends-on): Likewise.
12759         * modules/vasnprintf (Depends-on): Likewise.
12760         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12761         * modules/wctomb (Depends-on): Likewise.
12762         Reported by Peter O'Gorman.
12763
12764 2011-03-08  Bruno Haible  <bruno@clisp.org>
12765
12766         passfd module, part 1, tweaks.
12767         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12768         Improve indentation. Improve AC_MSG_CHECKING messages.
12769         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12770         gl_SOCKET_FAMILIES.
12771
12772 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12773
12774         passfd module, part 1.
12775         * m4/afunix.m4: New file.
12776         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12777         sockets.
12778
12779 2011-03-08  Bruno Haible  <bruno@clisp.org>
12780
12781         regex-quote: New API.
12782         * lib/regex-quote.h: Include <stdbool.h>.
12783         (struct regex_quote_spec): New type.
12784         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12785         New declarations.
12786         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12787         'const struct regex_quote_spec *' argument.
12788         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12789         (pcre_special): New constant.
12790         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12791         New functions.
12792         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12793         'const struct regex_quote_spec *' argument.
12794         * modules/regex-quote (Depends-on): Add stdbool.
12795         * tests/test-regex-quote.c (check): Update for new API. Add test for
12796         anchored results.
12797         * NEWS: Mention the API change.
12798         Reported by Reuben Thomas and Eric Blake.
12799
12800 2011-03-06  Bruno Haible  <bruno@clisp.org>
12801
12802         regex-quote: Fix creation of POSIX extended regular expressions.
12803         * lib/regex-quote.c (ere_special): Add grouping and alternation
12804         operators.
12805
12806 2011-03-05  Bruno Haible  <bruno@clisp.org>
12807
12808         doc: Improve doc regarding autopoint vs. gnulib.
12809         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12810         disable autopoint while running autoreconf.
12811         Suggested by Ralf Wildenhues.
12812
12813 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12814
12815         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12816         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12817
12818 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12819
12820         parse-duration: remove xalloc.h dependency
12821         * lib/parse-duration.c (parse_period): handle NULL return from
12822         strdup instead of calling xstrdup().
12823         * modules/parse-duration: remove "xalloc" dependency
12824
12825 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12826
12827         bootstrap: honor m4_base when running aclocal
12828         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12829
12830 2011-03-02  Jim Meyering  <meyering@redhat.com>
12831
12832         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12833         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12834         on request from Matt Booth.
12835
12836 2011-03-01  Eric Blake  <eblake@redhat.com>
12837
12838         test-link: work on Hurd
12839         * tests/test-link.h (test_link): Hurd rejects linking directories
12840         with EISDIR instead of the POSIX-mandated EPERM.
12841
12842 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12843
12844         stdio: simplify by moving files to printf-posix, sigpipe
12845         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12846         since this symbol is needed only if printf is replaced.
12847         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12848         Require gl_ASM_SYMBOL_PREFIX.
12849         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12850         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12851         (Depends-on): Add 'raise'.
12852         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12853         * modules/stdio (Files): Remove lib/stdio-write.c,
12854         m4/asm-underscore.m4.
12855         (Depends-on): Remove 'raise'.
12856
12857         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12858         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12859         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12860         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12861
12862 2011-02-28  Bruno Haible  <bruno@clisp.org>
12863
12864         localcharset: Assume ANSI C behaviour of free().
12865         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12866         calling free().
12867         Suggested by Simon Josefsson <simon@josefsson.org>.
12868
12869 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12870             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12871             Bruno Haible  <bruno@clisp.org>  (tiny change)
12872
12873         On Cygwin, use /proc file system instead of win32 API.
12874         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12875         Win32 file names.
12876         (DllMain): Simplify by removing Cygwin specific code.
12877         (find_shared_library_fullname): Use Linux specific implementation also
12878         for Cygwin.
12879         (get_shared_library_fullname): Update accordingly.
12880         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12881         Win32 file names.
12882         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12883         Cygwin specific code.
12884
12885 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12886             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12887
12888         Fix OpenMP flag detection for various Fortran compilers.
12889         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12890         OpenMP-conditional compilation construct, to force compile
12891         failure with missing OpenMP flag.
12892         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12893
12894 2011-02-25  Eric Blake  <eblake@redhat.com>
12895
12896         strstr: expand test coverage
12897         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12898         compilation.
12899         * tests/test-memmem.c (main): Duplicate tests.
12900         * tests/test-strcasestr.c (main): Likewise.
12901         * tests/test-c-strcasestr.c (main): Likewise.
12902
12903 2011-02-25  Jim Meyering  <meyering@redhat.com>
12904
12905         maint.mk: detect missing-NL-at-EOF, too
12906         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12907         it also detects when a file lacks a newline at EOF.
12908         (require_exactly_one_NL_at_EOF_): Renamed from
12909         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12910         since people may well have .x-sc_... file names tied to the
12911         existing name.  Suggested by Eric Blake.
12912
12913 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12914
12915         dirname: move m4/dos.m4 functionality into lib/dosname.h
12916
12917         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12918         extracts symbols from it, puts them into config.h; but it's much
12919         easier to use the symbols directly.  filename.h already does this,
12920         but it disagrees with dos.m4 in some respects.  This patch
12921         introduces a different include file dosname.h that packages up
12922         dos.m4, and then later we can work on merging filename.h and
12923         dosname.h.  Applications that need only the easy-to-configure
12924         symbols should consider including dosname.h rather than dirname.h.
12925         * NEWS: Mention incompatible changes.
12926         * m4/dos.m4: Remove.
12927         * lib/dosname.h, modules/dosname: New files.
12928         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12929         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12930         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12931         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12932         Include dosname.h, not dirname.h.
12933         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12934         Include dosname.h, for definitions of symbols like ISSLASH
12935         that used to be in config.h.
12936         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12937         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12938         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12939         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12940         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12941         * modules/rmdir (Files): Likewise.
12942         * modules/stat (Files): Likewise.
12943         * modules/unlink (Files): Likewise.
12944         * modules/dirname-lgpl (Depends-on): Add dosname.
12945         * modules/lstat (Depends-on): Likewise.
12946         * modules/openat (Depends-on): Likewise.
12947         * modules/rmdir (Depends-on): Likewise.
12948         * modules/savewd (Depends-on): Likewise.
12949         * modules/stat (Depends-on): Likewise.
12950         * modules/unlink (Depends-on): Likewise.
12951         * modules/openat (Depends-on): Remove dirname-lgpl.
12952         * modules/savewd (Depends-on): Likewise.
12953         * tests/test-dirname.c: Do not use removed symbols like
12954         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12955         the remaining symbols, e.g., ISSLASH ('\\').
12956
12957 2011-02-25  Eric Blake  <eblake@redhat.com>
12958
12959         strstr: revert patches that introduced bug and pessimization
12960         * lib/str-two-way.h: Add another reference.
12961         (two_way_short_needle, two_way_long_needle): Revert changes from
12962         2011-02-24; they pessimize search speed.
12963         (critical_factorization): Partially revert changes from
12964         2010-06-22; they violate the requirement that the left half of the
12965         needle be smaller than the period of the needle.
12966
12967 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12968
12969         filenamecat: remove unnecessary dependency on dirname-lgpl
12970         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12971         is no direct dependency, just an indirect one via filenamecat-lgpl.
12972
12973         remove: remove unnecessary use of m4/dos.m4
12974         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12975         * modules/remove (FILES): Remove m4/dos.m4.
12976
12977         * lib/openat-proc.c: Don't include dirname.h; not needed.
12978
12979         backupfile: remove unnecessary use of m4/dos.m4
12980         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12981         of its symbols are used by the backupfile code.  backupfile.c does
12982         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12983         for the rare case of programs that want all their backup file
12984         names to live within 8+3 limits, and dos.m4 doesn't address that.
12985         * modules/backupfile (Files): Remove m4/dos.m4.
12986
12987 2011-02-24  Jim Meyering  <meyering@redhat.com>
12988
12989         strstr: fix a bug whereby strstr would mistakenly return NULL
12990         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12991         in period calculation.
12992         (two_way_long_needle): Likewise.
12993         The original problem was reported by Mike Stump in
12994         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12995         Ralf Wildenhues provided the short needle and haystack.
12996         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12997         Add a more involved test to trigger the bug in two_way_long_needle.
12998
12999 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13000
13001         gnulib-tool: remove use of bold display in help screen
13002         * gnulib-tool (func_usage): Do not use bold display anymore in the
13003         help screen.  That was just meant to be a temporary emphasis for a
13004         backward-incompatible change.
13005
13006 2011-02-23  Bruno Haible  <bruno@clisp.org>
13007
13008         Fix misindentation of preprocessor directives.
13009         * lib/argp-namefrob.h: Reindent preprocessor directives.
13010         * lib/getopt_int.h (struct _getopt_data): Likewise.
13011         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13012         * lib/vasnprintf.c (decode_long_double): Likewise.
13013         * tests/test-argmatch.c: Insert blank lines, for clarity.
13014         * tests/test-exclude.c: Likewise.
13015
13016 2011-02-22  Bruno Haible  <bruno@clisp.org>
13017
13018         ioctl: Fix for MacOS X in 64-bit mode.
13019         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13020         value.
13021         Suggested by Eric Blake.
13022         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13023
13024 2011-02-22  Jim Meyering  <meyering@redhat.com>
13025
13026         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13027         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13028         in lib/.
13029
13030 2011-02-22  Eric Blake  <eblake@redhat.com>
13031
13032         maint: avoid any CDPATH issue
13033         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13034
13035         maint: adjust cpp indentation for my modules, as well
13036         * Makefile (sc_cpp_indent_check): Add my name.
13037         * lib/fbufmode.c: Filter through cppi.
13038         * lib/fpurge.c: Likewise.
13039         * lib/freadable.c: Likewise.
13040         * lib/freading.c: Likewise.
13041         * lib/fwritable.c: Likewise.
13042         * lib/fwriting.c: Likewise.
13043         * lib/sigaction.c: Likewise.
13044
13045 2011-02-22  Jim Meyering  <meyering@redhat.com>
13046
13047         maint: adjust cpp indentation to reflect nesting depth
13048         I.e., in a block of code that begins with an unnested "#if",
13049         put one space between the "#" in column 1 and following token.
13050         For example,
13051         -#include <sys/vfs.h>
13052         +# include <sys/vfs.h>
13053         Do this only in .c files that are part of a module I maintain.
13054         * lib/linkat.c: Filter through cppi.
13055         * lib/nanosleep.c: Likewise.
13056         * lib/openat.c: Likewise.
13057         * lib/openat-die.c: Likewise.
13058         * lib/dup3.c: Likewise.
13059         * lib/fchownat.c: Likewise.
13060         * lib/flock.c: Likewise.
13061         * lib/fsync.c: Likewise.
13062         * lib/fts.c: Likewise.
13063         * lib/getpass.c: Likewise.
13064         * lib/gettimeofday.c: Likewise.
13065         * lib/userspec.c: Likewise.
13066         * Makefile (sc_cpp_indent_check): New rule, to check this.
13067
13068 2011-02-22  Bruno Haible  <bruno@clisp.org>
13069
13070         New module 'wctomb'.
13071         * lib/stdlib.in.h (wctomb): New declaration.
13072         * lib/wctomb.c: New file.
13073         * lib/wctomb-impl.h: New file.
13074         * m4/wctomb.m4: New file.
13075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13076         REPLACE_WCTOMB.
13077         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13078         REPLACE_WCTOMB.
13079         * modules/wctomb: New file.
13080         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13081         * doc/posix-functions/wctomb.texi: Mention the new module.
13082         * modules/wctob (Depends-on): Add wctomb.
13083
13084 2011-02-22  Bruno Haible  <bruno@clisp.org>
13085
13086         New module 'mbtowc'.
13087         * lib/stdlib.in.h (mbtowc): New declaration.
13088         * lib/mbtowc.c: New file.
13089         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13090         * m4/mbtowc.m4: New file.
13091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13092         REPLACE_MBTOWC.
13093         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13094         REPLACE_MBTOWC.
13095         * modules/mbtowc: New file.
13096         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13097         * doc/posix-functions/mbtowc.texi: Mention the new module.
13098         * modules/btowc (Depends-on): Add mbtowc.
13099
13100 2011-02-22  Bruno Haible  <bruno@clisp.org>
13101
13102         wcrtomb: Add more tests for native Windows platforms.
13103         * tests/test-wcrtomb-w32-1.sh: New file.
13104         * tests/test-wcrtomb-w32-2.sh: New file.
13105         * tests/test-wcrtomb-w32-3.sh: New file.
13106         * tests/test-wcrtomb-w32-4.sh: New file.
13107         * tests/test-wcrtomb-w32-5.sh: New file.
13108         * tests/test-wcrtomb-w32.c: New file.
13109         * modules/wcrtomb-tests (Files): Add them.
13110         (Makefile.am): Arrange to run these tests.
13111         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13112         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13113
13114 2011-02-20  Bruno Haible  <bruno@clisp.org>
13115
13116         wcrtomb: Enhance test.
13117         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13118
13119 2011-02-20  Bruno Haible  <bruno@clisp.org>
13120
13121         mbrtowc: Tiny optimization.
13122         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13123
13124 2011-02-20  Jim Meyering  <meyering@redhat.com>
13125
13126         test-exclude.c: remove unmatched #endif
13127         * tests/test-exclude.c: Remove stray #endif, left over from
13128         the change of a week ago.
13129
13130 2011-02-19  Jim Meyering  <meyering@redhat.com>
13131
13132         git-version-gen: skip "-dirty" check when appropriate
13133         * build-aux/git-version-gen: Don't run any git commands when the
13134         version string comes from .tarball-version.  Prior to this, we
13135         would run git update-index --refresh even from a just-unpacked
13136         tarball directory, and that could affect a .git/ directory in a
13137         parent of the build directory.  Reported by Mike Frysinger.
13138
13139 2011-02-19  Bruno Haible  <bruno@clisp.org>
13140
13141         unictype/property-byname: Reduce the size of the 'data' segment.
13142         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13143
13144 2011-02-19  Bruno Haible  <bruno@clisp.org>
13145
13146         unictype/scripts: Reduce the size of the 'data' segment.
13147         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13148         '%pic'.
13149         * lib/unictype/scripts_byname.gperf: Regenerated.
13150
13151 2011-02-19  Bruno Haible  <bruno@clisp.org>
13152
13153         stdint: Update documentation.
13154         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13155
13156 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13157
13158         stdint: omit redundant check for wchar.h
13159         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13160         always tests whether wchar.h exists, so remove the now-redundant test.
13161
13162 2011-02-18  Bruno Haible  <bruno@clisp.org>
13163
13164         stdint: Cut dependency to module 'wchar'.
13165         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13166         include the necessary prerequisites.
13167         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13168         * modules/stdint (Depends-on): Remove wchar.
13169         (Makefile.am): Substitute HAVE_WCHAR_H.
13170         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13171
13172 2011-02-18  Eric Blake  <eblake@redhat.com>
13173
13174         longlong: skip, rather than fail, on cross-compilation
13175         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13176         when cross-compiling; regression from 2011-02-16.
13177
13178 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13179
13180         * NEWS: Mention 2011-02-08 change to stdlib.
13181
13182 2011-02-17  Bruno Haible  <bruno@clisp.org>
13183
13184         getloadavg: Add comments about platforms.
13185         * m4/getloadavg.m4: Add comment.
13186         * lib/getloadavg.c: Likewise.
13187
13188 2011-02-17  Bruno Haible  <bruno@clisp.org>
13189
13190         getloadavg: Fix link error on Solaris 2.6.
13191         * modules/getloadavg (Link): New section.
13192         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13193         linking test-getloadavg.
13194         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13195         getloadavg.
13196
13197 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13198
13199         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13200         It was 'int', but this doesn't match the IRIX 6.5 manual.
13201         Suggested by Bruno Haible in
13202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13203
13204 2011-02-17  Bruno Haible  <bruno@clisp.org>
13205
13206         havelib: Fix comments.
13207         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13208         change.
13209
13210 2011-02-17  Bruno Haible  <bruno@clisp.org>
13211
13212         havelib: Update config.rpath.
13213         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13214
13215 2011-02-17  Bruno Haible  <bruno@clisp.org>
13216
13217         getloadavg test: Add some plausibility checks.
13218         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13219         is improbable.
13220
13221 2011-02-16  Eric Blake  <eblake@redhat.com>
13222
13223         maintainer-makefile: make syntax-check a no-op from tarballs
13224         * top/maint.mk (no-vc-detected): New rule.
13225         (local-checks-available): Use it to avoid hanging if someone tries
13226         'make syntax-check' from a tarball.  Also append to any non-syntax
13227         checks already defined in cfg.mk.
13228
13229 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13230
13231         longlong: tune, particularly for common case of c99
13232
13233         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13234         or running anything if c99, or if unsigned long long int does not
13235         work.  In either case, we know the answer without further tests.
13236         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13237         it at most once, and use its results for both long long int and
13238         unsigned long long int.  This is more likely to be efficient in
13239         the common case where the program wants to check for both long
13240         long int and unsigned long long int.
13241         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13242         since the answer is already known.
13243
13244 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13245
13246         getloadavg: set errno
13247         * lib/getloadavg.c: Set errno when returning -1.  If no other
13248         error number looks appropriate, set it to ENOSYS if the getloadavg
13249         looks like it can't possibly ever work, ENOTSUP otherwise.
13250         Suggested by Bruno Haible in
13251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13252
13253         getloadavg: trim unused parts and speed up 'configure'
13254         * NEWS: Document this.
13255         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13256         always compiled if getloadavg is absent.
13257         Move test code to ...
13258         * tests/test-getloadavg.c: New file, containing previous
13259         contents of test from lib/getloadavg.c.  It also contains
13260         suggestions by Bruno Haible in
13261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13262         * modules/getloadavg-tests: New file.
13263         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13264         Do tests in the same order as they're needed for getloadavg.c.
13265         Omit setgid-related tests that generate symbols KMEM_GROUP,
13266         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13267         Do only the tests that are needed to see whether the system has
13268         getloadavg, moving the other tests into ...
13269         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13270         NLIST_NAME_UNION; nobody should be using it.  Do not define
13271         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13272         relevant, as the user of this module shouldn't care how getloadavg
13273         is implemented.
13274
13275         getloadavg: omit unused var
13276         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13277
13278 2011-02-15  Jim Meyering  <meyering@redhat.com>
13279
13280         doc: update users.txt
13281         * users.txt: Update iwhd's URL.
13282
13283 2011-02-13  Bruno Haible  <bruno@clisp.org>
13284
13285         Consistent macro naming for macros that use GCC __attribute__.
13286         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13287         _ATTRIBUTE_NONNULL_.
13288         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13289         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13290         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13291         ATTRIBUTE_DEPRECATED.
13292         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13293         ATTRIBUTE_NORETURN.
13294         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13295         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13296         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13297         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13298         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13299         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13300         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13301         ATTRIBUTE_SENTINEL.
13302         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13303         ATTRIBUTE_RETURN_CHECK.
13304         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13305         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13306         ATTRIBUTE_NORETURN.
13307         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13308         Reported by Paul Eggert.
13309
13310 2011-02-13  Bruno Haible  <bruno@clisp.org>
13311
13312         Don't interfere with a program's definition of __attribute__.
13313         * lib/argp.h (__attribute__): Remove definition.
13314         (_GL_ATTRIBUTE_FORMAT): New macro.
13315         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13316         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13317         (_GL_ATTRIBUTE_FORMAT): New macro.
13318         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13319         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13320         GCC 3 or newer.
13321         * lib/error.h (__attribute__): Remove definition.
13322         (_GL_ATTRIBUTE_FORMAT): New macro.
13323         (error, error_at_line): Use it.
13324         * lib/hash.h (__attribute__): Remove definition.
13325         (ATTRIBUTE_WUR): Update definition. Define always.
13326         * lib/openat.h (__attribute__): Remove definition.
13327         (ATTRIBUTE_NORETURN): Update definition. Define always.
13328         * lib/sigpipe-die.h (__attribute__): Remove definition.
13329         (ATTRIBUTE_NORETURN): Update definition. Define always.
13330         * lib/vasnprintf.h (__attribute__): Remove definition.
13331         (_GL_ATTRIBUTE_FORMAT): New macro.
13332         (asnprintf, vasnprintf): Use it.
13333         * lib/xalloc.h (__attribute__): Remove definition.
13334         (ATTRIBUTE_NORETURN): Update definition. Define always.
13335         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13336         * lib/xmemdup0.h (__attribute__): Remove definition.
13337         (ATTRIBUTE_NORETURN): Update definition. Define always.
13338         * lib/xprintf.h (__attribute__): Remove definition.
13339         (_GL_ATTRIBUTE_FORMAT): New macro.
13340         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13341         * lib/xstrtol.h (__attribute__): Remove definition.
13342         (ATTRIBUTE_NORETURN): Update definition. Define always.
13343         * lib/xvasprintf.h (__attribute__): Remove definition.
13344         (_GL_ATTRIBUTE_FORMAT): New macro.
13345         (xasprintf, xvasprintf): Use it.
13346         * tests/test-argmatch.c (__attribute__): Remove definition.
13347         (ATTRIBUTE_NORETURN): Update definition. Define always.
13348         * tests/test-exclude.c (__attribute__): Remove definition.
13349         (ATTRIBUTE_NORETURN): Update definition. Define always.
13350         Reported by Paul Eggert.
13351
13352 2011-02-13  Bruno Haible  <bruno@clisp.org>
13353
13354         mbrtowc: Add more tests for native Windows platforms.
13355         * tests/test-mbrtowc-w32-1.sh: New file.
13356         * tests/test-mbrtowc-w32-2.sh: New file.
13357         * tests/test-mbrtowc-w32-3.sh: New file.
13358         * tests/test-mbrtowc-w32-4.sh: New file.
13359         * tests/test-mbrtowc-w32-5.sh: New file.
13360         * tests/test-mbrtowc-w32.c: New file.
13361         * modules/mbrtowc-tests (Files): Add them.
13362         (Makefile.am): Arrange to run these tests.
13363         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13364         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13365
13366 2011-02-13  Bruno Haible  <bruno@clisp.org>
13367
13368         mbrtowc: Work around native Windows bug.
13369         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13370         guess when no suitable locale for testing was found.
13371         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13372
13373 2011-02-13  Bruno Haible  <bruno@clisp.org>
13374
13375         mbsinit: Work around mingw bug.
13376         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13377         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13378         Windows.
13379         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13380
13381 2011-02-13  Bruno Haible  <bruno@clisp.org>
13382
13383         mbsinit: Don't crash for a NULL argument.
13384         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13385         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13386
13387 2011-02-13  Bruno Haible  <bruno@clisp.org>
13388
13389         Don't interfere with a program's definition of __attribute__.
13390         * lib/stdio.in.h (__attribute__): Remove definition.
13391         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13392         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13393         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13394         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13395         * lib/string.in.h (__attribute__): Remove definition.
13396         Reported by Paul Eggert.
13397
13398 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13399
13400         stdlib: don't get in the way of non-GCC __attribute__
13401         See thread starting at
13402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13403         Revert previous stdlib change, installing the following instead:
13404         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13405         to get in the way of a non-GCC compiler that supports __attribute__.
13406         (_GL_ATTRIBUTE_RETURN): New macro.
13407         (_Exit): Use it instead of __attribute__.
13408
13409 2011-02-12  Bruno Haible  <bruno@clisp.org>
13410
13411         quotearg test: Avoid test failure on mingw.
13412         * tests/test-quotearg.sh: Convert the locale identifier from native
13413         Windows syntax to Unix syntax.
13414
13415 2011-02-12  Bruno Haible  <bruno@clisp.org>
13416
13417         setlocale: Prefer gnulib's override over libintl's override.
13418         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13419         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13420         GNULIB_defined_setlocale is set.
13421
13422 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13423
13424         stdlib: support non-GCC __attribute__
13425
13426         Fix a serious and tricky problem encountered when attempting to
13427         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13428         5.5, but it crashed due to memory corruption on Solaris 10 with
13429         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13430         bits that are otherwise zero.  This tagging is optional inside
13431         Emacs but is preferred and is used when __attribute__ ((__aligned
13432         (8))) works, as it does with both recent-enough GCC and with Sun C
13433         5.11.  However, Sun C 5.11 is not GCC and does not #define
13434         __GNUC__ and __GNUC_MINOR__.
13435
13436         When I added the getloadavg module to Emacs, it brought in
13437         stdlib.in.h, which contained this fragment:
13438
13439            #ifndef __attribute__
13440            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13441            #  define __attribute__(Spec)   /* empty */
13442            # endif
13443            #endif
13444
13445         When files that include <stdlib.h> were compiled with Sun C 5.11,
13446         the above code disabled __attribute__ ((__aligned (8))), which
13447         caused variables to not be properly aligned, which eventually led
13448         to the pointer corruption mentioned above.  (This was a bit hard
13449         to diagnose, unfortunately.)
13450
13451         Several "#define __attribute__(X) /* empty */" code snippets need
13452         to be eradicated from Gnulib to work with non-GCC compilers that
13453         support __attribute__.  The Autoconf way to do this is to test for
13454         each kind of attribute that we want support for, and selectively
13455         enable that in source code.
13456
13457         Fix this problem just for stdlib.h, by adding a test for the
13458         __noreturn__ attribute, and change stdlib.in.h to use that test
13459         when needed.  This technique can be easily generalized to the
13460         other *.in.h files and attributes, and a similar technique can be
13461         used for *.h and *.c files.  This patch is enough to solve the
13462         problem for Emacs + getloadavg, and I thought I'd publish it for
13463         feedback before undertaking further, similar fixes in other
13464         modules.
13465
13466         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13467         because it's not needed for stdlib.h.  It merely substitutes the
13468         value directly into stdlib.h.  We may well need to #define it, or
13469         similar symbols, for other modules, but it's nice to also have an
13470         option to not #define it for applications like Emacs that do not
13471         need it.
13472
13473         * lib/stdlib.in.h (__attribute__): Do not #define.
13474         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13475         be defined only if the _Exit module is also used.
13476         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13478         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13479         platforms.
13480         * modules/_Exit (Files): Add m4/attribute.m4.
13481         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13482         * m4/attribute.m4: New file.
13483
13484 2011-02-12  Bruno Haible  <bruno@clisp.org>
13485
13486         wcsrtombs: Work around bug on native Windows.
13487         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13488         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13489         instead of len.
13490         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13491
13492 2011-02-12  Bruno Haible  <bruno@clisp.org>
13493
13494         mbsrtowcs: Work around bug on native Windows.
13495         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13496         against mingw bug.
13497         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13498
13499 2011-02-12  Bruno Haible  <bruno@clisp.org>
13500
13501         Avoid setlocale bugs in tests.
13502         * modules/btowc (Dependencies): Add setlocale.
13503         * modules/c-strcase (Dependencies): Likewise.
13504         * modules/mbmemcasecmp (Dependencies): Likewise.
13505         * modules/mbmemcasecoll (Dependencies): Likewise.
13506         * modules/mbrtowc (Dependencies): Likewise.
13507         * modules/mbscasecmp (Dependencies): Likewise.
13508         * modules/mbscasestr (Dependencies): Likewise.
13509         * modules/mbschr (Dependencies): Likewise.
13510         * modules/mbscspn (Dependencies): Likewise.
13511         * modules/mbsinit (Dependencies): Likewise.
13512         * modules/mbsncasecmp (Dependencies): Likewise.
13513         * modules/mbsnrtowcs (Dependencies): Likewise.
13514         * modules/mbspbrk (Dependencies): Likewise.
13515         * modules/mbspcasecmp (Dependencies): Likewise.
13516         * modules/mbsrchr (Dependencies): Likewise.
13517         * modules/mbsrtowcs (Dependencies): Likewise.
13518         * modules/mbsspn (Dependencies): Likewise.
13519         * modules/mbsstr (Dependencies): Likewise.
13520         * modules/nl_langinfo (Dependencies): Likewise.
13521         * modules/quotearg (Dependencies): Likewise.
13522         * modules/unicase/locale-language (Dependencies): Likewise.
13523         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13524         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13525         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13526         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13527         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13528         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13529         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13530         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13531         * modules/vasnprintf-posix (Dependencies): Likewise.
13532         * modules/wcrtomb (Dependencies): Likewise.
13533         * modules/wcsnrtombs (Dependencies): Likewise.
13534         * modules/wcsrtombs (Dependencies): Likewise.
13535
13536 2011-02-12  Bruno Haible  <bruno@clisp.org>
13537
13538         setlocale: Workaround native Windows bug.
13539         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13540         succeeds but sets LC_CTYPE to "C", report a failure.
13541         * tests/test-setlocale2.sh: New file.
13542         * tests/test-setlocale2.c: New file.
13543         * modules/setlocale-tests (Files): Add the new files.
13544         (Makefile.am): Enable test-setlocale2.sh test.
13545         * doc/posix-functions/setlocale.texi: Mention workaround.
13546
13547 2011-02-11  Bruno Haible  <bruno@clisp.org>
13548
13549         Tests for module 'setlocale'.
13550         * modules/setlocale-tests: New file.
13551         * tests/test-setlocale1.sh: New file.
13552         * tests/test-setlocale1.c: New file.
13553
13554         New module 'setlocale'.
13555         * lib/locale.in.h (setlocale): New declaration.
13556         * lib/setlocale.c: New file, based on
13557         gettext/gettext-runtime/intl/setlocale.c.
13558         * m4/setlocale.m4: New file.
13559         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13560         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13561         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13562         REPLACE_SETLOCALE.
13563         * modules/setlocale: New file.
13564         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13565         * doc/posix-functions/setlocale.texi: Mention the new module.
13566
13567 2011-02-11  Bruno Haible  <bruno@clisp.org>
13568
13569         Prepare for locale dependent tests on mingw.
13570         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13571         because it has the wrong locale encoding.
13572         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13573         French_France.1252 instead of "fr".
13574         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13575         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13576         because it has the wrong locale encoding.
13577         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13578         native Windows, try Turkish_Turkey.65001.
13579         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13580         Chinese_China.54936.
13581
13582         Prepare for locale dependent tests on mingw.
13583         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13584         differently.
13585         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13586         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13587         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13588         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13589
13590 2011-02-11  Eric Blake  <eblake@redhat.com>
13591
13592         strptime: avoid compiler warnings
13593         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13594         compiler warnings about dead code.
13595         Reported by Daniel P. Berrange.
13596
13597 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13598
13599         doc: update users.txt
13600         * users.txt: Add rcs.
13601
13602 2011-02-10  John W. Eaton  <jwe@gnu.org>
13603
13604         doc: update users.txt
13605         * users.txt: Add octave.
13606
13607 2011-02-10  Jim Meyering  <meyering@redhat.com>
13608
13609         doc: update users.txt
13610         * users.txt: Add iwhd.
13611
13612 2011-02-09  Bruno Haible  <bruno@clisp.org>
13613
13614         gnulib-tool: Make copyright notice adjustment more robust.
13615         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13616         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13617         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13618         License".
13619         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13620
13621 2011-02-06  Bruno Haible  <bruno@clisp.org>
13622
13623         New module 'towctrans'.
13624         * modules/towctrans: New file.
13625         * lib/wctype.in.h (towctrans): New declaration.
13626         * lib/towctrans.c: New file.
13627         * lib/towctrans-impl.h: New file.
13628         * m4/towctrans.m4: New file.
13629         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13630         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13631         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13632         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13633         * doc/posix-functions/towctrans.texi: Mention the new module.
13634
13635 2011-02-06  Bruno Haible  <bruno@clisp.org>
13636
13637         New module 'wctrans'.
13638         * modules/wctrans: New file.
13639         * lib/wctype.in.h (wctrans): New declaration.
13640         * lib/wctrans.c: New file.
13641         * lib/wctrans-impl.h: New file.
13642         * m4/wctrans.m4: New file.
13643         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13644         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13645         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13646         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13647         * doc/posix-functions/wctrans.texi: Mention the new module.
13648
13649 2011-02-06  Bruno Haible  <bruno@clisp.org>
13650
13651         New module 'iswctype'.
13652         * modules/iswctype: New file.
13653         * lib/wctype.in.h (iswctype): New declaration.
13654         * lib/iswctype.c: New file.
13655         * lib/iswctype-impl.h: New file.
13656         * m4/iswctype.m4: New file.
13657         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13658         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13659         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13660         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13661         * doc/posix-functions/iswctype.texi: Mention the new module and the
13662         HP-UX 11.00 problem.
13663
13664 2011-02-06  Bruno Haible  <bruno@clisp.org>
13665
13666         New module 'wctype'.
13667         * modules/wctype: Change to represent the wctype() substitute.
13668         * lib/wctype.in.h (wctype): New declaration.
13669         * lib/wctype.c: New file.
13670         * lib/wctype-impl.h: New file.
13671         * m4/wctype.m4: New file.
13672         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13673         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13674         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13675         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13676         * doc/posix-functions/wctype.texi: Mention the new module and the
13677         HP-UX 11.00 problem.
13678
13679 2011-02-06  Bruno Haible  <bruno@clisp.org>
13680
13681         wctype-h: Ensure wctype_t and wctrans_t are defined.
13682         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13683         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13684         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13685         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13686         HAVE_WCTRANS_T.
13687         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13688
13689 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13690
13691         flock: fix license typo
13692
13693         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13694         omitted.
13695
13696 2011-02-08  Bruno Haible  <bruno@clisp.org>
13697
13698         Split large sed scripts, for HP-UX sed.
13699         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13700         to avoid HP-UX limit of 99 commands, in the near future.
13701         * modules/stdlib (Makefile.am): Likewise.
13702         * modules/unistd (Makefile.am): Likewise.
13703         * modules/wchar (Makefile.am): Likewise.
13704         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13705         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13706         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13707
13708 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13709             Bruno Haible  <bruno@clisp.org>
13710
13711         stdlib: improve random_r modularization
13712         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13713         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13714         you also need the random_r module to get this material right.
13715         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13716         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13717         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13718
13719 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13720
13721         stdlib: don't depend on stdint
13722         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13723         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13724         be independent of whether stdint.h is needed.
13725         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13726         here, instead of ...
13727         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13728         struct random_data should be using the random_r module, not just
13729         the stdlib module (which wouldn't make sense: what package needs
13730         just struct random_data without also needing random_r?).
13731         * modules/stdlib (Depends-on): Remove stdint.
13732
13733         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13734         See the thread rooted at
13735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13736         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13737         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13738         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13739         __VMS)); previously it was always included (via fcntl--.h).
13740         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13741         hand; this is good enough for load averages.  Also, do not use
13742         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13743         flags directly if available and don't bother otherwise.  (Packages
13744         that need the extra reliability should use the modules that define
13745         these flags on older platforms that lack them.)
13746         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13747         fcntl-safer.
13748
13749 2011-02-08  Jim Meyering  <meyering@redhat.com>
13750
13751         di-set.h, ino-map.h: add multiple-inclusion guard
13752         Technically, the guard is required only for ino-map.h, due to its
13753         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13754         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13755         * lib/ino-map.h: Likewise.
13756
13757 2011-02-06  Bruno Haible  <bruno@clisp.org>
13758
13759         iswblank: Ensure declaration on glibc systems.
13760         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13761         * modules/iswblank (Dependencies): Add 'extensions'.
13762         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13763
13764 2011-02-06  Bruno Haible  <bruno@clisp.org>
13765
13766         New module 'iswblank'.
13767         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13768         * modules/iswblank: New file.
13769         * modules/wctype-h (Files): Remove lib/iswblank.c.
13770         (Makefile.am): Substitute GNULIB_ISWBLANK.
13771         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13772         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13773         (gl_WCTYPE_H_DEFAULTS): New macro.
13774         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13775         * modules/iswblank-tests: New file.
13776         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13777         * tests/test-wctype-h.c (main): Remove iswblank tests.
13778         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13779         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13780         of 'wctype-h'.
13781         * NEWS: Mention the change.
13782         * modules/mbchar (Depends-on): Add iswblank.
13783
13784 2011-02-08  Bruno Haible  <bruno@clisp.org>
13785
13786         di-set tests: Refactor.
13787         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13788         unnecessary includes.
13789         (ASSERT): Remove macro.
13790         (main): Make C90 compliant by avoiding variable declaration after
13791         statement.
13792         * modules/di-set-tests (Files): Add tests/macros.h.
13793
13794 2011-02-08  Bruno Haible  <bruno@clisp.org>
13795
13796         ino-map tests: Refactor.
13797         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13798         unnecessary includes.
13799         (ASSERT): Remove macro.
13800         (main): Make C90 compliant by avoiding variable declaration after
13801         statement.
13802         * modules/ino-map-tests (Files): Add tests/macros.h.
13803
13804 2011-02-08  Jim Meyering  <meyering@redhat.com>
13805
13806         di-set: add "const" to a cast
13807         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13808         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13809
13810 2011-02-06  Bruno Haible  <bruno@clisp.org>
13811
13812         Rename module 'wctype' to 'wctype-h'.
13813         * modules/wctype-h: Renamed from modules/wctype.
13814         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13815         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13816         (Files, Depends-on, Makefile.am): Update.
13817         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13818         (Files, Makefile.am): Update.
13819         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13820         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13821         * doc/posix-headers/wctype.texi: Update.
13822         * doc/posix-functions/iswalnum.texi: Update.
13823         * doc/posix-functions/iswalpha.texi: Update.
13824         * doc/posix-functions/iswblank.texi: Update.
13825         * doc/posix-functions/iswcntrl.texi: Update.
13826         * doc/posix-functions/iswdigit.texi: Update.
13827         * doc/posix-functions/iswgraph.texi: Update.
13828         * doc/posix-functions/iswlower.texi: Update.
13829         * doc/posix-functions/iswprint.texi: Update.
13830         * doc/posix-functions/iswpunct.texi: Update.
13831         * doc/posix-functions/iswspace.texi: Update.
13832         * doc/posix-functions/iswupper.texi: Update.
13833         * doc/posix-functions/iswxdigit.texi: Update.
13834         * doc/posix-functions/towlower.texi: Update.
13835         * doc/posix-functions/towupper.texi: Update.
13836         * NEWS: Mention the change.
13837         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13838         * modules/mbchar (Dependencies): Likewise.
13839         * modules/mbswidth (Dependencies): Likewise.
13840         * modules/quotearg (Dependencies): Likewise.
13841         * modules/regex (Dependencies): Likewise.
13842         * modules/wcscasecmp (Dependencies): Likewise.
13843         * modules/wcsncasecmp (Dependencies): Likewise.
13844         * modules/wcwidth (Dependencies): Likewise.
13845
13846 2011-02-06  Bruno Haible  <bruno@clisp.org>
13847
13848         New module 'wcswidth'.
13849         * modules/wcswidth: New file.
13850         * lib/wchar.in.h (wcswidth): New declaration.
13851         * lib/wcswidth.c: New file.
13852         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13853         * m4/wcswidth.m4: New file.
13854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13856         REPLACE_WCSWIDTH.
13857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13858         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13859         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13860         * doc/posix-functions/wcswidth.texi: Mention the new module.
13861
13862 2011-02-06  Bruno Haible  <bruno@clisp.org>
13863
13864         New module 'wcstok'.
13865         * modules/wcstok: New file.
13866         * lib/wchar.in.h (wcstok): New declaration.
13867         * lib/wcstok.c: New file.
13868         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13869         * m4/wcstok.m4: New file.
13870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13873         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13874         * doc/posix-functions/wcstok.texi: Mention the new module.
13875
13876 2011-02-06  Bruno Haible  <bruno@clisp.org>
13877
13878         New module 'wcsstr'.
13879         * modules/wcsstr: New file.
13880         * lib/wchar.in.h (wcsstr): New declaration.
13881         * lib/wcsstr.c: New file.
13882         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13883         * m4/wcsstr.m4: New file.
13884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13887         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13888         * doc/posix-functions/wcsstr.texi: Mention the new module.
13889
13890 2011-02-06  Bruno Haible  <bruno@clisp.org>
13891
13892         New module 'wcspbrk'.
13893         * modules/wcspbrk: New file.
13894         * lib/wchar.in.h (wcspbrk): New declaration.
13895         * lib/wcspbrk.c: New file.
13896         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13897         * m4/wcspbrk.m4: New file.
13898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13901         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13902         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13903
13904 2011-02-06  Bruno Haible  <bruno@clisp.org>
13905
13906         New module 'wcsspn'.
13907         * modules/wcsspn: New file.
13908         * lib/wchar.in.h (wcsspn): New declaration.
13909         * lib/wcsspn.c: New file.
13910         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13911         * m4/wcsspn.m4: New file.
13912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13915         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13916         * doc/posix-functions/wcsspn.texi: Mention the new module.
13917
13918 2011-02-06  Bruno Haible  <bruno@clisp.org>
13919
13920         New module 'wcscspn'.
13921         * modules/wcscspn: New file.
13922         * lib/wchar.in.h (wcscspn): New declaration.
13923         * lib/wcscspn.c: New file.
13924         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13925         * m4/wcscspn.m4: New file.
13926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13929         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13930         * doc/posix-functions/wcscspn.texi: Mention the new module.
13931
13932 2011-02-06  Bruno Haible  <bruno@clisp.org>
13933
13934         New module 'wcsrchr'.
13935         * modules/wcsrchr: New file.
13936         * lib/wchar.in.h (wcsrchr): New declaration.
13937         * lib/wcsrchr.c: New file.
13938         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13939         * m4/wcsrchr.m4: New file.
13940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13943         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13944         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13945
13946 2011-02-06  Bruno Haible  <bruno@clisp.org>
13947
13948         New module 'wcschr'.
13949         * modules/wcschr: New file.
13950         * lib/wchar.in.h (wcschr): New declaration.
13951         * lib/wcschr.c: New file.
13952         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13953         * m4/wcschr.m4: New file.
13954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13957         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13958         * doc/posix-functions/wcschr.texi: Mention the new module.
13959
13960 2011-02-06  Bruno Haible  <bruno@clisp.org>
13961
13962         New module 'wcsdup'.
13963         * modules/wcsdup: New file.
13964         * lib/wchar.in.h (wcsdup): New declaration.
13965         * lib/wcsdup.c: New file.
13966         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13967         * m4/wcsdup.m4: New file.
13968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13971         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13972         * doc/posix-functions/wcsdup.texi: Mention the new module.
13973
13974 2011-02-06  Bruno Haible  <bruno@clisp.org>
13975
13976         New module 'wcsxfrm'.
13977         * modules/wcsxfrm: New file.
13978         * lib/wchar.in.h (wcsxfrm): New declaration.
13979         * lib/wcsxfrm.c: New file.
13980         * lib/wcsxfrm-impl.h: New file.
13981         * m4/wcsxfrm.m4: New file.
13982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13985         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13986         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13987
13988 2011-02-06  Bruno Haible  <bruno@clisp.org>
13989
13990         New module 'wcscoll'.
13991         * modules/wcscoll: New file.
13992         * lib/wchar.in.h (wcscoll): New declaration.
13993         * lib/wcscoll.c: New file.
13994         * lib/wcscoll-impl.h: New file.
13995         * m4/wcscoll.m4: New file.
13996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13999         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14000         * doc/posix-functions/wcscoll.texi: Mention the new module.
14001
14002 2011-02-06  Bruno Haible  <bruno@clisp.org>
14003
14004         New module 'wcsncasecmp'.
14005         * modules/wcsncasecmp: New file.
14006         * lib/wchar.in.h (wcsncasecmp): New declaration.
14007         * lib/wcsncasecmp.c: New file.
14008         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14009         * m4/wcsncasecmp.m4: New file.
14010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14013         HAVE_WCSNCASECMP.
14014         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14015         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14016
14017 2011-02-06  Bruno Haible  <bruno@clisp.org>
14018
14019         New module 'wcscasecmp'.
14020         * modules/wcscasecmp: New file.
14021         * lib/wchar.in.h (wcscasecmp): New declaration.
14022         * lib/wcscasecmp.c: New file.
14023         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14024         * m4/wcscasecmp.m4: New file.
14025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14028         HAVE_WCSCASECMP.
14029         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14030         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14031
14032 2011-02-05  Bruno Haible  <bruno@clisp.org>
14033
14034         New module 'wcsncmp'.
14035         * modules/wcsncmp: New file.
14036         * lib/wchar.in.h (wcsncmp): New declaration.
14037         * lib/wcsncmp.c: New file.
14038         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14039         * m4/wcsncmp.m4: New file.
14040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14043         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14044         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14045
14046 2011-02-05  Bruno Haible  <bruno@clisp.org>
14047
14048         New module 'wcscmp'.
14049         * modules/wcscmp: New file.
14050         * lib/wchar.in.h (wcscmp): New declaration.
14051         * lib/wcscmp.c: New file.
14052         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14053         * m4/wcscmp.m4: New file.
14054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14057         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14058         * doc/posix-functions/wcscmp.texi: Mention the new module.
14059
14060 2011-02-05  Bruno Haible  <bruno@clisp.org>
14061
14062         New module 'wcsncat'.
14063         * modules/wcsncat: New file.
14064         * lib/wchar.in.h (wcsncat): New declaration.
14065         * lib/wcsncat.c: New file.
14066         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14067         * m4/wcsncat.m4: New file.
14068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14071         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14072         * doc/posix-functions/wcsncat.texi: Mention the new module.
14073
14074 2011-02-05  Bruno Haible  <bruno@clisp.org>
14075
14076         New module 'wcscat'.
14077         * modules/wcscat: New file.
14078         * lib/wchar.in.h (wcscat): New declaration.
14079         * lib/wcscat.c: New file.
14080         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14081         * m4/wcscat.m4: New file.
14082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14085         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14086         * doc/posix-functions/wcscat.texi: Mention the new module.
14087
14088 2011-02-05  Bruno Haible  <bruno@clisp.org>
14089
14090         New module 'wcpncpy'.
14091         * modules/wcpncpy: New file.
14092         * lib/wchar.in.h (wcpncpy): New declaration.
14093         * lib/wcpncpy.c: New file.
14094         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14095         * m4/wcpncpy.m4: New file.
14096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14098         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14099         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14100         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14101
14102 2011-02-05  Bruno Haible  <bruno@clisp.org>
14103
14104         New module 'wcsncpy'.
14105         * modules/wcsncpy: New file.
14106         * lib/wchar.in.h (wcsncpy): New declaration.
14107         * lib/wcsncpy.c: New file.
14108         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14109         * m4/wcsncpy.m4: New file.
14110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14113         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14114         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14115
14116 2011-02-05  Bruno Haible  <bruno@clisp.org>
14117
14118         New module 'wcpcpy'.
14119         * modules/wcpcpy: New file.
14120         * lib/wchar.in.h (wcpcpy): New declaration.
14121         * lib/wcpcpy.c: New file.
14122         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14123         * m4/wcpcpy.m4: New file.
14124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14126         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14127         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14128         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14129
14130 2011-02-05  Bruno Haible  <bruno@clisp.org>
14131
14132         New module 'wcscpy'.
14133         * modules/wcscpy: New file.
14134         * lib/wchar.in.h (wcscpy): New declaration.
14135         * lib/wcscpy.c: New file.
14136         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14137         * m4/wcscpy.m4: New file.
14138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14141         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14142         * doc/posix-functions/wcscpy.texi: Mention the new module.
14143
14144 2011-02-05  Bruno Haible  <bruno@clisp.org>
14145
14146         New module 'wcsnlen'.
14147         * modules/wcsnlen: New file.
14148         * lib/wchar.in.h (wcsnlen): New declaration.
14149         * lib/wcsnlen.c: New file.
14150         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14151         * m4/wcsnlen.m4: New file.
14152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14155         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14156         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14157
14158 2011-02-05  Bruno Haible  <bruno@clisp.org>
14159
14160         New module 'wcslen'.
14161         * modules/wcslen: New file.
14162         * lib/wchar.in.h (wcslen): New declaration.
14163         * lib/wcslen.c: New file.
14164         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14165         * m4/wcslen.m4: New file.
14166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14169         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14170         * doc/posix-functions/wcslen.texi: Mention the new module.
14171
14172 2011-02-05  Bruno Haible  <bruno@clisp.org>
14173
14174         New module 'wmemset'.
14175         * modules/wmemset: New file.
14176         * lib/wchar.in.h (wmemset): New declaration.
14177         * lib/wmemset.c: New file.
14178         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14179         * m4/wmemset.m4: New file.
14180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14182         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14183         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14184         * doc/posix-functions/wmemset.texi: Mention the new module.
14185
14186 2011-02-05  Bruno Haible  <bruno@clisp.org>
14187
14188         New module 'wmemmove'.
14189         * modules/wmemmove: New file.
14190         * lib/wchar.in.h (wmemmove): New declaration.
14191         * lib/wmemmove.c: New file.
14192         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14193         * m4/wmemmove.m4: New file.
14194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14196         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14197         HAVE_WMEMMOVE.
14198         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14199         * doc/posix-functions/wmemmove.texi: Mention the new module.
14200
14201 2011-02-05  Bruno Haible  <bruno@clisp.org>
14202
14203         New module 'wmemcpy'.
14204         * modules/wmemcpy: New file.
14205         * lib/wchar.in.h (wmemcpy): New declaration.
14206         * lib/wmemcpy.c: New file.
14207         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14208         * m4/wmemcpy.m4: New file.
14209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14211         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14212         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14213         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14214
14215 2011-02-05  Bruno Haible  <bruno@clisp.org>
14216
14217         New module 'wmemcmp'.
14218         * modules/wmemcmp: New file.
14219         * lib/wchar.in.h (wmemcmp): New declaration.
14220         * lib/wmemcmp.c: New file.
14221         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14222         * m4/wmemcmp.m4: New file.
14223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14225         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14226         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14227         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14228
14229 2011-02-07  Jim Meyering  <meyering@redhat.com>
14230
14231         di-set, ino-map: new modules, from coreutils
14232         * lib/di-set.c: New file.
14233         * lib/di-set.h: Likewise.
14234         * lib/ino-map.c: Likewise.
14235         * lib/ino-map.h: Likewise.
14236         * modules/di-set: Likewise.
14237         * modules/di-set-tests: Likewise.
14238         * modules/ino-map: Likewise.
14239         * modules/ino-map-tests: Likewise.
14240         * tests/test-di-set.c: Likewise.
14241         * tests/test-ino-map.c: Likewise.
14242
14243 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14244
14245         getloadavg: merge minor changes from Emacs
14246
14247         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14248         (getloadavg): Use memset, not bzero.
14249
14250         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14251         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14252         clash (bug#86).
14253
14254 2010-11-14  Bruno Haible  <bruno@clisp.org>
14255
14256         Allow multiple gnulib generated replacements to coexist.
14257         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14258         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14259         * lib/langinfo.in.h (nl_item): Likewise.
14260         * lib/math.in.h (_NaN, NAN): Likewise.
14261         * lib/netdb.in.h (struct addrinfo): Likewise.
14262         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14263         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14264         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14265         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14266         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14267         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14268         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14269         pthread_mutexattr_init, pthread_mutexattr_settype,
14270         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14271         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14272         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14273         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14274         * lib/sched.in.h (struct sched_param): Likewise.
14275         * lib/se-selinux.in.h (security_class_t, security_context_t,
14276         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14277         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14278         lsetfilecon, fsetfilecon, security_check_context,
14279         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14280         Likewise.
14281         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14282         Likewise.
14283         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14284         _gl_function_taking_int_returning_void_t, union sigval,
14285         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14286         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14287         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14288         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14289         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14290         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14291         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14292         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14293         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14294         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14295         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14296         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14297         socklen_t, rpl_fd_isset): Likewise.
14298         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14299         * lib/sys_time.in.h (struct timeval): Likewise.
14300         * lib/sys_times.in.h (struct tms): Likewise.
14301         * lib/sys_utsname.in.h (struct utsname):
14302         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14303         * lib/unistd.in.h (getpagesize): Likewise.
14304         * lib/wchar.in.h (mbstate_t): Likewise.
14305         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14306         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14307         towlower, towupper): Likewise.
14308         Reported by Sam Steingold <sds@gnu.org>.
14309
14310 2011-02-05  Eric Blake  <eblake@redhat.com>
14311
14312         unsetenv: work around Haiku issues
14313         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14314         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14315
14316 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14317
14318         libposix: avoid calling error() within libposix
14319         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14320         is defined.
14321
14322 2011-02-05  Eric Blake  <eblake@redhat.com>
14323
14324         strerror_r-posix: port to cygwin
14325         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14326         implementation.
14327         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14328         * tests/test-strerror_r.c (main): Fix test.
14329         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14330         issue.
14331
14332 2011-02-05  Bruno Haible  <bruno@clisp.org>
14333
14334         New module 'wmemchr'.
14335         * modules/wmemchr: New file.
14336         * lib/wchar.in.h (wmemchr): New declaration.
14337         * lib/wmemchr.c: New file.
14338         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14339         * m4/wmemchr.m4: New file.
14340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14342         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14343         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14344         * doc/posix-functions/wmemchr.texi: Mention the new module.
14345
14346 2011-02-04  Eric Blake  <eblake@redhat.com>
14347
14348         fdopendir: detect FreeBSD bug
14349         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14350         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14351
14352 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14353
14354         stdbool: do not define HAVE_STDBOOL_H
14355         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14356         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14357         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14358         imported from the latest Autoconf git.  It was motivated by Emacs,
14359         which uses gnulib but does not need HAVE_STDBOOL_H.
14360
14361 2011-02-04  Bruno Haible  <bruno@clisp.org>
14362
14363         wcsnrtombs: Prepare for new module wwcsnrtombs.
14364         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14365         * lib/wcsnrtombs.c: Include it.
14366         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14367
14368         wcsrtombs: Prepare for new module wwcsrtombs.
14369         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14370         * lib/wcsrtombs.c: Include it.
14371         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14372
14373         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14374         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14375         * lib/mbsnrtowcs.c: Include it.
14376         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14377
14378         mbsrtowcs: Prepare for new module mbsrtowwcs.
14379         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14380         * lib/mbsrtowcs.c: Include it.
14381         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14382
14383 2011-02-04  Bruno Haible  <bruno@clisp.org>
14384
14385         vasnprintf: Reduce use of malloc for small format strings.
14386         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14387         (arguments): Add room for the first 7 arguments.
14388         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14389         (char_directives, u8_directives, u16_directives, u32_directives): Add
14390         room for the first 7 directives.
14391         * lib/printf-parse.c: Include <string.h>.
14392         (PRINTF_PARSE): Change memory handling code so that it uses the first
14393         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14394         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14395         Reported by Pádraig Brady <P@draigbrady.com>.
14396
14397 2011-01-31  Eric Blake  <eblake@redhat.com>
14398
14399         dup2: work around Haiku bug
14400         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14401         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14402         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14403         * tests/test-dup2.c (main): Enhance test.
14404
14405 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14406
14407         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14408         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14409         declared by eglibc 2.11.2.
14410         * lib/stdio.in.h: Likewise.
14411
14412 2011-01-31  Eric Blake  <eblake@redhat.com>
14413
14414         ignore-value: add missing test dependency
14415         * tests/test-ignore-value.c: Revert previous change; stdio.h
14416         provides off_t.
14417         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14418
14419 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14420
14421         mktime: clarify long_int width checking
14422         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14423         the top level, to make it clearer that the assumption about
14424         long_int width is being checked.  See
14425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14426
14427 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14428
14429         ignore-value: Fix self-test.
14430         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14431
14432 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14433
14434         TYPE_MAXIMUM: avoid theoretically undefined behavior
14435         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14436         negative number, which the C Standard says has undefined behavior.
14437         In practice this is not a problem, but might as well do it by the book.
14438         Reported by Rich Felker and Eric Blake; see
14439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14440         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14441         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14443         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14444         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14445         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14446
14447         mktime: #undef mktime before #defining it
14448         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14449
14450         mktime: systematically normalize tm_isdst comparisons
14451         * lib/mktime.c (isdst_differ): New function.
14452         (__mktime_internal): Use it systematically for all isdst comparisons.
14453         This completes the fix for libc BZ #6723, and removes the need for
14454         normalizing tm_isdst.  See
14455         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14456         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14457
14458         mktime: fix some integer overflow issues and sidestep the rest
14459
14460         This was prompted by a bug report by Benjamin Lindner for MinGW
14461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14462         His bug is due to signed integer overflow (0 - INT_MIN), and I
14463         I scanned through mktime.c looking for other integer overflow
14464         problems, fixing all the bugs I found.
14465
14466         Although the C Standard says the resulting code is still not safe
14467         in the presence of integer overflow, in practice it should be good
14468         enough for all real-world two's-complement implementations, except
14469         for debugging environments that deliberately trap on integer
14470         overflow (e.g., gcc -ftrapv).
14471
14472         * lib/mktime.c (WRAPV): New macro.
14473         (SHR): Also check that long_int and time_t shift right in the
14474         usual way, before using the fast-but-unportable method.
14475         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14476         used.  The code already assumed two's complement, so there's
14477         no need to test for alternatives.  All uses removed.
14478         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14479         the C standard.  Problem reported by Rich Felker in
14480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14481         (twos_complement_arithmetic): Also check long_int and time_t.
14482         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14483         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14484         (__mktime_internal): Avoid integer overflow with unary subtraction
14485         in two instances where -1 - X is an adequate replacement for -X,
14486         since the calculations are approximate.
14487
14488 2011-01-29  Eric Blake  <eblake@redhat.com>
14489
14490         mktime: avoid infinite loop
14491         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14492         type; behavior is still undefined but portable to all known targets.
14493         Reported by Rich Felker.
14494
14495 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14496
14497         rename, unlink, same-inode: Relicense.
14498         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14499         * modules/unlink (License): Likewise.
14500         * modules/same-inode (License): Likewise.
14501
14502 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14503
14504         mktime: avoid problems on NetBSD 5 / i386
14505         * lib/mktime.c (long_int): New type.  This works around a problem
14506         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14507         but time_t is 64 bits, and where I expect the existing code is
14508         wrong in some cases.
14509         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14510         (ydhms_diff): Bring back the compile-time check for wide-enough
14511         year and yday.
14512
14513         mktime: fix misspelling in comment
14514         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14515         This merges all recent glibc changes of importance.
14516
14517 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14518
14519         move-if-change: cope with concurrent mv of identical file.
14520         * build-aux/move-if-change (CMPPROG): Accept environment
14521         variable as an override for `cmp'.
14522         (usage): Document CMPPROG.
14523         Adjust comparison to drop stdout.  Cope with failure of mv if
14524         the target file exists and is identical to the source, for
14525         parallel builds.
14526         Report from H.J. Lu against binutils in PR binutils/12283.
14527
14528 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14529
14530         * users.txt: Mention sharutils.
14531
14532 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14533
14534         * users.txt: Mention OATH Toolkit.
14535
14536 2011-01-27  Bruno Haible  <bruno@clisp.org>
14537
14538         Prepare for supporting FreeBSD 10.
14539         * build-aux/config.libpath: Remove handling of freebsd1*.
14540
14541 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14542
14543         Prepare for supporting FreeBSD 10.
14544         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14545         match FreeBSD 10.0.
14546
14547 2011-01-27  Bruno Haible  <bruno@clisp.org>
14548
14549         vma-iter, get-rusage-as: Add OpenBSD support.
14550         * modules/vma-iter (configure.ac): Test for mquery.
14551         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14552         * lib/vma-iter.c: Include <sys/mman.h>.
14553         (vma_iterate): Add an implementation based on mquery().
14554         * lib/resource-ext.h (get_rusage_as): Update comments.
14555         * lib/get-rusage-as.c: Likewise.
14556         * lib/get-rusage-data.c: Likewise.
14557
14558 2011-01-26  Karl Berry  <karl@gnu.org>
14559
14560         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14561         variables to make it easier to override the makeinfo program used.
14562
14563 2011-01-26  Eric Blake  <eblake@redhat.com>
14564
14565         fcntl: work around Haiku F_DUPFD bugs
14566         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14567         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14568         cloexec bit on duplication.
14569         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14570
14571 2011-01-26  Bruno Haible  <bruno@clisp.org>
14572
14573         Enable memory leak tests on AIX.
14574         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14575         * tests/test-fprintf-posix3.c (main): Likewise.
14576
14577 2011-01-26  Bruno Haible  <bruno@clisp.org>
14578
14579         Tests for module 'get-rusage-data'.
14580         * modules/get-rusage-data-tests: New file.
14581         * tests/test-get-rusage-data.c: New file.
14582
14583         New module 'get-rusage-data'.
14584         * lib/resource-ext.h (get_rusage_data): New declaration.
14585         * lib/get-rusage-data.c: New file.
14586         * modules/get-rusage-data: New file.
14587
14588 2011-01-25  Bruno Haible  <bruno@clisp.org>
14589
14590         get-rusage-as: Allow for easier testing.
14591         * lib/resource-ext.h (get_rusage_as): Add comment.
14592         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14593         (main): New function for interactive testing.
14594
14595 2011-01-25  Bruno Haible  <bruno@clisp.org>
14596
14597         vma-iter: Treat Haiku like BeOS.
14598         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14599         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14600
14601 2011-01-25  Eric Blake  <eblake@redhat.com>
14602
14603         c-stack: fix regression on cygwin when libsigsegv is present
14604         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14605
14606 2011-01-24  Bruno Haible  <bruno@clisp.org>
14607
14608         vma-iter: Avoid empty intervals.
14609         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14610         on an empty interval.
14611
14612 2011-01-24  Jim Meyering  <meyering@redhat.com>
14613
14614         u64: remove unnecessary #include
14615         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14616
14617 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14618
14619         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14620         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14621
14622 2011-01-23  Bruno Haible  <bruno@clisp.org>
14623
14624         New module 'vma-iter'.
14625         * lib/vma-iter.h: New file.
14626         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14627         * modules/vma-iter: New file.
14628         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14629         for get_rusage_as_via_iterator.
14630         (vma_iterate_callback): New function.
14631         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14632         * modules/get-rusage-as (Depends-on): Add vma-iter.
14633
14634 2011-01-23  Bruno Haible  <bruno@clisp.org>
14635
14636         uninorm: Tweak includes.
14637         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14638         Reported by Jim Meyering.
14639
14640 2011-01-23  Bruno Haible  <bruno@clisp.org>
14641
14642         get-rusage-as: Improve on NetBSD.
14643         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14644         /proc, like on FreeBSD.
14645
14646 2011-01-23  Jim Meyering  <meyering@redhat.com>
14647
14648         xreadlink.h: remove unnecessary #include
14649         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14650
14651         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14652         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14653
14654 2011-01-23  Bruno Haible  <bruno@clisp.org>
14655
14656         get-rusage-as: Fix bug.
14657         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14658         original limit when aborting the first loop.
14659
14660 2011-01-23  Bruno Haible  <bruno@clisp.org>
14661
14662         wctype: Ensure valid C syntax.
14663         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14664         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14665
14666 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14667
14668         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14670         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14671         as they are needed only for configure's test case.
14672         This removes two unnecessary symbols from config.h.
14673
14674         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14675         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14677         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14678         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14679         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14680         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14681         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14682         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14683         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14684         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14685         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14686         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14687         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14688         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14689         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14690         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14691         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14692
14693 2011-01-21  Eric Blake  <eblake@redhat.com>
14694
14695         maintainer-makefile: work with older git for submodule check
14696         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14697         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14698         Reported by Matthias Bolte.
14699
14700         bootstrap: minor portability fixes
14701         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14702         (usage): Omit leading capital and trailing . on help phrases, per
14703         GNU Coding Standards.
14704         (check_versions, top level): Prefix messages with script name.
14705
14706 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14707
14708         bootstrap: support --no-git option
14709         * build-aux/bootstrap: Add --no-git option, to be used when
14710         --gnulib-srcdir points to the exact desired checkout.
14711
14712 2011-01-21  Eric Blake  <eblake@redhat.com>
14713
14714         strerror_r-posix: work with glibc 2.13
14715         * lib/strerror_r.c (strerror_r): Fix return type.
14716
14717 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14718             Bruno Haible  <bruno@clisp.org>
14719
14720         uN_strstr: New unit tests.
14721         * modules/unistr/u8-strstr-tests: New file.
14722         * modules/unistr/u16-strstr-tests: New file.
14723         * modules/unistr/u32-strstr-tests: New file.
14724         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14725         * tests/unistr/test-u8-strstr.c: New file.
14726         * tests/unistr/test-u16-strstr.c: New file.
14727         * tests/unistr/test-u32-strstr.c: New file.
14728
14729 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14730             Bruno Haible  <bruno@clisp.org>
14731
14732         Make uN_strstr functions O(n) worst-case.
14733         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14734         16-bit and 32-bit unit cases, use the unibyte algorithm from
14735         lib/mbsstr.c.
14736         * lib/unistr/u8-strstr.c: Include <string.h>.
14737         (UNIT_IS_UINT8_T): New macro.
14738         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14739         (U_STRLEN, U_STRNLEN): New macros.
14740         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14741         (U_STRLEN, U_STRNLEN): New macros.
14742         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14743         (configure.ac): Update required libunistring version.
14744         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14745         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14746         malloca.
14747         (configure.ac): Update required libunistring version.
14748         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14749         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14750         malloca.
14751         (configure.ac): Update required libunistring version.
14752
14753 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14754             Bruno Haible  <bruno@clisp.org>
14755
14756         Prepare for faster uN_strstr functions.
14757         * lib/str-kmp.h: Support definable UNITs.
14758         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14759         needle_len argument.
14760         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14761         * lib/mbscasestr.c (mbscasestr): Likewise.
14762
14763 2011-01-21  Pádraig Brady <P@draigBrady.com>
14764
14765         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14766         * tests/test-malloca.c (main): Unset the environment variable
14767         to greatly speed up the test.
14768         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14769         * modules/malloca-tests: Depend on unsetenv.
14770
14771 2011-01-21  Pádraig Brady <P@draigBrady.com>
14772
14773         ignore-value: remove stdint dependency
14774         * lib/ignore-value.h: Remove <stdint.h>
14775         * modules/ignore-value: Remove stdint dependency.
14776
14777 2011-01-21  Jim Meyering  <meyering@redhat.com>
14778
14779         maint.mk: adjust variable name to be consistent with other gl_ vars
14780         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14781         to be lower case.
14782
14783 2011-01-20  Jim Meyering  <meyering@redhat.com>
14784
14785         maint.mk: make "check" depend on public-submodule-commit by default
14786         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14787
14788 2011-01-20  Bruno Haible  <bruno@clisp.org>
14789
14790         mbfile, mbiter: Complete change from 2008-12-21.
14791         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14792         * m4/mbiter.m4 (gl_MBITER): Likewise.
14793
14794 2011-01-20  Jim Meyering  <meyering@redhat.com>
14795
14796         init.sh: insert space between each function name and "()"
14797         * tests/init.sh: Make it a little easier to see that a function's
14798         name is "warn_", and not "warn" when looking at the first part of
14799         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14800
14801 2011-01-20  Jim Meyering  <meyering@redhat.com>
14802
14803         mountlist: clean up code formatting
14804         * lib/mountlist.c (read_file_system_list): Split a long line,
14805         correct bracing style, use NULL in place of "(struct statfs *)0",
14806         don't parenthesize return value, add spaces around "=" and after
14807         ";-in-for-stmt".
14808
14809 2011-01-14  Markus Duft <mduft@gentoo.org>
14810
14811         mountlist: add support for Interix
14812         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14813         Apply statvfs to all entries of /dev/fs.
14814         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14815         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14816
14817 2011-01-20  Jim Meyering  <meyering@redhat.com>
14818
14819         maint.mk: improve the public-submodule-commit rule
14820         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14821         to suppress printing of its commands... unless V=1.
14822         Add git submodule's --quiet option to suppress printing of e.g.,
14823         "Entering gnulib" output.
14824         "cd" into $(srcdir) before running git submodule.
14825
14826 2011-01-20  Bruno Haible  <bruno@clisp.org>
14827
14828         include_next: Fix bug introduced on 2011-01-18.
14829         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14830         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14831         ac_cv_header_... variable if the second argument is not 'check'.
14832         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14833         gl_NEXT_HEADERS_INTERNAL.
14834
14835 2011-01-20  Bruno Haible  <bruno@clisp.org>
14836
14837         Allow the user to avoid the GNULIB_TEST_* macros.
14838         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14839         Suggested by Paul Eggert.
14840
14841 2011-01-14  Jim Meyering  <meyering@redhat.com>
14842
14843         bootstrap: avoid failure when there is no .gitmodules file
14844         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14845         has been assigned to, even when its value is the empty string.
14846         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14847         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14848         Reported by John W. Eaton <jwe@gnu.org>.
14849
14850 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14851
14852         assume <ctype.h>, ..., <time.h> exist
14853         For years gnulib has been assuming the existence of the headers
14854         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14855         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14856         them, since they don't appear to be needed.
14857         * README (Portability guidelines): Document this.
14858         * lib/flock.c: Assume <fcntl.h> exists.
14859         * lib/regex_internal.h: Assume <locale.h> exists.
14860         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14861         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14862         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14863         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14864         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14865         * m4/regex.m4 (gl_REGEX): Likewise.
14866         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14867         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14868         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14869         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14870         * tests/test-argp.c: Likewise.
14871         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14872
14873         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14874         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14875         AA_APPLE_UNIVERSAL_BUILD.  See
14876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14877         * NEWS: Document this.
14878
14879 2011-01-19  Eric Blake  <eblake@redhat.com>
14880
14881         c-stack: assume stack overflow if SA_SIGINFO unsupported
14882         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14883         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14884         sigaction will work.
14885         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14886         behavior match Linux.
14887         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14888
14889         stdbool-tests: accomodate Haiku
14890         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14891
14892         binary-io: fix O_TEXT on Haiku
14893         * modules/binary-io (Depends-on): Add fcntl-h.
14894         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14895         than blindly undefining O_TEXT.
14896         Reported by Scott McCreary.
14897
14898 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         include_next: do not check for standard headers like stddef.h
14901
14902         I found this problem when modifying Emacs to use gnulib.
14903         I noticed that it added HAVE_STDDEF_H to config.h, even though
14904         gnulib always assumes <stddef.h> exists as per README and this
14905         symbol is unnecessary.
14906         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14907         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14908         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14909         faster for headers like stddef.h that are known to exist.
14910         (gl_CHECK_NEXT_HEADERS): Use it.
14911         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14912         rather than gl_CHECK_NEXT_HEADERS.
14913         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14914         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14915
14916 2011-01-18  Eric Blake  <eblake@redhat.com>
14917
14918         ansi-c++-opt: skip C++ dependency style if C++ is unused
14919         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14920         tests when we know C++ compilation is not desired.
14921         Reported by Scott McCreary.
14922
14923 2011-01-18  Bruno Haible  <bruno@clisp.org>
14924
14925         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14926         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14927         (main): Perform test also when getrlimit and setrlimit don't exist or
14928         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14929         limiting the address space size using setrlimit, compare the address
14930         space size before and after the the test.
14931         * tests/test-dprintf-posix2.c: Likewise.
14932         * tests/test-fprintf-posix3.sh: Update skip messages.
14933         * tests/test-dprintf-posix2.sh: Likewise.
14934         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14935         * modules/dprintf-posix-tests (Depends-on): Likewise.
14936         Reported by Bruce Korb <bkorb@gnu.org> and
14937         Gary V. Vaughan <gary@gnu.org>.
14938
14939 2011-01-18  Bruno Haible  <bruno@clisp.org>
14940
14941         get-rusage-as: Improvement for Cygwin.
14942         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14943         areas that are merely reserved.
14944
14945 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14946
14947         strftime: remove dependencies on multibyte modules
14948
14949         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14950         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14951         only if __osf__ is defined, and I suspect OSF doesn't need these
14952         other modules.  If my guess is wrong, we'll need to come up with a
14953         variant of strftime that doesn't need the multibyte modules.
14954
14955         I discovered this problem when attempting modify Emacs to use the
14956         strftime module.  With the previous gnulib, this caused Emacs to
14957         need 31 new files, ranging from lib/config.charset to
14958         m4/wint_t.m4.  This was overkill and I expect would be offputting
14959         to the Emacs maintainers.  After this change, only 6 new files are
14960         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14961         stdbool.m4, and tm_gmtoff.m4.
14962
14963         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14964         Suggested by Bruno Haible in
14965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14966         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14967         and do not check for wchar.h.
14968         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14969         (Depends-on): Remove mbrlen, mbsinit, wchar.
14970
14971 2011-01-18  Bruno Haible  <bruno@clisp.org>
14972
14973         Tests for module 'get-rusage-as'.
14974         * modules/get-rusage-as-tests: New file.
14975         * tests/test-get-rusage-as.c: New file.
14976
14977         New module 'get-rusage-as'.
14978         * modules/get-rusage-as: New file.
14979         * lib/resource-ext.h: New file.
14980         * lib/get-rusage-as.c: New file.
14981
14982 2011-01-17  Eric Blake  <eblake@redhat.com>
14983
14984         sigaction: relax license from LGPLv3+ to LGPLv2+
14985         * modules/sigaction (License): Relax to LGPLv2+.
14986
14987 2011-01-14  Bruno Haible  <bruno@clisp.org>
14988
14989         filemode: Make function declarations usable in C++ mode.
14990         * lib/filemode.h: Enclose function declarations in extern "C" block.
14991         Reported by John W. Eaton <jwe@gnu.org>.
14992
14993 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14994
14995         save-cwd: no longer include "xgetcwd.h"
14996         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14997         This avoids a compilation failure in projects that use save-cwd
14998         without also using the xgetcwd module.
14999
15000 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15001
15002         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15003         This is so that a program like Emacs, which needs only dtoastr,
15004         does not have to bother with distributing and compiling ftoastr
15005         and ldtoastr.
15006         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15007         * modules/dtoastr, modules/ldtoastr: New files.
15008         * modules/ftoastr: Now works just for 'float'.
15009         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15010         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15011         dtoastr.c, ldtoastr.c.
15012
15013 2011-01-11  Jim Meyering  <meyering@redhat.com>
15014
15015         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15016         There is no need to work around the lack of the fchdir function,
15017         since gnulib can now provide a replacement when required.
15018         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15019         * modules/save-cwd (Depends-on): Add fchdir.
15020
15021 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15022
15023         openat, save-cwd: avoid xmalloc
15024
15025         This removes a direct (but undocumented) dependency of openat on
15026         xalloc, along with an indirect dependency via save-cwd.  It also
15027         removes a dependency of save-cwd on xgetcwd, and thereby
15028         indirectly on xalloc.  This change causes the openat substitute
15029         to fall back on save_cwd when memory is tight, and for save_cwd to
15030         fail instead of dying when memory is tight, but that's good enough.
15031         Problem and initial idea for fix reported by Bastien Roucaries in
15032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15033
15034         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15035         xalloc.h (for xmalloc).
15036         (openat_proc_name): Use malloc, not xmalloc.
15037         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15038         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15039
15040         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15041         This avoids heap allocation for file names whose lengths are in
15042         the range 512..1023, with the upper bound increasing to at most
15043         4031 depending on the platform's PATH_MAX.  (We do not want
15044         pathmax.h here as it might supply a non-constant PATH_MAX.)
15045         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15046         Perhaps they should be moved to malloca.h?
15047         (OPENAT_BUFFER_SIZE): Use them.
15048
15049 2011-01-10  Bruno Haible  <bruno@clisp.org>
15050
15051         doc: Update users.txt.
15052         * users.txt: Add recutils.
15053
15054 2011-01-09  Karl Berry  <karl@gnu.org>
15055
15056         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15057
15058         * doc/configmake.texi: New file.
15059         * doc/gnulib.texi: Include it.
15060         * modules/configmake: Move documentation from here.
15061
15062 2011-01-09  Bruno Haible  <bruno@clisp.org>
15063
15064         Update to Unicode 6.0.0.
15065         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15066         (get_lbp): Update for Unicode 6.0.0.
15067         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15068         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15069         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15070         U+11001, U+11038..U+11046. Remove U+06DE.
15071         (uc_width): Fix bounds of planes.
15072         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15073         lib/uniwidth/width.c.
15074         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15075         trailing whitespace removed.
15076         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15077         without comments, but with the original copyright notice.
15078         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15079         * lib/unicase/ignorable.h: Likewise.
15080         * lib/unicase/tocasefold.h: Likewise.
15081         * lib/unicase/tolower.h: Likewise.
15082         * lib/unicase/totitle.h: Likewise.
15083         * lib/unicase/toupper.h: Likewise.
15084         * lib/unictype/bidi_of.h: Likewise.
15085         * lib/unictype/blocks.h: Likewise.
15086         * lib/unictype/categ_C.h: Likewise.
15087         * lib/unictype/categ_Cn.h: Likewise.
15088         * lib/unictype/categ_L.h: Likewise.
15089         * lib/unictype/categ_Ll.h: Likewise.
15090         * lib/unictype/categ_Lm.h: Likewise.
15091         * lib/unictype/categ_Lo.h: Likewise.
15092         * lib/unictype/categ_Lu.h: Likewise.
15093         * lib/unictype/categ_M.h: Likewise.
15094         * lib/unictype/categ_Mc.h: Likewise.
15095         * lib/unictype/categ_Me.h: Likewise.
15096         * lib/unictype/categ_Mn.h: Likewise.
15097         * lib/unictype/categ_N.h: Likewise.
15098         * lib/unictype/categ_Nd.h: Likewise.
15099         * lib/unictype/categ_No.h: Likewise.
15100         * lib/unictype/categ_P.h: Likewise.
15101         * lib/unictype/categ_Po.h: Likewise.
15102         * lib/unictype/categ_S.h: Likewise.
15103         * lib/unictype/categ_Sc.h: Likewise.
15104         * lib/unictype/categ_Sk.h: Likewise.
15105         * lib/unictype/categ_Sm.h: Likewise.
15106         * lib/unictype/categ_So.h: Likewise.
15107         * lib/unictype/categ_of.h: Likewise.
15108         * lib/unictype/combining.h: Likewise.
15109         * lib/unictype/ctype_alnum.h: Likewise.
15110         * lib/unictype/ctype_alpha.h: Likewise.
15111         * lib/unictype/ctype_graph.h: Likewise.
15112         * lib/unictype/ctype_lower.h: Likewise.
15113         * lib/unictype/ctype_print.h: Likewise.
15114         * lib/unictype/ctype_punct.h: Likewise.
15115         * lib/unictype/ctype_upper.h: Likewise.
15116         * lib/unictype/decdigit.h: Likewise.
15117         * lib/unictype/digit.h: Likewise.
15118         * lib/unictype/numeric.h: Likewise.
15119         * lib/unictype/pr_alphabetic.h: Likewise.
15120         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15121         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15122         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15123         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15124         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15125         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15126         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15127         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15128         * lib/unictype/pr_case_ignorable.h: Likewise.
15129         * lib/unictype/pr_cased.h: Likewise.
15130         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15131         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15132         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15133         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15134         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15135         * lib/unictype/pr_combining.h: Likewise.
15136         * lib/unictype/pr_composite.h: Likewise.
15137         * lib/unictype/pr_currency_symbol.h: Likewise.
15138         * lib/unictype/pr_decimal_digit.h: Likewise.
15139         * lib/unictype/pr_deprecated.h: Likewise.
15140         * lib/unictype/pr_format_control.h: Likewise.
15141         * lib/unictype/pr_grapheme_base.h: Likewise.
15142         * lib/unictype/pr_grapheme_extend.h: Likewise.
15143         * lib/unictype/pr_grapheme_link.h: Likewise.
15144         * lib/unictype/pr_id_continue.h: Likewise.
15145         * lib/unictype/pr_id_start.h: Likewise.
15146         * lib/unictype/pr_ideographic.h: Likewise.
15147         * lib/unictype/pr_lowercase.h: Likewise.
15148         * lib/unictype/pr_math.h: Likewise.
15149         * lib/unictype/pr_numeric.h: Likewise.
15150         * lib/unictype/pr_other_alphabetic.h: Likewise.
15151         * lib/unictype/pr_other_id_continue.h: Likewise.
15152         * lib/unictype/pr_other_math.h: Likewise.
15153         * lib/unictype/pr_punctuation.h: Likewise.
15154         * lib/unictype/pr_sentence_terminal.h: Likewise.
15155         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15156         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15157         * lib/unictype/pr_unified_ideograph.h: Likewise.
15158         * lib/unictype/pr_uppercase.h: Likewise.
15159         * lib/unictype/pr_xid_continue.h: Likewise.
15160         * lib/unictype/pr_xid_start.h: Likewise.
15161         * lib/unictype/scripts.h: Likewise.
15162         * lib/unictype/scripts_byname.gperf: Likewise.
15163         * lib/unictype/sy_java_ident.h: Likewise.
15164         * lib/unigbrk/gbrkprop.h: Likewise.
15165         * lib/unilbrk/lbrkprop1.h: Likewise.
15166         * lib/unilbrk/lbrkprop2.h: Likewise.
15167         * lib/uninorm/decomposition-table2.h: Likewise.
15168         * lib/uniwbrk/wbrkprop.h: Likewise.
15169         * tests/unicase/test-cased.c: Likewise.
15170         * tests/unicase/test-ignorable.c: Likewise.
15171         * tests/unicase/test-uc_tolower.c: Likewise.
15172         * tests/unicase/test-uc_totitle.c: Likewise.
15173         * tests/unicase/test-uc_toupper.c: Likewise.
15174         * tests/unictype/test-categ_C.c: Likewise.
15175         * tests/unictype/test-categ_Cn.c: Likewise.
15176         * tests/unictype/test-categ_L.c: Likewise.
15177         * tests/unictype/test-categ_Ll.c: Likewise.
15178         * tests/unictype/test-categ_Lm.c: Likewise.
15179         * tests/unictype/test-categ_Lo.c: Likewise.
15180         * tests/unictype/test-categ_Lu.c: Likewise.
15181         * tests/unictype/test-categ_M.c: Likewise.
15182         * tests/unictype/test-categ_Mc.c: Likewise.
15183         * tests/unictype/test-categ_Me.c: Likewise.
15184         * tests/unictype/test-categ_Mn.c: Likewise.
15185         * tests/unictype/test-categ_N.c: Likewise.
15186         * tests/unictype/test-categ_Nd.c: Likewise.
15187         * tests/unictype/test-categ_No.c: Likewise.
15188         * tests/unictype/test-categ_P.c: Likewise.
15189         * tests/unictype/test-categ_Po.c: Likewise.
15190         * tests/unictype/test-categ_S.c: Likewise.
15191         * tests/unictype/test-categ_Sc.c: Likewise.
15192         * tests/unictype/test-categ_Sk.c: Likewise.
15193         * tests/unictype/test-categ_Sm.c: Likewise.
15194         * tests/unictype/test-categ_So.c: Likewise.
15195         * tests/unictype/test-ctype_alnum.c: Likewise.
15196         * tests/unictype/test-ctype_alpha.c: Likewise.
15197         * tests/unictype/test-ctype_graph.c: Likewise.
15198         * tests/unictype/test-ctype_lower.c: Likewise.
15199         * tests/unictype/test-ctype_print.c: Likewise.
15200         * tests/unictype/test-ctype_punct.c: Likewise.
15201         * tests/unictype/test-ctype_upper.c: Likewise.
15202         * tests/unictype/test-decdigit.h: Likewise.
15203         * tests/unictype/test-digit.h: Likewise.
15204         * tests/unictype/test-numeric.h: Likewise.
15205         * tests/unictype/test-pr_alphabetic.c: Likewise.
15206         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15207         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15208         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15209         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15210         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15211         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15212         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15213         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15214         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15215         * tests/unictype/test-pr_cased.c: Likewise.
15216         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15217         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15218         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15219         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15220         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15221         * tests/unictype/test-pr_combining.c: Likewise.
15222         * tests/unictype/test-pr_composite.c: Likewise.
15223         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15224         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15225         * tests/unictype/test-pr_deprecated.c: Likewise.
15226         * tests/unictype/test-pr_format_control.c: Likewise.
15227         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15228         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15229         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15230         * tests/unictype/test-pr_id_continue.c: Likewise.
15231         * tests/unictype/test-pr_id_start.c: Likewise.
15232         * tests/unictype/test-pr_ideographic.c: Likewise.
15233         * tests/unictype/test-pr_lowercase.c: Likewise.
15234         * tests/unictype/test-pr_math.c: Likewise.
15235         * tests/unictype/test-pr_numeric.c: Likewise.
15236         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15237         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15238         * tests/unictype/test-pr_other_math.c: Likewise.
15239         * tests/unictype/test-pr_punctuation.c: Likewise.
15240         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15241         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15242         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15243         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15244         * tests/unictype/test-pr_uppercase.c: Likewise.
15245         * tests/unictype/test-pr_xid_continue.c: Likewise.
15246         * tests/unictype/test-pr_xid_start.c: Likewise.
15247         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15248         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15249         changes.
15250         * lib/unictype/categ_Cc.h: Likewise.
15251         * lib/unictype/categ_Cf.h: Likewise.
15252         * lib/unictype/categ_Co.h: Likewise.
15253         * lib/unictype/categ_Cs.h: Likewise.
15254         * lib/unictype/categ_Lt.h: Likewise.
15255         * lib/unictype/categ_Nl.h: Likewise.
15256         * lib/unictype/categ_Pc.h: Likewise.
15257         * lib/unictype/categ_Pd.h: Likewise.
15258         * lib/unictype/categ_Pe.h: Likewise.
15259         * lib/unictype/categ_Pf.h: Likewise.
15260         * lib/unictype/categ_Pi.h: Likewise.
15261         * lib/unictype/categ_Ps.h: Likewise.
15262         * lib/unictype/categ_Z.h: Likewise.
15263         * lib/unictype/categ_Zl.h: Likewise.
15264         * lib/unictype/categ_Zp.h: Likewise.
15265         * lib/unictype/categ_Zs.h: Likewise.
15266         * lib/unictype/ctype_blank.h: Likewise.
15267         * lib/unictype/ctype_cntrl.h: Likewise.
15268         * lib/unictype/ctype_digit.h: Likewise.
15269         * lib/unictype/ctype_space.h: Likewise.
15270         * lib/unictype/ctype_xdigit.h: Likewise.
15271         * lib/unictype/mirror.h: Likewise.
15272         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15273         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15274         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15275         * lib/unictype/pr_bidi_control.h: Likewise.
15276         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15277         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15278         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15279         * lib/unictype/pr_bidi_pdf.h: Likewise.
15280         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15281         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15282         * lib/unictype/pr_dash.h: Likewise.
15283         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15284         * lib/unictype/pr_diacritic.h: Likewise.
15285         * lib/unictype/pr_extender.h: Likewise.
15286         * lib/unictype/pr_hex_digit.h: Likewise.
15287         * lib/unictype/pr_hyphen.h: Likewise.
15288         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15289         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15290         * lib/unictype/pr_ignorable_control.h: Likewise.
15291         * lib/unictype/pr_iso_control.h: Likewise.
15292         * lib/unictype/pr_join_control.h: Likewise.
15293         * lib/unictype/pr_left_of_pair.h: Likewise.
15294         * lib/unictype/pr_line_separator.h: Likewise.
15295         * lib/unictype/pr_logical_order_exception.h: Likewise.
15296         * lib/unictype/pr_non_break.h: Likewise.
15297         * lib/unictype/pr_not_a_character.h: Likewise.
15298         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15299         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15300         * lib/unictype/pr_other_id_start.h: Likewise.
15301         * lib/unictype/pr_other_lowercase.h: Likewise.
15302         * lib/unictype/pr_other_uppercase.h: Likewise.
15303         * lib/unictype/pr_paired_punctuation.h: Likewise.
15304         * lib/unictype/pr_paragraph_separator.h: Likewise.
15305         * lib/unictype/pr_pattern_syntax.h: Likewise.
15306         * lib/unictype/pr_pattern_white_space.h: Likewise.
15307         * lib/unictype/pr_private_use.h: Likewise.
15308         * lib/unictype/pr_quotation_mark.h: Likewise.
15309         * lib/unictype/pr_radical.h: Likewise.
15310         * lib/unictype/pr_soft_dotted.h: Likewise.
15311         * lib/unictype/pr_space.h: Likewise.
15312         * lib/unictype/pr_titlecase.h: Likewise.
15313         * lib/unictype/pr_variation_selector.h: Likewise.
15314         * lib/unictype/pr_white_space.h: Likewise.
15315         * lib/unictype/pr_zero_width.h: Likewise.
15316         * lib/unictype/sy_c_ident.h: Likewise.
15317         * lib/unictype/sy_c_whitespace.h: Likewise.
15318         * lib/unictype/sy_java_whitespace.h: Likewise.
15319         * lib/uninorm/composition-table.gperf: Likewise.
15320         * lib/uninorm/decomposition-table1.h: Likewise.
15321         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15322         LB8.
15323         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15324         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15325         * modules/unictype/*: Bump version number of expected libunistring
15326         version.
15327
15328 2011-01-09  Bruno Haible  <bruno@clisp.org>
15329
15330         Update to Unicode 5.2.0.
15331         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15332         trailing whitespace removed.
15333
15334 2011-01-09  Bruno Haible  <bruno@clisp.org>
15335
15336         New Unicode character properties, from Unicode 5.2.0.
15337         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15338         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15339         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15340         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15341         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15342         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15343         uc_is_property_cased, uc_is_property_case_ignorable,
15344         uc_is_property_changes_when_lowercased,
15345         uc_is_property_changes_when_uppercased,
15346         uc_is_property_changes_when_titlecased,
15347         uc_is_property_changes_when_casefolded,
15348         uc_is_property_changes_when_casemapped): New declarations.
15349         * lib/unictype/pr_byname.gperf: Add the new properties.
15350         * modules/unictype/property-byname (Depends-on): Depend on the new
15351         properties modules.
15352         * modules/unictype/property-all (Depends-on): Likewise.
15353         * MODULES.html.sh (Unicode string functions): Add
15354         unictype/property-case-ignorable, unictype/property-cased,
15355         unictype/property-changes-when-casefolded,
15356         unictype/property-changes-when-casemapped,
15357         unictype/property-changes-when-lowercased,
15358         unictype/property-changes-when-titlecased,
15359         unictype/property-changes-when-uppercased.
15360
15361         New module 'unictype/property-changes-when-casemapped'.
15362         * modules/unictype/property-changes-when-casemapped: New file.
15363         * lib/unictype/pr_changes_when_casemapped.c: New file.
15364         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15365         generated by gen-uni-tables.
15366         * modules/unictype/property-changes-when-casemapped-tests: New file.
15367         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15368         automatically generated by gen-uni-tables.
15369
15370         New module 'unictype/property-changes-when-casefolded'.
15371         * modules/unictype/property-changes-when-casefolded: New file.
15372         * lib/unictype/pr_changes_when_casefolded.c: New file.
15373         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15374         generated by gen-uni-tables.
15375         * modules/unictype/property-changes-when-casefolded-tests: New file.
15376         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15377         automatically generated by gen-uni-tables.
15378
15379         New module 'unictype/property-changes-when-titlecased'.
15380         * modules/unictype/property-changes-when-titlecased: New file.
15381         * lib/unictype/pr_changes_when_titlecased.c: New file.
15382         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15383         generated by gen-uni-tables.
15384         * modules/unictype/property-changes-when-titlecased-tests: New file.
15385         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15386         automatically generated by gen-uni-tables.
15387
15388         New module 'unictype/property-changes-when-uppercased'.
15389         * modules/unictype/property-changes-when-uppercased: New file.
15390         * lib/unictype/pr_changes_when_uppercased.c: New file.
15391         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15392         generated by gen-uni-tables.
15393         * modules/unictype/property-changes-when-uppercased-tests: New file.
15394         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15395         automatically generated by gen-uni-tables.
15396
15397         New module 'unictype/property-changes-when-lowercased'.
15398         * modules/unictype/property-changes-when-lowercased: New file.
15399         * lib/unictype/pr_changes_when_lowercased.c: New file.
15400         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15401         generated by gen-uni-tables.
15402         * modules/unictype/property-changes-when-lowercased-tests: New file.
15403         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15404         automatically generated by gen-uni-tables.
15405
15406         New module 'unictype/property-case-ignorable'.
15407         * modules/unictype/property-case-ignorable: New file.
15408         * lib/unictype/pr_case_ignorable.c: New file.
15409         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15410         by gen-uni-tables.
15411         * modules/unictype/property-case-ignorable-tests: New file.
15412         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15413         generated by gen-uni-tables.
15414
15415         New module 'unictype/property-cased'.
15416         * modules/unictype/property-cased: New file.
15417         * lib/unictype/pr_cased.c: New file.
15418         * lib/unictype/pr_cased.h: New file, automatically generated by
15419         gen-uni-tables.
15420         * modules/unictype/property-cased-tests: New file.
15421         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15422         gen-uni-tables.
15423
15424 2011-01-09  Bruno Haible  <bruno@clisp.org>
15425
15426         Update to Unicode 5.2.0.
15427         * lib/gen-uni-tables.c (output_predicate, output_category,
15428         output_combclass, output_bidi_category, output_decimal_digit_test,
15429         output_decimal_digit, output_digit_test, output_digit,
15430         output_numeric_test, output_numeric, output_mirror, output_scripts,
15431         output_scripts_byname, output_blocks, output_ident_category): Fix
15432         comment header.
15433         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15434         get_wbp.
15435         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15436         items.
15437         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15438         Changes_When_Lowercased, Changes_When_Uppercased,
15439         Changes_When_Titlecased, Changes_When_Casefolded,
15440         Changes_When_Casemapped.
15441         (is_property_alphabetic, is_property_default_ignorable_code_point):
15442         Update for Unicode 5.2.0.
15443         (is_property_cased, is_property_case_ignorable,
15444         is_property_changes_when_lowercased,
15445         is_property_changes_when_uppercased,
15446         is_property_changes_when_titlecased,
15447         is_property_changes_when_casefolded,
15448         is_property_changes_when_casemapped): New functions.
15449         (output_properties): Output also the properties cased, case_ignorable,
15450         changes_when_lowercased, changes_when_uppercased,
15451         changes_when_titlecased, changes_when_casefolded,
15452         changes_when_casemapped.
15453         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15454         Unicode TR#11 revision 17 -> 19.
15455         (LBP_CP): New enumeration value.
15456         (LBP_*): Adjust values accordingly.
15457         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15458         TR#14 revision 22 -> 24.
15459         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15460         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15461         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15462         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15463         is_WBP_MIDLETTER.
15464         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15465         the code1 and code2 of each composition rule.
15466         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15467         * lib/unicase/ignorable.h: Likewise.
15468         * lib/unicase/tocasefold.h: Likewise.
15469         * lib/unicase/tolower.h: Likewise.
15470         * lib/unicase/totitle.h: Likewise.
15471         * lib/unicase/toupper.h: Likewise.
15472         * lib/unictype/bidi_of.h: Likewise.
15473         * lib/unictype/blocks.h: Likewise.
15474         * lib/unictype/categ_C.h: Likewise.
15475         * lib/unictype/categ_Cf.h: Likewise.
15476         * lib/unictype/categ_Cn.h: Likewise.
15477         * lib/unictype/categ_L.h: Likewise.
15478         * lib/unictype/categ_Ll.h: Likewise.
15479         * lib/unictype/categ_Lm.h: Likewise.
15480         * lib/unictype/categ_Lo.h: Likewise.
15481         * lib/unictype/categ_Lu.h: Likewise.
15482         * lib/unictype/categ_M.h: Likewise.
15483         * lib/unictype/categ_Mc.h: Likewise.
15484         * lib/unictype/categ_Mn.h: Likewise.
15485         * lib/unictype/categ_N.h: Likewise.
15486         * lib/unictype/categ_Nd.h: Likewise.
15487         * lib/unictype/categ_Nl.h: Likewise.
15488         * lib/unictype/categ_No.h: Likewise.
15489         * lib/unictype/categ_P.h: Likewise.
15490         * lib/unictype/categ_Pd.h: Likewise.
15491         * lib/unictype/categ_Po.h: Likewise.
15492         * lib/unictype/categ_S.h: Likewise.
15493         * lib/unictype/categ_Sc.h: Likewise.
15494         * lib/unictype/categ_So.h: Likewise.
15495         * lib/unictype/categ_of.h: Likewise.
15496         * lib/unictype/combining.h: Likewise.
15497         * lib/unictype/ctype_alnum.h: Likewise.
15498         * lib/unictype/ctype_alpha.h: Likewise.
15499         * lib/unictype/ctype_graph.h: Likewise.
15500         * lib/unictype/ctype_lower.h: Likewise.
15501         * lib/unictype/ctype_print.h: Likewise.
15502         * lib/unictype/ctype_punct.h: Likewise.
15503         * lib/unictype/ctype_upper.h: Likewise.
15504         * lib/unictype/decdigit.h: Likewise.
15505         * lib/unictype/digit.h: Likewise.
15506         * lib/unictype/numeric.h: Likewise.
15507         * lib/unictype/pr_alphabetic.h: Likewise.
15508         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15509         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15510         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15511         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15512         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15513         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15514         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15515         * lib/unictype/pr_combining.h: Likewise.
15516         * lib/unictype/pr_composite.h: Likewise.
15517         * lib/unictype/pr_currency_symbol.h: Likewise.
15518         * lib/unictype/pr_dash.h: Likewise.
15519         * lib/unictype/pr_decimal_digit.h: Likewise.
15520         * lib/unictype/pr_deprecated.h: Likewise.
15521         * lib/unictype/pr_diacritic.h: Likewise.
15522         * lib/unictype/pr_extender.h: Likewise.
15523         * lib/unictype/pr_grapheme_base.h: Likewise.
15524         * lib/unictype/pr_grapheme_extend.h: Likewise.
15525         * lib/unictype/pr_grapheme_link.h: Likewise.
15526         * lib/unictype/pr_id_continue.h: Likewise.
15527         * lib/unictype/pr_id_start.h: Likewise.
15528         * lib/unictype/pr_ideographic.h: Likewise.
15529         * lib/unictype/pr_ignorable_control.h: Likewise.
15530         * lib/unictype/pr_logical_order_exception.h: Likewise.
15531         * lib/unictype/pr_lowercase.h: Likewise.
15532         * lib/unictype/pr_numeric.h: Likewise.
15533         * lib/unictype/pr_other_alphabetic.h: Likewise.
15534         * lib/unictype/pr_punctuation.h: Likewise.
15535         * lib/unictype/pr_sentence_terminal.h: Likewise.
15536         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15537         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15538         * lib/unictype/pr_unified_ideograph.h: Likewise.
15539         * lib/unictype/pr_uppercase.h: Likewise.
15540         * lib/unictype/pr_xid_continue.h: Likewise.
15541         * lib/unictype/pr_xid_start.h: Likewise.
15542         * lib/unictype/pr_zero_width.h: Likewise.
15543         * lib/unictype/scripts.h: Likewise.
15544         * lib/unictype/scripts_byname.gperf: Likewise.
15545         * lib/unictype/sy_java_ident.h: Likewise.
15546         * lib/unigbrk/gbrkprop.h: Likewise.
15547         * lib/unilbrk/lbrkprop1.h: Likewise.
15548         * lib/unilbrk/lbrkprop2.h: Likewise.
15549         * lib/unilbrk/lbrktables.h: Likewise.
15550         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15551         LBP_CP. Implement rule LB30.
15552         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15553         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15554         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15555         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15556         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15557         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15558         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15559         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15560         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15561         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15562         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15563         bits instead of 16 bits in the code1 and code2 of each composition
15564         rule.
15565         (uc_composition): Update for Unicode 5.2.0.
15566         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15567         * lib/uninorm/decomposition-table2.h: Likewise.
15568         * lib/uniwbrk/wbrkprop.h: Likewise.
15569         * tests/unicase/test-cased.c: Likewise.
15570         * tests/unicase/test-ignorable.c: Likewise.
15571         * tests/unicase/test-uc_tolower.c: Likewise.
15572         * tests/unicase/test-uc_totitle.c: Likewise.
15573         * tests/unicase/test-uc_toupper.c: Likewise.
15574         * tests/unictype/test-categ_C.c: Likewise.
15575         * tests/unictype/test-categ_Cf.c: Likewise.
15576         * tests/unictype/test-categ_Cn.c: Likewise.
15577         * tests/unictype/test-categ_L.c: Likewise.
15578         * tests/unictype/test-categ_Ll.c: Likewise.
15579         * tests/unictype/test-categ_Lm.c: Likewise.
15580         * tests/unictype/test-categ_Lo.c: Likewise.
15581         * tests/unictype/test-categ_Lu.c: Likewise.
15582         * tests/unictype/test-categ_M.c: Likewise.
15583         * tests/unictype/test-categ_Mc.c: Likewise.
15584         * tests/unictype/test-categ_Mn.c: Likewise.
15585         * tests/unictype/test-categ_N.c: Likewise.
15586         * tests/unictype/test-categ_Nd.c: Likewise.
15587         * tests/unictype/test-categ_Nl.c: Likewise.
15588         * tests/unictype/test-categ_No.c: Likewise.
15589         * tests/unictype/test-categ_P.c: Likewise.
15590         * tests/unictype/test-categ_Pd.c: Likewise.
15591         * tests/unictype/test-categ_Po.c: Likewise.
15592         * tests/unictype/test-categ_S.c: Likewise.
15593         * tests/unictype/test-categ_Sc.c: Likewise.
15594         * tests/unictype/test-categ_So.c: Likewise.
15595         * tests/unictype/test-ctype_alnum.c: Likewise.
15596         * tests/unictype/test-ctype_alpha.c: Likewise.
15597         * tests/unictype/test-ctype_graph.c: Likewise.
15598         * tests/unictype/test-ctype_lower.c: Likewise.
15599         * tests/unictype/test-ctype_print.c: Likewise.
15600         * tests/unictype/test-ctype_punct.c: Likewise.
15601         * tests/unictype/test-ctype_upper.c: Likewise.
15602         * tests/unictype/test-decdigit.h: Likewise.
15603         * tests/unictype/test-digit.h: Likewise.
15604         * tests/unictype/test-numeric.h: Likewise.
15605         * tests/unictype/test-pr_alphabetic.c: Likewise.
15606         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15607         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15608         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15609         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15610         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15611         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15612         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15613         * tests/unictype/test-pr_combining.c: Likewise.
15614         * tests/unictype/test-pr_composite.c: Likewise.
15615         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15616         * tests/unictype/test-pr_dash.c: Likewise.
15617         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15618         * tests/unictype/test-pr_deprecated.c: Likewise.
15619         * tests/unictype/test-pr_diacritic.c: Likewise.
15620         * tests/unictype/test-pr_extender.c: Likewise.
15621         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15622         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15623         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15624         * tests/unictype/test-pr_id_continue.c: Likewise.
15625         * tests/unictype/test-pr_id_start.c: Likewise.
15626         * tests/unictype/test-pr_ideographic.c: Likewise.
15627         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15628         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15629         * tests/unictype/test-pr_lowercase.c: Likewise.
15630         * tests/unictype/test-pr_numeric.c: Likewise.
15631         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15632         * tests/unictype/test-pr_punctuation.c: Likewise.
15633         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15634         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15635         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15636         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15637         * tests/unictype/test-pr_uppercase.c: Likewise.
15638         * tests/unictype/test-pr_xid_continue.c: Likewise.
15639         * tests/unictype/test-pr_xid_start.c: Likewise.
15640         * tests/unictype/test-pr_zero_width.c: Likewise.
15641         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15642         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15643         changed behaviour: line breaking is now disallowed between a letter
15644         or '=' and '('.
15645         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15646         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15647         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15648         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15649         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15650         lib/uniwidth/width.c.
15651         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15652         without comments, but with the original copyright notice.
15653         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15654         changes.
15655         * lib/unictype/categ_Cc.h: Likewise.
15656         * lib/unictype/categ_Co.h: Likewise.
15657         * lib/unictype/categ_Cs.h: Likewise.
15658         * lib/unictype/categ_Lt.h: Likewise.
15659         * lib/unictype/categ_Me.h: Likewise.
15660         * lib/unictype/categ_Pc.h: Likewise.
15661         * lib/unictype/categ_Pe.h: Likewise.
15662         * lib/unictype/categ_Pf.h: Likewise.
15663         * lib/unictype/categ_Pi.h: Likewise.
15664         * lib/unictype/categ_Ps.h: Likewise.
15665         * lib/unictype/categ_Sk.h: Likewise.
15666         * lib/unictype/categ_Sm.h: Likewise.
15667         * lib/unictype/categ_Z.h: Likewise.
15668         * lib/unictype/categ_Zl.h: Likewise.
15669         * lib/unictype/categ_Zp.h: Likewise.
15670         * lib/unictype/categ_Zs.h: Likewise.
15671         * lib/unictype/ctype_blank.h: Likewise.
15672         * lib/unictype/ctype_cntrl.h: Likewise.
15673         * lib/unictype/ctype_digit.h: Likewise.
15674         * lib/unictype/ctype_space.h: Likewise.
15675         * lib/unictype/ctype_xdigit.h: Likewise.
15676         * lib/unictype/mirror.h: Likewise.
15677         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15678         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15679         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15680         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15681         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15682         * lib/unictype/pr_bidi_control.h: Likewise.
15683         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15684         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15685         * lib/unictype/pr_bidi_pdf.h: Likewise.
15686         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15687         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15688         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15689         * lib/unictype/pr_format_control.h: Likewise.
15690         * lib/unictype/pr_hex_digit.h: Likewise.
15691         * lib/unictype/pr_hyphen.h: Likewise.
15692         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15693         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15694         * lib/unictype/pr_iso_control.h: Likewise.
15695         * lib/unictype/pr_join_control.h: Likewise.
15696         * lib/unictype/pr_left_of_pair.h: Likewise.
15697         * lib/unictype/pr_line_separator.h: Likewise.
15698         * lib/unictype/pr_math.h: Likewise.
15699         * lib/unictype/pr_non_break.h: Likewise.
15700         * lib/unictype/pr_not_a_character.h: Likewise.
15701         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15702         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15703         * lib/unictype/pr_other_id_continue.h: Likewise.
15704         * lib/unictype/pr_other_id_start.h: Likewise.
15705         * lib/unictype/pr_other_lowercase.h: Likewise.
15706         * lib/unictype/pr_other_math.h: Likewise.
15707         * lib/unictype/pr_other_uppercase.h: Likewise.
15708         * lib/unictype/pr_paired_punctuation.h: Likewise.
15709         * lib/unictype/pr_paragraph_separator.h: Likewise.
15710         * lib/unictype/pr_pattern_syntax.h: Likewise.
15711         * lib/unictype/pr_pattern_white_space.h: Likewise.
15712         * lib/unictype/pr_private_use.h: Likewise.
15713         * lib/unictype/pr_quotation_mark.h: Likewise.
15714         * lib/unictype/pr_radical.h: Likewise.
15715         * lib/unictype/pr_soft_dotted.h: Likewise.
15716         * lib/unictype/pr_space.h: Likewise.
15717         * lib/unictype/pr_titlecase.h: Likewise.
15718         * lib/unictype/pr_variation_selector.h: Likewise.
15719         * lib/unictype/pr_white_space.h: Likewise.
15720         * lib/unictype/sy_c_ident.h: Likewise.
15721         * lib/unictype/sy_c_whitespace.h: Likewise.
15722         * lib/unictype/sy_java_whitespace.h: Likewise.
15723         * modules/uni*/*: Bump version number of expected libunistring version.
15724         Reported by Simon Josefsson.
15725
15726 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15727
15728         useless-if-before-free: fix typo in --help and make the internal,
15729         automatic version date update process work once again.
15730         --help output contained a NUL character instead of the
15731         backslash-zero that was intended.  Also, the "must lie within
15732         the first 8 lines" line is on line 9, and hence not getting
15733         automatically updated.
15734         * build-aux/useless-if-before-free: Fix the former by adding a
15735         backslash, and the latter by condensing the three lines of what-it-does
15736         to a single line, leaving one line of slack for the future.
15737
15738 2011-01-09  Bruno Haible  <bruno@clisp.org>
15739
15740         uniwidth/width: Fix width of U+1D173..U+1D17A.
15741         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15742         symbolic_width, output_width_property_test): New functions.
15743         (main): Invoke output_nonspacing_property, output_width_property_test.
15744         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15745         U+1D173..U+1D17A.
15746         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15747         1.
15748         * modules/uniwidth/*: Bump version number of expected libunistring
15749         version.
15750         * modules/unilbrk/*: Likewise.
15751
15752 2011-01-08  Bruno Haible  <bruno@clisp.org>
15753
15754         uninorm tests: Preserve copyright of Unicode data file.
15755         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15756         Mention modifications.
15757
15758 2011-01-08  Bruno Haible  <bruno@clisp.org>
15759
15760         gen-uni-tables: Prepare for Unicode 5.2.0.
15761         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15762         (debug_output_lbp, output_lbp): Update.
15763
15764 2011-01-08  Bruno Haible  <bruno@clisp.org>
15765
15766         unilbrk: Clarify gen-uni-tables.c code.
15767         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15768         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15769         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15770
15771 2011-01-07  Bruno Haible  <bruno@clisp.org>
15772
15773         strtod: Restore errno when successfully parsing Infinity or NaN.
15774         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15775         restore the original errno.
15776
15777 2011-01-07  Bruno Haible  <bruno@clisp.org>
15778
15779         remove test: Avoid failure on HP-UX 11.
15780         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15781
15782 2011-01-07  Bruno Haible  <bruno@clisp.org>
15783
15784         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15785         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15786         error code.
15787
15788 2011-01-07  Pádraig Brady <P@draigBrady.com>
15789
15790         ignore-value: fixup comments, and add Eric Blake
15791         as an author since he rewrote the macros.
15792         * lib/ignore-value.h (ignore_value):  State that
15793         we now support aggregates.  Also specify exactly
15794         when the GCC warn_unused_result feature was added.
15795
15796 2011-01-06  Eric Blake  <eblake@redhat.com>
15797
15798         ignore-value: support aggregate types
15799         * lib/ignore-value.h (ignore_value): Provide separate gcc
15800         definition.
15801         * modules/ignore-value-tests: New test module.
15802         * tests/test-ignore-value.c: New test.
15803
15804         maint.mk: improve sc_prohibit_strcmp regex
15805         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15806         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15807         definition of STRNEQ.
15808
15809         signal: work around Haiku issue with SIGBUS
15810         * lib/siglist.h: Add comment.
15811         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15812         strsignal's favoring of SIGSEGV.
15813         * tests/test-signal.c (main): Avoid test failure.
15814         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15815         Reported by Scott McCreary.
15816
15817         maint.mk: add pre-release check to ensure submodule commits are public
15818         * top/maint.mk (public-submodule-commit): New rule.
15819         (submodule-checks): New variable.
15820         (alpha beta stable): Depend on the variable.
15821
15822 2011-01-05  Pádraig Brady <P@draigBrady.com>
15823         and Jim Meyering  <meyering@redhat.com>
15824
15825         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15826         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15827         (ATTRIBUTE_DEPRECATED): Define.
15828         (_ignore_case): New function.
15829         (ignore_value): New macro, to replace the old function.
15830         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15831         * modules/ignore-value (Depends-on): Add stdint.
15832
15833 2011-01-04  Eric Blake  <eblake@redhat.com>
15834
15835         doc: regenerate INSTALL
15836         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15837         @firstparagraphindent support, now that autoconf dropped it.
15838         (INSTALL_PRELUDE): Reinstate old macro.
15839         * doc/install.texi: Resync from autoconf.
15840         * doc/INSTALL: Reflect recent autoconf update.
15841         * doc/INSTALL.ISO: Likewise.
15842         * doc/INSTALL.UTF-8: Likewise.
15843         Reported by Karl Berry.
15844
15845 2011-01-04  Bruce Korb  <address@hidden>
15846
15847         git-version-gen: avoid a sub-shell
15848         * build-aux/git-version-gen: Redirect stderr in `...` via
15849         "exec 2>...", rather than via an added sub-shell.
15850
15851 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15852
15853         git-version-gen: use (...) rather than sh -c '...'
15854         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15855         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15856
15857 2011-01-03  Jim Meyering  <meyering@redhat.com>
15858
15859         git-version-gen: convert leading TABs to spaces
15860         * build-aux/git-version-gen: Expand leading TABs.
15861
15862         git-version-gen: handle failed "git rev-list"
15863         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15864         from git and proceeding as if it had succeeded but printed no SHA1
15865         checksums, suppress the diagnostic and handle the failure.
15866         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15867
15868         git-version-gen: include command name in one more diagnostic
15869         * build-aux/git-version-gen: When the required .tarball-version file
15870         was missing or unreadable, you might see the diagnostic from "cat",
15871         but no trace of the name of the invoking script.  Now, you still see
15872         the diagnostic from cat, but also get one from "git-version-gen: ".
15873         Inspired by a patch from Bruce Korb.
15874
15875         update-copyright: adjust test to match changed code
15876         * tests/test-update-copyright.sh: Change test's expected output
15877         to match new actual output.
15878
15879 2011-01-02  Bruno Haible  <bruno@clisp.org>
15880
15881         getlogin_r: Avoid test failure on HP-UX 11.
15882         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15883         ERANGE when the second argument is zero.
15884         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15885         portability problem.
15886
15887 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15888
15889         * build-aux/update-copyright: doc Simon's changes
15890
15891 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15892
15893         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15894         environment variable.
15895
15896 2011-01-02  Bruno Haible  <bruno@clisp.org>
15897
15898         unigbrk: Avoid gcc warnings.
15899         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15900         unused variable.
15901         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15902         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15903         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15904         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15905         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15906         Change type of first argument to 'const char *'.
15907         (main): Remove unused variable.
15908         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15909         type of first argument to 'const char *'.
15910         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15911         Likewise.
15912         (main): Change type of variable 's'.
15913         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15914         to 'int'.
15915
15916 2011-01-02  Bruno Haible  <bruno@clisp.org>
15917
15918         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15919         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15920         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15921         bug.
15922         * lib/pwrite.c: Undo 2010-12-31 patch.
15923         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15924
15925 2011-01-02  Bruno Haible  <bruno@clisp.org>
15926
15927         pread: Fix test whether it works.
15928         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15929
15930 2011-01-02  Bruno Haible  <bruno@clisp.org>
15931
15932         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15933         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15934         ends in "6". Don't require a specific month name. Try also the locale
15935         names found on HP-UX 11 and Solaris 7.
15936
15937 2011-01-02  Bruno Haible  <bruno@clisp.org>
15938
15939         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15940         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15941         C linkage.
15942         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15943
15944 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15945
15946         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15947         for consistency, since the "cluster" term is not used elsewhere.
15948         * lib/unigbrk.in.h: Update name.
15949         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15950         * lib/unigbrk/u16-grapheme-next.c: Update name.
15951         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15952         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15953         * lib/unigbrk/u32-grapheme-next.c: Update name.
15954         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15955         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15956         * lib/unigbrk/u8-grapheme-next.c: Update name.
15957         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15958         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15959         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15960         Suggested by Bruno Haible.
15961
15962 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15963
15964         Remove module 'u8-grapheme-len' as too redundant with
15965         'u8-grapheme-next'.
15966         * modules/unigbrk/u8-grapheme-len: Delete file.
15967         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15968         * lib/unigbrk.in.h: Remove prototype for deleted function.
15969         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15970         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15971
15972         Remove module 'u16-grapheme-len' as too redundant with
15973         'u16-grapheme-next'.
15974         * modules/unigbrk/u16-grapheme-len: Delete file.
15975         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15976         * lib/unigbrk.in.h: Remove prototype for deleted function.
15977         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15978         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15979
15980         Remove module 'u32-grapheme-len' as too redundant with
15981         'u32-grapheme-next'.
15982         * modules/unigbrk/u32-grapheme-len: Delete file.
15983         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15984         * lib/unigbrk.in.h: Remove prototype for deleted function.
15985         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15986         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15987
15988         Suggested by Bruno Haible.
15989
15990 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15991
15992         * unigbrk.in.h: Fix typo: "ben" => "been".
15993         Reported by Bruno Haible.
15994
15995 2011-01-01  Jim Meyering  <meyering@redhat.com>
15996
15997         maint: update almost all copyright ranges to include 2011
15998         Run the new "make update-copyright" rule.
15999
16000 2011-01-01  Jim Meyering  <meyering@redhat.com>
16001
16002         maint: update-copyright: exempt doc/INSTALL*
16003         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16004         since they are generated.  Suggested by Bruno Haible.
16005
16006 2011-01-01  Jim Meyering  <meyering@redhat.com>
16007
16008         maint: refine the update-copyright rule
16009         * Makefile (update-copyright): Also exclude any file that includes
16010         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16011         code that merely generates the comment.
16012
16013 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16014
16015         New module 'u8-grapheme-len'.
16016         * modules/unigbrk/u8-grapheme-len: New file.
16017         * modules/unigbrk/u8-grapheme-len-tests: New file.
16018         * lib/unigbrk.in.h: Add prototype for new function.
16019         * lib/unigbrk/u8-grapheme-len.c: New file.
16020         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16021
16022         New module 'u16-grapheme-len'.
16023         * modules/unigbrk/u16-grapheme-len: New file.
16024         * modules/unigbrk/u16-grapheme-len-tests: New file.
16025         * lib/unigbrk.in.h: Add prototype for new function.
16026         * lib/unigbrk/u16-grapheme-len.c: New file.
16027         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16028
16029         New module 'u32-grapheme-len'.
16030         * modules/unigbrk/u32-grapheme-len: New file.
16031         * modules/unigbrk/u32-grapheme-len-tests: New file.
16032         * lib/unigbrk.in.h: Add prototype for new function.
16033         * lib/unigbrk/u32-grapheme-len.c: New file.
16034         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16035
16036         New module 'u8-grapheme-next'.
16037         * modules/unigbrk/u8-grapheme-next: New file.
16038         * modules/unigbrk/u8-grapheme-next-tests: New file.
16039         * lib/unigbrk.in.h: Add prototype for new function.
16040         * lib/unigbrk/u8-grapheme-next.c: New file.
16041         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16042
16043         New module 'u16-grapheme-next'.
16044         * modules/unigbrk/u16-grapheme-next: New file.
16045         * modules/unigbrk/u16-grapheme-next-tests: New file.
16046         * lib/unigbrk.in.h: Add prototype for new function.
16047         * lib/unigbrk/u16-grapheme-next.c: New file.
16048         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16049
16050         New module 'u32-grapheme-next'.
16051         * modules/unigbrk/u32-grapheme-next: New file.
16052         * modules/unigbrk/u32-grapheme-next-tests: New file.
16053         * lib/unigbrk.in.h: Add prototype for new function.
16054         * lib/unigbrk/u32-grapheme-next.c: New file.
16055         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16056
16057         New module 'u8-grapheme-prev'.
16058         * modules/unigbrk/u8-grapheme-prev: New file.
16059         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16060         * lib/unigbrk.in.h: Add prototype for new function.
16061         * lib/unigbrk/u8-grapheme-prev.c: New file.
16062         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16063
16064         New module 'u16-grapheme-prev'.
16065         * modules/unigbrk/u16-grapheme-prev: New file.
16066         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16067         * lib/unigbrk.in.h: Add prototype for new function.
16068         * lib/unigbrk/u16-grapheme-prev.c: New file.
16069         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16070
16071         New module 'u32-grapheme-prev'.
16072         * modules/unigbrk/u32-grapheme-prev: New file.
16073         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16074         * lib/unigbrk.in.h: Add prototype for new function.
16075         * lib/unigbrk/u32-grapheme-prev.c: New file.
16076         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16077
16078         New module 'u8-grapheme-breaks'.
16079         * modules/unigbrk/u8-grapheme-breaks: New file.
16080         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16081         * lib/unigbrk.in.h: Add prototype for new function.
16082         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16083         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16084
16085         New module 'u16-grapheme-breaks'.
16086         * modules/unigbrk/u16-grapheme-breaks: New file.
16087         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16088         * lib/unigbrk.in.h: Add prototype for new function.
16089         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16090         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16091
16092         New module 'u32-grapheme-breaks'.
16093         * modules/unigbrk/u32-grapheme-breaks: New file.
16094         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16095         * lib/unigbrk.in.h: Add prototype for new function.
16096         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16097         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16098
16099         New module 'ulc-grapheme-breaks'.
16100         * modules/unigbrk/ulc-grapheme-breaks: New file.
16101         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16102         * m4/locale-ar.m4: New file.
16103         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16104         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16105         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16106
16107 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16108
16109         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16110         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16111         modified how this file was generated before I initially submitted
16112         the module, but failed to regenerate it.  This meant that several
16113         of the level2 entries were wrong.
16114         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16115         Remove the division-by-2 that is folded into the table now that
16116         gbrkprop.h has been regenerated properly.  Now -1 entries are
16117         handled correctly.
16118
16119         New module 'unigbrk/uc-gbrk-prop-tests'.
16120         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16121         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16122         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16123         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16124
16125 2011-01-01  Bruno Haible  <bruno@clisp.org>
16126
16127         Avoid use of hexadecimal escapes.
16128         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16129         instead of hexadecimal escapes.
16130
16131 2011-01-01  Jim Meyering  <meyering@redhat.com>
16132
16133         maint: new rule to update copyright year ranges
16134         * Makefile (update-copyright): New rule.
16135
16136         maint: indent with TABs in Makefile
16137         * Makefile: Expand leading sequences of spaces to TABs
16138
16139         version-etc: update the copyright year it reports
16140         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16141
16142 2010-12-31  Bruno Haible  <bruno@clisp.org>
16143
16144         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16145         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16146         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16147         zero.
16148
16149 2010-12-31  Bruno Haible  <bruno@clisp.org>
16150
16151         pwrite: Work around HP-UX 11.11 bug.
16152         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16153         works and set REPLACE_PWRITE if not.
16154         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16155         function.
16156         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16157
16158 2010-12-31  Bruno Haible  <bruno@clisp.org>
16159
16160         pread: Work around HP-UX 11 bugs.
16161         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16162         and set REPLACE_PREAD if not.
16163         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16164
16165 2010-12-31  Eric Blake  <eblake@redhat.com>
16166
16167         nl_langinfo: fix YESEXPR on Irix 6.5
16168         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16169         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16170         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16171         it.
16172
16173 2010-12-31  Bruno Haible  <bruno@clisp.org>
16174
16175         iconv: Document HP-UX 11 bug.
16176         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16177
16178 2010-12-31  Bruno Haible  <bruno@clisp.org>
16179
16180         ldexpl: Fix link error on HP-UX 11.
16181         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16182         LDEXPL_LIBM, using $ISNANL_LIBM.
16183
16184 2010-12-31  Eric Blake  <eblake@redhat.com>
16185
16186         ftello: avoid compilation failure with SunStudio c89
16187         * lib/ftello.c (ftello): Use lseek, not llseek.
16188
16189         tests: avoid failing coreutils tests on cygwin
16190         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16191         (create_exe_shims_): Return 0 when skipping.
16192
16193 2010-12-31  Bruno Haible  <bruno@clisp.org>
16194
16195         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16196         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16197
16198 2010-12-31  Bruno Haible  <bruno@clisp.org>
16199
16200         waitpid: Fix link error in C++ mode.
16201         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16202
16203 2010-12-31  Bruno Haible  <bruno@clisp.org>
16204
16205         isnan: Use GCC built-ins when possible.
16206         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16207         __builtin_isnan.
16208         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16209         (isnan): Define using GCC built-ins for GCC >= 4.0.
16210
16211 2010-12-31  Bruno Haible  <bruno@clisp.org>
16212
16213         isnand: Fix mistake.
16214         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16215         __builtin_isnand.
16216
16217 2010-12-31  Bruno Haible  <bruno@clisp.org>
16218
16219         open: Avoid C++ error on HP-UX 11.
16220         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16221
16222 2010-12-31  Bruno Haible  <bruno@clisp.org>
16223
16224         time_r: Add missing declarations on HP-UX 11.
16225         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16226         instead of HAVE_LOCALTIME_R.
16227         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16228         HAVE_LOCALTIME_R always.
16229         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16230         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16231         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16232         HAVE_LOCALTIME_R.
16233         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16234         * doc/posix-functions/localtime_r.texi: Likewise.
16235
16236 2010-12-29  Eric Blake  <eblake@redhat.com>
16237
16238         mountlist: tweak previous commit
16239         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16240         Reported by Paul Eggert.
16241
16242         mountlist: fix local drive detection on cygwin
16243         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16244         that works for cygwin.
16245
16246 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16247
16248         ftoastr, snprintf: ftoastr + snprintf module
16249         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16250         since the snprintf module now should be good enough here.
16251         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16252         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16253         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16254         GNULIB_SNPRINTF only for the test directory, and the latter
16255         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16256         seems to suffice by itself.
16257
16258 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16259
16260         alloca: one step towards thread-safety
16261         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16262         need for a static variable.  All callers changed.  This does not
16263         make the alloca replacement thread-safe, but it's one step.
16264
16265         tests: minor indenting change
16266         * tests/init.sh: Sync from coreutils housekeeping patch
16267         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16268         to keep lines within 80 columns.
16269
16270 2010-12-28  Jim Meyering  <meyering@redhat.com>
16271
16272         regex: don't infloop on persistent failing calloc
16273         * lib/regexec.c (build_trtable): Return failure indication upon
16274         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16275         In glibc, this was fixed for version 2.13:
16276         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16277
16278 2010-12-28  Bruno Haible  <bruno@clisp.org>
16279             Paul Eggert <eggert@cs.ucla.edu>
16280
16281         linkat: Make implementation robust against system behaviour variations.
16282         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16283         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16284         way, and to -2 if it needs a generic runtime test.
16285         * lib/linkat.c (solaris_optimized_link_immediate,
16286         solaris_optimized_link_follow): New functions.
16287         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16288         (check_same_link): Use it.
16289
16290 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16291
16292         New module 'unigbrk/base'.
16293         * modules/unigbrk/base: New file.
16294         * lib/unigbrk.in.h: New file.
16295
16296         New module 'unigbrk/uc-gbrk-prop'.
16297         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16298         * modules/unigbrk/uc-gbrk-prop: New file.
16299         * lib/unigbrk/gbrkprop.h: New file.
16300         * lib/unigbrk/uc-gbrk-prop.c: New file.
16301
16302         New module 'unigbrk/uc-is-grapheme-break'.
16303         * modules/unigbrk/uc-is-grapheme-break: New file.
16304         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16305         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16306         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16307         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16308         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16309
16310         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16311
16312 2010-12-27  Bruno Haible  <bruno@clisp.org>
16313
16314         linkat test: Avoid failure on Solaris 11 2010-11.
16315         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16316
16317 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16318
16319         utimens: work around glibc rounding bug on more platforms
16320         * lib/utimens.c (fdutimens): Work around rounding bug even if
16321         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16322         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16323
16324 2010-12-27  Bruno Haible  <bruno@clisp.org>
16325
16326         select tests: Improve comments.
16327         * tests/test-select.c (do_select): Add comments.
16328
16329 2010-12-27  Bruno Haible  <bruno@clisp.org>
16330
16331         select tests: Safer way of handling timeout.
16332         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16333         at every invocation.
16334
16335 2010-12-27  Bruno Haible  <bruno@clisp.org>
16336
16337         select tests: Use 'bool' where appropriate.
16338         * tests/test-select.c (connect_to_socket): Change argument type to
16339         'bool'.
16340
16341 2010-12-27  Bruno Haible  <bruno@clisp.org>
16342
16343         select tests: Use existing modules.
16344         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16345         (configure.ac): Don't test for unistd.h.
16346         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16347         declared in <unistd.h>.
16348
16349 2010-12-27  Bruno Haible  <bruno@clisp.org>
16350
16351         mbrtowc: Work around a Solaris 7 bug.
16352         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16353         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16354         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16355         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16356         MBRTOWC_NULL_ARG1_BUG.
16357         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16358         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16359         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16360         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16361
16362 2010-12-27  Jim Meyering  <meyering@redhat.com>
16363
16364         read-file.c: tweak syntax
16365         * lib/read-file.c (fread_file): Remove space after "*" in function
16366         definitions.
16367
16368 2010-12-27  Bruno Haible  <bruno@clisp.org>
16369
16370         times test: Avoid gcc warnings on OSF/1.
16371         * tests/test-times.c (main): Cast printf arguments from clock_t to
16372         'long int'.
16373
16374 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16375
16376         utimens: work around glibc rounding bug on older Linux kernels
16377         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16378         on Linux with a glibc whose utimes might not work, then work
16379         around a longstanding glibc bug involving rounding rather than
16380         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16381         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16382
16383 2010-12-26  Bruno Haible  <bruno@clisp.org>
16384
16385         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16386         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16387         _GL_CXXALIAS_SYS.
16388         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16389
16390 2010-12-26  Bruno Haible  <bruno@clisp.org>
16391
16392         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16393         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16394         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16395         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16396         looking for the declaration.
16397         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16398         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16399         problem.
16400         * doc/posix-functions/inet_pton.texi: Likewise.
16401
16402 2010-12-26  Bruno Haible  <bruno@clisp.org>
16403
16404         arpa_inet: Use the common idioms with C++ support.
16405         * lib/arpa_inet.in.h: Include c++defs.h.
16406         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16407         support.
16408         * modules/arpa_inet (Depends-on): Add c++defs.
16409         (Makefile.am): Substitute the contents of c++defs.h.
16410         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16411         * modules/arpa_inet-c++-tests: New file.
16412         * tests/test-arpa_inet-c++.cc: New file.
16413
16414 2010-12-25  Bruno Haible  <bruno@clisp.org>
16415
16416         Fix more C++ link errors on Solaris 8.
16417         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16418         $(LIB_EACCESS).
16419         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16420         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16421         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16422         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16423         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16424
16425 2010-12-25  Bruno Haible  <bruno@clisp.org>
16426
16427         printf-posix: Fix link error when a non-GCC compiler is used.
16428         * lib/stdio.in.h (printf): When not using GCC, override printf
16429         correctly.
16430         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16431
16432 2010-12-25  Bruno Haible  <bruno@clisp.org>
16433
16434         strerror_r-posix: Update doc.
16435         * doc/posix-functions/strerror_r.texi: Update doc about the return
16436         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16437
16438 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16439
16440         utimens: simplify the logic of the previous change
16441         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16442         This should not affect whether the test succeeds or fails.
16443
16444         utimens: configure better on hosts with NFS clock skew
16445         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16446         uses the clock of the local host.  It might use the clock of the
16447         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16448         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16449
16450 2010-12-25  Bruno Haible  <bruno@clisp.org>
16451
16452         ptsname test: Avoid failure on Solaris.
16453         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16454         open a pseudo-terminal; don't use BSD-style ptys.
16455         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16456
16457 2010-12-25  Bruno Haible  <bruno@clisp.org>
16458
16459         ptsname: Avoid ERANGE failure on some systems.
16460         * lib/ptsname.c (buffer): Increase size.
16461
16462 2010-12-25  Bruno Haible  <bruno@clisp.org>
16463
16464         rename, renameat: Avoid test failures at NFS mounted locations.
16465         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16466         so that subsequent mkdir calls succeed.
16467
16468 2010-12-25  Bruno Haible  <bruno@clisp.org>
16469
16470         iswblank: Fix C++ link error on Solaris 8.
16471         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16472         _GL_FUNCDECL_SYS.
16473
16474 2010-12-25  Bruno Haible  <bruno@clisp.org>
16475
16476         unistd: Fix C++ link error on Solaris 8.
16477         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16478
16479 2010-12-25  Bruno Haible  <bruno@clisp.org>
16480
16481         readlink doc: Mention an old glibc bug.
16482         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16483
16484 2010-12-25  Bruno Haible  <bruno@clisp.org>
16485
16486         fcntl-h: Fix for use of C++ on glibc systems.
16487         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16488         also on glibc systems in C++ mode.
16489         Reported by Gary V. Vaughan <gary@gnu.org>.
16490
16491 2010-12-25  Bruno Haible  <bruno@clisp.org>
16492
16493         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16494         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16495
16496 2010-12-25  Bruno Haible  <bruno@clisp.org>
16497
16498         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16499         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16500         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16501         test whether truncl works according to ISO C 99 with IEC 60559.
16502         * m4/truncl-ieee.m4: New file.
16503         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16504         m4/signbit.m4.
16505         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16506
16507 2010-12-25  Bruno Haible  <bruno@clisp.org>
16508
16509         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16510         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16511         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16512         test whether ceill works according to ISO C 99 with IEC 60559.
16513         * m4/ceill-ieee.m4: New file.
16514         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16515         m4/signbit.m4.
16516         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16517
16518 2010-12-25  Bruno Haible  <bruno@clisp.org>
16519
16520         Ensure all prerequisites of <wchar.h> are included.
16521         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16522         before <wchar.h>.
16523         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16524         gl_MBRLEN_NUL_RETVAL): Likewise.
16525         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16526         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16527         AC_FUNC_MBRTOWC): Likewise.
16528         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16529         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16530         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16531         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16532         Likewise.
16533         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16534         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16535         (gl_WCHAR_H): Improve comments.
16536         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16537
16538 2010-12-25  Bruno Haible  <bruno@clisp.org>
16539
16540         strtok_r: Fix C syntax error in autoconf macro.
16541         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16542         characters in test program.
16543
16544 2010-12-24  Bruno Haible  <bruno@clisp.org>
16545
16546         ceil, trunc, round: Fix gcc warnings.
16547         * lib/ceil.c (MIN): Undefine before redefining.
16548         * lib/trunc.c (MIN): Likewise.
16549         * lib/round.c (MIN): Likewise.
16550         Include <math.h> first.
16551
16552 2010-12-24  Bruno Haible  <bruno@clisp.org>
16553
16554         select tests: Avoid failures on OSF/1 5.1.
16555         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16556         failure of closing the last socket; it may fail with ECONNRESET.
16557
16558 2010-12-24  Eric Blake  <eblake@redhat.com>
16559
16560         stdint: avoid HP-UX 10.20 preprocessor bug
16561         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16562         than #if.
16563         * tests/test-floor2.c (main): Likewise.
16564         Reported by Peter O'Gorman.
16565
16566         pipe: make obsoletion transition easier
16567         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16568         * modules/pipe (Files): Include revived file.
16569         (Include): Drop reference, to mirror getdate's behavior.
16570
16571 2010-12-24  Bruno Haible  <bruno@clisp.org>
16572
16573         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16574         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16575         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16576         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16577
16578 2010-12-24  Bruno Haible  <bruno@clisp.org>
16579
16580         gethostname: Ensure declaration on NonStop Kernel.
16581         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16583
16584 2010-12-24  Bruno Haible  <bruno@clisp.org>
16585
16586         sys_select: Ensure all necessary types on NonStop Kernel.
16587         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16588         include <sys/time.h>.
16589         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16590         NonStop Kernel.
16591         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16592
16593 2010-12-24  Bruno Haible  <bruno@clisp.org>
16594
16595         sys_select: Remove unneeded include.
16596         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16597         have <sys/select.h>.
16598
16599 2010-12-24  Bruno Haible  <bruno@clisp.org>
16600
16601         gethostname: Provide a fallback for HOST_NAME_MAX.
16602         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16603         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16604         instead.
16605         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16606
16607 2010-12-24  Bruno Haible  <bruno@clisp.org>
16608
16609         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16610         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16611         (SA_RESTART): Likewise.
16612         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16613
16614 2010-12-24  Bruno Haible  <bruno@clisp.org>
16615
16616         signal: Define NSIG.
16617         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16618         * tests/test-signal.c (nsig): New variable.
16619         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16620
16621 2010-12-24  Bruno Haible  <bruno@clisp.org>
16622
16623         rename, renameat: Avoid test failures on OSF/1 5.1.
16624         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16625         alternative error codes.
16626         * tests/test-renameat.c (main): Likewise.
16627
16628 2010-12-24  Bruno Haible  <bruno@clisp.org>
16629
16630         *printf: Detect large precisions bug on Solaris 10/SPARC.
16631         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16632         by Paul Eggert.
16633         * tests/test-snprintf-posix.h (test_function): Add this test code here
16634         too.
16635         * tests/test-sprintf-posix.h (test_function): Likewise.
16636         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16637         * tests/test-vasprintf-posix.c (test_function): Likewise.
16638         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16639         around by gnulib.
16640         * doc/posix-functions/printf.texi: Likewise.
16641         * doc/posix-functions/snprintf.texi: Likewise.
16642         * doc/posix-functions/sprintf.texi: Likewise.
16643         * doc/posix-functions/vfprintf.texi: Likewise.
16644         * doc/posix-functions/vprintf.texi: Likewise.
16645         * doc/posix-functions/vsnprintf.texi: Likewise.
16646         * doc/posix-functions/vsprintf.texi: Likewise.
16647         * doc/posix-functions/dprintf.texi: Undo last commit.
16648         * doc/posix-functions/vdprintf.texi: Likewise.
16649
16650 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16651
16652         tests: port test-fdutimensat.c to Solaris 8
16653         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16654         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16655         On Solaris 8, it fails with errno == ENOSYS, because there is no
16656         futimens (so it can't use the fd), and there is no lutimens (so it
16657         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16658
16659         vsnprintf: make more consistent with snprintf; doc fixes
16660
16661         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16662         the byte count return problem was promoted from the snprintf-posix
16663         to the snprintf module.
16664         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16665         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16666         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16667         * tests/test-snprintf.c (main): Check the byte count returned.
16668         * tests/test-vsnprintf.c (main): Likewise.
16669
16670 2010-12-23  Eric Blake  <eblake@redhat.com>
16671
16672         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16673         * modules/sigpipe (License): Relax license.
16674
16675 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16676
16677         doc: document Solaris printf bug with large float precisions
16678         * doc/posix-functions/dprintf.texi (dprintf):
16679         * doc/posix-functions/fprintf.texi (fprintf):
16680         * doc/posix-functions/printf.texi (printf):
16681         * doc/posix-functions/snprintf.texi (snprintf):
16682         * doc/posix-functions/sprintf.texi (sprintf):
16683         * doc/posix-functions/vdprintf.texi (vdprintf):
16684         * doc/posix-functions/vfprintf.texi (vfprintf):
16685         * doc/posix-functions/vprintf.texi (vprintf):
16686         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16687         * doc/posix-functions/vsprintf.texi (vsprintf):
16688         Mention that these functions mishandle large floating point
16689         precisions on Solaris 10.  The same bug is also present in Solaris
16690         8, and I assume earlier.  This causes "cd gnulib-tests; make
16691         check" to fail on Solaris 8 (and I assume, later) when building
16692         the latest coreutils, in test-vasprintf-posix's call to
16693         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16694         the wide flavors (e.g., wprintf) so this patch just updates the
16695         documentation for the narrow ones.
16696
16697         test-posixtm.c: add two tests
16698         * tests/test-posixtm.c: Add two tests, to highlight the
16699         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16700         around this bug; this is merely to document it.
16701
16702 2010-12-22  Bruno Haible  <bruno@clisp.org>
16703
16704         getlogin_r: Work around portability problem on OSF/1.
16705         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16706         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16707         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16708         test for a truncated result.
16709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16710         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16711         * modules/getlogin_r (Depends-on): Add memchr.
16712         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16713
16714 2010-12-22  Bruno Haible  <bruno@clisp.org>
16715
16716         ptsname: Avoid test failure on OSF/1 5.1.
16717         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16718         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16719         (same_slave): New function.
16720         (main): Use it to compare ptsname's result with the expected file name.
16721
16722 2010-12-22  Bruno Haible  <bruno@clisp.org>
16723
16724         Port extended stdio modules to HP NonStop Kernel.
16725         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16726         macros.
16727         * lib/fbufmode.c: Update comments.
16728         * lib/fflush.c: Likewise.
16729         * lib/fpurge.c: Likewise.
16730         * lib/freadable.c: Likewise.
16731         * lib/freadahead.c: Likewise.
16732         * lib/freading.c: Likewise.
16733         * lib/freadptr.c: Likewise.
16734         * lib/freadseek.c: Likewise.
16735         * lib/fseeko.c: Likewise.
16736         * lib/fseterr.c: Likewise.
16737         * lib/fwritable.c: Likewise.
16738         * lib/fwriting.c: Likewise.
16739         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16740
16741 2010-12-22  Bruno Haible  <bruno@clisp.org>
16742
16743         ttyname_r: Work around bug on OSF/1 5.1.
16744         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16745         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16746         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16747         present.
16748         * lib/ttyname_r.c (ttyname_r): Update comments.
16749
16750 2010-12-22  Bruno Haible  <bruno@clisp.org>
16751
16752         round: Implement result sign according to IEEE 754.
16753         * lib/round.c (MIN, MINUS_ZERO): New macros.
16754         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16755         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16756         * tests/test-round-ieee.c (main): Likewise.
16757         * tests/test-roundl-ieee.c (main): Likewise.
16758
16759         trunc: Implement result sign according to IEEE 754.
16760         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16761         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16762         * tests/test-trunc2.c: Include minus-zero.h.
16763         (MINUS_ZERO): New macro.
16764         (trunc_reference): Keep in sync with lib/trunc.c.
16765         * tests/test-truncf2.c: Include minus-zero.h.
16766         (MINUS_ZERO): New macro.
16767         (truncf_reference): Keep in sync with lib/trunc.c.
16768         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16769         * tests/test-trunc-ieee.c (main): Likewise.
16770         * tests/test-truncl-ieee.c (main): Likewise.
16771
16772         ceil: Implement result sign according to IEEE 754.
16773         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16774         (FUNC): Return -0.0 for -1 < x < 0.
16775         * tests/test-ceil2.c: Include minus-zero.h.
16776         (MINUS_ZERO): New macro.
16777         (ceil_reference): Keep in sync with lib/ceil.c.
16778         * tests/test-ceilf2.c: Include minus-zero.h.
16779         (MINUS_ZERO): New macro.
16780         (ceilf_reference): Keep in sync with lib/ceil.c.
16781         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16782         * tests/test-ceil-ieee.c (main): Likewise.
16783         * tests/test-ceill-ieee.c (main): Likewise.
16784
16785         floor: Implement result sign according to IEEE 754.
16786         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16787         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16788         * tests/test-floorf2.c (floorf_reference): Likewise.
16789         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16790         * tests/test-floor-ieee.c (main): Likewise.
16791         * tests/test-floorl-ieee.c (main): Likewise.
16792
16793 2010-12-22  Bruno Haible  <bruno@clisp.org>
16794
16795         getaddrinfo: Update doc.
16796         * doc/posix-functions/gai_strerror.texi: Return type is also different
16797         on AIX and HP-UX.
16798
16799 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16800
16801         getaddrinfo, inet_ntop: Update doc for Solaris.
16802         * doc/posix-functions/gai_strerror.texi: Return type is also an
16803         issue on Solaris 9 and earlier.
16804         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16805         on Solaris 10 and earlier.
16806
16807 2010-12-21  Bruno Haible  <bruno@clisp.org>
16808
16809         New module 'roundl-ieee'.
16810         * modules/roundl-ieee: New file.
16811         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16812         test whether roundl works according to ISO C 99 with IEC 60559.
16813         * m4/roundl-ieee.m4: New file.
16814         * modules/roundl-ieee-tests: New file.
16815         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16816         * tests/test-roundl.c (main): Remove signbit tests.
16817         * modules/roundl-tests (Depends-on): Remove signbit.
16818         * doc/posix-functions/roundl.texi: Mention the new module.
16819
16820 2010-12-21  Bruno Haible  <bruno@clisp.org>
16821
16822         New module 'truncl-ieee'.
16823         * modules/truncl-ieee: New file.
16824         * modules/truncl-ieee-tests: New file.
16825         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16826         * tests/test-truncl.c (main): Remove signbit tests.
16827         * modules/truncl-tests (Depends-on): Remove signbit.
16828         * doc/posix-functions/truncl.texi: Mention the new module.
16829
16830 2010-12-21  Bruno Haible  <bruno@clisp.org>
16831
16832         New module 'ceill-ieee'.
16833         * modules/ceill-ieee: New file.
16834         * modules/ceill-ieee-tests: New file.
16835         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16836         * tests/test-ceill.c (main): Remove signbit tests.
16837         * modules/ceill-tests (Depends-on): Remove signbit.
16838         * doc/posix-functions/ceill.texi: Mention the new module.
16839
16840 2010-12-21  Bruno Haible  <bruno@clisp.org>
16841
16842         New module 'floorl-ieee'.
16843         * modules/floorl-ieee: New file.
16844         * modules/floorl-ieee-tests: New file.
16845         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16846         * tests/test-floorl.c (main): Remove signbit tests.
16847         * modules/floorl-tests (Depends-on): Remove signbit.
16848         * doc/posix-functions/floorl.texi: Mention the new module.
16849
16850 2010-12-21  Bruno Haible  <bruno@clisp.org>
16851
16852         New module 'round-ieee'.
16853         * modules/round-ieee: New file.
16854         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16855         whether round works according to ISO C 99 with IEC 60559.
16856         * m4/round-ieee.m4: New file.
16857         * modules/round-ieee-tests: New file.
16858         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16859         * tests/test-round1.c (main): Remove signbit tests.
16860         * modules/round-tests (Depends-on): Remove 'signbit'.
16861         * doc/posix-functions/round.texi: Mention the new module.
16862
16863 2010-12-21  Bruno Haible  <bruno@clisp.org>
16864
16865         New module 'trunc-ieee'.
16866         * modules/trunc-ieee: New file.
16867         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16868         whether trunc works according to ISO C 99 with IEC 60559.
16869         * m4/trunc-ieee.m4: New file.
16870         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16872         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16873         * modules/trunc-ieee-tests: New file.
16874         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16875         * tests/test-trunc1.c (main): Remove signbit tests.
16876         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16877         * doc/posix-functions/trunc.texi: Mention the new module.
16878
16879 2010-12-21  Bruno Haible  <bruno@clisp.org>
16880
16881         New module 'ceil-ieee'.
16882         * modules/ceil-ieee: New file.
16883         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16884         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16885         ISO C 99 with IEC 60559.
16886         * m4/ceil-ieee.m4: New file.
16887         * modules/ceil (Files): Add lib/ceil.c.
16888         (Depends-on): Add 'float'.
16889         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16890         * lib/math.in.h (ceil): New declaration.
16891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16892         REPLACE_CEIL.
16893         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16894         * modules/ceil-ieee-tests: New file.
16895         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16896         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16897         * doc/posix-functions/ceil.texi: Mention the new module.
16898
16899 2010-12-21  Bruno Haible  <bruno@clisp.org>
16900
16901         New module 'floor-ieee'.
16902         * modules/floor-ieee: New file.
16903         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16904         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16905         ISO C 99 with IEC 60559.
16906         * m4/floor-ieee.m4: New file.
16907         * modules/floor (Files): Add lib/floor.c.
16908         (Depends-on): Add 'float'.
16909         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16910         * lib/math.in.h (floor): New declaration.
16911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16912         REPLACE_FLOOR.
16913         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16914         * modules/floor-ieee-tests: New file.
16915         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16916         * tests/test-math-c++.cc: Check the signature of 'floor'.
16917         * doc/posix-functions/floor.texi: Mention the new module.
16918
16919 2010-12-21  Bruno Haible  <bruno@clisp.org>
16920
16921         New module 'roundf-ieee'.
16922         * modules/roundf-ieee: New file.
16923         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16924         test whether roundf works according to ISO C 99 with IEC 60559.
16925         * m4/roundf-ieee.m4: New file.
16926         * modules/roundf-ieee-tests: New file.
16927         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16928         * tests/test-roundf1.c (main): Remove signbit tests.
16929         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16930         * doc/posix-functions/roundf.texi: Mention the new module.
16931
16932 2010-12-21  Bruno Haible  <bruno@clisp.org>
16933
16934         New module 'truncf-ieee'.
16935         * modules/truncf-ieee: New file.
16936         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16937         test whether truncf works according to ISO C 99 with IEC 60559.
16938         * m4/truncf-ieee.m4: New file.
16939         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16941         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16942         * modules/truncf-ieee-tests: New file.
16943         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16944         * tests/test-truncf1.c (main): Remove signbit tests.
16945         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16946         * doc/posix-functions/truncf.texi: Mention the new module.
16947
16948 2010-12-21  Bruno Haible  <bruno@clisp.org>
16949
16950         New module 'ceilf-ieee'.
16951         * modules/ceilf-ieee: New file.
16952         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16953         test whether ceilf works according to ISO C 99 with IEC 60559.
16954         * m4/ceilf-ieee.m4: New file.
16955         * modules/ceilf-ieee-tests: New file.
16956         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16957         * tests/test-ceilf1.c (main): Remove signbit tests.
16958         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16959         * doc/posix-functions/ceilf.texi: Mention the new module.
16960
16961 2010-12-21  Bruno Haible  <bruno@clisp.org>
16962
16963         New module 'floorf-ieee'.
16964         * modules/floorf-ieee: New file.
16965         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16966         test whether floorf works according to ISO C 99 with IEC 60559.
16967         * m4/floorf-ieee.m4: New file.
16968         * modules/floorf-ieee-tests: New file.
16969         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16970         * tests/test-floorf1.c (main): Remove signbit tests.
16971         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16972         * doc/posix-functions/floorf.texi: Mention the new module.
16973
16974 2010-12-21  Bruno Haible  <bruno@clisp.org>
16975
16976         Support for minus zero in autoconf macros.
16977         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16978         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16979         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16980         * tests/minus-zero.h: Update comments.
16981
16982 2010-12-21  Bruno Haible  <bruno@clisp.org>
16983
16984         Tests for module 'ceil'.
16985         * modules/ceil-tests: New file.
16986         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16987         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16988
16989 2010-12-21  Bruno Haible  <bruno@clisp.org>
16990
16991         Tests for module 'floor'.
16992         * modules/floor-tests: New file.
16993         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16994         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16995
16996 2010-12-21  Bruno Haible  <bruno@clisp.org>
16997
16998         math: Fix indentation.
16999         * lib/math.in.h (floorf): Fix indentation.
17000
17001 2010-12-21  Bruno Haible  <bruno@clisp.org>
17002
17003         Fix cross-compilation guesses on Solaris.
17004         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17005         not match "solaris2.10".
17006         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17007         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17008         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17009
17010 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17011
17012         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17013         This fixes a problem observed with the latest coreutils snapshot
17014         that caused a test to fail on Solaris 8.  src/csplit.c's call
17015         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17016         earlier, instead of returning the number of bytes that would have
17017         been generated; this causes csplit to incorrectly report memory
17018         exhaustion.
17019         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17020         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17021         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17022         comments to match.
17023         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17024         Fix typo in matching older versions of Solaris: "solaris2.10"
17025         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17026         only for guessing while cross-compiling.
17027         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17028
17029 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17030
17031         ftoastr: fix comment again
17032         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17033         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17034         Also, simplify example a bit by using flags = 0.
17035
17036 2010-12-20  Bruno Haible  <bruno@clisp.org>
17037
17038         round*, trunc*: Update documentation regarding glibc.
17039         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17040         * doc/posix-functions/round.texi: Likewise.
17041         * doc/posix-functions/roundl.texi: Likewise.
17042         * doc/posix-functions/truncf.texi: Likewise.
17043         * doc/posix-functions/trunc.texi: Likewise.
17044         * doc/posix-functions/truncl.texi: Likewise.
17045
17046 2010-12-20  Bruno Haible  <bruno@clisp.org>
17047
17048         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17049         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17050         * doc/posix-functions/round.texi: Likewise.
17051         * doc/posix-functions/roundl.texi: Likewise.
17052
17053 2010-12-20  Bruno Haible  <bruno@clisp.org>
17054
17055         ttyname_r: Add missing declaration on HP-UX 11.
17056         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17057         HAVE_TTYNAME_R.
17058         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17059         declared. Set HAVE_TTYNAME_R always.
17060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17061         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17062         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17063         HAVE_TTYNAME_R.
17064         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17065
17066 2010-12-20  Bruno Haible  <bruno@clisp.org>
17067
17068         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17069         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17070         * doc/posix-functions/getlogin_r.texi: Likewise.
17071         * tests/test-getlogin.c: Include <errno.h>.
17072         (main): Avoid test failure on HP-UX 11.11.
17073         * tests/test-getlogin_r.c (main): Likewise.
17074
17075 2010-12-20  Bruno Haible  <bruno@clisp.org>
17076
17077         getlogin_r: Add missing declaration on HP-UX 11.
17078         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17079         declared also when it exists as a function.
17080         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17081
17082 2010-12-20  Bruno Haible  <bruno@clisp.org>
17083
17084         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17085         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17086         through wcrtomb.
17087
17088 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17089
17090         ftoastr: fix comment
17091         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17092         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17093
17094 2010-12-19  Bruno Haible  <bruno@clisp.org>
17095
17096         isnan: Ensure it is a macro.
17097         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17098         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17099         Solaris.
17100
17101 2010-12-19  Bruno Haible  <bruno@clisp.org>
17102
17103         ldexpl test: Fix link error on OSF/1 5.1.
17104         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17105
17106 2010-12-19  Bruno Haible  <bruno@clisp.org>
17107
17108         wctype: Make it work in C++ mode on OSF/1 5.1.
17109         * lib/wctype.in.h (iswblank): Declare but not define here.
17110         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17111         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17112         * modules/wctype (Files): Add lib/iswblank.c.
17113
17114 2010-12-19  Bruno Haible  <bruno@clisp.org>
17115
17116         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17117         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17118         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17119
17120 2010-12-19  Bruno Haible  <bruno@clisp.org>
17121
17122         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17123         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17124         _POSIX_PII_SOCKET.
17125         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17126         * doc/posix-functions/recvfrom.texi: Likewise.
17127         * doc/posix-functions/send.texi: Likewise.
17128         * doc/posix-functions/sendto.texi: Likewise.
17129
17130 2010-12-19  Bruno Haible  <bruno@clisp.org>
17131
17132         tcgetsid: Add missing declaration on OSF/1 5.1.
17133         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17134         HAVE_TCGETSID.
17135         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17136         Don't set HAVE_TCGETSID.
17137         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17138         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17139         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17140         HAVE_TCGETSID.
17141         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17142
17143 2010-12-19  Bruno Haible  <bruno@clisp.org>
17144
17145         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17146         * lib/stdio.in.h: During the include_next statement, let recursive
17147         includes of this file include only the system header file.
17148
17149 2010-12-19  Bruno Haible  <bruno@clisp.org>
17150
17151         iconv_open: Fix regression from 2010-12-04.
17152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17153         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17154
17155 2010-12-19  Bruno Haible  <bruno@clisp.org>
17156
17157         stdbool test: Avoid a gcc warning.
17158         * tests/test-stdbool.c (main): Fail if e1 is false.
17159         Reported by Jim Meyering.
17160
17161 2010-12-19  Jim Meyering  <meyering@redhat.com>
17162
17163         setenv: restore to working order
17164         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17165         mistakenly removed.
17166         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17167         HAVE_SETENV.
17168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17169         HAVE_SETENV.
17170
17171 2010-12-19  Bruno Haible  <bruno@clisp.org>
17172
17173         Document some different function declarations on OSF/1 5.1.
17174         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17175         * doc/posix-functions/inet_ntop.texi: Likewise.
17176         * doc/posix-functions/gethostname.texi: Likewise.
17177         * lib/unistd.in.h (gethostname): Update comment.
17178
17179 2010-12-19  Bruno Haible  <bruno@clisp.org>
17180
17181         doc: Mention vasprintf-posix module.
17182         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17183         the 'vasprintf-posix' module.
17184         * doc/glibc-functions/vasprintf.texi: Likewise.
17185
17186 2010-12-19  Bruno Haible  <bruno@clisp.org>
17187
17188         unsetenv: Add missing declaration on OSF/1 5.1.
17189         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17190         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17191         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17193         not HAVE_UNSETENV.
17194         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17195         HAVE_UNSETENV.
17196         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17197
17198 2010-12-19  Bruno Haible  <bruno@clisp.org>
17199
17200         setenv: Add missing declaration on OSF/1 5.1.
17201         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17202         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17203         declared. Don't set HAVE_SETENV.
17204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17205         not HAVE_SETENV.
17206         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17207         HAVE_SETENV.
17208         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17209
17210 2010-12-19  Bruno Haible  <bruno@clisp.org>
17211
17212         nl_langinfo tests: Avoid gcc warning.
17213         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17214
17215 2010-12-19  Bruno Haible  <bruno@clisp.org>
17216
17217         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17218         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17219         _GL_CXXALIAS_SYS.
17220
17221 2010-12-19  Bruno Haible  <bruno@clisp.org>
17222
17223         stdbool: Relax test.
17224         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17225         address to 'bool' work in static initializer, for compilers other than
17226         GCC.
17227
17228 2010-12-19  Bruno Haible  <bruno@clisp.org>
17229
17230         ftello: Add missing declaration on OSF/1 5.1.
17231         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17232         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17234         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17235         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17236
17237 2010-12-19  Bruno Haible  <bruno@clisp.org>
17238
17239         fseeko: Add missing declaration on OSF/1 5.1.
17240         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17241         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17243         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17244         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17245
17246 2010-12-19  Bruno Haible  <bruno@clisp.org>
17247
17248         fchdir: Add missing declaration on OSF/1 5.1.
17249         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17252         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17253         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17254
17255 2010-12-19  Bruno Haible  <bruno@clisp.org>
17256
17257         relocatable-prog-wrapper: Separate from relocatable-prog.
17258         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17259         uninstall-relocwrapper rule here.
17260         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17261         Reported by Ian Beckwith <ianb@erislabs.net>.
17262
17263 2010-12-19  Bruno Haible  <bruno@clisp.org>
17264
17265         unistr/u8-mbsnlen: Add missing dependency.
17266         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17267         Reported by Ian Beckwith <ianb@erislabs.net>.
17268
17269 2010-12-19  Bruno Haible  <bruno@clisp.org>
17270
17271         iconv: Make it possible again to use this module without 'iconv-h'.
17272         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17273         if it is not defined.
17274         Reported by Ian Beckwith <ianb@erislabs.net>.
17275
17276 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17277
17278         acl: port to Solaris 8 when copying from tmpfs to ufs
17279         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17280         error number.  Problem observed on Solaris 8 with latest
17281         coreutils, with "mv A B", where A is on a tmpfs file system and B
17282         is on a ufs file system.  This caused coreutils' mv/part-symlink
17283         test to fail.
17284
17285         tests: set fail=0 at start
17286         * tests/init.sh (setup_): Move fail=0 initialization here ...
17287         (mktempd_): ... from here, so that tests can rely on fail being
17288         set to 0 initially.  This fixes a problem in coreutils; see:
17289         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17290
17291 2010-12-18  Bruno Haible  <bruno@clisp.org>
17292
17293         memmem-simple: Stylistic changes.
17294         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17295         Fix preprocessor directive indentation.
17296
17297 2010-12-15  Pádraig Brady <P@draigBrady.com>
17298
17299         memmem, memmem-simple: reorganize and expand empty needle check
17300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17301         functional checks to memmem-simple so that one has a fully functional
17302         memmem by using just this module.
17303         Restrict the performance only check to the memmem module.
17304         Also expand the empty needle check to ensure the correct
17305         pointer is returned, not just a non NULL pointer.
17306         * doc/glibc-functions/memmem.texi: Rearrange the portability
17307         documentation to correlate with the rearranged checks.
17308         Clarify exactly how the memmem and memmem-simple modules
17309         relate to each other.
17310
17311 2010-12-15  Pádraig Brady <P@draigBrady.com>
17312             Bruno Haible  <bruno@clisp.org>
17313
17314         Improve cross-compilation guesses for uClibc.
17315         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17316         that uClibc does not have the glibc bug.
17317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17318         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17319
17320 2010-12-14  Eric Blake  <eblake@redhat.com>
17321
17322         configmake: provide fallbacks for oldest supported autotools
17323         * m4/configmake.m4: New file.
17324         * modules/configmake (Files): Ship it.
17325         (configure.ac): Use it to guarantee fallbacks.
17326
17327 2010-12-13  Pádraig Brady <P@draigBrady.com>
17328
17329         read-file: Improve handling of large files
17330         * lib/read-file.c (fread_file): Minimize realloc()s
17331         for regular files, and better manage sizes around SIZE_MAX.
17332
17333 2010-12-13  Eric Blake  <eblake@redhat.com>
17334
17335         cloexec, fcntl: relax license
17336         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17337         consent from all contributors.
17338         * modules/fcntl (License): Likewise.
17339
17340 2010-12-10  Bruno Haible  <bruno@clisp.org>
17341
17342         Tests for module 'pipe-posix'.
17343         * modules/pipe-posix-tests: New file.
17344         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17345
17346 2010-12-10  Bruno Haible  <bruno@clisp.org>
17347
17348         pipe-posix: Make it work in C++ mode.
17349         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17350         (pipe): Use common idiom, not a macro definition.
17351         * lib/pipe.c: New file.
17352         * m4/pipe.m4: New file.
17353         * modules/pipe-posix (Description): Enhance.
17354         (Files): Add lib/pipe.c, m4/pipe.m4.
17355         (configure.ac): Invoke gl_FUNC_PIPE.
17356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17357         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17358         * tests/test-unistd-c++.cc: Check the signature of pipe.
17359
17360 2010-12-10  Bruno Haible  <bruno@clisp.org>
17361
17362         Rename module 'pipe' to 'spawn-pipe'.
17363         * modules/spawn-pipe: New file, renamed from modules/pipe.
17364         (Files, configure.ac, Makefile.am): Update.
17365         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17366         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17367         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17368         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17369         "spawn-pipe.h" instead of "pipe.h".
17370         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17371         to gl_SPAWN_PIPE.
17372         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17373         (Files, Makefile.am): Update.
17374         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17375         Update.
17376         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17377         Include "spawn-pipe.h" instead of "pipe.h".
17378         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17379         * lib/javacomp.c: Likewise.
17380         * lib/javaversion.c: Likewise.
17381         * lib/pipe-filter-gi.c: Likewise.
17382         * lib/pipe-filter-ii.c: Likewise.
17383         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17384         * modules/javacomp (Depends-on): Likewise.
17385         * modules/javaversion (Depends-on): Likewise.
17386         * modules/pipe-filter-gi (Depends-on): Likewise.
17387         * modules/pipe-filter-ii (Depends-on): Likewise.
17388         * MODULES.html.sh (Executing programs): Update.
17389         * NEWS: Mention the change.
17390
17391 2010-12-10  Eric Blake  <eblake@redhat.com>
17392
17393         pipe-posix: new module
17394         * modules/pipe-posix: New file.
17395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17396         (gl_UNISTD_H): Check for declaration.
17397         * modules/unistd (Makefile.am): Substitute it.
17398         * lib/unistd.in.h (pipe): Provide it for mingw.
17399         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17400         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17401
17402 2010-12-07  Bruno Haible  <bruno@clisp.org>
17403
17404         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17405         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17406         u8_strcmp_gnu.
17407         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17408
17409 2010-12-06  Bruno Haible  <bruno@clisp.org>
17410
17411         Update internal documentation.
17412         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17413
17414 2010-12-04  Bruno Haible  <bruno@clisp.org>
17415
17416         Put more information about failed tests into the test return codes.
17417         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17418         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17419         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17421         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17422         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17423         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17424         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17425         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17427         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17428         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17429         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17430         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17431         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17432         returns a bit mask.
17433         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17434         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17435         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17436         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17437         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17438         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17439         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17440         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17441         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17442         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17443         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17444         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17445         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17446         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17447         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17448         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17449         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17450         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17451         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17452         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17453         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17454         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17455         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17456         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17457         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17458         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17459         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17460         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17461         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17462         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17463         gl_PRINTF_PRECISION): Likewise.
17464         * m4/regex.m4 (gl_REGEX): Likewise.
17465         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17466         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17467         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17468         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17469         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17471         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17472         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17473         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17474         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17475         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17476         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17477         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17478         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17479         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17480         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17481         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17482         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17484         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17485         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17486         enumerated value.
17487         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17488
17489 2010-12-04  Bruno Haible  <bruno@clisp.org>
17490
17491         Update for Solaris 11 2010-11.
17492         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17493         Express, released in November 2010.
17494
17495 2010-12-04  Bruno Haible  <bruno@clisp.org>
17496
17497         nproc: Relax license.
17498         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17499         and Paul Eggert.
17500         Requested by Ludovic Courtès <ludo@gnu.org>.
17501
17502 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17503
17504         utimecmp: fine-grained src to nearby coarse-grained dest
17505
17506         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17507         and the source is on a file system with higher-resolution time
17508         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17509         not work, and the time stamps are close together, the algorithm to
17510         determine the exact resolution from the read-back mtime was buggy:
17511         it had a "!=" where it should have had an "==".  This bug has been
17512         in the code ever since it was introduced to gnulib.
17513         Problem reported by Dan Jacobson in
17514         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17515
17516 2010-11-30  Bruno Haible  <bruno@clisp.org>
17517
17518         strerror_r-posix: Fix autoconf test.
17519         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17520
17521 2010-11-28  Bruno Haible  <bruno@clisp.org>
17522             Paul Eggert  <eggert@cs.ucla.edu>
17523
17524         Tests for module 'getdomainname'.
17525         * modules/getdomainname-tests: New file.
17526         * tests/test-getdomainname.c: New file, based on
17527         tests/test-gethostname.c.
17528
17529 2010-11-28  Bruno Haible  <bruno@clisp.org>
17530             Paul Eggert  <eggert@cs.ucla.edu>
17531
17532         getdomainname: Use the system function when possible.
17533         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17534         (getdomainname): Replace if needed. Provide the declaration if it is
17535         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17536         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17537         (getdomainname): When the system has getdomainname, call the system
17538         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17539         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17540         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17541         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17542         the function if its second argument is of type 'int' or if it is found
17543         in libnsl.
17544         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17545         <sys/systeminfo.h> and sysinfo().
17546         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17548         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17549         HAVE_GETDOMAINNAME.
17550         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17551         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17552         * doc/glibc-functions/getdomainname.texi: Document the problems with
17553         the getdomainname declaration.
17554
17555 2010-11-28  Bruno Haible  <bruno@clisp.org>
17556
17557         sys_socket: Ensure ss_family field on AIX.
17558         * lib/sys_socket.in.h (ss_family): New macro definition.
17559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17560         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17561         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17562         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17563         * modules/sys_socket (Makefile.am): Substitute
17564         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17565         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17566
17567 2010-11-27  Bruno Haible  <bruno@clisp.org>
17568
17569         readline: Improve configure output.
17570         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17571         "checking for readline..." result understandable.
17572
17573 2010-11-27  Bruno Haible  <bruno@clisp.org>
17574
17575         *printf-posix: Detect a bug on Solaris 10/x86.
17576         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17577         for floating-point output.
17578         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17579         directive.
17580         * tests/test-snprintf-posix.h (test_function): Likewise.
17581         * tests/test-sprintf-posix.h (test_function): Likewise.
17582         * tests/test-vasprintf-posix.c (test_function): Likewise.
17583         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17584         * doc/posix-functions/printf.texi: Likewise.
17585         * doc/posix-functions/snprintf.texi: Likewise.
17586         * doc/posix-functions/sprintf.texi: Likewise.
17587         * doc/posix-functions/vfprintf.texi: Likewise.
17588         * doc/posix-functions/vprintf.texi: Likewise.
17589         * doc/posix-functions/vsnprintf.texi: Likewise.
17590         * doc/posix-functions/vsprintf.texi: Likewise.
17591         * doc/glibc-functions/obstack_printf.texi: Likewise.
17592         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17593
17594 2010-11-27  Bruno Haible  <bruno@clisp.org>
17595
17596         Fix link error when module libunistring-optional is in use.
17597         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17598         * modules/striconveha-tests (Makefile.am): Likewise.
17599
17600 2010-11-27  Bruno Haible  <bruno@clisp.org>
17601
17602         regex: Mention link dependencies.
17603         * modules/regex (Link): New section.
17604         * modules/rpmatch (Link): Likewise.
17605         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17606
17607 2010-11-27  Bruno Haible  <bruno@clisp.org>
17608
17609         ftoastr: Fix compilation error on Solaris.
17610         * lib/ftoastr.c: Include <config.h>.
17611
17612 2010-11-27  Bruno Haible  <bruno@clisp.org>
17613
17614         getloadavg: Update documentation.
17615         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17616
17617 2010-11-27  Bruno Haible  <bruno@clisp.org>
17618
17619         sys_socket: Fix test whether the functions are declared.
17620         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17621         not <sys/select.h>.
17622
17623 2010-11-27  Bruno Haible  <bruno@clisp.org>
17624
17625         getpass: Make sure to get system declaration on some platforms.
17626         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17627         gl_USE_SYSTEM_EXTENSIONS.
17628         * modules/getpass (Depends-on): Add extensions.
17629
17630 2010-11-26  Bruno Haible  <bruno@clisp.org>
17631
17632         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17633         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17634         'iconv' module is present.
17635         (ICONV_CONST): New macro.
17636         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17637         ICONV_CONST.
17638         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17639         set ICONV_CONST.
17640         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17641         here.
17642         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17643         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17644         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17645         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17646         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17647         present.
17648
17649 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17650
17651         ftoastr: comment fix
17652         * lib/ftoastr.c: "little" -> "little or no" in comment
17653
17654 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17655
17656         stdint: port to GCC 4.3 + OSX + Octave
17657         On this platform, stdint.h is buggy and defines int64_t to long
17658         long int.  The replacement defined it to long int, causing
17659         problems with C++ style name mangling.  Instead, trust the system
17660         definition if INT64_MAX is defined, and likewise for the unsigned
17661         variant.   Problem reported by Jarno Rajahalme in
17662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17663         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17664         and don't mess with int64_t and INT64_MAX in this case.
17665         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17666
17667 2010-11-24  Bruno Haible  <bruno@clisp.org>
17668
17669         doc: Corrections regarding MacOS X 10.4 and 10.5.
17670         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17671         MacOS X.
17672         Reported by Simon Josefsson.
17673
17674 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17675
17676         Uninstall ".bin" files installed by relocwrapper.
17677         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17678         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17679         unless it is already there.
17680
17681 2010-11-21  Bruno Haible  <bruno@clisp.org>
17682
17683         Update for NetBSD 5.0.
17684         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17685         NetBSD; the test fails on NetBSD 5.0.
17686         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17687         about NetBSD.
17688
17689 2010-11-21  Bruno Haible  <bruno@clisp.org>
17690
17691         Update for HP-UX 11.23 and HP-UX 11.31.
17692         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17693         HP-UX.
17694
17695 2010-11-21  Bruno Haible  <bruno@clisp.org>
17696
17697         Update for MacOS X 10.5.
17698         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17699         MacOS X; the test fails on MacOS X 10.5.8.
17700         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17701         about MacOS X.
17702
17703 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17704
17705         bootstrap: add bootstrap_sync option.
17706         See discussion at
17707         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17708         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17709         * build-aux/bootstrap: Accept --bootstrap-sync to update
17710         bootstrap if it is not identical to the local gnulib's
17711         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17712         enable this by default.  Accept --no-bootstrap-sync to disable
17713         it.
17714
17715 2010-11-20  Bruno Haible  <bruno@clisp.org>
17716
17717         Ensure that <features.h> is included before __GLIBC__ is tested.
17718         * lib/printf-parse.h: Include <features.h>.
17719         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17720         Reported by Mike Frysinger <vapier@gentoo.org>.
17721
17722         Ensure that <features.h> is included before __GLIBC__ is tested.
17723         * lib/wchar.in.h: Include <features.h>.
17724         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17725         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17726         Reported by Mike Frysinger <vapier@gentoo.org>.
17727
17728         Ensure that <features.h> is included before __GLIBC__ is tested.
17729         * lib/arpa_inet.in.h: Include <features.h>.
17730         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17731         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17732         Reported by Mike Frysinger <vapier@gentoo.org>.
17733
17734         Ensure that <features.h> is included before __GLIBC__ is tested.
17735         * build-aux/link-warning.h: Include <features.h>.
17736         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17737         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17738         Reported by Mike Frysinger <vapier@gentoo.org>.
17739
17740         Ensure that <features.h> is included before __GLIBC__ is tested.
17741         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17742         Reported by Mike Frysinger <vapier@gentoo.org>.
17743
17744 2010-11-20  Bruno Haible  <bruno@clisp.org>
17745
17746         memmem: Fix autoconf test.
17747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17748
17749 2010-11-20  Bruno Haible  <bruno@clisp.org>
17750
17751         Port to uClibc.
17752         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17753         * lib/fcntl.in.h: Likewise.
17754         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17755         * lib/mbrtowc.c (mbrtowc): Likewise.
17756         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17757         * lib/strerror_r.c: Likewise.
17758         * lib/unistr/u8-strnlen.c: Likewise.
17759         * lib/vasnprintf.c (decimal_point_char): Likewise.
17760         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17761         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17762         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17763         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17764         * tests/test-sigaction.c (handler, main): Likewise.
17765         * lib/freading.h: Treat uClibc like a non-glibc platform.
17766         * lib/freading.c: Likewise.
17767         * lib/gettext.h: Likewise.
17768         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17769         Likewise.
17770         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17771         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17772         * lib/propername.c (proper_name_utf8): Likewise.
17773         * lib/spawn.in.h: Likewise.
17774         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17775         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17776         mem_cd_iconveh_internal): Likewise.
17777         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17778         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17779         strstr, strcasestr): Likewise.
17780         * lib/unicodeio.c (unicode_to_mb): Likewise.
17781         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17782         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17783         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17784         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17785         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17786         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17787         * lib/unistr/u8-stpncpy.c: Likewise.
17788         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17789         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17790         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17791         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17792         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17793         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17794         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17795         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17797         Likewise.
17798         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17799         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17800         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17801         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17802         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17803         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17804         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17805         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17806         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17807         * tests/test-striconveha.c (main): Likewise.
17808         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17809         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17810         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17811         * doc/posix-functions/getline.texi: Likewise.
17812         Reported by Mike Frysinger <vapier@gentoo.org>.
17813
17814 2010-11-20  Bruno Haible  <bruno@clisp.org>
17815
17816         nproc: Fix condition.
17817         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17818         HAVE_PTHREAD_AFFINITY_NP.
17819
17820 2010-11-20  Bruno Haible  <bruno@clisp.org>
17821
17822         Fix a comment.
17823         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17824
17825 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17826
17827         ftoastr: don't assume snprintf
17828         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17829         Implement a subset of snprintf here, by using sprintf safely.
17830         * modules/ftoastr (Depends-on): Remove snprintf.
17831
17832 2010-11-19  Jim Meyering  <meyering@redhat.com>
17833
17834         test-rename.h: fix compilation failure
17835         * tests/test-rename.h (test_rename): Add omitted "}".
17836
17837 2010-11-17  Jim Meyering  <meyering@redhat.com>
17838
17839         maint.mk: add a URL discussing the no-@acronym policy
17840         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17841
17842 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17843
17844         ftoastr: depend on snprintf, improve comments
17845         * lib/ftoastr.c: Also mention Loitsch's draft.
17846         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17847         needed in the current implementation, but it might simplify
17848         speeding up the code later.
17849         * modules/ftoastr: Depend on snprintf; this improves portability.
17850         Suggested by Bruno Haible in the same email.
17851
17852         ftoastr: port to hosts lacking strtof and strtold
17853         Problem reported by Bruno Haible in
17854         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17855         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17856         environment and strtold (and presumably strtof) are not available.
17857         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17858         (configure.ac): Require gl_C99_STRTOLD.
17859
17860 2010-11-18  Bruno Haible  <bruno@clisp.org>
17861
17862         c-strtold: Avoid link error on AIX 7.
17863         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17864         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17865         (gl_C_STRTOLD): Test whether strtold_l exists.
17866         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17867
17868 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17869
17870         intprops: new macro INT_BITS_STRLEN_BOUND
17871         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17872         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17873         not exposed.  Also, it uses a slightly tighter bound than before;
17874         though this makes no practical difference, we might as well be as
17875         tight as we easily can.
17876
17877         ftoastr: new module, for lossless conversion of floats to short strings
17878         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17879         * modules/ftoastr: New files.
17880
17881 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17882
17883         bootstrap: port to Solaris sed
17884         * build-aux/bootstrap (get_version): Port to Solaris sed.
17885         See Ralf Wildenhues's note in
17886         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17887
17888 2010-11-14  Jim Meyering  <meyering@redhat.com>
17889
17890         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17891         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17892         and move definition closer to sole use.
17893
17894 2010-11-13  Jim Meyering  <meyering@redhat.com>
17895
17896         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17897         Now we require at least autoconf-2.59, which means the work-around
17898         is no longer needed.
17899         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17900         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17901         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17902         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17903         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17904
17905 2010-11-13  Bruno Haible  <bruno@clisp.org>
17906
17907         rename, renameat: Avoid test failures at NFS mounted locations.
17908         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17909         functions.
17910         (test_rename): Use assert_nonexistent.
17911         * tests/test-rename.c: Include <dirent.h>.
17912         * tests/test-renameat.c: Likewise.
17913         Reported by Gary V. Vaughan <gary@gnu.org>.
17914
17915         rename, renameat: Document Linux bug with NFS
17916         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17917         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17918         * doc/posix-functions/renameat.texi: Likewise.
17919         Suggested by Eric Blake.
17920
17921 2010-11-13  Bruno Haible  <bruno@clisp.org>
17922
17923         rename test: Add comments.
17924         * tests/test-rename.h (test_rename): Add structure and comments.
17925
17926 2010-11-13  Eric Blake  <eblake@redhat.com>
17927
17928         maintainer-makefile: cover a few more files
17929         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17930         scripts generated within C files, for libvirt.
17931
17932 2010-11-13  Bruno Haible  <bruno@clisp.org>
17933
17934         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17935         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17936         character, return the number of bytes that belong together, not always
17937         1.
17938         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17939         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17940         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17941         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17942         number of bytes of an invalid character.
17943         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17944         (main): Invoke it.
17945         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17946         results.
17947         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17948         malformed byte sequences.
17949         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17950         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17951         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17952         Reported by Ben Pfaff and Paolo Bonzini.
17953
17954 2010-11-13  Bruno Haible  <bruno@clisp.org>
17955
17956         openat: Work around glibc bug with fchownat() and empty file names.
17957         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17958         (gl_FUNC_FCHOWNAT): Invoke it.
17959         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17960         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17961         Reported by Gary V. Vaughan <gary@gnu.org>.
17962
17963 2010-11-13  Bruno Haible  <bruno@clisp.org>
17964
17965         openat: Ensure autoconf macro ordering.
17966         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17967         gl_USE_SYSTEM_EXTENSIONS.
17968         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17969
17970 2010-11-13  Bruno Haible  <bruno@clisp.org>
17971
17972         Update comments.
17973         * lib/unistr/u8-check.c: Update file name in comments.
17974         * lib/unistr/u8-mblen.c: Likewise.
17975         * lib/unistr/u8-prev.c: Likewise.
17976         * lib/unistr/u8-strmblen.c: Likewise.
17977         * lib/unistr/u8-strmbtouc.c: Likewise.
17978
17979 2010-11-13  Jim Meyering  <meyering@redhat.com>
17980
17981         tests: avoid test failure on Solaris 10 due to lack of PATH export
17982         * tests/test-update-copyright.sh: Don't forget to export PATH.
17983
17984         init.sh: ensure that IFS is defined, just in case...
17985         * tests/init.sh (setup_): Ensure that IFS is defined,
17986         so that saving and restoring it works as expected.  This
17987         appears to be useful at least for an old version of dash
17988         from a long time ago (RH 6).  See here for details:
17989         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17990
17991         maint.mk: tighten "test a == b" check
17992         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17993         test to files that contain something like #!/bin/sh.
17994         Without this, coreutils would get two false positives in
17995         the comments of C source files.
17996
17997 2010-11-12  Eric Blake  <eblake@redhat.com>
17998
17999         bootstrap: fix typo in previous attempt
18000         * build-aux/bootstrap (buildreq): Correct the grouping.
18001         Reported by Paul Eggert.
18002
18003         maintainer-makefile: prohibit test x == x
18004         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18005         Based on a report by Matthias Bolte.
18006
18007         bootstrap: allow FreeBSD gzip
18008         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18009         which has no '.' and goes to stderr.
18010         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18011         Reported by Matthias Bolte.
18012
18013         maintainer-makefile: check for i18n setup
18014         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18015         will likely work.
18016
18017 2010-11-12  Bruno Haible  <bruno@clisp.org>
18018
18019         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18020         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18021         * lib/nanosleep.c (nanosleep): Likewise.
18022
18023 2010-11-11  Bruno Haible  <bruno@clisp.org>
18024
18025         fcntl-h: Fix for use of C++ on glibc systems.
18026         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18027         also on glibc systems in C++ mode.
18028         Reported by Gary V. Vaughan <gary@gnu.org>.
18029
18030 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18031
18032         mknod: avoid false failure with dash
18033         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18034
18035 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18036
18037         unlink: Fix "is it should" typo in diagnostic.
18038         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18040
18041 2010-11-11  Bruno Haible  <bruno@clisp.org>
18042
18043         Tests for module 'strerror_r-posix'.
18044         * modules/strerror_r-posix-tests: New file.
18045         * tests/test-strerror_r.c: New file.
18046         * tests/test-string-c++.cc: Check the signature of strerror_r.
18047
18048         New module 'strerror_r-posix'.
18049         * lib/string.in.h (strerror_r): New declaration.
18050         * lib/strerror_r.c: New file.
18051         * m4/strerror_r.m4: New file.
18052         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18053         of strerror_r.
18054         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18055         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18056         * modules/strerror_r-posix: New file.
18057         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18058         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18059         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18060         portability problems.
18061
18062 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18063
18064         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18065         line is also considered for output. Quoted function name in shell
18066         command, so temporary files for functions like MyClass::operator()
18067         are removed correctly without errors.
18068
18069 2010-11-09  Bruno Haible  <bruno@clisp.org>
18070
18071         * doc/posix-functions/strerror.texi: List more failing platforms.
18072
18073         * doc/posix-functions/strerror.texi: Add a comment.
18074
18075 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18076
18077         fdopendir: fix bug on MacOS X when low on file descriptors
18078
18079         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18080         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18081         All callers changed.
18082         (fdopendir): Invoke save_cwd at the top level, not after using
18083         multiple dup() calls to use up file descriptors.  Then retry
18084         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18085         less than the maximum number of open file descriptors, because
18086         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18087         on Mac OS X 10.6.4 for tar 1.24
18088         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18089         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18090         and for tar 1.25
18091         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18092
18093 2010-11-07  Bruno Haible  <bruno@clisp.org>
18094
18095         vasnprintf: Support I flag on glibc systems.
18096         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18097         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18098         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18099         snprintf function.
18100         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18101         glibc systems.
18102         * tests/test-vasnprintf-posix3.c: New file.
18103         * modules/vasnprintf-posix-tests (Files): Add it.
18104         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18105
18106 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18107
18108         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18109         * MODULES.html.sh: For compiler warnings, use name
18110         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18111
18112 2010-11-05  Eric Blake  <eblake@redhat.com>
18113
18114         ceil, floor: avoid spurious failure with icc
18115         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18116         [denormals-as-zero] when optimizing without -mieee-fp option.
18117         * tests/test-floorf2.c (floorf_reference): Likewise.
18118         * tests/test-ceilf1.c (dummy): New function.
18119         (main): Use it to outsmart icc's optimization.
18120         * tests/test-floorf1.c (dummy, main): Likewise.
18121
18122         tests: require working signbit
18123         * modules/ceilf-tests (Depends-on): Add signbit.
18124         * modules/ceill-tests (Depends-on): Likewise.
18125         * modules/floorf-tests (Depends-on): Likewise.
18126         * modules/floorl-tests (Depends-on): Likewise.
18127         * modules/round-tests (Depends-on): Likewise.
18128         * modules/roundf-tests (Depends-on): Likewise.
18129         * modules/roundl-tests (Depends-on): Likewise.
18130         * modules/trunc-tests (Depends-on): Likewise.
18131         * modules/truncf-tests (Depends-on): Likewise.
18132         * modules/truncl-tests (Depends-on): Likewise.
18133
18134         strtod: work around icc bug
18135         * lib/strtod.c (minus_zero): Define to working value.
18136         (strtod): Use it to avoid icc bug.
18137
18138         copysign: enhance tests
18139         * modules/copysign-tests (Files): Add minus-zero.h.
18140         * tests/test-copysign.c (main): Also test zeros.
18141
18142 2010-11-04  Eric Blake  <eblake@redhat.com>
18143
18144         ceil, floor, round, trunc: enhance tests of -0
18145         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18146         * tests/test-ceill.c (main): Likewise.
18147         * tests/test-floorf1.c (main): Likewise.
18148         * tests/test-floorl.c (main): Likewise.
18149         * tests/test-round1.c (main): Likewise.
18150         * tests/test-roundf1.c (main): Likewise.
18151         * tests/test-roundl.c (main): Likewise.
18152         * tests/test-trunc1.c (main): Likewise.
18153         * tests/test-truncf1.c (main): Likewise.
18154         * tests/test-truncl.c (main): Likewise.
18155
18156 2010-11-04  Eric Blake  <eblake@redhat.com>
18157
18158         frexp, tests: work around ICC bug with -zero
18159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18160         works with more compilers.
18161         * tests/minus-zero.h: New file.
18162         * modules/ceilf-tests (Files): Include it.
18163         * modules/ceill-tests (Files): Likewise.
18164         * modules/floorf-tests (Files): Likewise.
18165         * modules/floorl-tests (Files): Likewise.
18166         * modules/frexp-nolibm-tests (Files): Likewise.
18167         * modules/frexp-tests (Files): Likewise.
18168         * modules/frexpl-nolibm-tests (Files): Likewise.
18169         * modules/frexpl-tests (Files): Likewise.
18170         * modules/isnan-tests (Files): Likewise.
18171         * modules/isnand-nolibm-tests (Files): Likewise.
18172         * modules/isnand-tests (Files): Likewise.
18173         * modules/isnanf-nolibm-tests (Files): Likewise.
18174         * modules/isnanf-tests (Files): Likewise.
18175         * modules/isnanl-nolibm-tests (Files): Likewise.
18176         * modules/isnanl-tests (Files): Likewise.
18177         * modules/round-tests (Files): Likewise.
18178         * modules/roundf-tests (Files): Likewise.
18179         * modules/roundl-tests (Files): Likewise.
18180         * modules/ldexpl-tests (Files): Likewise.
18181         * modules/signbit-tests (Files): Likewise.
18182         * modules/snprintf-posix-tests (Files): Likewise.
18183         * modules/sprintf-posix-tests (Files): Likewise.
18184         * modules/strtod-tests (Files): Likewise.
18185         * modules/trunc-tests (Files): Likewise.
18186         * modules/truncf-tests (Files): Likewise.
18187         * modules/truncl-tests (Files): Likewise.
18188         * modules/vsnprintf-posix-tests (Files): Likewise.
18189         * modules/vsprintf-posix-tests (Files): Likewise.
18190         * modules/vasnprintf-posix-tests (Files): Likewise.
18191         * modules/vasprintf-posix-tests (Files): Likewise.
18192         * tests/test-ceilf1.c (main): Use it.
18193         * tests/test-ceill.c (main): Likewise.
18194         * tests/test-floorf1.c (main): Likewise.
18195         * tests/test-floorl.c (main): Likewise.
18196         * tests/test-frexp.c (main): Likewise.
18197         * tests/test-frexpl.c (main): Likewise.
18198         * tests/test-isnan.c (main): Likewise.
18199         * tests/test-isnand.h (main): Likewise.
18200         * tests/test-isnanf.h (main): Likewise.
18201         * tests/test-isnanl.h (main): Likewise.
18202         * tests/test-ldexpl.c (main): Likewise.
18203         * tests/test-round.c (main): Likewise.
18204         * tests/test-roundf.c (main): Likewise.
18205         * tests/test-roundl.c (main): Likewise.
18206         * tests/test-signbit.c (test_signbitf, test_signbitd)
18207         (test_signbitl): Likewise.
18208         * tests/test-snprintf-posix.h (test_function): Likewise.
18209         * tests/test-sprintf-posix.h (test_function): Likewise.
18210         * tests/test-strtod.c (main): Likewise.
18211         * tests/test-trunc1.c (main): Likewise.
18212         * tests/test-truncf1.c (main): Likewise.
18213         * tests/test-truncl.c (main): Likewise.
18214
18215         isnanl: work around icc bug
18216         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18217
18218 2010-11-03  Eric Blake  <eblake@redhat.com>
18219
18220         tests: fix compiler warnings
18221         * tests/test-getopt.h (test_getopt): Fix condition.
18222         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18223         * tests/test-pipe2.c (main): Likewise.
18224         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18225
18226         utimens: fix broken m4 test
18227         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18228
18229 2010-10-28  Bruno Haible  <bruno@clisp.org>
18230
18231         posix_spawn*, getdtablesize: Relax license.
18232         * modules/posix_spawn (License): Change to LGPLv2+.
18233         * modules/posix_spawnp (License): Likewise.
18234         * modules/posix_spawn-internal (License): Likewise.
18235         * modules/posix_spawnattr_init (License): Likewise.
18236         * modules/posix_spawnattr_getflags (License): Likewise.
18237         * modules/posix_spawnattr_setflags (License): Likewise.
18238         * modules/posix_spawnattr_getpgroup (License): Likewise.
18239         * modules/posix_spawnattr_setpgroup (License): Likewise.
18240         * modules/posix_spawnattr_getschedparam (License): Likewise.
18241         * modules/posix_spawnattr_setschedparam (License): Likewise.
18242         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18243         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18244         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18245         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18246         * modules/posix_spawnattr_getsigmask (License): Likewise.
18247         * modules/posix_spawnattr_setsigmask (License): Likewise.
18248         * modules/posix_spawnattr_destroy (License): Likewise.
18249         * modules/posix_spawn_file_actions_init (License): Likewise.
18250         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18251         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18252         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18253         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18254         * modules/getdtablesize (License): Likewise.
18255         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18256
18257 2010-10-26  Bruno Haible  <bruno@clisp.org>
18258
18259         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18260         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18261         Cygwin and mingw.
18262         Suggested by Eric Blake.
18263
18264 2010-10-26  Bruno Haible  <bruno@clisp.org>
18265
18266         stdio: Work around compilation error due to renameat() on Solaris 10.
18267         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18268         * lib/renameat.c: Don't include <unistd.h> here.
18269         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18270         Reported by Paul Eggert and Eric Blake.
18271
18272 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18273
18274         renameat: port to Solaris 10, which declares renameat in unistd.h
18275
18276         * lib/renameat.c: Include unistd.h before stdio.h, because
18277         Solaris 10 declares renameat in unistd.h.  Problem encountered
18278         when building GNU tar 1.24 on Solaris 10.
18279
18280 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18281
18282         fdopendir: fix C89 compilation
18283         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18284         compilers.
18285
18286 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18287
18288         inttostr: simplify by removing unnecessary redundancy
18289         * lib/anytostr.c: Don't include verify.h.
18290         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18291         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18292         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18293         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18294         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18295         Likewise.
18296         * modules/inttostr (Depends-on): Remove 'verify'.
18297
18298 2010-10-23  Bruno Haible  <bruno@clisp.org>
18299
18300         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18301         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18302         Reported by Eric Blake.
18303
18304 2010-10-23  Bruno Haible  <bruno@clisp.org>
18305
18306         Tests: Fix LOCALE_JA on MirBSD 10.
18307         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18308         to an UTF-8 locale.
18309         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18310         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18311         Reported by Eric Blake.
18312
18313 2010-10-21  Bruno Haible  <bruno@clisp.org>
18314
18315         nl_langinfo test: Avoid test failure on NetBSD 5.
18316         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18317         Reported by Eric Blake.
18318
18319 2010-10-21  Eric Blake  <eblake@redhat.com>
18320
18321         c-stack: work around libsigsegv 2.8 bug
18322         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18323         overflow on at least PowerPC64.
18324
18325 2010-10-17  Bruno Haible  <bruno@clisp.org>
18326
18327         userspec: Drop redundant file.
18328         * modules/userspec (Files): Remove lib/inttostr.h.
18329
18330 2010-10-17  Bruno Haible  <bruno@clisp.org>
18331
18332         nl_langinfo tests: Silence some warnings.
18333         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18334         Reported by Jim Meyering.
18335
18336 2010-10-17  Bruno Haible  <bruno@clisp.org>
18337
18338         Make use of GCC's attribute __alloc_size__.
18339         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18340         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18341         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18342         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18343         __alloc_size__.
18344         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18345         Suggested by Jim Meyering.
18346
18347 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18348
18349         bootstrap: anchor .gitignore entries.
18350         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18351         with...
18352         (insert_vc_ignore): ... this new function, which prepends `/' to
18353         all .gitignore entries before passing them to
18354         insert_sorted_if_absent.
18355
18356 2010-10-16  Bruno Haible  <bruno@clisp.org>
18357
18358         nextafter: Fix configure check.
18359         * modules/nextafter (configure.ac): Correct expected prototype.
18360
18361 2010-10-16  Bruno Haible  <bruno@clisp.org>
18362
18363         termios: Update documentation.
18364         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18365
18366 2010-10-16  Bruno Haible  <bruno@clisp.org>
18367
18368         tests: Make them compile with TinyCC.
18369         * tests/test-strstr.c (main): Remove parentheses around array
18370         initializer.
18371
18372 2010-10-15  Eric Blake  <eblake@redhat.com>
18373
18374         ignore-value: make header idempotent
18375         * lib/ignore-value.h: Add double-inclusion guards.
18376         Reported by Stefan Berger.
18377
18378 2010-10-15  Jim Meyering  <meyering@redhat.com>
18379
18380         GNUmakefile: handle "stable" target, not "major"
18381         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18382         lists in maint.mk and announce-gen.  Without this, "make stable"
18383         would fail to ensure that $(VERSION) is up to date.
18384
18385 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18386
18387         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18388         & co.
18389
18390 2010-10-14  Bruno Haible  <bruno@clisp.org>
18391
18392         vasnprintf: Don't set errno to 0.
18393         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18394         block that sets it to 0.
18395         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18396
18397 2010-10-14  Bruno Haible  <bruno@clisp.org>
18398
18399         socketlib: Fix.
18400         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18401         gl_PREREQ_SYS_H_WINSOCK2.
18402         Reported by Ian Beckwith <ianb@erislabs.net>.
18403
18404 2010-10-13  Jim Meyering  <meyering@redhat.com>
18405
18406         test-select-stdin.c: avoid warn_unused_result warnings
18407         * tests/test-select-stdin.c: Include "macros.h".
18408         ASSERT that read and fflush succeed.
18409
18410 2010-10-13  Jim Meyering  <meyering@redhat.com>
18411
18412         git-version-gen: do require git-VC'd files in cwd
18413         * build-aux/git-version-gen: Reject a git version string
18414         if there are no commits associated with the current directory.
18415         This avoids an unlikely false-positive (unrelated dir whose parent
18416         repository also contains a tag matching v*), as pointed out
18417         by Giuseppe Scrivano in
18418         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18419
18420 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18421
18422         argv-iter: omit nonconforming declaration
18423         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18424         enum arg_iter_err declaration, which doesn't conform to C99.
18425         Solaris 10 cc warns about this.
18426
18427 2010-10-13  Eric Blake  <eblake@redhat.com>
18428
18429         termios: fix compilation on mingw
18430         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18431         (gl_TERMIOS_H): Adjust it on mingw.
18432         * modules/termios (Makefile.am): Substitute new key.
18433         * lib/termios.in.h (includes): Make include_next conditional.
18434         * doc/posix-headers/termios.texi (termios.h): Update
18435         documentation.
18436         Reported by Daniel P. Berrange.
18437
18438 2010-10-13  Jim Meyering  <meyering@redhat.com>
18439
18440         git-version-gen: don't require that .git/ be in the current dir
18441         * build-aux/git-version-gen: Adjust this script so that it works
18442         when run from any working directory beneath the top-level .git/-
18443         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18444         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18445
18446         test-select: avoid warn_unused_result warnings
18447         * tests/test-select.c: Include "macros.h".
18448         ASSERT that each call to read, write, and pipe succeeds.
18449         While not technically required, also check each "close".
18450         * modules/select-tests (Files): Add tests/macros.h.
18451
18452         test-symlinkat: remove declaration of unused local
18453         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18454
18455         test-inttostr: avoid shadowing warnings
18456         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18457         and use malloc rather than the stack for the same reason as
18458         mentioned in the comment justifying the other allocation.
18459
18460 2010-10-11  Bruno Haible  <bruno@clisp.org>
18461
18462         stdlib: Allow multiple gnulib generated replacements to coexist.
18463         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18464         Reported by Sam Steingold <sds@gnu.org>.
18465
18466 2010-10-11  Jim Meyering  <meyering@redhat.com>
18467
18468         fix a documentation typo
18469         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18470
18471 2010-10-11  Eric Blake  <eblake@redhat.com>
18472
18473         futimens: work around Solaris 11 bug
18474         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18475         * tests/test-futimens.h (test_futimens): Enhance, rather than
18476         weaken test.
18477         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18478
18479 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18480
18481         Indentation.
18482         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18483         higher-level operators more to the left.
18484
18485 2010-10-11  Jim Meyering  <meyering@redhat.com>
18486
18487         test-futimens: avoid unwarranted test failure on Solaris 5.11
18488         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18489         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18490         because it tries to dereference the NULL name argument.
18491
18492 2010-10-11  Bruno Haible  <bruno@clisp.org>
18493
18494         Indentation.
18495         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18496         indentation.
18497
18498 2010-10-11  Jim Meyering  <meyering@redhat.com>
18499
18500         spawn.in.h: make indentation consistent with parentheses
18501         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18502         Make indentation consistent with parentheses.
18503
18504 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18505
18506         Fix mismatched parens in previous commit
18507         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18508         parens.
18509
18510 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18511
18512         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18513
18514         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18515         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18516         * lib/malloca.c: Include "verify.h".
18517         (verify1): Remove, replacing with a verify call.
18518         * lib/relocwrapper.c (verify1): Likewise.
18519         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18520         Likewise.
18521         * modules/malloca (Depends-on): Add 'verify'.
18522         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18523         * modules/vasnprintf (Depends-on): Add 'verify'.
18524         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18525         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18526         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18527         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18528         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18529         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18530         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18531
18532         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18533
18534         Formerly the style was sometimes 2*X - 1, because the C standard
18535         was wrongly thought to disallow ?: in integral constant expressions.
18536         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18537         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18538         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18539         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18540         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18541         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18542         verify that time_t cannot be floating.
18543
18544 2010-10-08  Eric Blake  <eblake@redhat.com>
18545
18546         time: enforce recent POSIX ruling that time_t is integral
18547         * lib/time.in.h (__time_t_must_be_integral): Detect any
18548         problematic systems, allowing the rest of gnulib to assume POSIX.
18549
18550 2010-10-08  Jim Meyering  <meyering@redhat.com>
18551
18552         fdopendir: fix a bug on systems lacking openat and /proc support
18553         OpenBSD 4.7 is one such system.  The most noticeable effect was
18554         failure of any application making nontrivial use of fts: rm, du,
18555         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18556           ./rm: traversal failed: `a': Bad file descriptor
18557         Debugging that, you see that even though FD 6 was closed just
18558         prior to the opendir call in fd_clone_opendir, its resulting
18559         dir->dd_fd was 8, rather than the expected value of 6:
18560
18561         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18562         93                close (fd);
18563         (gdb) n
18564         94                dir = fd_clone_opendir (dupfd);
18565         (gdb) n
18566         95                saved_errno = errno;
18567         (gdb) p dir->dd_fd
18568         $11 = 8
18569
18570         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18571         The problem is that on OpenBSD, fd_clone_opendir has to resort
18572         to using the old-style save/restore CWD mechanism, due to its
18573         lack of openat/proc support, and *that* would steal the FD (6)
18574         that opendir was supposed to use.
18575
18576         The fix is to squirrel away the desired FD so that save_cwd uses a
18577         different one, and then free the dest FD right before calling opendir.
18578         That guarantees opendir will use the required file descriptor.
18579
18580         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18581
18582 2010-10-08  Bruno Haible  <bruno@clisp.org>
18583
18584         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18585         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18586
18587 2010-10-08  Bruno Haible  <bruno@clisp.org>
18588
18589         nanosleep: Make replacement POSIX compliant.
18590         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18591         is out of range.
18592         Reported by Jim Meyering.
18593
18594 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18595
18596         bootstrap: add hook for altering gnulib.mk, for Bison
18597         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18598         the Bison bootstrapping process can rewrite file names and variables
18599         in this file before later parts of 'bootstrap' use the file.
18600         Bison wants to include lib/gnulib.mk from the top-level makefile,
18601         so it needs the file names in this file to be relative to the top
18602         level, not relative to lib; plus it needs variable names to be
18603         rewritten.
18604         (slurp): Use the new function.
18605
18606         bootstrap: reformat for readability
18607         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18608
18609 2010-10-08  Eric Blake  <eblake@redhat.com>
18610
18611         docs: update cygwin progress
18612         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18613         1.7.7.
18614         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18615         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18616         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18617         * doc/posix-functions/carg.texi (carg): Likewise.
18618         * doc/posix-functions/cargf.texi (cargf): Likewise.
18619         * doc/posix-functions/casin.texi (casin): Likewise.
18620         * doc/posix-functions/casinf.texi (casinf): Likewise.
18621         * doc/posix-functions/casinh.texi (casinh): Likewise.
18622         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18623         * doc/posix-functions/catan.texi (catan): Likewise.
18624         * doc/posix-functions/catanf.texi (catanf): Likewise.
18625         * doc/posix-functions/catanh.texi (catanh): Likewise.
18626         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18627         * doc/posix-functions/ccos.texi (ccos): Likewise.
18628         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18629         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18630         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18631         * doc/posix-functions/cexp.texi (cexp): Likewise.
18632         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18633         * doc/posix-functions/cimag.texi (cimag): Likewise.
18634         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18635         * doc/posix-functions/clog.texi (clog): Likewise.
18636         * doc/posix-functions/clogf.texi (clogf): Likewise.
18637         * doc/posix-functions/conj.texi (conj): Likewise.
18638         * doc/posix-functions/conjf.texi (conjf): Likewise.
18639         * doc/posix-functions/cpow.texi (cpow): Likewise.
18640         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18641         * doc/posix-functions/cproj.texi (cproj): Likewise.
18642         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18643         * doc/posix-functions/creal.texi (creal): Likewise.
18644         * doc/posix-functions/crealf.texi (crealf): Likewise.
18645         * doc/posix-functions/csin.texi (csin): Likewise.
18646         * doc/posix-functions/csinf.texi (csinf): Likewise.
18647         * doc/posix-functions/csinh.texi (csinh): Likewise.
18648         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18649         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18650         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18651         * doc/posix-functions/ctan.texi (ctan): Likewise.
18652         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18653         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18654         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18655         * doc/posix-headers/complex.texi (complex.h): Likewise.
18656
18657 2010-10-07  Jim Meyering  <meyering@redhat.com>
18658
18659         parse-datetime: avoid compilation failure on OpenBSD 4.7
18660         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18661         This works around a compilation failure on OpenBSD 4.7:
18662         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18663
18664 2010-10-07  Eric Blake  <eblake@redhat.com>
18665
18666         docs: update cygwin progress
18667         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18668         1.7.6.
18669         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18670         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18671         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18672         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18673         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18674         Likewise.
18675         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18676         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18677         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18678         Likewise.
18679         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18680         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18681         Likewise.
18682         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18683         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18684         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18685         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18686         Likewise.
18687         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18688         Likewise.
18689         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18690
18691         docs: update parse-datetime history
18692         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18693         documentation of this function's history and alternatives.
18694
18695         cygwin: use more robust version check
18696         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18697         exclude an eventual cygwin 1.9.1.
18698         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18700         (gl_FUNC_STRCASESTR): Likewise.
18701         Reported by Bruno Haible.
18702
18703 2010-10-06  Bruno Haible  <bruno@clisp.org>
18704
18705         string, sys_select: Avoid #including large headers unless necessary.
18706         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18707         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18708         OSF/1, BeOS, Haiku.
18709         Reported by Jim Meyering.
18710
18711 2010-10-05  Eric Blake  <eblake@redhat.com>
18712
18713         memmem, strstr, strcasestr: fix bug with long periodic needle
18714         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18715         periodic needle having false positive.
18716         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18717         and cygwin 1.7.7.
18718         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18719         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18720         (gl_FUNC_STRCASESTR): Likewise.
18721         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18722         * tests/test-memmem.c (main): Expose the bug.
18723         * tests/test-strcasestr.c (main): Likewise.
18724         * tests/test-strstr.c (main): Likewise.
18725         * tests/test-c-strcasestr.c (main): Likewise.
18726         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18727         * doc/posix-functions/strstr.texi (strstr): Likewise.
18728         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18729         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18730
18731 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18732
18733         parse-datetime: do some more renaming
18734         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18735         parse_datetime, not get_date.  Mention the renaming.
18736         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18737         in comments.
18738         * m4/bison.m4: Likewise.
18739
18740 2010-10-05  Eric Blake  <eblake@redhat.com>
18741
18742         parse-datetime: better name than get_date
18743         * NEWS: Reword the deprecation notice.
18744         * modules/get_date: Rename to modules/parse-datetime.
18745         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18746         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18747         * lib/get_date.y: Rename to lib/parse-datetime.y.
18748         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18749         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18750         * doc/getdate.texi: Provide fallback wrapper.
18751         * lib/getdate.h: Move guts, and wrap...
18752         * lib/parse-datetime.h: ...new file.
18753         * lib/parse-datetime.y (get_date): Rename...
18754         (parse_datetime): ...to this.
18755         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18756         (gl_PARSE_DATETIME): ...to this.
18757         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18758         documentation.
18759         * modules/getdate (Files): Provide fallback docs and header.
18760         (Notice, Depends-on): Update references.
18761         * tests/test-parse-datetime.c: Likewise.
18762         * DEPENDENCIES: Likewise.
18763         * MODULES.html.sh (Date and time <time.h>): Likewise.
18764         * doc/parse-datetime.texi (Date input formats)
18765         (Authors of parse_datetime): Likewise.
18766         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18767         (Include): Likewise.
18768         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18769         * gnulib-tool: Likewise.
18770         * m4/bison.m4 (gl_BISON): Likewise.
18771         Suggested by Bruno Haible.
18772
18773 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18774
18775         more ports to Solaris tr, which needs [] around ranges
18776         * gnulib-tool: Solaris tr needs [] around ranges.
18777         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18778         * tests/test-pipe-filter-gi1.c (main): Likewise.
18779         * tests/test-pipe-filter-ii1.c (main): Likewise.
18780
18781 2010-10-05  Eric Blake  <eblake@redhat.com>
18782
18783         bootstrap: fix Solaris regression
18784         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18785         around ranges.
18786         Reported by Pádraig Brady.
18787
18788         bootstrap: work with pkg-config
18789         * build-aux/bootstrap (check_versions): Also transliterate - in
18790         prerequisite name.
18791         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18792         prerequisites that were already found, to avoid confusion.
18793         Reported by Justin Clift.
18794
18795         faccessat: remove unused wrappers
18796         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18797         presence of these wrappers dragged in -lgen on Solaris.
18798         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18799
18800 2010-10-05  Jim Meyering  <meyering@redhat.com>
18801
18802         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18803         * Makefile (sc_pragma_columns): New syntax-check rule.
18804
18805 2010-10-04  Bruno Haible  <bruno@clisp.org>
18806
18807         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18808         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18809         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18810         Reported by Bruce Korb and Eric Blake.
18811
18812 2010-10-04  Bruno Haible  <bruno@clisp.org>
18813
18814         threadlib: Make option --with-libpth-prefix work.
18815         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18816         use $LIBPTH, not just -lpth.
18817
18818 2010-10-04  Bruno Haible  <bruno@clisp.org>
18819
18820         Avoid line length limitation from HP NonStop system header files.
18821         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18822         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18823         * lib/ctype.in.h: Likewise.
18824         * lib/dirent.in.h: Likewise.
18825         * lib/errno.in.h: Likewise.
18826         * lib/fcntl.in.h: Likewise.
18827         * lib/float.in.h: Likewise.
18828         * lib/getopt.in.h: Likewise.
18829         * lib/iconv.in.h: Likewise.
18830         * lib/inttypes.in.h: Likewise.
18831         * lib/langinfo.in.h: Likewise.
18832         * lib/locale.in.h: Likewise.
18833         * lib/math.in.h: Likewise.
18834         * lib/netdb.in.h: Likewise.
18835         * lib/netinet_in.in.h: Likewise.
18836         * lib/poll.in.h: Likewise.
18837         * lib/pthread.in.h: Likewise.
18838         * lib/pty.in.h: Likewise.
18839         * lib/sched.in.h: Likewise.
18840         * lib/se-selinux.in.h: Likewise.
18841         * lib/search.in.h: Likewise.
18842         * lib/signal.in.h: Likewise.
18843         * lib/spawn.in.h: Likewise.
18844         * lib/stdarg.in.h: Likewise.
18845         * lib/stddef.in.h: Likewise.
18846         * lib/stdint.in.h: Likewise.
18847         * lib/stdio.in.h: Likewise.
18848         * lib/stdlib.in.h: Likewise.
18849         * lib/string.in.h: Likewise.
18850         * lib/strings.in.h: Likewise.
18851         * lib/sys_file.in.h: Likewise.
18852         * lib/sys_ioctl.in.h: Likewise.
18853         * lib/sys_select.in.h: Likewise.
18854         * lib/sys_socket.in.h: Likewise.
18855         * lib/sys_stat.in.h: Likewise.
18856         * lib/sys_time.in.h: Likewise.
18857         * lib/sys_times.in.h: Likewise.
18858         * lib/sys_utsname.in.h: Likewise.
18859         * lib/sys_wait.in.h: Likewise.
18860         * lib/sysexits.in.h: Likewise.
18861         * lib/termios.in.h: Likewise.
18862         * lib/time.in.h: Likewise.
18863         * lib/unistd.in.h: Likewise.
18864         * lib/wchar.in.h: Likewise.
18865         * lib/wctype.in.h: Likewise.
18866         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18867         * modules/ctype (Makefile.am): Likewise.
18868         * modules/dirent (Makefile.am): Likewise.
18869         * modules/errno (Makefile.am): Likewise.
18870         * modules/fcntl-h (Makefile.am): Likewise.
18871         * modules/float (Makefile.am): Likewise.
18872         * modules/getopt-posix (Makefile.am): Likewise.
18873         * modules/iconv-h (Makefile.am): Likewise.
18874         * modules/inttypes (Makefile.am): Likewise.
18875         * modules/langinfo (Makefile.am): Likewise.
18876         * modules/locale (Makefile.am): Likewise.
18877         * modules/math (Makefile.am): Likewise.
18878         * modules/netdb (Makefile.am): Likewise.
18879         * modules/netinet_in (Makefile.am): Likewise.
18880         * modules/poll-h (Makefile.am): Likewise.
18881         * modules/pthread (Makefile.am): Likewise.
18882         * modules/pty (Makefile.am): Likewise.
18883         * modules/sched (Makefile.am): Likewise.
18884         * modules/search (Makefile.am): Likewise.
18885         * modules/selinux-h (Makefile.am): Likewise.
18886         * modules/signal (Makefile.am): Likewise.
18887         * modules/spawn (Makefile.am): Likewise.
18888         * modules/stdarg (Makefile.am): Likewise.
18889         * modules/stddef (Makefile.am): Likewise.
18890         * modules/stdint (Makefile.am): Likewise.
18891         * modules/stdio (Makefile.am): Likewise.
18892         * modules/stdlib (Makefile.am): Likewise.
18893         * modules/string (Makefile.am): Likewise.
18894         * modules/strings (Makefile.am): Likewise.
18895         * modules/sys_file (Makefile.am): Likewise.
18896         * modules/sys_ioctl (Makefile.am): Likewise.
18897         * modules/sys_select (Makefile.am): Likewise.
18898         * modules/sys_socket (Makefile.am): Likewise.
18899         * modules/sys_stat (Makefile.am): Likewise.
18900         * modules/sys_time (Makefile.am): Likewise.
18901         * modules/sys_times (Makefile.am): Likewise.
18902         * modules/sys_utsname (Makefile.am): Likewise.
18903         * modules/sys_wait (Makefile.am): Likewise.
18904         * modules/sysexits (Makefile.am): Likewise.
18905         * modules/termios (Makefile.am): Likewise.
18906         * modules/time (Makefile.am): Likewise.
18907         * modules/unistd (Makefile.am): Likewise.
18908         * modules/wchar (Makefile.am): Likewise.
18909         * modules/wctype (Makefile.am): Likewise.
18910
18911 2010-10-04  Bruno Haible  <bruno@clisp.org>
18912
18913         read-file tests: Avoid a test failure on NonStop Kernel.
18914         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18915         a regular file.
18916         Reported by Joachim Schmitz <schmitz@hp.com>.
18917
18918 2010-10-03  Bruno Haible  <bruno@clisp.org>
18919
18920         gnulib-tool: Fixes for --create-testdir with --libtool.
18921         * gnulib-tool (func_get_automake_snippet): Don't augment
18922         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18923         an executable.
18924         (func_create_testdir): Handle module 'alloca' like func_import.
18925         Reported by Bruce Korb <bruce.korb@gmail.com>.
18926
18927 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18928
18929         Avoid some lines longer than 80 characters.
18930         * lib/stdint.in.h: Break long comment lines.
18931         * lib/math.in.h: Likewise.
18932         (_GL_NUM_UINT_WORDS): New macro, for readability.
18933         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18934         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18935         * lib/stdlib.in.h: Likewise.
18936         * lib/spawn.in.h: Likewise.
18937         * lib/sys_socket.in.h: Update an URL.
18938         * lib/sys_stat.in.h: Break long line.
18939
18940 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18941
18942         Improve pmccabe2html.
18943         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18944         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18945         when the sources change. Remove the line in the HTML about "Used
18946         ranges" (which implied that there might be other unused ranges),
18947         rename "Resume" to "Summary" (easier to understand for more users).
18948         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18949         styles, and some unnecessary blank lines.
18950
18951 2010-10-03  Bruno Haible  <bruno@clisp.org>
18952             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18953
18954         acl: Add support for ACLs on NonStop Kernel.
18955         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18956         Check whether the function aclsort() exists.
18957         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18958         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18959         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18960         (acl_nontrivial [HAVE_ACLSORT]: New function.
18961         (file_has_acl): Implement for NonStop Kernel.
18962         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18963         (qset_acl): Implement for NonStop Kernel.
18964         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18965         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18966         (main): Implement for NonStop Kernel.
18967         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18968         Kernel. Handle this flavor.
18969         * tests/test-set-mode-acl.sh: Likewise.
18970         * tests/test-copy-acl.sh: Likewise.
18971         * tests/test-copy-file.sh: Likewise.
18972
18973 2010-10-03  Bruno Haible  <bruno@clisp.org>
18974
18975         Info about ACLs on NonStop Kernel.
18976         * doc/acl-resources.txt: Add info about NonStop Kernel.
18977         References by Joachim Schmitz <schmitz@hp.com>.
18978
18979 2010-10-02  Bruno Haible  <bruno@clisp.org>
18980
18981         Define missing EDQUOT on NonStop Kernel.
18982         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18983         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18984         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18985         missing.
18986         * doc/posix-headers/errno.texi: Mention the NSK bug.
18987         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18988         Reported by Joachim Schmitz <schmitz@hp.com>.
18989
18990 2010-10-02  Bruno Haible  <bruno@clisp.org>
18991
18992         Update doc for POSIX:2008.
18993         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18994         Update URL of POSIX specification.
18995
18996 2010-10-02  Bruno Haible  <bruno@clisp.org>
18997
18998         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18999         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19000         from gnulib, not from Automake.
19001
19002 2010-10-02  Bruno Haible  <bruno@clisp.org>
19003
19004         New module 'system-posix'.
19005         * modules/system-posix: New file.
19006         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19007         module is present.
19008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19009         GNULIB_SYSTEM_POSIX.
19010         * modules/stdlib (Depends-on): Remove sys_wait.
19011         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19012         * doc/posix-functions/system.texi: Mention the new module.
19013         * doc/posix-headers/stdlib.texi: Likewise.
19014         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19015         define test_sys_wait_macros to a no-op.
19016         Reported by Sam Steingold <sds@gnu.org>.
19017
19018 2010-09-30  Bruno Haible  <bruno@clisp.org>
19019
19020         More renaming from 'getdate' to 'get_date'.
19021         * doc/get_date.texi: Renamed from doc/getdate.texi.
19022         * modules/get_date (Files): Update.
19023         * MODULES.html.sh (Date and time <time.h>): Update.
19024         * DEPENDENCIES: Update.
19025         * gnulib-tool: Update comment.
19026         * m4/bison.m4 (gl_BISON): Likewise.
19027         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19028
19029 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19030
19031         bootstrap: support ACLOCAL_FLAGS during aclocal
19032         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19033         can add additional -I dir for third-party .m4 files.
19034
19035 2010-09-30  Eric Blake  <eblake@redhat.com>
19036
19037         bootstrap: use glibtoolize on MacOS
19038         * build-aux/bootstrap (check_versions): Convert libtool into
19039         libtoolize.
19040         (tool search): Move libtool check earlier, and look for
19041         glibtoolize for MacOS.
19042         (gnulib_tool_options): Auto-add --libtool when appropriate.
19043         Reported by Justin Clift.
19044
19045         poll: fix typo that broke test on MacOS
19046         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19047         Reported by Justin Clift.
19048
19049         getdate: rename to get_date
19050         Note: getdate.h is not renamed, to minimize client impact.
19051         * modules/getdate: Mark obsolete.  Move old contents...
19052         * modules/get_date: ...to new module name.
19053         * modules/getdate-tests: Move...
19054         * modules/get_date-tests: ...here.
19055         * m4/getdate.m4: Move...
19056         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19057         * lib/getdate.y: Move...
19058         * lib/get_date.y: ...here.
19059         * tests/test-getdate.c: Move...
19060         * tests/test-get_date.c: ...here.
19061         * doc/posix-functions/getdate.texi (getdate): Update name.
19062         * NEWS: Mention the change.
19063
19064 2010-09-29  Bruno Haible  <bruno@clisp.org>
19065
19066         Separate the module 'waitpid' from the module 'sys_wait'.
19067         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19068         present.
19069         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19070         gl_MODULE_INDICATOR_FOR_TESTS.
19071         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19072         * modules/sys_wait (Depends-on): Remove waitpid.
19073         (Makefile.am): Substitute GNULIB_WAITPID.
19074         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19075         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19076         signature only if the 'waitpid' module is present.
19077         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19078         * NEWS: Mention the change.
19079         * modules/grantpt (Depends-on): Add waitpid.
19080         * modules/wait-process (Depends-on): Likewise.
19081
19082 2010-09-29  Bruno Haible  <bruno@clisp.org>
19083
19084         More tests for module 'sys_wait'.
19085         * modules/sys_wait-c++-tests: New file.
19086         * tests/test-sys_wait-c++.cc: New file.
19087         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19088         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19089
19090 2010-09-29  Bruno Haible  <bruno@clisp.org>
19091
19092         New module 'waitpid'.
19093         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19094         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19095         Don't include <process.h>.
19096         (waitpid): Declare only, using modern idiom.
19097         * m4/waitpid.m4: New file.
19098         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19099         * modules/waitpid: New file.
19100         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19101         (Makefile.am): Update.
19102         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19103
19104 2010-09-28  Bruno Haible  <bruno@clisp.org>
19105
19106         poll: Assume ANSI C.
19107         * lib/poll.c (poll): Use an ANSI C declaration.
19108
19109 2010-09-28  Bruno Haible  <bruno@clisp.org>
19110
19111         poll-h: Create poll.h on all platforms.
19112         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19113         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19114         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19115         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19116         (gl_REPLACE_POLL_H): Don't set POLL_H.
19117         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19118         * modules/poll-h (Depends-on): Add include_next.
19119         (Makefile.am): Create poll.h unconditionally. Substitute also
19120         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19121
19122 2010-09-28  Bruno Haible  <bruno@clisp.org>
19123
19124         Tests for module 'poll-h'.
19125         * modules/poll-h-c++-tests: New file.
19126         * tests/test-poll-h-c++.cc: New file.
19127
19128         Tests for module 'poll-h'.
19129         * modules/poll-h-tests: New file.
19130         * tests/test-poll-h.c: New file.
19131
19132 2010-09-28  Bruno Haible  <bruno@clisp.org>
19133
19134         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19135         * modules/poll-h (Depends-on): Add 'extensions'.
19136
19137 2010-09-28  Bruno Haible  <bruno@clisp.org>
19138
19139         New module 'poll-h'.
19140         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19141         (poll): Use modern idiom.
19142         * modules/poll-h: New file.
19143         * modules/poll (Files): Remove lib/poll.in.h.
19144         (Depends-on): Add poll-h.
19145         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19146         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19147         * m4/poll_h.m4: New file.
19148         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19149         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19150         and invoke gl_REPLACE_POLL_H.
19151         * lib/poll.c: Use common idiom.
19152         * tests/test-poll.c: Likewise.
19153         * doc/posix-headers/poll.texi: Mention the poll-h module.
19154         Suggested by Eric Blake.
19155
19156 2010-09-26  Bruno Haible  <bruno@clisp.org>
19157
19158         sys_wait: Implement WSTOPSIG.
19159         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19160         Reported by Simon Josefsson.
19161
19162 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19163
19164         stdlib, sys_wait: Avoid compilation error on mingw.
19165         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19166
19167 2010-09-26  Bruno Haible  <bruno@clisp.org>
19168
19169         stdlib tests: Avoid code duplication.
19170         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19171         * modules/sys_wait-tests (Files): Likewise.
19172         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19173         * tests/test-stdlib.c: Include test-sys_wait.h.
19174         (main): Invoke test_sys_wait_macros.
19175         * tests/test-sys_wait.c: Include test-sys_wait.h.
19176         (main): Invoke test_sys_wait_macros.
19177
19178 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19179
19180         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19181         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19182         sure Windows sockets are working before calling getaddrinfo.
19183         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19184         * doc/gnulib.texi (Windows sockets): Fix typo.
19185
19186 2010-09-25  Bruno Haible  <bruno@clisp.org>
19187
19188         Tests for module 'regex-quote'.
19189         * modules/regex-quote-tests: New file.
19190         * tests/test-regex-quote.c: New file.
19191
19192         New module 'regex-quote'.
19193         * lib/regex-quote.h: New file.
19194         * lib/regex-quote.c: New file.
19195         * modules/regex-quote: New file.
19196         Suggested by Reuben Thomas <rrt@sc3d.org>.
19197
19198 2010-09-24  Bruno Haible  <bruno@clisp.org>
19199
19200         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19201         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19202
19203 2010-09-23  Bruno Haible  <bruno@clisp.org>
19204
19205         setenv: Relax license.
19206         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19207         Blake.
19208         Requested by Eric Blake.
19209
19210 2010-09-22  Bruno Haible  <bruno@clisp.org>
19211
19212         termios: Relax license.
19213         * modules/termios (License): Change to LGPLv2+.
19214         Requested by Eric Blake.
19215
19216 2010-09-22  Bruno Haible  <bruno@clisp.org>
19217
19218         threadlib: Allow the package to change the default to 'no'.
19219         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19220         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19221         Reported by Paul Eggert.
19222
19223 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19224             Bruno Haible  <bruno@clisp.org>
19225
19226         Fix endless loop in mbmemcasecoll.
19227         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19228         byte.
19229         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19230
19231 2010-09-22  Bruno Haible  <bruno@clisp.org>
19232
19233         Tests for module 'memcoll'.
19234         * modules/memcoll-tests: New file.
19235         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19236
19237         memcoll, xmemcoll: Clarify size vs. length.
19238         * modules/memcoll.c (memcoll0): Clarify specification.
19239         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19240         passed to collate_error.
19241
19242 2010-09-22  Bruno Haible  <bruno@clisp.org>
19243
19244         Tests for module 'memcasecmp'.
19245         * modules/memcasecmp-tests: New file.
19246         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19247
19248 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19249
19250         * lib/pthread.in.h: Add split double-inclusion guard, and include
19251         system <pthread.h> if there is one.  Use @@-style as in other
19252         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19253         pthread.h doesn't.
19254         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19255         (pthread_mutexattr_settype, pthread_mutex_trylock):
19256         New static inline functions, if there's no system <pthread.h>.
19257         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19258         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19259         Approximate with mutexes if the system lacks spinlocks, as in
19260         MacOS.
19261         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19262         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19263         @@-style.  Check for spinlocks separately.
19264         (gl_PTHREAD_DEFAULTS): New macro.
19265         * modules/pthread: Redo to use a more typical style for in.h files.
19266
19267 2010-09-21  Eric Blake  <eblake@redhat.com>
19268
19269         net_if: enhance tests
19270         * tests/test-net_if.c (main): Move signature checks earlier.
19271         Print failures to stderr.
19272         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19273         Document the bug that we do not yet fix.
19274
19275 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19276
19277         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19278         about gnulib, not GSS.
19279
19280 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19281
19282         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19283         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19284         for Emacs.
19285         * build-aux/pmccabe2html: Make Makefile.am example code more
19286         cut-and-paste friendly.
19287
19288 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19289
19290         * tests/test-net_if.c: New file.
19291         * modules/net_if-tests: New file.
19292
19293 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19294
19295         pthread: add pthread_spin_destroy
19296         * lib/pthread.in.h (pthread_spin_destroy): New function.
19297
19298 2010-09-19  Bruno Haible  <bruno@clisp.org>
19299
19300         gnulib-tool: Fix --help output.
19301         * gnulib-tool (func_usage): Fix help message.
19302         Reported by Reuben Thomas <rrt@sc3d.org>.
19303
19304 2010-09-18  Jim Meyering  <meyering@redhat.com>
19305
19306         maint.mk: avoid unexpanded \n in two diagnostics
19307         * top/maint.mk (sc_prohibit_always_true_header_tests):
19308         Don't use a literal \n in a halt=... assignment.  It would not be
19309         expanded, and the two \n bytes would appear in the diagnostic output
19310         rather than the desired newline.  Use halt=$$(printf ... instead.
19311         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19312
19313 2010-09-18  Bruno Haible  <bruno@clisp.org>
19314
19315         netinet_in: Doc tweak.
19316         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19317         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19318
19319 2010-09-18  Jim Meyering  <meyering@redhat.com>
19320
19321         init.sh: correct an outdated comment
19322         * tests/init.sh (create_exe_shims_):  s/function/alias/
19323
19324         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19325         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19326         a file named "*.exe" is removed between the glob expansion and the
19327         processing of that oddly named file.
19328
19329 2010-09-17  Eric Blake  <eblake@redhat.com>
19330
19331         mirbsd: add some more support
19332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19333         in BSD family.
19334         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19335         devices as OpenBSD.
19336         * m4/host-os.m4 (mirbsd): Add MirBSD.
19337
19338         tests: fix unportable assumption on sys/wait.h
19339         * tests/test-sys_wait.c (main): Relax test.
19340         * tests/test-stdlib.c (main): Likewise.
19341
19342         init.sh: accomodate directory with no .exes
19343         * tests/init.sh: Accomodate directory containing only scripts.
19344
19345         tests: avoid compiler warning
19346         * tests/test-stdlib.c (main): Use the variable.
19347
19348         fdutimens, fdutimensat: update signature, again
19349         * lib/utimens.h (gl_futimens): Delete, and move signature...
19350         (fdutimens): ...here.
19351         (fdutimensat): Rearrange signature.
19352         (lutimensat): Rename variable for clarity.
19353         * lib/fdutimensat.c (fdutimensat): Update signature.
19354         * lib/utimens.c (fdutimens): Likewise.
19355         (gl_futimens): Delete.
19356         (utimens, lutimens): Update callers.
19357         * lib/futimens.c (futimens): Likewise.
19358         * tests/test-fdutimensat.c: Likewise.
19359         * tests/test-utimens.c: Likewise.
19360         * tests/test-futimens.h: Update comment.
19361         * NEWS: Mention this.
19362         Suggested by Paul Eggert.
19363
19364 2010-09-17  Bruno Haible  <bruno@clisp.org>
19365
19366         Take over the maintenance of some older macros from Autoconf.
19367         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19368         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19369         GNU Autoconf.
19370         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19371         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19372
19373 2010-09-17  Eric Blake  <eblake@redhat.com>
19374
19375         fdutimensat: drop atflag validation
19376         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19377         with valid fd, to close a race scenario where futimens is
19378         unsupported and FILE was replaced by a symlink.
19379         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19380         accordingly.
19381         Suggested by Paul Eggert.
19382
19383 2010-09-16  Bruno Haible  <bruno@clisp.org>
19384
19385         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19386         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19387
19388 2010-09-16  Bruno Haible  <bruno@clisp.org>
19389
19390         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19391         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19392         login_tty exists.
19393         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19394
19395 2010-09-16  Bruno Haible  <bruno@clisp.org>
19396
19397         login_tty: Make the replacement code work on BSD systems.
19398         * lib/login_tty.c: Include <sys/ioctl.h>.
19399         (login_tty): Use ioctl TIOCSCTTY when available.
19400         * modules/login_tty (Depends-on): Add sys_ioctl.
19401         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19402
19403 2010-09-16  Bruno Haible  <bruno@clisp.org>
19404
19405         login_tty: Stricter unit test.
19406         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19407         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19408         and tcgetsid() after login_tty.
19409         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19410
19411 2010-09-16  Bruno Haible  <bruno@clisp.org>
19412
19413         New module 'tcgetsid'.
19414         * lib/tcgetsid.c: New file.
19415         * m4/tcgetsid.m4: New file.
19416         * modules/tcgetsid: New file.
19417         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19418         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19419         GNULIB_TCGETSID, HAVE_TCGETSID.
19420         * lib/termios.in.h: Include <sys/types.h>.
19421         (tcgetsid): New declaration.
19422         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19423         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19424         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19425         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19426
19427 2010-09-16  Bruno Haible  <bruno@clisp.org>
19428
19429         Tests for module 'termios'.
19430         * modules/termios-c++-tests: New file.
19431         * modules/termios-tests: New file.
19432         * tests/test-termios-c++.cc: New file.
19433         * tests/test-termios.c: New file.
19434
19435         New module 'termios'.
19436         * modules/termios: New file.
19437         * lib/termios.in.h: New file.
19438         * m4/termios_h.m4: New file.
19439         * doc/posix-headers/termios.texi: Mention the new module.
19440
19441 2010-09-16  Eric Blake  <eblake@redhat.com>
19442
19443         fdutimensat: add an atflag parameter
19444         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19445         * lib/utimens.h (fdutimensat): Update prototype.
19446         * tests/test-fdutimensat.c: Adjust test to match.
19447         * NEWS: Document the change.
19448         Suggested by Paul Eggert.
19449
19450 2010-09-16  Bruno Haible  <bruno@clisp.org>
19451
19452         Fix typos in comments.
19453         * lib/striconveh.h: Fix typo in comment.
19454         * lib/login_tty.c (login_tty): Likewise.
19455
19456 2010-09-15  Bruno Haible  <bruno@clisp.org>
19457
19458         stdlib: clarify MirBSD WEXITSTATUS bug
19459         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19460         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19461
19462 2010-09-15  Eric Blake  <eblake@redhat.com>
19463
19464         stdlib: work around MirBSD WEXITSTATUS bug
19465         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19466         * modules/stdlib (Depends-on): Add sys_wait.
19467         * tests/test-sys_wait.c (main): Enhance test.
19468         * tests/test-stdlib.c (main): Likewise.
19469         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19470
19471         docs: mention MacOS issue with WEXITSTATUS(constant)
19472         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19473         issue.
19474         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19475
19476         strnlen: add tests
19477         * modules/strnlen-tests: New file.
19478         * tests/test-strnlen.c: Likewise.
19479
19480 2010-09-14  Bruno Haible  <bruno@clisp.org>
19481
19482         unistr/base: Avoid link errors when module 'libunistring' is also used.
19483         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19484         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19485         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19486         Declare also when HAVE_LIBUNISTRING is set.
19487         Reported by Pádraig Brady <P@draigbrady.com>.
19488
19489 2010-09-14  Eric Blake  <eblake@redhat.com>
19490
19491         test-rawmemchr: make more robust
19492         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19493         (Depends-on, configure.ac): Add needed prerequisites to use it.
19494         * modules/memchr-tests (Files, Depends-on, configure.ac):
19495         Likewise, to avoid implicit reliance on memchr module prereqs.
19496         * tests/test-memchr.c (main): Ensure proper masking.
19497         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19498         reads.
19499
19500         memchr: detect glibc Alpha bug
19501         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19502         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19503         Alpha.
19504         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19505         * tests/test-memchr.c (main): Enhance test.
19506         Reported by Nelson H. F. Beebe.
19507
19508 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19509
19510         fts, getcwd, glob: audit for dirfd returning -1
19511         * lib/fts.c (opendir): Remove #define; no longer used.
19512         (opendirat): New arg PDIR_FD.  All callers changed.
19513         (fts_build, _opendir2): Use new opendirat to avoid the need for
19514         dirfd, or for checking whether dirfd returns a negative value.
19515         Don't use opendir; always use openat followed by fdopendir.
19516         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19517         it.
19518         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19519         returns -1 here.
19520         * modules/fts (Depends-on): Remove dirfd.
19521         * modules/getcwd (Depends-on): Likewise.
19522
19523 2010-09-13  Eric Blake  <eblake@redhat.com>
19524
19525         float: fix broken MirBSD header
19526         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19527         * doc/posix-headers/float.texi (float.h): Document it.
19528
19529 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19530
19531         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19532         * lib/fts.c (opendirat): New arg extra_flags.
19533         (__opendir2): Use it to avoid following symlinks when opening
19534         a directory, if symlinks are not supposed to be followed.  See
19535         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19536
19537         fdopendir: preserve argument fd before returning
19538         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19539         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19540         (fdopendir): Use them, arranging for FD to be open to the same
19541         directory that it was when it started.  (It might be temporarily
19542         closed while fdopendir is running, so this not thread- or
19543         signal-safe.)  Be careful to do the right thing even when file
19544         descriptors are scarce and dup fails with errno == EMFILE.  See
19545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19546
19547 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19548
19549         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19550         * NEWS: Document change.
19551         * m4/regex.m4: Disable test for regoff_t size.
19552
19553 2010-09-13  Jim Meyering  <meyering@redhat.com>
19554
19555         fts: don't operate on an invalid file descriptor after failed dup
19556         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19557         negative file descriptor.
19558
19559 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19560
19561         savedir: add streamsavedir, deprecate fdsavedir
19562         * NEWS: Mention deprecation of fdsavedir.
19563         * lib/savedir.c (streamsavedir): New extern function, whose name
19564         ends in "savedir" to be consistent with the others.  This differs
19565         from savedirstream in that it doesn't close its argument.  The
19566         next version of GNU tar will use this instead of fdsavedir, to
19567         avoid some race conditions and conserve file descriptors.
19568         (savedirstream): Reimplement as a wrapper around streamsavedir.
19569         (fdsavedir): Add a comment deprecating this function.  As far as
19570         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19571         * lib/savedir.h (streamsavedir): New decl.
19572         (fdsavedir): Add a comment deprecating this.
19573
19574 2010-09-10  Bruno Haible  <bruno@clisp.org>
19575
19576         langinfo: Fix last commit.
19577         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19578         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19580
19581 2010-09-10  Bruno Haible  <bruno@clisp.org>
19582
19583         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19584         * lib/progreloc.c (O_EXEC): Define fallback.
19585
19586 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19587
19588         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19589         * NEWS: Document recent changes to fcntl-h.
19590         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19591         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19592         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19593         Similarly for O_SEARCH; this last was already true, but not documented.
19594         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19595         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19596         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19597         Likewise.
19598         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19599         is zero, not whether it is defined.
19600         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19601         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19602         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19603
19604 2010-09-10  Bruno Haible  <bruno@clisp.org>
19605
19606         langinfo, nl_langinfo: Fix for IRIX 5.3.
19607         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19608         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19609         HAVE_LANGINFO_YESEXPR.
19610         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19611         HAVE_LANGINFO_YESEXPR.
19612         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19613         HAVE_LANGINFO_T_FMT_AMPM is 0.
19614         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19615         HAVE_LANGINFO_YESEXPR is 0.
19616         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19617         NOEXPR.
19618         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19619         * doc/posix-functions/nl_langinfo.texi: Likewise.
19620         Reported by Eric Blake.
19621
19622 2010-09-10  Bruno Haible  <bruno@clisp.org>
19623
19624         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19625         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19626         on FreeBSD 8.0 and OpenBSD 4.6.
19627         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19628         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19629         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19630         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19631         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19632         ac_includes_default.
19633         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19634
19635 2010-09-09  Eric Blake  <eblake@redhat.com>
19636
19637         strsignal: work around NetBSD bug
19638         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19639         * lib/string.in.h (includes): Likewise.
19640         * doc/posix-functions/strsignal.texi (strsignal): Document the
19641         bug.
19642         Reported by Nelson H. F. Beebe.
19643
19644         gnulib-tool: work with NetBSD /bin/sh
19645         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19646         (func_get_description, func_get_comment, func_get_status)
19647         (func_get_notice, func_get_applicability, func_get_filelist)
19648         (func_get_dependencies, func_get_autoconf_early_snippet)
19649         (func_get_autoconf_snippet, func_get_automake_snippet)
19650         (func_get_include_directive, func_get_link_directive)
19651         (func_get_license, func_get_maintainer, func_import): Avoid
19652         shell syntax errors from parsing syntax extensions.
19653
19654 2010-09-09  Bruno Haible  <bruno@clisp.org>
19655
19656         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19657         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19658         a reliable way to determine whether the 'alias' command works.
19659
19660 2010-09-08  Jim Meyering  <meyering@redhat.com>
19661
19662         init.sh: penalize a set-x-impaired shell; don't disqualify it
19663         * tests/init.sh: Too many shells corrupt application stderr when
19664         you set -x, so we can't afford to disqualify them, since at least
19665         on Irix-6.5, that would disqualify all bourne shells.
19666         Instead, use a two-pass approach.
19667         On the first pass, try to find a shell that meets the stricter
19668         condition that set -x does not corrupt stderr.
19669         If no shell meets the stricter condition, retest each candidate
19670         shell, but without that extra condition.  Finally, when
19671         VERBOSE=yes is requested and set -x might cause trouble, simply
19672         issue a warning and refrain from enabling debug output.
19673
19674 2010-09-08  Eric Blake  <eblake@redhat.com>
19675
19676         unsetenv: fix OpenBSD bug
19677         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19678         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19679         documentation.
19680         Reported by Jim Meyering.
19681
19682         strtod: work around IRIX 6.5 bug
19683         * lib/strtod.c (strtod): Reparse number on shorter string if
19684         exponent parse was invalid.
19685         * tests/test-strtod.c (main): Add check for "0x1p 2".
19686         Reported by Tom G. Christensen.
19687
19688         getopt: optimize previous patch
19689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19690         empty variable.  Speed up awk script.
19691         Reported by Paolo Bonzini.
19692
19693 2010-09-08  Jim Meyering  <meyering@redhat.com>
19694
19695         test.sh: disqualify shells for which set -x corrupts stderr
19696         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19697         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19698         appear in stderr output.  For example, this command:
19699             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19700         prints "P=1" on those two systems:
19701
19702 2010-09-08  Bruno Haible  <bruno@clisp.org>
19703
19704         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19705         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19706         commands, because some shells ignore redirections when there is an
19707         error in the command lookup.
19708         Reported by Eric Blake.
19709
19710 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19711
19712         * lib/regex.h: Fix a mention of `regex_compile' (should be
19713         `re_compile_pattern').
19714         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19715         (re_set_registers): Correct name of parameter in comment.
19716
19717         * doc/regex.texi: Add documentation for missing syntax flags.
19718         Remove commented-out documentation of defunct syntax option
19719         RE_NO_EMPTY_ALTS.
19720         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19721         Add documentation of re_set_registers.
19722         Document trick to re-use a pattern buffer by setting fastmap manually.
19723         Update documentation of struct re_pattern_buffer per public members.
19724         Uncomment documentation of equivalence class operators and
19725         collating symbol operators, since they are now implemented,
19726         Explain leftmost-longest matching in relation to alternatives.
19727         Tidy documentation of substring matching.
19728         Remove POSIX documentation, which is done better in
19729         glibc, and refer the reader there. Keep BSD API documentation, as
19730         that is not readily available elsewhere.
19731
19732 2010-09-07  Eric Blake  <eblake@redhat.com>
19733
19734         getopt: handle POSIXLY_CORRECT set but not exported
19735         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19736         export state of POSIXLY_CORRECT, due to bash set -o posix.
19737         Reported by Dustin J. Mitchell.
19738
19739 2010-09-05  Bruno Haible  <bruno@clisp.org>
19740
19741         gnulib-tool: Highlight the changed options.
19742         * gnulib-tool (func_usage): Display the --import, --add-import,
19743         --remove-import explanations in bold font.
19744
19745 2010-09-06  Karl Berry  <karl@gnu.org>
19746
19747         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19748
19749 2010-09-05  Bruno Haible  <bruno@clisp.org>
19750
19751         uniwidth/width: Update comment.
19752         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19753         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19754
19755 2010-09-05  Bruno Haible  <bruno@clisp.org>
19756
19757         isinf, isnan: Relax license.
19758         * modules/isinf (License): Change from GPL to LGPL, with consent from
19759         Ben Pfaff.
19760         * modules/isnan (License): Likewise.
19761         Requested by Ludovic Courtès.
19762
19763 2010-09-04  Bruno Haible  <bruno@clisp.org>
19764
19765         gnulib-tool: Help migration from --import to --add-import or --update.
19766         * gnulib-tool: Emit a verbose error message when --import is used
19767         without any module name.
19768
19769 2010-09-04  Bruno Haible  <bruno@clisp.org>
19770
19771         Update doc about gnulib-tool.
19772         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19773         'gnulib-tool --update' in more detail.
19774         Reported by Eric Blake.
19775
19776 2010-09-04  Bruno Haible  <bruno@clisp.org>
19777
19778         gnulib-tool: Change --import. New options --add/remove-import.
19779         * gnulib-tool: New options --add-import, --remove-import.
19780         (func_usage): Document them.
19781         (have_associative): Define always.
19782         (func_import): In import mode, don't merge the specified settings with
19783         the cached settings. Implement remove-import mode.
19784         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19785         Explain when to use them versus --import.
19786         (Simple update): Use --add-import instead of --import.
19787         * NEWS: Mention the change.
19788
19789 2010-09-04  Bruno Haible  <bruno@clisp.org>
19790
19791         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19792         separate gnulib.mk.
19793
19794 2010-09-04  Bruno Haible  <bruno@clisp.org>
19795
19796         gnulib-tool: Don't talk about CVS any more.
19797         * gnulib-tool (func_usage, func_import): Write "version control"
19798         instead of CVS.
19799
19800 2010-09-04  Jim Meyering  <meyering@redhat.com>
19801
19802         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19803         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19804         false positives (whose names may be ill-chosen) when searching
19805         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19806         would cause a false-positive.
19807
19808         avoid coreutils "make distcheck" failure
19809         Coreutils tests with an absolute build directory name that contains
19810         a space.  Not quoting this directory name caused a failure.
19811         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19812         * tests/test-vc-list-files-cvs.sh: Likewise.
19813
19814 2010-09-04  Bruno Haible  <bruno@clisp.org>
19815
19816         gnulib-tool: Avoid error when run in a package without Makefile.am.
19817         * gnulib-tool: When collecting the m4dirs in a package that does not
19818         have a Makefile.am, eliminate those directories that contain no
19819         gnulib-cache.m4. Fix expression that counts these directories.
19820
19821 2010-09-04  Bruno Haible  <bruno@clisp.org>
19822
19823         update-copyright test: Improve output when perl is missing or too old.
19824         * tests/test-update-copyright.sh: Move test of Perl version down after
19825         the test whether Perl exists. Provide an explanation relating Perl's
19826         error message to Automake's SKIP: message.
19827
19828 2010-09-04  Bruno Haible  <bruno@clisp.org>
19829
19830         Don't augment PATH in TESTS_ENVIRONMENT.
19831         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19832         set abs_aux_dir instead of augmenting PATH.
19833         * modules/vc-list-files-tests (Makefile.am): Likewise.
19834         * tests/test-update-copyright.sh: Augment PATH here.
19835         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19836         path_prepend_.
19837         * tests/test-vc-list-files-git.sh: Likewise.
19838
19839 2010-09-04  Jim Meyering  <meyering@redhat.com>
19840
19841         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19842         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19843
19844 2010-09-04  Bruno Haible  <bruno@clisp.org>
19845
19846         strdup: Fix compilation error in C++ mode.
19847         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19848         the macro.
19849
19850 2010-09-04  Bruno Haible  <bruno@clisp.org>
19851
19852         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19853         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19854         macro into a function.
19855         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19856
19857 2010-09-04  Bruno Haible  <bruno@clisp.org>
19858
19859         Set PATH_SEPARATOR the same way autoconf does.
19860         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19861         the value of PATH_SEPARATOR the same way autoconf-generated configure
19862         scripts do.
19863         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19864         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19865
19866 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19867
19868         Set PATH_SEPARATOR the same way autoconf does.
19869         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19870         the same way autoconf-generated configure scripts do.
19871         * posix-modules: Likewise.
19872
19873 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19874
19875         hash: fix safe_hasher const typo
19876         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19877         const; otherwise, there is a type error later.
19878
19879 2010-09-02  Jim Meyering  <meyering@redhat.com>
19880
19881         test-update-copyright.sh: require perl 5.8.0
19882         * tests/test-update-copyright.sh: Require 5.8.0,
19883         which Tom G. Christensen has confirmed is adequate,
19884         while 5.6.1 is not.
19885
19886 2010-09-02  Eric Blake  <eblake@redhat.com>
19887
19888         tests: init.sh improvements for re-exec'ing with zsh
19889         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19890         -vx through shell re-exec.
19891         Reported by Tom G. Christensen.
19892
19893         wctype: fix typo in previous commit
19894         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19895         Reported by Ludovic Courtès.
19896
19897 2010-09-02  Jim Meyering  <meyering@redhat.com>
19898
19899         test-update-copyright.sh: skip test if Perl is too old
19900         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19901         Reported by Tom G. Christensen.
19902
19903 2010-09-02  Bruno Haible  <bruno@clisp.org>
19904
19905         wctype: Avoid compilation error on IRIX 6.5.30.
19906         * lib/wctype.in.h (iswblank): Declare with a replacement if
19907         REPLACE_ISWBLANK is set.
19908         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19909         declared. Set REPLACE_ISWBLANK.
19910         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19911         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19912         * doc/posix-headers/wctype.texi: Likewise.
19913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19914
19915 2010-09-01  Bruno Haible  <bruno@clisp.org>
19916
19917         New module 'socketlib'.
19918         * modules/socketlib: New file.
19919         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19920         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19921         * modules/sockets (Depends-on): Add socketlib.
19922         Suggested by Sam Steingold <sds@gnu.org>.
19923
19924 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19925
19926         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19927
19928         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19929         when one needs search access to a directory but not read access.
19930         On systems where it is available, it works in some cases where
19931         O_RDONLY does not, namely on directories that are searchable but
19932         not readable, and which need only to be searchable.  If O_SEARCH
19933         is not available, fall back to the traditional method of using
19934         O_RDONLY.
19935
19936         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19937         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19938         when opening a directory that needs only to be searchable.
19939         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19940         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19941         * lib/openat-proc.c (openat_proc_name): Likewise.
19942         * lib/openat.c (openat_needs_fchdir): Likewise.
19943         * lib/save-cwd.c (save_cwd): Likewise.
19944         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19945
19946 2010-08-28  Bruno Haible  <bruno@clisp.org>
19947
19948         New module 'host-cpu-c-abi'.
19949         * modules/host-cpu-c-abi: New file.
19950         * m4/host-cpu-c-abi.m4: New file, based on part of
19951         clisp/src/m4/general.m4.
19952         Requested by Sam Steingold <sds@gnu.org>.
19953
19954 2010-08-31  Eric Blake  <eblake@redhat.com>
19955         and Jim Meyering  <meyering@redhat.com>
19956
19957         hash: factor, and guard against misbehaving hasher function
19958         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19959         of table->hasher's return value.  Also protect against a hash value
19960         so large that adding it to table->bucket results in a NULL pointer.
19961         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19962         Use it in place of open-coded check-and-abort.
19963
19964 2010-08-30  Bruno Haible  <bruno@clisp.org>
19965
19966         hash: silence spurious clang warning
19967         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19968         Reported by Eric Blake.
19969
19970 2010-08-30  Eric Blake  <eblake@redhat.com>
19971
19972         strstr, memmem, strcasestr: avoid leaked shell message
19973         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19974         FreeBSD.
19975         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19977
19978         tests: silence clang warning
19979         * tests/test-malloca.c (do_allocation): Avoid dead store.
19980
19981 2010-08-29  Bruno Haible  <bruno@clisp.org>
19982
19983         gettext: Fix recent mistake.
19984         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19985
19986 2010-08-29  Bruno Haible  <bruno@clisp.org>
19987
19988         selinux-h: Offer a --without-selinux option.
19989         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19990         --without-selinux was specified, skip all tests and define
19991         HAVE_SELINUX_SELINUX_H to 0.
19992         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19993         set LIB_SELINUX to empty.
19994         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19995         gl_LIBSELINUX. If --without-selinux was specified, replace
19996         selinux/context.h.
19997         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19998
19999 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20000             Bruno Haible  <bruno@clisp.org>
20001
20002         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20003         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20004         of HAVE_REALLOC.
20005         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20006         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20007         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20008         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20009
20010 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20011             Bruno Haible  <bruno@clisp.org>
20012
20013         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20014         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20015         HAVE_CALLOC.
20016         * lib/xmalloc.c: Update accordingly.
20017         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20018         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20019         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20020
20021 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20022             Bruno Haible  <bruno@clisp.org>
20023
20024         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20025         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20026         HAVE_MALLOC.
20027         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20028         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20029         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20030
20031 2010-08-29  Bruno Haible  <bruno@clisp.org>
20032
20033         Update modules list.
20034         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20035         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20036         (String handling <string.h>): Add astrxfrm.
20037         (File system functions): Add readlinkat.
20038
20039 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20040
20041         Tests for module 'realloc-gnu'.
20042         * modules/realloc-gnu-tests: New file.
20043         * tests/test-realloc-gnu.c: New file.
20044
20045         Tests for module 'calloc-gnu'.
20046         * modules/calloc-gnu-tests: New file.
20047         * tests/test-calloc-gnu.c: New file.
20048
20049         Tests for module 'malloc-gnu'.
20050         * modules/malloc-gnu-tests: New file.
20051         * tests/test-malloc-gnu.c: New file.
20052
20053 2010-08-28  Bruno Haible  <bruno@clisp.org>
20054
20055         Rename module 'realloc' -> 'realloc-gnu'.
20056         * modules/realloc-gnu: New file, copied from modules/realloc.
20057         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20058         obsolete.
20059         * modules/mgetgroups (Depends-on): Update.
20060         * doc/posix-functions/realloc.texi: Update.
20061         * NEWS: Mention the change.
20062
20063         Rename module 'calloc' -> 'calloc-gnu'.
20064         * modules/calloc-gnu: New file, copied from modules/calloc.
20065         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20066         obsolete.
20067         * doc/posix-functions/calloc.texi: Update.
20068         * NEWS: Mention the change.
20069
20070         Rename module 'malloc' -> 'malloc-gnu'.
20071         * modules/malloc-gnu: New file, copied from modules/malloc.
20072         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20073         obsolete.
20074         * modules/argp (Depends-on): Update.
20075         * modules/regex (Depends-on): Update.
20076         * doc/posix-functions/malloc.texi: Update.
20077         * NEWS: Mention the change.
20078
20079 2010-08-28  Eric Blake  <eblake@redhat.com>
20080
20081         pread, pwrite: add missing dependency
20082         * modules/pread (Depends-on): Add extensions.
20083         * modules/pwrite (Depends-on): Likewise.
20084
20085 2010-08-28  Bruno Haible  <bruno@clisp.org>
20086
20087         unistr/u*-strchr: Fix tests dependencies.
20088         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20089         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20090         Reported by Ian Beckwith <ianb@erislabs.net>.
20091
20092 2010-08-28  Bruno Haible  <bruno@clisp.org>
20093
20094         read-file: Don't occupy too much unused memory.
20095         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20096
20097 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20098             Eric Blake  <eblake@redhat.com>
20099             Bruno Haible  <bruno@clisp.org>
20100
20101         read-file: Avoid memory reallocations with regular files.
20102         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20103         (fread_file): With regular files, use the remaining length as the
20104         initial buffer size.  Check against overflow.
20105         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20106         sys_stat.
20107
20108 2010-08-28  Bruno Haible  <bruno@clisp.org>
20109
20110         ftello: Relax license.
20111         * modules/ftello (License): Relax to LGPLv2+.
20112         Reported by Eric Blake.
20113
20114 2010-08-28  Bruno Haible  <bruno@clisp.org>
20115
20116         Avoid relocwrapper link errors due to gnulib replacement functions.
20117         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20118         function.
20119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20120
20121 2010-08-28  Bruno Haible  <bruno@clisp.org>
20122
20123         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20124         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20125         defined.
20126         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20127         Suggested by Eric Blake.
20128
20129 2010-08-28  Bruno Haible  <bruno@clisp.org>
20130
20131         sys_socket, netdb: Ensure socklen_t gets defined.
20132         * modules/sys_socket (Depends-on): Add socklen.
20133         * modules/netdb (Depends-on): Likewise.
20134         * modules/getaddrinfo (Depends-on): Remove socklen.
20135         * modules/getsockopt (Depends-on): Likewise.
20136         * modules/setsockopt (Depends-on): Likewise.
20137         * tests/test-sys_socket.c: Check that socklen_t is defined.
20138         * tests/test-netdb.c: Likewise.
20139         * m4/socklen.m4: Update comments.
20140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20141
20142 2010-08-27  Eric Blake  <eblake@redhat.com>
20143
20144         login_tty: add missing dependency
20145         * modules/login_tty (Depends-on): Add pty.
20146
20147 2010-08-26  Eric Blake  <eblake@redhat.com>
20148
20149         lib-symbol-versions: fix m4 quoting
20150         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20151         format for AC_LINK_IFELSE.
20152
20153         glob: fix compile test
20154         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20155
20156         btowc: fix missing file
20157         * modules/btowc (Files): Also ship locale-fr.m4.
20158
20159         lseek: fix link test
20160         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20161         AC_LINK_IFELSE.
20162
20163         include_next: silence autoconf 2.68 warning
20164         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20165         AC_COMPILE_IFELSE as special.
20166         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20167         autoconf < 2.68.
20168
20169         acl: fix compilation test
20170         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20171         AC_COMPILE_IFELSE.
20172
20173 2010-08-26  Bruno Haible  <bruno@clisp.org>
20174
20175         Modernize AC_TRY_RUN invocations.
20176         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20177         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20178         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20179         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20180         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20181         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20182         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20183         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20184         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20185         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20186         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20187         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20188         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20189         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20190         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20191         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20192         gl_MBRLEN_NUL_RETVAL): Likewise.
20193         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20194         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20195         Likewise.
20196         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20197         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20198         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20199         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20200         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20201         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20202         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20203         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20204         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20205         Likewise.
20206         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20207         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20208         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20209         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20210         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20211         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20212         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20213         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20214         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20216
20217 2010-08-26  Bruno Haible  <bruno@clisp.org>
20218
20219         Modernize AC_TRY_LINK invocations.
20220         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20221         AC_TRY_LINK.
20222         * m4/argp.m4 (gl_ARGP): Likewise.
20223         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20224         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20225         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20226         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20227         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20228         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20229         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20230         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20231         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20232         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20233         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20234         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20235         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20236         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20237         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20238         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20239         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20240         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20241         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20242         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20243         Likewise.
20244         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20245         Likewise.
20246         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20247         Likewise.
20248         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20249         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20250         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20251         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20252         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20253         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20254         * m4/servent.m4 (gl_SERVENT): Likewise.
20255         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20256         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20257         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20258         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20259         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20260         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20261         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20262         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20263         * modules/tsearch-tests (configure.ac): Likewise.
20264
20265 2010-08-26  Bruno Haible  <bruno@clisp.org>
20266
20267         Modernize AC_TRY_COMPILE invocations.
20268         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20269         AC_TRY_COMPILE.
20270         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20271         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20272         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20273         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20274         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20275         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20276         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20277         * m4/lock.m4 (gl_LOCK): Likewise.
20278         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20279         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20280         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20281         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20282         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20283         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20284         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20285         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20286         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20287         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20288         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20289         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20290         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20291         extraneous semicolon.
20292
20293 2010-08-26  Jim Meyering  <meyering@redhat.com>
20294
20295         stat-time: relax license LGPL
20296         * modules/stat-time (License): Change from GPL to LGPL,
20297         with consent from all contributors, for use in libguile.
20298         Requested by Ludovic Courtès.
20299
20300 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20301
20302         poll: return immediately on POLLHUP.
20303         * lib/poll.c (poll): Always set timeout before wait_timeout is
20304         computed.
20305
20306 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20307
20308         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20309         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20310         rmdir ("dir/.//"), unlinkat.
20311
20312 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20313
20314         stdbool: avoid spurious failure with modern xlc
20315         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20316
20317 2010-08-24  Bruno Haible  <bruno@clisp.org>
20318
20319         getloadavg: simplify code
20320         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20321         gl_have_func. Update comments.
20322
20323 2010-08-24  Eric Blake  <eblake@redhat.com>
20324
20325         getloadavg: don't define SVR4 on cygwin
20326         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20327         only define SVR4 when -lkvm is required.
20328         Reported by Yaakov Selkowitz.
20329
20330 2010-08-24  Bruno Haible  <bruno@clisp.org>
20331
20332         priv-set: fix comment
20333         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20334
20335 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20336
20337         priv-set: fix comments
20338         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20339         to match code, as suggested by David Bartley in:
20340         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20341
20342 2010-08-23  Eric Blake  <eblake@redhat.com>
20343
20344         stdbool: avoid rejecting clang
20345         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20346         * tests/test-stdbool.c: Enable more tests if using the system
20347         <stdbool.h> instead of the gnulib replacement.
20348         (main): Move xlc bug test to a runtime test for all compilers.
20349         Reported by Anders Kaseorg.
20350
20351         argz: fix shell quoting issue
20352         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20353         Reported by Charles Wilson.
20354
20355 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20356             Erik Faye-Lund <kusmabite@gmail.com>
20357
20358         poll, select: handle ERROR_BROKEN_PIPE.
20359         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20360         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20361         * lib/select.c (win32_compute_revents): Do not mark a pipe
20362         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20363
20364 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20365
20366         fts: allow compilation with C++
20367         * lib/fts_.h: Specify extern "C" linkage with C++.
20368
20369 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20370
20371         Fix gnulib-tool sed script de-commentation for AIX sed.
20372         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20373         sed.
20374
20375 2010-08-17  Eric Blake  <eblake@redhat.com>
20376
20377         test-stddef: test for (some) offsetof bugs
20378         * tests/test-stddef.c: Enhance test to ensure correct type of
20379         offsetof.
20380         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20381         that we are not fixing at this time.
20382
20383 2010-08-15  Bruno Haible  <bruno@clisp.org>
20384
20385         stpncpy: Allow stpncpy to be defined as a macro.
20386         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20387         if it's already correctly declared.
20388         * lib/string.in.h (stpncpy): Undefine before redefining.
20389         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20390
20391 2010-08-14  Bruno Haible  <bruno@clisp.org>
20392
20393         Rename module 'memxfrm' to 'amemxfrm'.
20394         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20395         (amemxfrm): Renamed from memxfrm.
20396         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20397         (amemxfrm): Renamed from memxfrm.
20398         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20399         * NEWS: Mention the change.
20400         * MODULES.html.sh (String handling <string.h>): Update.
20401         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20402         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20403         * lib/unicase/u16-casexfrm.c: Likewise.
20404         * lib/unicase/u32-casexfrm.c: Likewise.
20405         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20406         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20407         * lib/uninorm/u16-normxfrm.c: Likewise.
20408         * lib/uninorm/u32-normxfrm.c: Likewise.
20409         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20410         memxfrm.
20411         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20412         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20413         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20414         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20415         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20416         Suggested by Paul Eggert.
20417
20418 2010-08-14  Bruno Haible  <bruno@clisp.org>
20419
20420         Tests for module 'astrxfrm'.
20421         * modules/astrxfrm-tests: New file.
20422         * tests/test-astrxfrm.c: New file.
20423
20424         New module 'astrxfrm'.
20425         * lib/astrxfrm.h: New file.
20426         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20427         * modules/astrxfrm: New file.
20428
20429 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20430
20431         regex: Tweak doc.
20432         * doc/regex.texi (Overview): Don't mention regex.c.
20433         (GNU Regular Expression Compiling): Likewise.
20434         (Match-end-of-line Operator): Mention 'not_eol'.
20435
20436 2010-08-14  Brian Gough  <bjg@gnu.org>
20437             Bruno Haible  <bruno@clisp.org>
20438
20439         git-merge-changelog: add doc relating to use with bzr and hg.
20440         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20441
20442 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20443
20444         pthread: fix pthread.h creation for srcdir != builddir
20445         * modules/pthread (Makefile.am): Fix the rule to work also in a
20446         non-srcdir build.
20447
20448 2010-08-13  Karl Berry  <karl@gnu.org>
20449
20450         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20451         * doc/posix-*/*: force line break before @url of POSIX
20452         specifications.
20453         Suggested by Werner Lemberg.
20454
20455 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20456
20457         strtod: fix const diagnostic
20458         * lib/strtod.c (strtod): Don't assign const char * to char *,
20459         as this elicits a warning from GCC when warnings are enabled.
20460
20461 2010-08-10  Pádraig Brady <P@draigbrady.com>
20462         and Eric Blake  <eblake@redhat.com>
20463
20464         copy-acl: ignore ENOTSUP on HP-UX
20465         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20466         so that it is available for HP-UX.
20467         * lib/copy-acl.c (qcopy_acl): Use it.
20468         Reported by Patrick M. Callahan.
20469
20470 2010-08-10  Eric Blake  <eblake@redhat.com>
20471
20472         open, chown: relax license
20473         * modules/open (License): Change to LGPLv2+, with consent by all
20474         authors, for use in augeas.
20475         * modules/chown (License): Likewise.
20476         * modules/lchown (Likewise): Likewise.
20477         Requested by Adam Stokes.
20478
20479 2010-08-09  Karl Berry  <karl@gnu.org>
20480
20481         * build-aux/ar-lib: new file, import from Automake.
20482         * config/srclist.txt: autocheck for updates.
20483
20484 2010-08-09  Eric Blake  <eblake@redhat.com>
20485
20486         readlinkat: adjust client modules
20487         * modules/areadlinkat (Depends-on): Use readlinkat, not
20488         symlinkat.
20489         * modules/areadlinkat-with-size (Depends-on): Likewise.
20490
20491         mknod: be more vocal about danger of running tests as root
20492         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20493         root, since that is just asking for problems.
20494         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20495
20496         readlinkat: split into its own module
20497         * modules/symlinkat: Split readlinkat...
20498         * modules/readlinkat: ...into separate module.
20499         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20500         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20501         * lib/symlinkat.c (readlinkat): Move...
20502         * lib/readlinkat.c: ...into new file.
20503         * modules/symlinkat-tests: Split readlinkat test...
20504         * modules/readlinkat-tests: ...into separate module.
20505         * tests/test-symlinkat.c: Split...
20506         * tests/test-readlinkat.c: ...into new file.
20507         * NEWS: Document the split.
20508         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20509         * lib/unistd.in.h (readlinkat): Likewise.
20510         Suggested by Bruno Haible.
20511
20512 2010-08-08  Bruno Haible  <bruno@clisp.org>
20513
20514         memxfrm: Speed up.
20515         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20516         that usually only one call to strxfrm is necessary for each string
20517         part.
20518         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20519
20520 2010-08-07  Karl Berry  <karl@gnu.org>
20521
20522         * doc/posix-headers/limits.texi,
20523         * doc/posix-functions/malloc.texi,
20524         * doc/posix-functions/strsignal.texi: missing @item.
20525         * doc/ld-version-script.texi: spurious leading i.
20526         * doc/regex.texi (Interval Operators): no commas inside @var.
20527
20528 2010-08-01  Bruno Haible  <bruno@clisp.org>
20529
20530         Integrate the regex documentation.
20531         * doc/gnulib.texi: Define 'cn' index.
20532         (Regular expressions): New a chapter that includes regex.texi and
20533         regexprops-generic.texi.
20534         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20535         syntax.
20536
20537         Whitespace cleanup.
20538         * doc/regex.texi: Remove trailing spaces.
20539
20540         Add regex documentation.
20541         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20542         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20543         Written by Kathy A. Hargreaves and Karl Berry.
20544
20545 2010-08-01  Bruno Haible  <bruno@clisp.org>
20546
20547         link: Update documentation.
20548         * doc/posix-functions/link.texi: Update regarding Solaris.
20549
20550 2010-07-31  Bruno Haible  <bruno@clisp.org>
20551
20552         Update modules list.
20553         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20554         (String handling <string.h>): Add memcmp2, memxfrm.
20555         (Container data structures): Add xlist, xsublist, xoset.
20556         (Core language properties): Add alignof, unused-parameter.
20557         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20558         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20559         (Unibyte characters <ctype.h>): New section.
20560         (String handling <string.h>): New section.
20561         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20562         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20563         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20564         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20565         tan, tanh, tanl, y0, y1, yn.
20566         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20567         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20568         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20569         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20570         unlockpt, vdprintf, vdprintf-posix.
20571         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20572         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20573         xconcat-filename.
20574         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20575         getdtablesize, pipe2, pipe2-safer.
20576         (Security): New section.
20577         (Networking functions): Add accept4.
20578         (Signal handling): Add sigpipe.
20579         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20580         mbmemcasecoll.
20581         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20582         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20583         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20584         pipe-filter-ii.
20585         (Misc): Add argp-version-etc, login_tty, parse-duration.
20586
20587 2010-07-31  Bruno Haible  <bruno@clisp.org>
20588
20589         Improve doc in MODULES.html.
20590         * modules/linkat (Description): Add the word "function".
20591         * modules/mkfifo (Description): Likewise.
20592         * modules/mknod (Description): Likewise.
20593         * modules/remove (Description): Likewise.
20594         * modules/renameat (Description): Likewise.
20595         * modules/stat (Description): Likewise.
20596         * modules/symlink (Description): Likewise.
20597         * modules/unlink (Description): Likewise.
20598
20599 2010-07-31  Bruno Haible  <bruno@clisp.org>
20600
20601         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20602         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20603         option --enable/disable-c++ instead of --enable/disable-cxx.
20604         * NEWS: Mention the change.
20605
20606 2010-07-31  Bruno Haible  <bruno@clisp.org>
20607
20608         readlink, areadlink: Relax test a bit.
20609         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20610         alternative to ENOTDIR.
20611         * tests/test-areadlink.h (test_areadlink): Likewise.
20612         Reported by Rainer Tammer.
20613
20614 2010-07-31  Bruno Haible  <bruno@clisp.org>
20615
20616         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20617         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20618         character, perform the search using U_STRCHR.
20619         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20620         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20621         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20622         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20623         Suggested by Paolo Bonzini.
20624
20625 2010-07-31  Bruno Haible  <bruno@clisp.org>
20626
20627         unistr/u*-strstr: Fix dependencies.
20628         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20629         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20630         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20631
20632 2010-07-31  Bruno Haible  <bruno@clisp.org>
20633
20634         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20635         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20636         the beginning of the loop.
20637         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20638         cases in 'switch' statement.
20639
20640         unistr/u8-strchr: Fix several bugs.
20641         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20642         the string. When not found, return NULL, not a pointer near the end.
20643
20644         More tests for unistr/u8-strchr.
20645         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20646         that the function does not read past the first occurrence of the byte
20647         being searched.
20648         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20649         * tests/unistr/test-u16-strchr.c (main): New function.
20650         * tests/unistr/test-u32-strchr.c (main): New function.
20651
20652 2010-07-31  Bruno Haible  <bruno@clisp.org>
20653
20654         posix-modules: Ignore backup files of documentation files.
20655         * posix-modules: grep only through files named *.texi.
20656
20657 2010-07-31  Bruno Haible  <bruno@clisp.org>
20658
20659         symlinkat: Fix documentation.
20660         * doc/posix-functions/readlinkat.texi: Fix module name.
20661
20662 2010-07-31  Bruno Haible  <bruno@clisp.org>
20663
20664         fchownat: Replace also when chown has the trailing slash bug.
20665         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20666         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20667         introduced on 2010-04-10.
20668         Reported by Rainer Tammer.
20669
20670 2010-07-31  Bruno Haible  <bruno@clisp.org>
20671
20672         linkat: Work around AIX 7.1 bug.
20673         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20674         whether linkat handles trailing slash correctly. If not, replace linkat
20675         and define LINKAT_TRAILING_SLASH_BUG.
20676         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20677         check whether (fd1,file1) points to a directory if file1 or file2 ends
20678         in a slash. Code taken from lib/link.c.
20679         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20680         Reported by Rainer Tammer.
20681
20682 2010-07-31  Bruno Haible  <bruno@clisp.org>
20683
20684         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20685         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20686         This disables an xlc optimization that was causing wrong test results.
20687         Reported by Rainer Tammer.
20688
20689 2010-07-31  Bruno Haible  <bruno@clisp.org>
20690
20691         iconv: Work around AIX 6.1..7.1 bug.
20692         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20693         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20694         cross-compiling, guess no on all versions of AIX.
20695         Reported by Rainer Tammer.
20696
20697 2010-07-31  Bruno Haible  <bruno@clisp.org>
20698
20699         readlink: Relax test a bit.
20700         * tests/test-readlink.h (test_readlink): Allow different errno value
20701         when readlink is called with a file name that ends in / and refers to
20702         a file.
20703         Suggested by Eric Blake.
20704         Reported by Rainer Tammer.
20705
20706 2010-07-31  Bruno Haible  <bruno@clisp.org>
20707
20708         copysign: Does not require -lm on glibc systems.
20709         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20710         gl_COMMON_DOUBLE_MATHFUNC.
20711         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20712
20713 2010-07-31  Bruno Haible  <bruno@clisp.org>
20714
20715         duplocale: Work around AIX 7.1 bug.
20716         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20717         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20718         * lib/duplocale.c (rpl_duplocale): Update comment.
20719         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20720         Reported by Rainer Tammer.
20721
20722 2010-07-30  Bruno Haible  <bruno@clisp.org>
20723
20724         dirfd: Avoid link error on AIX 7.1.
20725         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20726         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20727         exist, set REPLACE_DIRFD.
20728         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20729         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20730         * doc/posix-functions/dirfd.texi: Update.
20731         Reported by Rainer Tammer.
20732
20733 2010-07-30  Eric Blake  <eblake@redhat.com>
20734
20735         strtod: next round of AIX fixes
20736         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20737         exponent.
20738         * tests/test-strtod.c (main): Enhance tests.
20739         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20740         Reported by Rainer Tammer.
20741
20742         futimens: fix configure check
20743         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20744         Reported by Bruno Haible.
20745
20746 2010-07-30  Bruno Haible  <bruno@clisp.org>
20747
20748         getline: Update regarding AIX.
20749         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20750         Reported by Rainer Tammer.
20751
20752 2010-07-30  Bruno Haible  <bruno@clisp.org>
20753
20754         wcwidth: Drop replacement on AIX 7.
20755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20756         AIX 7.
20757         Reported by Rainer Tammer.
20758
20759 2010-07-30  Bruno Haible  <bruno@clisp.org>
20760
20761         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20762         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20763         a 'char *'.
20764         Reported by Rainer Tammer.
20765
20766 2010-07-30  Bruno Haible  <bruno@clisp.org>
20767
20768         unlink: Update regarding AIX.
20769         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20770         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20771         Reported by Rainer Tammer.
20772
20773 2010-07-30  Bruno Haible  <bruno@clisp.org>
20774
20775         symlink: Update regarding AIX.
20776         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20777         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20778         Reported by Rainer Tammer.
20779
20780 2010-07-30  Bruno Haible  <bruno@clisp.org>
20781
20782         strndup: Update regarding AIX.
20783         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20784         AIX 7.
20785         Reported by Rainer Tammer.
20786
20787 2010-07-30  Bruno Haible  <bruno@clisp.org>
20788
20789         stat: Update regarding AIX.
20790         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20791         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20792         Reported by Rainer Tammer.
20793
20794 2010-07-30  Bruno Haible  <bruno@clisp.org>
20795
20796         truncl: Fix autoconf test.
20797         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20798         whether truncl works.
20799         Reported by Rainer Tammer.
20800
20801 2010-07-30  Bruno Haible  <bruno@clisp.org>
20802
20803         round: Update regarding AIX.
20804         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20805         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20806         Reported by Rainer Tammer.
20807
20808 2010-07-30  Bruno Haible  <bruno@clisp.org>
20809
20810         rename: Update regarding AIX.
20811         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20812         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20813         Reported by Rainer Tammer.
20814
20815 2010-07-30  Bruno Haible  <bruno@clisp.org>
20816
20817         printf.m4: Update regarding AIX.
20818         * m4/printf.m4: Update comments regarding AIX.
20819         Reported by Rainer Tammer.
20820
20821 2010-07-30  Bruno Haible  <bruno@clisp.org>
20822
20823         iconv: Update regarding AIX.
20824         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20825         AIX 7.
20826         Reported by Rainer Tammer.
20827
20828 2010-07-30  Bruno Haible  <bruno@clisp.org>
20829
20830         getopt: Update regarding AIX.
20831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20832         no on AIX.
20833         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20834         Reported by Rainer Tammer.
20835
20836 2010-07-30  Bruno Haible  <bruno@clisp.org>
20837
20838         ldexpl; Update regarding AIX.
20839         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20840         on AIX 7.
20841         Reported by Rainer Tammer.
20842
20843 2010-07-30  Bruno Haible  <bruno@clisp.org>
20844
20845         frexpl: Update regarding AIX.
20846         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20847         on AIX 7.
20848         Reported by Rainer Tammer.
20849
20850 2010-07-30  Bruno Haible  <bruno@clisp.org>
20851
20852         open, fopen: Update regarding AIX.
20853         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20854         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20855         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20856         * doc/posix-functions/fopen.texi: Likewise.
20857         Reported by Rainer Tammer.
20858
20859 2010-07-30  Bruno Haible  <bruno@clisp.org>
20860
20861         chown: Update doc regarding AIX.
20862         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20863         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20864         Reported by Rainer Tammer.
20865
20866 2010-07-30  Eric Blake  <eblake@redhat.com>
20867
20868         strtod: fix bug in replacement function on AIX
20869         * lib/strtod.c (strtod): Special case broken "0x" parse in
20870         underlying strtod.
20871         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20872         * doc/posix-functions/strtod.texi (strtod): Likewise.
20873         Reported by Rainer Tammer.
20874
20875 2010-07-30  Bruno Haible  <bruno@clisp.org>
20876
20877         mbrlen: Fix cross-compilation guess for AIX.
20878         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20879         guess. Leftover from 2008-12-22.
20880
20881 2010-07-30  Bruno Haible  <bruno@clisp.org>
20882
20883         mbrtowc: Fix cross-compilation guess for AIX.
20884         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20885         guess. Leftover from 2008-12-21.
20886
20887 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20888
20889         init.sh: work around trap limitation of some shells
20890         * tests/init.sh (setup_): Move exit trap outside of shell function.
20891
20892 2010-07-29  Eric Blake  <eblake@redhat.com>
20893
20894         strtod: aid debugging
20895         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20896         understanding why strtod is rejected.
20897
20898 2010-07-28  Bruno Haible  <bruno@clisp.org>
20899
20900         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20901         * lib/unistr/u8-chr.c: Include <string.h>.
20902         * tests/unistr/test-u8-chr.c: Likewise.
20903         * tests/unistr/test-u16-chr.c: Likewise.
20904         * tests/unistr/test-u32-chr.c: Likewise.
20905         * tests/unistr/test-u8-strchr.c: Likewise.
20906         * tests/unistr/test-u16-strchr.c: Likewise.
20907         * tests/unistr/test-u32-strchr.c: Likewise.
20908         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20909         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20910         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20911         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20912
20913 2010-07-28  Bruno Haible  <bruno@clisp.org>
20914
20915         Use spaces for indentation, not tabs.
20916         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20917
20918 2010-07-27  Bruno Haible  <bruno@clisp.org>
20919
20920         mbspcasecmp: Fix function specification.
20921         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20922         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20923         Reported by Eric Blake <eblake@redhat.com>.
20924
20925 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20926
20927         timespec: use cast and not conditional, as truncation isn't possible
20928         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20929         instead of a conditional.  Comment about the situation in more detail.
20930         This undoes most of the 2009-10-29 patch.
20931
20932 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20933
20934         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20935         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20936         * lib/unistr/u8-strchr.c: Likewise.
20937         * modules/unistr/u8-chr: Depend on memchr.
20938
20939         unistr/u*-strchr: add tests
20940         * modules/unistr/u8-strchr-tests: New file.
20941         * modules/unistr/u16-strchr-tests: New file.
20942         * modules/unistr/u32-strchr-tests: New file.
20943         * tests/unistr/test-strchr.h: New file.
20944         * tests/unistr/test-u8-strchr.c: New file.
20945         * tests/unistr/test-u16-strchr.c: New file.
20946         * tests/unistr/test-u32-strchr.c: New file.
20947
20948         unistr/u*-chr: test multibyte sequences more
20949         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20950         test vector.
20951         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20952         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20953         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20954
20955         unistr/u*-chr: test multibyte sequences
20956         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20957
20958         unistr/u*-chr: prepare for multibyte tests
20959         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20960         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20961         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20962         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20963         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20964         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20965
20966 2010-07-18  Bruno Haible  <bruno@clisp.org>
20967
20968         unistr/u8-strchr: Optimize non-ASCII argument case.
20969         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20970         because the first byte often matches anyway.
20971         Reported by Pádraig Brady <P@draigbrady.com>.
20972
20973 2010-07-15  Karl Berry  <karl@gnu.org>
20974
20975         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20976
20977 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20978
20979         getcwd: on Solaris, work better if ancestors are inaccessible
20980         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20981         buffer and size, try again with a large buffer.  This works better
20982         on Solaris, since its getcwd succeeds even if the path to the root
20983         is inaccessible, and this is helpful in common cases such as .zfs
20984         hidden directories.  Problem reported by J Chapman Flack in
20985         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20986         Use system getcwd if it's declared, not merely if it's partly
20987         working; use the partly-working test only to avoid needless effort
20988         if the system getcwd fails.
20989         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20990         comment that was already obsolete and is now even more obsolete.
20991         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20992         now might call strdup.
20993
20994 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20995
20996         pthread: Add enough so that coreutils/src/sort.c compiles.
20997         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20998         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20999         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21000         Include <sys/types.h>, in case it defines pthread_t.
21001         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21002         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21003         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21004         (pthread_rwlockattr_t, pthread_spinlock_t):
21005         New typedefs, if HAVE_PTHREAD_T is not defined.
21006         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21007         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21008         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21009         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21010         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21011         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21012         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21013         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21014         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21015         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21016         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21017         New macros.
21018         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21019         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21020         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21021         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21022         (pthread_spin_unlock): New dummy functions.
21023         (pthread_create): Return EAGAIN; don't set errno.
21024         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21025         require AC_C_INLINE.
21026         * modules/pthread (Depends-on): Add sched, time.
21027         (pthread.h): Use AM_V_GEN.
21028
21029 2010-07-13  Bruno Haible  <bruno@clisp.org>
21030
21031         striconveh: Don't malloc memory if the result buffer is sufficient.
21032         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21033         buffer if its size is sufficient.
21034         Reported by Ludovic Courtès <ludo@gnu.org>.
21035
21036 2010-07-13  Bruno Haible  <bruno@clisp.org>
21037
21038         strtod: Add safety check.
21039         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21040
21041 2010-07-12  Bruno Haible  <bruno@clisp.org>
21042
21043         Unify tests that set gl_cv_func_ldexpl_no_libm.
21044         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21045         gl_FUNC_LDEXPL.
21046         (gl_FUNC_LDEXPL): Invoke it.
21047         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21048
21049 2010-07-12  Bruno Haible  <bruno@clisp.org>
21050
21051         Unify tests that set gl_cv_func_ldexp_no_libm.
21052         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21053         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21054         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21055         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21056         * modules/strtod (Files): Add m4/ldexp.m4.
21057
21058 2010-07-12  Bruno Haible  <bruno@clisp.org>
21059
21060         Unify tests that set gl_cv_func_frexpl_no_libm.
21061         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21062         gl_FUNC_FREXPL_NO_LIBM.
21063         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21064         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21065
21066 2010-07-12  Bruno Haible  <bruno@clisp.org>
21067
21068         Unify tests that set gl_cv_func_frexp_no_libm.
21069         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21070         gl_FUNC_FREXP_NO_LIBM.
21071         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21072         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21073
21074 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21075
21076         memcoll: clarify sizes versus lengths, document better, and tweak perf
21077         * lib/memcoll.c (strcoll_loop, memcoll0):
21078         Improve quality of descriptive comments.  Name variables
21079         consistently as to whether they are lengths (which do not include
21080         terminating null) versus sizes (which do).
21081         * lib/xmemcoll.c (xmemcoll0): Likewise.
21082         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21083         returned when s1size == 0; this is easier to compile and saves
21084         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21085
21086 2010-07-12  Bruno Haible  <bruno@clisp.org>
21087
21088         Tests for module '_Exit'.
21089         * modules/_Exit-tests: New file.
21090         * tests/test-_Exit.sh: New file.
21091         * tests/test-_Exit.c: New file.
21092
21093         New module '_Exit'.
21094         * lib/stdlib.in.h (__attribute__): New macro.
21095         (_Exit): New declaration.
21096         * lib/_Exit.c: New file.
21097         * m4/_Exit.m4: New file.
21098         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21099         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21100         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21101         * modules/_Exit: New file.
21102         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21103         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21104
21105 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21106
21107         strtod: make it more-accurate typically, and don't require libm
21108         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21109         Include limits.h.  Don't include string.h.
21110         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21111         (locale_isspace): New function, so that no casts are needed to
21112         check whether *s is a space.
21113         (ldexp): Provide an unused dummy if not available.
21114         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21115         (strtod): Use them.  This implementation prefers to use the
21116         underlying strtod if available, falling back on our own code
21117         only to fix known bugs.  This is more likely to produce an
21118         accurate result.  Also, it avoids the use of libm functions.
21119         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21120         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21121         was absent, but it caused a test failure with coreutils.
21122         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21123         with libm.
21124         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21125         * modules/strtod-tests (Makefile.am): Likewise.
21126
21127 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21128             Bruno Haible  <bruno@clisp.org>
21129
21130         unistr/u8-strchr: Optimize ASCII argument case.
21131         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21132
21133 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21134
21135         (x)memcoll: minor tweaks
21136         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21137         is after the type that it qualifies.
21138         (memcoll0): Likewise.
21139         * lib/memcoll.h (memcoll0): Likewise.
21140         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21141         * lib/xmemcoll.h (xmemcoll0): Likewise.
21142         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21143         differs from memcoll in that the NUL byte is part of the argument.
21144         Omit the abort-checks, as performance is a real issue here.  Plus,
21145         the checks were wrong anyway (an off-by-one error).  Omit local
21146         variable 'diff', as it's a bit clearer that way.
21147         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21148         no longer needed.
21149
21150 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21151
21152         (x)memcoll: speedup when input is known to be NUL delimited
21153         * lib/memcoll.c: Include stdlib.
21154         (memcoll0): New function.
21155         (strcoll_loop): New function, refactored for use in both memcoll
21156         and memcoll0.
21157         * lib/memcoll.h (memcoll0): Add prototype.
21158         * lib/xmemcoll.c (xmemcoll0): New function.
21159         (collate_error): New function, refactored for use in both xmemcoll
21160         and xmemcoll0.
21161         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21162         * m4/memcoll.m4: add inline invocation.
21163
21164 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21165
21166         * build-aux/bootstrap: Remove any local translations
21167         from the translation project synchronization directory,
21168         so that local only translations are not distributed.
21169
21170 2010-07-04  Bruno Haible  <bruno@clisp.org>
21171
21172         fsusage: Clarify which code applies to which platforms.
21173         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21174         platform.
21175         * lib/fsusage.c (get_fs_usage): Likewise.
21176
21177 2010-07-04  Bruno Haible  <bruno@clisp.org>
21178
21179         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21180         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21181         Reported by Martin Lambers <marlam@marlam.de>.
21182
21183 2010-07-04  Jim Meyering  <meyering@redhat.com>
21184
21185         hash: once again explicitly disallow insertion of NULL
21186         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21187         inserting a NULL pointer cannot work with these functions.
21188         Add a comment with details.
21189         This reverts part of the 2010-07-01 commit, 5bef1a35
21190         "hash: extend module to deal with non-pointer keys".
21191
21192 2010-07-01  Bruno Haible  <bruno@clisp.org>
21193
21194         stdbool: Update doc.
21195         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21196         Info from Christian Weisgerber <naddy@mips.inka.de>.
21197
21198 2010-07-01  Jim Meyering  <meyering@redhat.com>
21199
21200         hash: extend module to deal with non-pointer keys
21201         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21202         but that allows insertion of non-pointer entries.
21203         Do not disallow an ENTRY value of NULL.
21204         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21205         * lib/hash.h (hash_insert0): Declare.
21206
21207 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21208
21209         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21210         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21211         not present (i.e. with autoconf 2.59 and when using gettextize, not
21212         gnulib), require AC_GNU_SOURCE instead.
21213
21214 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21215
21216         idpriv-drop: Fix tests.
21217         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21218         not to the test-idpriv-droptemp program.
21219
21220 2010-06-29  Bruno Haible  <bruno@clisp.org>
21221
21222         string: Fix syntax error with g++ 2.96.
21223         * lib/string.in.h (__pure__): Remove definition.
21224         (_GL_ATTRIBUTE_PURE): New macro.
21225         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21226         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21227         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21228
21229 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21230
21231         unitypes: Fix bug introduced on 2010-05-18.
21232         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21233
21234 2010-06-22  Eric Blake  <eblake@redhat.com>
21235
21236         memmem: slight optimization
21237         * lib/str-two-way.h (critical_factorization): Update comments.
21238         Reduce work during factorization phase.
21239         Reported by Carlos Bueno <carlos@bueno.org>.
21240
21241 2010-06-21  Bruno Haible  <bruno@clisp.org>
21242
21243         Fix HAVE_CALLOC_POSIX misnomer.
21244         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21245         !HAVE_CALLOC_POSIX.
21246         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21247         HAVE_CALLOC_POSIX.
21248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21249         instead of HAVE_CALLOC_POSIX.
21250         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21251         HAVE_CALLOC_POSIX.
21252
21253         Use modern idiom for calloc() replacement.
21254         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21255         AC_FUNC_CALLOC.
21256         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21257         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21258         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21259         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21260         (gl_REPLACE_CALLOC): New macro.
21261
21262 2010-06-21  Bruno Haible  <bruno@clisp.org>
21263
21264         Fix HAVE_REALLOC_POSIX misnomer.
21265         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21266         !HAVE_REALLOC_POSIX.
21267         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21268         HAVE_REALLOC_POSIX.
21269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21270         instead of HAVE_REALLOC_POSIX.
21271         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21272         HAVE_REALLOC_POSIX.
21273
21274         Use modern idiom for realloc() replacement.
21275         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21276         AC_FUNC_REALLOC.
21277         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21278         Autoconf's AC_FUNC_REALLOC.
21279         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21280         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21281         (gl_REPLACE_REALLOC): New macro.
21282         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21283
21284 2010-06-21  Bruno Haible  <bruno@clisp.org>
21285
21286         Fix HAVE_MALLOC_POSIX misnomer.
21287         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21288         !HAVE_MALLOC_POSIX.
21289         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21290         HAVE_MALLOC_POSIX.
21291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21292         instead of HAVE_MALLOC_POSIX.
21293         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21294         HAVE_MALLOC_POSIX.
21295
21296         Use modern idiom for malloc() replacement.
21297         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21298         AC_FUNC_MALLOC.
21299         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21300         Autoconf's AC_FUNC_MALLOC.
21301         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21302         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21303         (gl_REPLACE_MALLOC): New macro.
21304         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21305
21306 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21307
21308         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21309         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21310         This macro takes 3 arguments, not 4.
21311
21312 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21313
21314         ipv6: fix detection under mingw
21315         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21316         in6_addr.
21317
21318 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21319
21320         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21321         that strtod() works when cross-compiling to a glibc version known
21322         to work.
21323
21324 2010-06-15  Bruno Haible  <bruno@clisp.org>
21325
21326         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21327
21328 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21329
21330         select: Correct timeout.
21331         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21332
21333 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21334
21335         git-version-gen: init shell var to avoid env var influence
21336         * build-aux/git-version-gen (v): Init shell var to empty.
21337
21338 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21339
21340         priv-set: Don't assume that priv.h exists merely because getppriv does.
21341         See Jan Andersen's bug report about AIX 5L in
21342         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21343         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21344         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21345         * lib/priv-set.h: Likewise.
21346         * tests/test-priv-set.c: Likewise.
21347
21348 2010-06-13  Bruno Haible  <bruno@clisp.org>
21349
21350         relocatable: Make it easier to test whether to install wrappers.
21351         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21352         RELOCATABLE_VIA_WRAPPER.
21353
21354 2010-06-13  Bruno Haible  <bruno@clisp.org>
21355
21356         gnulib-tool: Display specified modules and dependencies differently.
21357         * gnulib-tool (func_show_module_list): New function.
21358         (func_import, func_create_testdir): Invoke it.
21359         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21360
21361 2010-06-13  Bruno Haible  <bruno@clisp.org>
21362
21363         gnulib-tool: Align code of func_import and func_create_testdir.
21364         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21365         specified_modules.
21366
21367 2010-06-12  Jim Meyering  <meyering@redhat.com>
21368
21369         test-inttostr: avoid spurious failure on Solaris 9
21370         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21371         to accept "%ju".  Reported by Bruno Haible.
21372
21373 2010-06-11  Jim Meyering  <meyering@redhat.com>
21374
21375         test-sys_socket: mark variables as used more readably
21376         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21377         as "used" explicitly via (void) statement casts.  This is more
21378         readable than using them in an artificial return expression.
21379         Suggestion from Bruno Haible.
21380
21381 2010-06-11  Bruno Haible  <bruno@clisp.org>
21382
21383         Avoid some more warnings from "gcc -Wwrite-strings".
21384         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21385         to 'const char *'.
21386         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21387         * tests/test-c-strcasestr.c (main): Likewise.
21388         * tests/test-mbscasestr1.c (main): Likewise.
21389         * tests/test-mbscasestr2.c (main): Likewise.
21390         * tests/test-memmem.c (main): Likewise.
21391         * tests/test-strstr.c (main): Likewise.
21392         * tests/test-strcasestr.c (main): Likewise.
21393
21394 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21395
21396         init.sh: change framework_failure_ to fail with status 99, not 1
21397         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21398         automake's parallel-tests rule that this is an unexpected failure,
21399         even if the test is listed in XFAIL_TESTS.
21400
21401 2010-06-11  Jim Meyering  <meyering@redhat.com>
21402
21403         test-inttostr: avoid warnings about 4-6KB literal strings
21404         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21405         Include "macros.h", for its definition of ASSERT.
21406         (CK): s/assert/ASSERT/
21407         * modules/inttostr-tests (Files): Add macros.h.
21408
21409         init.sh: don't use $ME_ or skip_ before they are defined
21410         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21411         their first uses.  Also hoist their companions: warn_, fail_,
21412         framework_failure_, $stderr_fileno.  Prompted by a patch from
21413         Stefano Lattarini.
21414
21415         test-sys_socket: avoid set-but-not-used warnings from gcc
21416         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21417         avoid warning about set-but-not-used variables.
21418
21419         test-xvasprintf: avoid 'const' discard warnings
21420         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21421         "const" when assigning from literal strings.
21422         (test_xasprintf): Add "void" in function argument list to placate
21423         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21424
21425         tests: avoid compilation warnings in argmatch and exclude tests...
21426         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21427         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21428         Since it always exits, declare with the "noreturn" attribute.
21429         * tests/test-argmatch.c: Likewise.
21430
21431         tests: avoid 'const' discard warnings in mbsstr tests
21432         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21433         * tests/test-mbsstr2.c (main): Likewise.
21434
21435         test-verify: avoid warning from gcc's -Wmissing-declarations
21436         * tests/test-verify.c (function): Declare to be static.
21437
21438         test-inttostr.c: include <string.h> for use of strcmp
21439         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21440
21441         test-linkat: avoid failed assertion on "other" architectures
21442         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21443         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21444         sparc: https://bugs.launchpad.net/bugs/591968
21445
21446 2010-06-11  Jim Meyering  <meyering@redhat.com>
21447
21448         printf.m4: avoid autoconf's "Expanded Before Required" warning
21449         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21450         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21451         autoconf warning.
21452
21453 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21454
21455         Replacement header templates are now named with ".in", not "_".
21456         * doc/gnulib-intro.texi: Correct.
21457
21458 2010-06-10  Jim Meyering  <meyering@redhat.com>
21459
21460         inttostr-tests: depend on snprintf, not snprintf-posix
21461         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21462         snprintf-posix, to avoid this aclocal failure:
21463           missing file gnulib-tests/vasnprintf.c
21464           configure.ac:45: error: expected source file, required through \
21465           AC_LIBSOURCES, not found
21466
21467 2010-06-10  Jim Meyering  <meyering@redhat.com>
21468
21469         inttostr: add a new function, inttostr, and tests
21470         The namesake function was not available.  The existence of the
21471         template file, inttostr.c makes its addition nontrivial.
21472         * lib/anytostr.c: Rename from inttostr.c.
21473         (anytostr): Rename from inttostr.
21474         * lib/inttostr.c: New file.
21475         * modules/inttostr (Files): Add anytostr.c.
21476         (Makefile.am): Set lib_SOURCES instead of ...
21477         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21478         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21479         * lib/offtostr.c: Likewise.
21480         * lib/uinttostr.c: Likewise.
21481         * lib/umaxtostr.c: Likewise.
21482         * modules/inttostr-tests: New file.
21483         * tests/test-inttostr.c: New file.  Test these functions.
21484
21485 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21486             Bruno Haible  <bruno@clisp.org>
21487
21488         Add "Extending Gnulib" chapter to manual.
21489         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21490         chapter.
21491         (Extending Gnulib): New chapter.
21492         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21493         chapter.
21494
21495 2010-06-09  Bruno Haible  <bruno@clisp.org>
21496
21497         Avoid relocwrapper link errors due to gnulib replacement functions.
21498         * lib/areadlink.c: Use the system's malloc, realloc functions.
21499         (areadlink): Set errno to ENOMEM explicitly.
21500         * modules/areadlink (Depends-on): Remove malloc-posix.
21501         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21502
21503 2010-06-09  Bruno Haible  <bruno@clisp.org>
21504
21505         Avoid relocwrapper link errors due to gnulib replacement functions.
21506         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21507         * lib/malloca.c: Likewise.
21508         * lib/relocatable.c: Likewise.
21509         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21510         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21511         * lib/setenv.c: Use the system's malloc, realloc functions.
21512         * lib/strerror.c: Use the system's sprintf function.
21513         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21514
21515 2010-06-04  Bruno Haible  <bruno@clisp.org>
21516
21517         Prefer documented low-level autoconf macro names.
21518         * m4/lib-link.m4: Use m4_translit instead of translit.
21519         * m4/environ.m4: Likewise.
21520         * m4/mathfunc.m4: Likewise.
21521         * m4/onceonly.m4: Likewise.
21522         * m4/stdint.m4: Likewise.
21523         Suggested by Eric Blake.
21524
21525 2010-06-04  Martin Lambers  <marlam@marlam.de>
21526             Bruno Haible  <bruno@clisp.org>
21527
21528         havelib: Allow library names with '+' characters.
21529         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21530         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21531
21532 2010-06-09  Bruno Haible  <bruno@clisp.org>
21533
21534         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21535         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21536         realloc failed.
21537
21538 2010-06-08  Peter Simons  <simons@cryp.to>
21539
21540         maint.mk: make the news-check rule more configurable
21541         * top/maint.mk (news-check-lines-spec): New variable.
21542         (news-check): Use "sed -n 1,10p" in place of "head".
21543
21544 2010-06-07  Jim Meyering  <meyering@redhat.com>
21545
21546         do-release-commit-and-tag: fix typo in --help
21547         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21548
21549         regex: avoid new dead-code warning with gcc-4.6.0
21550         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21551         if-block containing a while-loop.  It's been unused for at least
21552         5 years.
21553
21554 2010-06-05  Bruno Haible  <bruno@clisp.org>
21555
21556         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21557         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21558
21559 2010-06-04  Bruno Haible  <bruno@clisp.org>
21560
21561         Update to GNU gettext 0.18.1.
21562         * modules/gettext (configure.ac): Require gettext infrastructure from
21563         version 0.18.1.
21564
21565 2010-06-03  Bruno Haible  <bruno@clisp.org>
21566
21567         Don't use AC_LIBOBJ with file names in subdirectories.
21568         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21569         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21570         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21571         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21572         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21573         gl_LIBUNISTRING_LIBSOURCE.
21574         (Makefile.am): Augment lib_SOURCES here, conditionally.
21575         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21576
21577 2010-06-03  Bruno Haible  <bruno@clisp.org>
21578
21579         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21580         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21581         expansion does not end with a newline.
21582         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21583         unnecessary newline.
21584
21585 2010-06-03  Bruno Haible  <bruno@clisp.org>
21586
21587         Reduce dependencies.
21588         * tests/test-quotearg.h: New file, extracted from
21589         tests/test-quotearg.c.
21590         * tests/test-quotearg-simple.c: New file, extracted from
21591         tests/test-quotearg.c.
21592         * tests/test-quotearg.c: Don't include <ctype.h>.
21593         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21594         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21595         use_quote_double_quotes, use_quotearg_colon): Moved to
21596         tests/test-quotearg.h.
21597         (results_g, flag_results, custom_quotes, custom_results): Moved
21598         to tests/test-quotearg-simple.c.
21599         (main): Moved the part that does not depend on gettext to
21600         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21601         performed.
21602         * modules/quotearg-simple: New file.
21603         * modules/quotearg-simple-tests: New file.
21604         * modules/quotearg (Depends-on): Add quotearg-simple.
21605         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21606         (Files): Add tests/test-quotearg.h.
21607         Reported by Paolo Bonzini.
21608
21609 2010-06-03  Bruno Haible  <bruno@clisp.org>
21610
21611         Reduce dependencies.
21612         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21613
21614 2010-06-03  Bruno Haible  <bruno@clisp.org>
21615
21616         time: Undefine more broken macros.
21617         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21618         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21619         Reported by Eric Blake.
21620
21621 2010-06-03  Bruno Haible  <bruno@clisp.org>
21622
21623         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21624         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21625         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21626         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21627         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21628         Reported by Ludovic Courtès <ludo@gnu.org>.
21629
21630 2010-06-02  Eric Blake  <eblake@redhat.com>
21631
21632         time: work with mingw + pthreads-win32 library
21633         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21634         if timespec is defined only in pthread.h.
21635         * modules/time (Makefile.am): Substitute it.
21636         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21637         <pthread.h>, when needed.
21638         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21639         from the library.
21640
21641 2010-05-31  Bruno Haible  <bruno@clisp.org>
21642
21643         Avoid expanding two macros in the wrong order.
21644         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21645         gl_LIBUNISTRING if it is defined.
21646         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21647         autoconf >= 2.64.
21648         Reported by Ludovic Courtès <ludo@gnu.org>.
21649
21650 2010-05-27  Jim Meyering  <meyering@redhat.com>
21651
21652         maint.mk: also prohibit "#undef" of always-defined symbols
21653         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21654         Allow more than one space before the symbol name.
21655         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21656         the regexp uses alternation.
21657
21658 2010-05-26  Eric Blake  <eblake@redhat.com>
21659
21660         maint.mk: avoid echo -e
21661         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21662         Convert all uses of echo -* to printf.
21663         Reported by Matthias Bolte.
21664
21665 2010-05-25  Bruno Haible  <bruno@clisp.org>
21666
21667         Update to GNU gettext 0.18, part 2.
21668         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21669         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21670
21671 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21672
21673         Add missing include in test-pwrite.c.
21674         * tests/test-pwrite.c: Include string.h, for strcmp.
21675
21676 2010-05-24  Bruno Haible  <bruno@clisp.org>
21677
21678         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21679
21680 2010-05-24  Bruno Haible  <bruno@clisp.org>
21681
21682         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21683         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21684         iconveh_error argument.
21685         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21686         U_STRCONV_TO_LOCALE.
21687         * lib/unistr/u16-strcoll.c: Likewise.
21688         * lib/unistr/u32-strcoll.c: Likewise.
21689         * modules/unistr/u8-strcoll (Depends-on): Add
21690         uniconv/u8-strconv-to-enc, localcharset. Remove
21691         uniconv/u8-strconv-to-locale.
21692         (configure.ac): Bump version number.
21693         * modules/unistr/u16-strcoll (Depends-on): Add
21694         uniconv/u16-strconv-to-enc, localcharset. Remove
21695         uniconv/u16-strconv-to-locale.
21696         (configure.ac): Bump version number.
21697         * modules/unistr/u32-strcoll (Depends-on): Add
21698         uniconv/u32-strconv-to-enc, localcharset. Remove
21699         uniconv/u32-strconv-to-locale.
21700         (configure.ac): Bump version number.
21701
21702 2010-05-24  Bruno Haible  <bruno@clisp.org>
21703
21704         Avoid a test failure on NetBSD 5.0.
21705         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21706         an iconv() bug.
21707
21708 2010-05-24  Bruno Haible  <bruno@clisp.org>
21709
21710         Adjust #include directive style.
21711         * modules/regex (Includes): Recommend to write <regex.h>.
21712
21713 2010-05-24  Bruno Haible  <bruno@clisp.org>
21714
21715         regex: Don't require alloca.
21716         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21717         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21718         only inside if (0).
21719
21720 2010-05-23  Jim Meyering  <meyering@redhat.com>
21721
21722         test-renameat.c: include <sys/stat.h>
21723         * tests/test-renameat.c: Include <sys/stat.h>; required for
21724         definition of S_IS* macros.
21725
21726 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21727
21728         Update maintainer documentation for 'relocatable-prog' module.
21729         * doc/relocatable-maint.texi: Update.
21730         Comments by Bruno Haible.
21731
21732 2010-05-23  Bruno Haible  <bruno@clisp.org>
21733
21734         git-merge-changelog: Enable --split-merged-entry by default.
21735         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21736         (usage): Don't mention this option any more.
21737         Reported by Ralf Wildenhues.
21738
21739 2010-05-23  Jim Meyering  <meyering@redhat.com>
21740
21741         test-pwrite: do not leave behind a test file named "out"
21742         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21743         The trivial-looking use of init.sh is really necessary.
21744         It ensures that the temporary file, "out", is created in
21745         a temporary directory, and removed upon termination.
21746         * tests/test-pwrite.sh: Re-add file.
21747         * modules/pwrite-tests: Reference it.
21748
21749 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21750
21751         Fix output redirection buglet in init.sh.
21752         * tests/init.sh: Fix redirection of stderr.
21753
21754 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21755
21756         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21757
21758 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21759
21760         * modules/valgrind-tests: New file.
21761         * m4/valgrind-tests.m4: New file.
21762         * doc/valgrind-tests.texi: New file.
21763         * doc/gnulib.texi (Running self-tests under valgrind): New
21764         section.
21765
21766 2010-05-19  Bruno Haible  <bruno@clisp.org>
21767
21768         Clean up dead code in recent commit.
21769         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21770         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21771         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21772         Suggested by Paolo Bonzini.
21773
21774 2010-05-19  Bruno Haible  <bruno@clisp.org>
21775
21776         Avoid valgrind error reports from libunistring.
21777         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21778         * modules/libunistring (Files): Add it.
21779         * modules/libunistring-optional (Files): Likewise.
21780
21781 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21782             Bruno Haible  <bruno@clisp.org>
21783
21784         New module 'libunistring-optional'.
21785         * modules/libunistring-optional: New file.
21786         * m4/libunistring-base.m4: New file.
21787         * m4/libunistring-optional.m4: New file.
21788         * lib/unicase.in.h: Renamed from lib/unicase.h.
21789         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21790         * lib/unictype.in.h: Renamed from lib/unictype.h.
21791         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21792         * lib/uniname.in.h: Renamed from lib/uniname.h.
21793         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21794         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21795         * lib/unistr.in.h: Renamed from lib/unistr.h.
21796         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21797         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21798         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21799         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21800         gl_LIBUNISTRING. If the library was found, determine the installed
21801         version and set LIBUNISTRING_VERSION.
21802         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21803         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21804         handle a configuration option --with-included-libunistring.
21805         * modules/libunistring (Files): Add m4/absolute-header.m4.
21806         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21807         Add m4/libunistring-base.m4.
21808         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21809         (Makefile.am): Build unicase.h from unicase.in.h.
21810         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21811         Add m4/libunistring-base.m4.
21812         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21813         (Makefile.am): Build uniconv.h from uniconv.in.h.
21814         * modules/unictype/base (Files): Use unictype.in.h instead of
21815         unictype.h. Add m4/libunistring-base.m4.
21816         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21817         (Makefile.am): Build unictype.h from unictype.in.h.
21818         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21819         Add m4/libunistring-base.m4.
21820         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21821         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21822         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21823         Add m4/libunistring-base.m4.
21824         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21825         (Makefile.am): Build uniname.h from uniname.in.h.
21826         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21827         Add m4/libunistring-base.m4.
21828         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21829         (Makefile.am): Build uninorm.h from uninorm.in.h.
21830         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21831         unistdio.h. Add m4/libunistring-base.m4.
21832         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21833         (Makefile.am): Build unistdio.h from unistdio.in.h.
21834         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21835         Add m4/libunistring-base.m4.
21836         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21837         (Makefile.am): Build unistr.h from unistr.in.h.
21838         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21839         Add m4/libunistring-base.m4.
21840         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21841         (Makefile.am): Build unitypes.h from unitypes.in.h.
21842         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21843         Add m4/libunistring-base.m4.
21844         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21845         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21846         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21847         uniwidth.h. Add m4/libunistring-base.m4.
21848         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21849         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21850         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21851         instead of augmenting lib_SOURCES.
21852         * modules/unicase/empty-suffix-context: Likewise.
21853         * modules/unicase/locale-language: Likewise.
21854         * modules/unicase/tolower: Likewise.
21855         * modules/unicase/totitle: Likewise.
21856         * modules/unicase/toupper: Likewise.
21857         * modules/unicase/u8-casecmp: Likewise.
21858         * modules/unicase/u8-casecoll: Likewise.
21859         * modules/unicase/u8-casefold: Likewise.
21860         * modules/unicase/u8-casexfrm: Likewise.
21861         * modules/unicase/u8-ct-casefold: Likewise.
21862         * modules/unicase/u8-ct-tolower: Likewise.
21863         * modules/unicase/u8-ct-totitle: Likewise.
21864         * modules/unicase/u8-ct-toupper: Likewise.
21865         * modules/unicase/u8-is-cased: Likewise.
21866         * modules/unicase/u8-is-casefolded: Likewise.
21867         * modules/unicase/u8-is-lowercase: Likewise.
21868         * modules/unicase/u8-is-titlecase: Likewise.
21869         * modules/unicase/u8-is-uppercase: Likewise.
21870         * modules/unicase/u8-prefix-context: Likewise.
21871         * modules/unicase/u8-suffix-context: Likewise.
21872         * modules/unicase/u8-tolower: Likewise.
21873         * modules/unicase/u8-totitle: Likewise.
21874         * modules/unicase/u8-toupper: Likewise.
21875         * modules/unicase/u16-casecmp: Likewise.
21876         * modules/unicase/u16-casecoll: Likewise.
21877         * modules/unicase/u16-casefold: Likewise.
21878         * modules/unicase/u16-casexfrm: Likewise.
21879         * modules/unicase/u16-ct-casefold: Likewise.
21880         * modules/unicase/u16-ct-tolower: Likewise.
21881         * modules/unicase/u16-ct-totitle: Likewise.
21882         * modules/unicase/u16-ct-toupper: Likewise.
21883         * modules/unicase/u16-is-cased: Likewise.
21884         * modules/unicase/u16-is-casefolded: Likewise.
21885         * modules/unicase/u16-is-lowercase: Likewise.
21886         * modules/unicase/u16-is-titlecase: Likewise.
21887         * modules/unicase/u16-is-uppercase: Likewise.
21888         * modules/unicase/u16-prefix-context: Likewise.
21889         * modules/unicase/u16-suffix-context: Likewise.
21890         * modules/unicase/u16-tolower: Likewise.
21891         * modules/unicase/u16-totitle: Likewise.
21892         * modules/unicase/u16-toupper: Likewise.
21893         * modules/unicase/u32-casecmp: Likewise.
21894         * modules/unicase/u32-casecoll: Likewise.
21895         * modules/unicase/u32-casefold: Likewise.
21896         * modules/unicase/u32-casexfrm: Likewise.
21897         * modules/unicase/u32-ct-casefold: Likewise.
21898         * modules/unicase/u32-ct-tolower: Likewise.
21899         * modules/unicase/u32-ct-totitle: Likewise.
21900         * modules/unicase/u32-ct-toupper: Likewise.
21901         * modules/unicase/u32-is-cased: Likewise.
21902         * modules/unicase/u32-is-casefolded: Likewise.
21903         * modules/unicase/u32-is-lowercase: Likewise.
21904         * modules/unicase/u32-is-titlecase: Likewise.
21905         * modules/unicase/u32-is-uppercase: Likewise.
21906         * modules/unicase/u32-prefix-context: Likewise.
21907         * modules/unicase/u32-suffix-context: Likewise.
21908         * modules/unicase/u32-tolower: Likewise.
21909         * modules/unicase/u32-totitle: Likewise.
21910         * modules/unicase/u32-toupper: Likewise.
21911         * modules/unicase/ulc-casecmp: Likewise.
21912         * modules/unicase/ulc-casecoll: Likewise.
21913         * modules/unicase/ulc-casexfrm: Likewise.
21914         * modules/uniconv/u8-conv-from-enc: Likewise.
21915         * modules/uniconv/u8-conv-to-enc: Likewise.
21916         * modules/uniconv/u8-strconv-from-enc: Likewise.
21917         * modules/uniconv/u8-strconv-from-locale: Likewise.
21918         * modules/uniconv/u8-strconv-to-enc: Likewise.
21919         * modules/uniconv/u8-strconv-to-locale: Likewise.
21920         * modules/uniconv/u16-conv-from-enc: Likewise.
21921         * modules/uniconv/u16-conv-to-enc: Likewise.
21922         * modules/uniconv/u16-strconv-from-enc: Likewise.
21923         * modules/uniconv/u16-strconv-from-locale: Likewise.
21924         * modules/uniconv/u16-strconv-to-enc: Likewise.
21925         * modules/uniconv/u16-strconv-to-locale: Likewise.
21926         * modules/uniconv/u32-conv-from-enc: Likewise.
21927         * modules/uniconv/u32-conv-to-enc: Likewise.
21928         * modules/uniconv/u32-strconv-from-enc: Likewise.
21929         * modules/uniconv/u32-strconv-from-locale: Likewise.
21930         * modules/uniconv/u32-strconv-to-enc: Likewise.
21931         * modules/uniconv/u32-strconv-to-locale: Likewise.
21932         * modules/unictype/bidicategory-byname: Likewise.
21933         * modules/unictype/bidicategory-name: Likewise.
21934         * modules/unictype/bidicategory-of: Likewise.
21935         * modules/unictype/bidicategory-test: Likewise.
21936         * modules/unictype/block-list: Likewise.
21937         * modules/unictype/block-test: Likewise.
21938         * modules/unictype/category-C: Likewise.
21939         * modules/unictype/category-Cc: Likewise.
21940         * modules/unictype/category-Cf: Likewise.
21941         * modules/unictype/category-Cn: Likewise.
21942         * modules/unictype/category-Co: Likewise.
21943         * modules/unictype/category-Cs: Likewise.
21944         * modules/unictype/category-L: Likewise.
21945         * modules/unictype/category-Ll: Likewise.
21946         * modules/unictype/category-Lm: Likewise.
21947         * modules/unictype/category-Lo: Likewise.
21948         * modules/unictype/category-Lt: Likewise.
21949         * modules/unictype/category-Lu: Likewise.
21950         * modules/unictype/category-M: Likewise.
21951         * modules/unictype/category-Mc: Likewise.
21952         * modules/unictype/category-Me: Likewise.
21953         * modules/unictype/category-Mn: Likewise.
21954         * modules/unictype/category-N: Likewise.
21955         * modules/unictype/category-Nd: Likewise.
21956         * modules/unictype/category-Nl: Likewise.
21957         * modules/unictype/category-No: Likewise.
21958         * modules/unictype/category-P: Likewise.
21959         * modules/unictype/category-Pc: Likewise.
21960         * modules/unictype/category-Pd: Likewise.
21961         * modules/unictype/category-Pe: Likewise.
21962         * modules/unictype/category-Pf: Likewise.
21963         * modules/unictype/category-Pi: Likewise.
21964         * modules/unictype/category-Po: Likewise.
21965         * modules/unictype/category-Ps: Likewise.
21966         * modules/unictype/category-S: Likewise.
21967         * modules/unictype/category-Sc: Likewise.
21968         * modules/unictype/category-Sk: Likewise.
21969         * modules/unictype/category-Sm: Likewise.
21970         * modules/unictype/category-So: Likewise.
21971         * modules/unictype/category-Z: Likewise.
21972         * modules/unictype/category-Zl: Likewise.
21973         * modules/unictype/category-Zp: Likewise.
21974         * modules/unictype/category-Zs: Likewise.
21975         * modules/unictype/category-and: Likewise.
21976         * modules/unictype/category-and-not: Likewise.
21977         * modules/unictype/category-byname: Likewise.
21978         * modules/unictype/category-name: Likewise.
21979         * modules/unictype/category-none: Likewise.
21980         * modules/unictype/category-of: Likewise.
21981         * modules/unictype/category-or: Likewise.
21982         * modules/unictype/category-test: Likewise.
21983         * modules/unictype/combining-class: Likewise.
21984         * modules/unictype/ctype-alnum: Likewise.
21985         * modules/unictype/ctype-alpha: Likewise.
21986         * modules/unictype/ctype-blank: Likewise.
21987         * modules/unictype/ctype-cntrl: Likewise.
21988         * modules/unictype/ctype-digit: Likewise.
21989         * modules/unictype/ctype-graph: Likewise.
21990         * modules/unictype/ctype-lower: Likewise.
21991         * modules/unictype/ctype-print: Likewise.
21992         * modules/unictype/ctype-punct: Likewise.
21993         * modules/unictype/ctype-space: Likewise.
21994         * modules/unictype/ctype-upper: Likewise.
21995         * modules/unictype/ctype-xdigit: Likewise.
21996         * modules/unictype/decimal-digit: Likewise.
21997         * modules/unictype/digit: Likewise.
21998         * modules/unictype/mirror: Likewise.
21999         * modules/unictype/numeric: Likewise.
22000         * modules/unictype/property-alphabetic: Likewise.
22001         * modules/unictype/property-ascii-hex-digit: Likewise.
22002         * modules/unictype/property-bidi-arabic-digit: Likewise.
22003         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22004         * modules/unictype/property-bidi-block-separator: Likewise.
22005         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22006         * modules/unictype/property-bidi-common-separator: Likewise.
22007         * modules/unictype/property-bidi-control: Likewise.
22008         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22009         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22010         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22011         * modules/unictype/property-bidi-european-digit: Likewise.
22012         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22013         * modules/unictype/property-bidi-left-to-right: Likewise.
22014         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22015         * modules/unictype/property-bidi-other-neutral: Likewise.
22016         * modules/unictype/property-bidi-pdf: Likewise.
22017         * modules/unictype/property-bidi-segment-separator: Likewise.
22018         * modules/unictype/property-bidi-whitespace: Likewise.
22019         * modules/unictype/property-byname: Likewise.
22020         * modules/unictype/property-combining: Likewise.
22021         * modules/unictype/property-composite: Likewise.
22022         * modules/unictype/property-currency-symbol: Likewise.
22023         * modules/unictype/property-dash: Likewise.
22024         * modules/unictype/property-decimal-digit: Likewise.
22025         * modules/unictype/property-default-ignorable-code-point: Likewise.
22026         * modules/unictype/property-deprecated: Likewise.
22027         * modules/unictype/property-diacritic: Likewise.
22028         * modules/unictype/property-extender: Likewise.
22029         * modules/unictype/property-format-control: Likewise.
22030         * modules/unictype/property-grapheme-base: Likewise.
22031         * modules/unictype/property-grapheme-extend: Likewise.
22032         * modules/unictype/property-grapheme-link: Likewise.
22033         * modules/unictype/property-hex-digit: Likewise.
22034         * modules/unictype/property-hyphen: Likewise.
22035         * modules/unictype/property-id-continue: Likewise.
22036         * modules/unictype/property-id-start: Likewise.
22037         * modules/unictype/property-ideographic: Likewise.
22038         * modules/unictype/property-ids-binary-operator: Likewise.
22039         * modules/unictype/property-ids-trinary-operator: Likewise.
22040         * modules/unictype/property-ignorable-control: Likewise.
22041         * modules/unictype/property-iso-control: Likewise.
22042         * modules/unictype/property-join-control: Likewise.
22043         * modules/unictype/property-left-of-pair: Likewise.
22044         * modules/unictype/property-line-separator: Likewise.
22045         * modules/unictype/property-logical-order-exception: Likewise.
22046         * modules/unictype/property-lowercase: Likewise.
22047         * modules/unictype/property-math: Likewise.
22048         * modules/unictype/property-non-break: Likewise.
22049         * modules/unictype/property-not-a-character: Likewise.
22050         * modules/unictype/property-numeric: Likewise.
22051         * modules/unictype/property-other-alphabetic: Likewise.
22052         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22053         * modules/unictype/property-other-grapheme-extend: Likewise.
22054         * modules/unictype/property-other-id-continue: Likewise.
22055         * modules/unictype/property-other-id-start: Likewise.
22056         * modules/unictype/property-other-lowercase: Likewise.
22057         * modules/unictype/property-other-math: Likewise.
22058         * modules/unictype/property-other-uppercase: Likewise.
22059         * modules/unictype/property-paired-punctuation: Likewise.
22060         * modules/unictype/property-paragraph-separator: Likewise.
22061         * modules/unictype/property-pattern-syntax: Likewise.
22062         * modules/unictype/property-pattern-white-space: Likewise.
22063         * modules/unictype/property-private-use: Likewise.
22064         * modules/unictype/property-punctuation: Likewise.
22065         * modules/unictype/property-quotation-mark: Likewise.
22066         * modules/unictype/property-radical: Likewise.
22067         * modules/unictype/property-sentence-terminal: Likewise.
22068         * modules/unictype/property-soft-dotted: Likewise.
22069         * modules/unictype/property-space: Likewise.
22070         * modules/unictype/property-terminal-punctuation: Likewise.
22071         * modules/unictype/property-test: Likewise.
22072         * modules/unictype/property-titlecase: Likewise.
22073         * modules/unictype/property-unassigned-code-value: Likewise.
22074         * modules/unictype/property-unified-ideograph: Likewise.
22075         * modules/unictype/property-uppercase: Likewise.
22076         * modules/unictype/property-variation-selector: Likewise.
22077         * modules/unictype/property-white-space: Likewise.
22078         * modules/unictype/property-xid-continue: Likewise.
22079         * modules/unictype/property-xid-start: Likewise.
22080         * modules/unictype/property-zero-width: Likewise.
22081         * modules/unictype/scripts: Likewise.
22082         * modules/unictype/syntax-c-ident: Likewise.
22083         * modules/unictype/syntax-c-whitespace: Likewise.
22084         * modules/unictype/syntax-java-ident: Likewise.
22085         * modules/unictype/syntax-java-whitespace: Likewise.
22086         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22087         * modules/unilbrk/u8-width-linebreaks: Likewise.
22088         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22089         * modules/unilbrk/u16-width-linebreaks: Likewise.
22090         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22091         * modules/unilbrk/u32-width-linebreaks: Likewise.
22092         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22093         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22094         * modules/uniname/uniname: Likewise.
22095         * modules/uninorm/canonical-decomposition: Likewise.
22096         * modules/uninorm/composition: Likewise.
22097         * modules/uninorm/decomposing-form: Likewise.
22098         * modules/uninorm/decomposition: Likewise.
22099         * modules/uninorm/filter: Likewise.
22100         * modules/uninorm/nfc: Likewise.
22101         * modules/uninorm/nfd: Likewise.
22102         * modules/uninorm/nfkc: Likewise.
22103         * modules/uninorm/nfkd: Likewise.
22104         * modules/uninorm/u8-normalize: Likewise.
22105         * modules/uninorm/u8-normcmp: Likewise.
22106         * modules/uninorm/u8-normcoll: Likewise.
22107         * modules/uninorm/u8-normxfrm: Likewise.
22108         * modules/uninorm/u16-normalize: Likewise.
22109         * modules/uninorm/u16-normcmp: Likewise.
22110         * modules/uninorm/u16-normcoll: Likewise.
22111         * modules/uninorm/u16-normxfrm: Likewise.
22112         * modules/uninorm/u32-normalize: Likewise.
22113         * modules/uninorm/u32-normcmp: Likewise.
22114         * modules/uninorm/u32-normcoll: Likewise.
22115         * modules/uninorm/u32-normxfrm: Likewise.
22116         * modules/unistdio/u8-asnprintf: Likewise.
22117         * modules/unistdio/u8-asprintf: Likewise.
22118         * modules/unistdio/u8-snprintf: Likewise.
22119         * modules/unistdio/u8-sprintf: Likewise.
22120         * modules/unistdio/u8-u8-asnprintf: Likewise.
22121         * modules/unistdio/u8-u8-asprintf: Likewise.
22122         * modules/unistdio/u8-u8-snprintf: Likewise.
22123         * modules/unistdio/u8-u8-sprintf: Likewise.
22124         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22125         * modules/unistdio/u8-u8-vasprintf: Likewise.
22126         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22127         * modules/unistdio/u8-u8-vsprintf: Likewise.
22128         * modules/unistdio/u8-vasnprintf: Likewise.
22129         * modules/unistdio/u8-vasprintf: Likewise.
22130         * modules/unistdio/u8-vsnprintf: Likewise.
22131         * modules/unistdio/u8-vsprintf: Likewise.
22132         * modules/unistdio/u16-asnprintf: Likewise.
22133         * modules/unistdio/u16-asprintf: Likewise.
22134         * modules/unistdio/u16-snprintf: Likewise.
22135         * modules/unistdio/u16-sprintf: Likewise.
22136         * modules/unistdio/u16-u16-asnprintf: Likewise.
22137         * modules/unistdio/u16-u16-asprintf: Likewise.
22138         * modules/unistdio/u16-u16-snprintf: Likewise.
22139         * modules/unistdio/u16-u16-sprintf: Likewise.
22140         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22141         * modules/unistdio/u16-u16-vasprintf: Likewise.
22142         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22143         * modules/unistdio/u16-u16-vsprintf: Likewise.
22144         * modules/unistdio/u16-vasnprintf: Likewise.
22145         * modules/unistdio/u16-vasprintf: Likewise.
22146         * modules/unistdio/u16-vsnprintf: Likewise.
22147         * modules/unistdio/u16-vsprintf: Likewise.
22148         * modules/unistdio/u32-asnprintf: Likewise.
22149         * modules/unistdio/u32-asprintf: Likewise.
22150         * modules/unistdio/u32-snprintf: Likewise.
22151         * modules/unistdio/u32-sprintf: Likewise.
22152         * modules/unistdio/u32-u32-asnprintf: Likewise.
22153         * modules/unistdio/u32-u32-asprintf: Likewise.
22154         * modules/unistdio/u32-u32-snprintf: Likewise.
22155         * modules/unistdio/u32-u32-sprintf: Likewise.
22156         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22157         * modules/unistdio/u32-u32-vasprintf: Likewise.
22158         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22159         * modules/unistdio/u32-u32-vsprintf: Likewise.
22160         * modules/unistdio/u32-vasnprintf: Likewise.
22161         * modules/unistdio/u32-vasprintf: Likewise.
22162         * modules/unistdio/u32-vsnprintf: Likewise.
22163         * modules/unistdio/u32-vsprintf: Likewise.
22164         * modules/unistdio/ulc-asnprintf: Likewise.
22165         * modules/unistdio/ulc-asprintf: Likewise.
22166         * modules/unistdio/ulc-fprintf: Likewise.
22167         * modules/unistdio/ulc-snprintf: Likewise.
22168         * modules/unistdio/ulc-sprintf: Likewise.
22169         * modules/unistdio/ulc-vasnprintf: Likewise.
22170         * modules/unistdio/ulc-vasprintf: Likewise.
22171         * modules/unistdio/ulc-vfprintf: Likewise.
22172         * modules/unistdio/ulc-vsnprintf: Likewise.
22173         * modules/unistdio/ulc-vsprintf: Likewise.
22174         * modules/unistr/u8-check: Likewise.
22175         * modules/unistr/u8-chr: Likewise.
22176         * modules/unistr/u8-cmp: Likewise.
22177         * modules/unistr/u8-cmp2: Likewise.
22178         * modules/unistr/u8-cpy: Likewise.
22179         * modules/unistr/u8-cpy-alloc: Likewise.
22180         * modules/unistr/u8-endswith: Likewise.
22181         * modules/unistr/u8-mblen: Likewise.
22182         * modules/unistr/u8-mbsnlen: Likewise.
22183         * modules/unistr/u8-mbtouc: Likewise.
22184         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22185         * modules/unistr/u8-mbtoucr: Likewise.
22186         * modules/unistr/u8-move: Likewise.
22187         * modules/unistr/u8-next: Likewise.
22188         * modules/unistr/u8-prev: Likewise.
22189         * modules/unistr/u8-set: Likewise.
22190         * modules/unistr/u8-startswith: Likewise.
22191         * modules/unistr/u8-stpcpy: Likewise.
22192         * modules/unistr/u8-stpncpy: Likewise.
22193         * modules/unistr/u8-strcat: Likewise.
22194         * modules/unistr/u8-strchr: Likewise.
22195         * modules/unistr/u8-strcmp: Likewise.
22196         * modules/unistr/u8-strcoll: Likewise.
22197         * modules/unistr/u8-strcpy: Likewise.
22198         * modules/unistr/u8-strcspn: Likewise.
22199         * modules/unistr/u8-strdup: Likewise.
22200         * modules/unistr/u8-strlen: Likewise.
22201         * modules/unistr/u8-strmblen: Likewise.
22202         * modules/unistr/u8-strmbtouc: Likewise.
22203         * modules/unistr/u8-strncat: Likewise.
22204         * modules/unistr/u8-strncmp: Likewise.
22205         * modules/unistr/u8-strncpy: Likewise.
22206         * modules/unistr/u8-strnlen: Likewise.
22207         * modules/unistr/u8-strpbrk: Likewise.
22208         * modules/unistr/u8-strrchr: Likewise.
22209         * modules/unistr/u8-strspn: Likewise.
22210         * modules/unistr/u8-strstr: Likewise.
22211         * modules/unistr/u8-strtok: Likewise.
22212         * modules/unistr/u8-to-u16: Likewise.
22213         * modules/unistr/u8-to-u32: Likewise.
22214         * modules/unistr/u8-uctomb: Likewise.
22215         * modules/unistr/u16-check: Likewise.
22216         * modules/unistr/u16-chr: Likewise.
22217         * modules/unistr/u16-cmp: Likewise.
22218         * modules/unistr/u16-cmp2: Likewise.
22219         * modules/unistr/u16-cpy: Likewise.
22220         * modules/unistr/u16-cpy-alloc: Likewise.
22221         * modules/unistr/u16-endswith: Likewise.
22222         * modules/unistr/u16-mblen: Likewise.
22223         * modules/unistr/u16-mbsnlen: Likewise.
22224         * modules/unistr/u16-mbtouc: Likewise.
22225         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22226         * modules/unistr/u16-mbtoucr: Likewise.
22227         * modules/unistr/u16-move: Likewise.
22228         * modules/unistr/u16-next: Likewise.
22229         * modules/unistr/u16-prev: Likewise.
22230         * modules/unistr/u16-set: Likewise.
22231         * modules/unistr/u16-startswith: Likewise.
22232         * modules/unistr/u16-stpcpy: Likewise.
22233         * modules/unistr/u16-stpncpy: Likewise.
22234         * modules/unistr/u16-strcat: Likewise.
22235         * modules/unistr/u16-strchr: Likewise.
22236         * modules/unistr/u16-strcmp: Likewise.
22237         * modules/unistr/u16-strcoll: Likewise.
22238         * modules/unistr/u16-strcpy: Likewise.
22239         * modules/unistr/u16-strcspn: Likewise.
22240         * modules/unistr/u16-strdup: Likewise.
22241         * modules/unistr/u16-strlen: Likewise.
22242         * modules/unistr/u16-strmblen: Likewise.
22243         * modules/unistr/u16-strmbtouc: Likewise.
22244         * modules/unistr/u16-strncat: Likewise.
22245         * modules/unistr/u16-strncmp: Likewise.
22246         * modules/unistr/u16-strncpy: Likewise.
22247         * modules/unistr/u16-strnlen: Likewise.
22248         * modules/unistr/u16-strpbrk: Likewise.
22249         * modules/unistr/u16-strrchr: Likewise.
22250         * modules/unistr/u16-strspn: Likewise.
22251         * modules/unistr/u16-strstr: Likewise.
22252         * modules/unistr/u16-strtok: Likewise.
22253         * modules/unistr/u16-to-u32: Likewise.
22254         * modules/unistr/u16-to-u8: Likewise.
22255         * modules/unistr/u16-uctomb: Likewise.
22256         * modules/unistr/u32-check: Likewise.
22257         * modules/unistr/u32-chr: Likewise.
22258         * modules/unistr/u32-cmp: Likewise.
22259         * modules/unistr/u32-cmp2: Likewise.
22260         * modules/unistr/u32-cpy: Likewise.
22261         * modules/unistr/u32-cpy-alloc: Likewise.
22262         * modules/unistr/u32-endswith: Likewise.
22263         * modules/unistr/u32-mblen: Likewise.
22264         * modules/unistr/u32-mbsnlen: Likewise.
22265         * modules/unistr/u32-mbtouc: Likewise.
22266         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22267         * modules/unistr/u32-mbtoucr: Likewise.
22268         * modules/unistr/u32-move: Likewise.
22269         * modules/unistr/u32-next: Likewise.
22270         * modules/unistr/u32-prev: Likewise.
22271         * modules/unistr/u32-set: Likewise.
22272         * modules/unistr/u32-startswith: Likewise.
22273         * modules/unistr/u32-stpcpy: Likewise.
22274         * modules/unistr/u32-stpncpy: Likewise.
22275         * modules/unistr/u32-strcat: Likewise.
22276         * modules/unistr/u32-strchr: Likewise.
22277         * modules/unistr/u32-strcmp: Likewise.
22278         * modules/unistr/u32-strcoll: Likewise.
22279         * modules/unistr/u32-strcpy: Likewise.
22280         * modules/unistr/u32-strcspn: Likewise.
22281         * modules/unistr/u32-strdup: Likewise.
22282         * modules/unistr/u32-strlen: Likewise.
22283         * modules/unistr/u32-strmblen: Likewise.
22284         * modules/unistr/u32-strmbtouc: Likewise.
22285         * modules/unistr/u32-strncat: Likewise.
22286         * modules/unistr/u32-strncmp: Likewise.
22287         * modules/unistr/u32-strncpy: Likewise.
22288         * modules/unistr/u32-strnlen: Likewise.
22289         * modules/unistr/u32-strpbrk: Likewise.
22290         * modules/unistr/u32-strrchr: Likewise.
22291         * modules/unistr/u32-strspn: Likewise.
22292         * modules/unistr/u32-strstr: Likewise.
22293         * modules/unistr/u32-strtok: Likewise.
22294         * modules/unistr/u32-to-u16: Likewise.
22295         * modules/unistr/u32-to-u8: Likewise.
22296         * modules/unistr/u32-uctomb: Likewise.
22297         * modules/uniwbrk/u8-wordbreaks: Likewise.
22298         * modules/uniwbrk/u16-wordbreaks: Likewise.
22299         * modules/uniwbrk/u32-wordbreaks: Likewise.
22300         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22301         * modules/uniwbrk/wordbreak-property: Likewise.
22302         * modules/uniwidth/u8-strwidth: Likewise.
22303         * modules/uniwidth/u8-width: Likewise.
22304         * modules/uniwidth/u16-strwidth: Likewise.
22305         * modules/uniwidth/u16-width: Likewise.
22306         * modules/uniwidth/u32-strwidth: Likewise.
22307         * modules/uniwidth/u32-width: Likewise.
22308         * modules/uniwidth/width: Likewise.
22309         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22310         with $(LIBUNISTRING).
22311         * modules/unicase/ignorable-tests: Likewise.
22312         * modules/unicase/locale-language-tests: Likewise.
22313         * modules/unicase/tolower-tests: Likewise.
22314         * modules/unicase/totitle-tests: Likewise.
22315         * modules/unicase/toupper-tests: Likewise.
22316         * modules/unicase/u8-casecmp-tests: Likewise.
22317         * modules/unicase/u8-casecoll-tests: Likewise.
22318         * modules/unicase/u8-casefold-tests: Likewise.
22319         * modules/unicase/u8-is-cased-tests: Likewise.
22320         * modules/unicase/u8-is-casefolded-tests: Likewise.
22321         * modules/unicase/u8-is-lowercase-tests: Likewise.
22322         * modules/unicase/u8-is-titlecase-tests: Likewise.
22323         * modules/unicase/u8-is-uppercase-tests: Likewise.
22324         * modules/unicase/u8-tolower-tests: Likewise.
22325         * modules/unicase/u8-totitle-tests: Likewise.
22326         * modules/unicase/u8-toupper-tests: Likewise.
22327         * modules/unicase/u16-casecmp-tests: Likewise.
22328         * modules/unicase/u16-casecoll-tests: Likewise.
22329         * modules/unicase/u16-casefold-tests: Likewise.
22330         * modules/unicase/u16-is-cased-tests: Likewise.
22331         * modules/unicase/u16-is-casefolded-tests: Likewise.
22332         * modules/unicase/u16-is-lowercase-tests: Likewise.
22333         * modules/unicase/u16-is-titlecase-tests: Likewise.
22334         * modules/unicase/u16-is-uppercase-tests: Likewise.
22335         * modules/unicase/u16-tolower-tests: Likewise.
22336         * modules/unicase/u16-totitle-tests: Likewise.
22337         * modules/unicase/u16-toupper-tests: Likewise.
22338         * modules/unicase/u32-casecmp-tests: Likewise.
22339         * modules/unicase/u32-casecoll-tests: Likewise.
22340         * modules/unicase/u32-casefold-tests: Likewise.
22341         * modules/unicase/u32-is-cased-tests: Likewise.
22342         * modules/unicase/u32-is-casefolded-tests: Likewise.
22343         * modules/unicase/u32-is-lowercase-tests: Likewise.
22344         * modules/unicase/u32-is-titlecase-tests: Likewise.
22345         * modules/unicase/u32-is-uppercase-tests: Likewise.
22346         * modules/unicase/u32-tolower-tests: Likewise.
22347         * modules/unicase/u32-totitle-tests: Likewise.
22348         * modules/unicase/u32-toupper-tests: Likewise.
22349         * modules/unicase/ulc-casecmp-tests: Likewise.
22350         * modules/unicase/ulc-casecoll-tests: Likewise.
22351         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22352         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22353         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22354         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22355         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22356         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22357         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22358         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22359         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22360         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22361         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22362         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22363         * modules/unictype/bidicategory-byname-tests: Likewise.
22364         * modules/unictype/bidicategory-name-tests: Likewise.
22365         * modules/unictype/bidicategory-of-tests: Likewise.
22366         * modules/unictype/bidicategory-test-tests: Likewise.
22367         * modules/unictype/block-list-tests: Likewise.
22368         * modules/unictype/block-of-tests: Likewise.
22369         * modules/unictype/block-test-tests: Likewise.
22370         * modules/unictype/category-C-tests: Likewise.
22371         * modules/unictype/category-Cc-tests: Likewise.
22372         * modules/unictype/category-Cf-tests: Likewise.
22373         * modules/unictype/category-Cn-tests: Likewise.
22374         * modules/unictype/category-Co-tests: Likewise.
22375         * modules/unictype/category-Cs-tests: Likewise.
22376         * modules/unictype/category-L-tests: Likewise.
22377         * modules/unictype/category-Ll-tests: Likewise.
22378         * modules/unictype/category-Lm-tests: Likewise.
22379         * modules/unictype/category-Lo-tests: Likewise.
22380         * modules/unictype/category-Lt-tests: Likewise.
22381         * modules/unictype/category-Lu-tests: Likewise.
22382         * modules/unictype/category-M-tests: Likewise.
22383         * modules/unictype/category-Mc-tests: Likewise.
22384         * modules/unictype/category-Me-tests: Likewise.
22385         * modules/unictype/category-Mn-tests: Likewise.
22386         * modules/unictype/category-N-tests: Likewise.
22387         * modules/unictype/category-Nd-tests: Likewise.
22388         * modules/unictype/category-Nl-tests: Likewise.
22389         * modules/unictype/category-No-tests: Likewise.
22390         * modules/unictype/category-P-tests: Likewise.
22391         * modules/unictype/category-Pc-tests: Likewise.
22392         * modules/unictype/category-Pd-tests: Likewise.
22393         * modules/unictype/category-Pe-tests: Likewise.
22394         * modules/unictype/category-Pf-tests: Likewise.
22395         * modules/unictype/category-Pi-tests: Likewise.
22396         * modules/unictype/category-Po-tests: Likewise.
22397         * modules/unictype/category-Ps-tests: Likewise.
22398         * modules/unictype/category-S-tests: Likewise.
22399         * modules/unictype/category-Sc-tests: Likewise.
22400         * modules/unictype/category-Sk-tests: Likewise.
22401         * modules/unictype/category-Sm-tests: Likewise.
22402         * modules/unictype/category-So-tests: Likewise.
22403         * modules/unictype/category-Z-tests: Likewise.
22404         * modules/unictype/category-Zl-tests: Likewise.
22405         * modules/unictype/category-Zp-tests: Likewise.
22406         * modules/unictype/category-Zs-tests: Likewise.
22407         * modules/unictype/category-and-not-tests: Likewise.
22408         * modules/unictype/category-and-tests: Likewise.
22409         * modules/unictype/category-byname-tests: Likewise.
22410         * modules/unictype/category-name-tests: Likewise.
22411         * modules/unictype/category-none-tests: Likewise.
22412         * modules/unictype/category-of-tests: Likewise.
22413         * modules/unictype/category-or-tests: Likewise.
22414         * modules/unictype/category-test-withtable-tests: Likewise.
22415         * modules/unictype/combining-class-tests: Likewise.
22416         * modules/unictype/ctype-alnum-tests: Likewise.
22417         * modules/unictype/ctype-alpha-tests: Likewise.
22418         * modules/unictype/ctype-blank-tests: Likewise.
22419         * modules/unictype/ctype-cntrl-tests: Likewise.
22420         * modules/unictype/ctype-digit-tests: Likewise.
22421         * modules/unictype/ctype-graph-tests: Likewise.
22422         * modules/unictype/ctype-lower-tests: Likewise.
22423         * modules/unictype/ctype-print-tests: Likewise.
22424         * modules/unictype/ctype-punct-tests: Likewise.
22425         * modules/unictype/ctype-space-tests: Likewise.
22426         * modules/unictype/ctype-upper-tests: Likewise.
22427         * modules/unictype/ctype-xdigit-tests: Likewise.
22428         * modules/unictype/decimal-digit-tests: Likewise.
22429         * modules/unictype/digit-tests: Likewise.
22430         * modules/unictype/mirror-tests: Likewise.
22431         * modules/unictype/numeric-tests: Likewise.
22432         * modules/unictype/property-alphabetic-tests: Likewise.
22433         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22434         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22435         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22436         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22437         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22438         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22439         * modules/unictype/property-bidi-control-tests: Likewise.
22440         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22441         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22442         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22443         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22444         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22445         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22446         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22447         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22448         * modules/unictype/property-bidi-pdf-tests: Likewise.
22449         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22450         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22451         * modules/unictype/property-byname-tests: Likewise.
22452         * modules/unictype/property-combining-tests: Likewise.
22453         * modules/unictype/property-composite-tests: Likewise.
22454         * modules/unictype/property-currency-symbol-tests: Likewise.
22455         * modules/unictype/property-dash-tests: Likewise.
22456         * modules/unictype/property-decimal-digit-tests: Likewise.
22457         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22458         * modules/unictype/property-deprecated-tests: Likewise.
22459         * modules/unictype/property-diacritic-tests: Likewise.
22460         * modules/unictype/property-extender-tests: Likewise.
22461         * modules/unictype/property-format-control-tests: Likewise.
22462         * modules/unictype/property-grapheme-base-tests: Likewise.
22463         * modules/unictype/property-grapheme-extend-tests: Likewise.
22464         * modules/unictype/property-grapheme-link-tests: Likewise.
22465         * modules/unictype/property-hex-digit-tests: Likewise.
22466         * modules/unictype/property-hyphen-tests: Likewise.
22467         * modules/unictype/property-id-continue-tests: Likewise.
22468         * modules/unictype/property-id-start-tests: Likewise.
22469         * modules/unictype/property-ideographic-tests: Likewise.
22470         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22471         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22472         * modules/unictype/property-ignorable-control-tests: Likewise.
22473         * modules/unictype/property-iso-control-tests: Likewise.
22474         * modules/unictype/property-join-control-tests: Likewise.
22475         * modules/unictype/property-left-of-pair-tests: Likewise.
22476         * modules/unictype/property-line-separator-tests: Likewise.
22477         * modules/unictype/property-logical-order-exception-tests: Likewise.
22478         * modules/unictype/property-lowercase-tests: Likewise.
22479         * modules/unictype/property-math-tests: Likewise.
22480         * modules/unictype/property-non-break-tests: Likewise.
22481         * modules/unictype/property-not-a-character-tests: Likewise.
22482         * modules/unictype/property-numeric-tests: Likewise.
22483         * modules/unictype/property-other-alphabetic-tests: Likewise.
22484         * modules/unictype/property-other-default-ignorable-code-point-tests:
22485         Likewise.
22486         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22487         * modules/unictype/property-other-id-continue-tests: Likewise.
22488         * modules/unictype/property-other-id-start-tests: Likewise.
22489         * modules/unictype/property-other-lowercase-tests: Likewise.
22490         * modules/unictype/property-other-math-tests: Likewise.
22491         * modules/unictype/property-other-uppercase-tests: Likewise.
22492         * modules/unictype/property-paired-punctuation-tests: Likewise.
22493         * modules/unictype/property-paragraph-separator-tests: Likewise.
22494         * modules/unictype/property-pattern-syntax-tests: Likewise.
22495         * modules/unictype/property-pattern-white-space-tests: Likewise.
22496         * modules/unictype/property-private-use-tests: Likewise.
22497         * modules/unictype/property-punctuation-tests: Likewise.
22498         * modules/unictype/property-quotation-mark-tests: Likewise.
22499         * modules/unictype/property-radical-tests: Likewise.
22500         * modules/unictype/property-sentence-terminal-tests: Likewise.
22501         * modules/unictype/property-soft-dotted-tests: Likewise.
22502         * modules/unictype/property-space-tests: Likewise.
22503         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22504         * modules/unictype/property-test-tests: Likewise.
22505         * modules/unictype/property-titlecase-tests: Likewise.
22506         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22507         * modules/unictype/property-unified-ideograph-tests: Likewise.
22508         * modules/unictype/property-uppercase-tests: Likewise.
22509         * modules/unictype/property-variation-selector-tests: Likewise.
22510         * modules/unictype/property-white-space-tests: Likewise.
22511         * modules/unictype/property-xid-continue-tests: Likewise.
22512         * modules/unictype/property-xid-start-tests: Likewise.
22513         * modules/unictype/property-zero-width-tests: Likewise.
22514         * modules/unictype/scripts-tests: Likewise.
22515         * modules/unictype/syntax-c-ident-tests: Likewise.
22516         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22517         * modules/unictype/syntax-java-ident-tests: Likewise.
22518         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22519         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22520         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22521         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22522         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22523         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22524         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22525         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22526         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22527         * modules/uniname/uniname-tests: Likewise.
22528         * modules/uninorm/canonical-decomposition-tests: Likewise.
22529         * modules/uninorm/compat-decomposition-tests: Likewise.
22530         * modules/uninorm/composition-tests: Likewise.
22531         * modules/uninorm/decomposing-form-tests: Likewise.
22532         * modules/uninorm/decomposition-tests: Likewise.
22533         * modules/uninorm/filter-tests: Likewise.
22534         * modules/uninorm/nfc-tests: Likewise.
22535         * modules/uninorm/nfd-tests: Likewise.
22536         * modules/uninorm/nfkc-tests: Likewise.
22537         * modules/uninorm/nfkd-tests: Likewise.
22538         * modules/uninorm/u8-normcmp-tests: Likewise.
22539         * modules/uninorm/u8-normcoll-tests: Likewise.
22540         * modules/uninorm/u16-normcmp-tests: Likewise.
22541         * modules/uninorm/u16-normcoll-tests: Likewise.
22542         * modules/uninorm/u32-normcmp-tests: Likewise.
22543         * modules/uninorm/u32-normcoll-tests: Likewise.
22544         * modules/unistdio/u8-asnprintf-tests: Likewise.
22545         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22546         * modules/unistdio/u8-vasprintf-tests: Likewise.
22547         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22548         * modules/unistdio/u8-vsprintf-tests: Likewise.
22549         * modules/unistdio/u16-asnprintf-tests: Likewise.
22550         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22551         * modules/unistdio/u16-vasprintf-tests: Likewise.
22552         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22553         * modules/unistdio/u16-vsprintf-tests: Likewise.
22554         * modules/unistdio/u32-asnprintf-tests: Likewise.
22555         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22556         * modules/unistdio/u32-vasprintf-tests: Likewise.
22557         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22558         * modules/unistdio/u32-vsprintf-tests: Likewise.
22559         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22560         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22561         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22562         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22563         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22564         * modules/unistr/u8-check-tests: Likewise.
22565         * modules/unistr/u8-chr-tests: Likewise.
22566         * modules/unistr/u8-cmp-tests: Likewise.
22567         * modules/unistr/u8-cmp2-tests: Likewise.
22568         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22569         * modules/unistr/u8-cpy-tests: Likewise.
22570         * modules/unistr/u8-mblen-tests: Likewise.
22571         * modules/unistr/u8-mbsnlen-tests: Likewise.
22572         * modules/unistr/u8-mbtouc-tests: Likewise.
22573         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22574         * modules/unistr/u8-mbtoucr-tests: Likewise.
22575         * modules/unistr/u8-move-tests: Likewise.
22576         * modules/unistr/u8-next-tests: Likewise.
22577         * modules/unistr/u8-prev-tests: Likewise.
22578         * modules/unistr/u8-set-tests: Likewise.
22579         * modules/unistr/u8-stpcpy-tests: Likewise.
22580         * modules/unistr/u8-stpncpy-tests: Likewise.
22581         * modules/unistr/u8-strcat-tests: Likewise.
22582         * modules/unistr/u8-strcmp-tests: Likewise.
22583         * modules/unistr/u8-strcoll-tests: Likewise.
22584         * modules/unistr/u8-strcpy-tests: Likewise.
22585         * modules/unistr/u8-strdup-tests: Likewise.
22586         * modules/unistr/u8-strlen-tests: Likewise.
22587         * modules/unistr/u8-strmblen-tests: Likewise.
22588         * modules/unistr/u8-strmbtouc-tests: Likewise.
22589         * modules/unistr/u8-strncat-tests: Likewise.
22590         * modules/unistr/u8-strncmp-tests: Likewise.
22591         * modules/unistr/u8-strncpy-tests: Likewise.
22592         * modules/unistr/u8-strnlen-tests: Likewise.
22593         * modules/unistr/u8-to-u16-tests: Likewise.
22594         * modules/unistr/u8-to-u32-tests: Likewise.
22595         * modules/unistr/u8-uctomb-tests: Likewise.
22596         * modules/unistr/u16-check-tests: Likewise.
22597         * modules/unistr/u16-chr-tests: Likewise.
22598         * modules/unistr/u16-cmp-tests: Likewise.
22599         * modules/unistr/u16-cmp2-tests: Likewise.
22600         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22601         * modules/unistr/u16-cpy-tests: Likewise.
22602         * modules/unistr/u16-mblen-tests: Likewise.
22603         * modules/unistr/u16-mbsnlen-tests: Likewise.
22604         * modules/unistr/u16-mbtouc-tests: Likewise.
22605         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22606         * modules/unistr/u16-mbtoucr-tests: Likewise.
22607         * modules/unistr/u16-move-tests: Likewise.
22608         * modules/unistr/u16-next-tests: Likewise.
22609         * modules/unistr/u16-prev-tests: Likewise.
22610         * modules/unistr/u16-set-tests: Likewise.
22611         * modules/unistr/u16-stpcpy-tests: Likewise.
22612         * modules/unistr/u16-stpncpy-tests: Likewise.
22613         * modules/unistr/u16-strcat-tests: Likewise.
22614         * modules/unistr/u16-strcmp-tests: Likewise.
22615         * modules/unistr/u16-strcoll-tests: Likewise.
22616         * modules/unistr/u16-strcpy-tests: Likewise.
22617         * modules/unistr/u16-strdup-tests: Likewise.
22618         * modules/unistr/u16-strlen-tests: Likewise.
22619         * modules/unistr/u16-strmblen-tests: Likewise.
22620         * modules/unistr/u16-strmbtouc-tests: Likewise.
22621         * modules/unistr/u16-strncat-tests: Likewise.
22622         * modules/unistr/u16-strncmp-tests: Likewise.
22623         * modules/unistr/u16-strncpy-tests: Likewise.
22624         * modules/unistr/u16-strnlen-tests: Likewise.
22625         * modules/unistr/u16-to-u32-tests: Likewise.
22626         * modules/unistr/u16-to-u8-tests: Likewise.
22627         * modules/unistr/u16-uctomb-tests: Likewise.
22628         * modules/unistr/u32-check-tests: Likewise.
22629         * modules/unistr/u32-chr-tests: Likewise.
22630         * modules/unistr/u32-cmp-tests: Likewise.
22631         * modules/unistr/u32-cmp2-tests: Likewise.
22632         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22633         * modules/unistr/u32-cpy-tests: Likewise.
22634         * modules/unistr/u32-mblen-tests: Likewise.
22635         * modules/unistr/u32-mbsnlen-tests: Likewise.
22636         * modules/unistr/u32-mbtouc-tests: Likewise.
22637         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22638         * modules/unistr/u32-mbtoucr-tests: Likewise.
22639         * modules/unistr/u32-move-tests: Likewise.
22640         * modules/unistr/u32-next-tests: Likewise.
22641         * modules/unistr/u32-prev-tests: Likewise.
22642         * modules/unistr/u32-set-tests: Likewise.
22643         * modules/unistr/u32-stpcpy-tests: Likewise.
22644         * modules/unistr/u32-stpncpy-tests: Likewise.
22645         * modules/unistr/u32-strcat-tests: Likewise.
22646         * modules/unistr/u32-strcmp-tests: Likewise.
22647         * modules/unistr/u32-strcoll-tests: Likewise.
22648         * modules/unistr/u32-strcpy-tests: Likewise.
22649         * modules/unistr/u32-strdup-tests: Likewise.
22650         * modules/unistr/u32-strlen-tests: Likewise.
22651         * modules/unistr/u32-strmblen-tests: Likewise.
22652         * modules/unistr/u32-strmbtouc-tests: Likewise.
22653         * modules/unistr/u32-strncat-tests: Likewise.
22654         * modules/unistr/u32-strncmp-tests: Likewise.
22655         * modules/unistr/u32-strncpy-tests: Likewise.
22656         * modules/unistr/u32-strnlen-tests: Likewise.
22657         * modules/unistr/u32-to-u16-tests: Likewise.
22658         * modules/unistr/u32-to-u8-tests: Likewise.
22659         * modules/unistr/u32-uctomb-tests: Likewise.
22660         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22661         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22662         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22663         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22664         * modules/uniwidth/u8-strwidth-tests: Likewise.
22665         * modules/uniwidth/u8-width-tests: Likewise.
22666         * modules/uniwidth/u16-strwidth-tests: Likewise.
22667         * modules/uniwidth/u16-width-tests: Likewise.
22668         * modules/uniwidth/u32-strwidth-tests: Likewise.
22669         * modules/uniwidth/u32-width-tests: Likewise.
22670         * modules/uniwidth/width-tests: Likewise.
22671
22672 2010-05-18  Richard Jones  <rjones@redhat.com>
22673
22674         doc: users.txt: list hivex
22675         * users.txt: Add hivex.
22676
22677 2010-05-18  Richard Jones  <rjones@redhat.com>
22678
22679         doc: users.txt: list febootstrap
22680         * users.txt: Add febootstrap.
22681
22682 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22683
22684         bootstrap: fix an error when gnulib is not used as a git submodule
22685         * build-aux/bootstrap (gnulib_path): If its length is zero then
22686         assign "gnulib" to it.
22687         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22688
22689 2010-05-16  Bruno Haible  <bruno@clisp.org>
22690
22691         Avoid autoconf warnings about AM_ICONV.
22692         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22693         2.64.
22694
22695 2010-05-16  Bruno Haible  <bruno@clisp.org>
22696
22697         absolute-header: Make the macro usable in more situations.
22698         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22699         from gl_ABSOLUTE_HEADER.
22700         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22701
22702 2010-05-16  James Youngman  <jay@gnu.org>
22703
22704         doc: update users.txt
22705         * users.txt: Add CSSC.
22706
22707 2010-05-16  Jim Meyering  <meyering@redhat.com>
22708
22709         init.sh: fix an error in the previous change; add more comments
22710         * tests/init.sh: Compare exit code in loop against 9, not 2.
22711         Patch by Bruno Haible.
22712         Make the two tests more similar by adding an empty "then" clause.
22713         Add comments.
22714
22715         init.sh: avoid unnecessary shell re-exec
22716         * tests/init.sh: Improve the re-exec-required check to first test the
22717         current shell.  If it passes the test, do not search for a shell that
22718         does pass, and do not re-exec.  This test is particularly contorted to
22719         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22720         of $(...) evokes a syntax error and causes immediate shell exit with
22721         status 2.  Bruno Haible reported that the re-exec made it impossible
22722         to single-step through any init.sh-using script.
22723
22724 2010-05-16  Bruno Haible  <bruno@clisp.org>
22725
22726         Fix collision between gnulib's and libintl's printf replacements.
22727         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22728         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22729         (printf): When using GNU C, map the __printf__ function to rpl_printf
22730         via __asm__. When not using GNU C, define rpl_printf instead of
22731         __printf__.
22732         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22733         commit.
22734         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22735         commit.
22736         * m4/asm-underscore.m4: New file.
22737         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22738         * modules/stdio (Files): Add m4/asm-underscore.m4.
22739         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22740         Reported by Ben Pfaff.
22741
22742 2010-05-16  Bruno Haible  <bruno@clisp.org>
22743
22744         verify: Avoid skipping the test on openSUSE 11.0.
22745         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22746
22747 2010-05-13  Bruno Haible  <bruno@clisp.org>
22748
22749         Avoid useless warnings from G++.
22750         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22751         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22752         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22753
22754 2010-05-11  Jim Meyering  <meyering@redhat.com>
22755
22756         maint.mk: tweak preceding change
22757         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22758         regexps tighter by anchoring at EOL, and make the new group "shy"
22759         for slightly decreased overhead.
22760
22761 2010-05-11  Eric Blake  <eblake@redhat.com>
22762
22763         maint.mk: gnulib doesn't guarantee NSIG
22764         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22765
22766 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22767
22768         test-pwrite.c: Remove unused variable declaration.
22769         * tests/test-pwrite.c (main): Remove read_buf declaration.
22770
22771         Remove useless test-pwrite.sh file.
22772         * tests/test-pwrite.sh: Delete file.
22773         * modules/pwrite-tests: Remove references.
22774         Reported by Bruno Haible.
22775
22776 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22777
22778         init.sh: fix a typo
22779         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22780
22781 2010-05-10  Jim Meyering  <meyering@redhat.com>
22782
22783         maint.mk: avoid using a temporary file in the always-defined-macros check
22784         * top/maint.mk (.re-defmac): Remove rule.
22785         (gl_trap_): Remove definition.
22786         (sc_prohibit_always-defined_macros): Rewrite not to create and
22787         depend on a temporary file.  Instead, depend on GNU grep's ability
22788         to read a list of regular expressions from stdin when given "-f -".
22789
22790 2010-05-09  Bruno Haible  <bruno@clisp.org>
22791
22792         Update to GNU gettext 0.18, part 1.
22793         * m4/gettext.m4: Update to GNU gettext 0.18.
22794         * m4/intl.m4: Likewise.
22795         * m4/po.m4: Likewise.
22796         * modules/gettext (Files): Add m4/fcntl-o.m4.
22797         (configure.ac): Require gettext infrastructure from version 0.18.
22798
22799 2010-05-09  Jim Meyering  <meyering@redhat.com>
22800
22801         init.sh: enable MALLOC_PERTURB_
22802         * tests/init.sh: Enable glibc's malloc-perturbing option.
22803
22804         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22805         With my recent change in init.sh from the two-line form:
22806             -#   : ${srcdir=.}
22807             -#   . "$srcdir/init.sh"; path_prepend_ .
22808             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22809         I noticed that using the one-line form would cause this test
22810         to fail with a false-positive, or to stop working altogether,
22811         depending on whether help-version changed or all the tests did.
22812         * top/maint.mk (_hv_regex): Remove this definition.
22813         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22814         (_hv_regex_strong): Use a stronger regex to check for conformance.
22815         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22816         Give a separate diagnostic for lack of conforming use.
22817
22818         maint.mk: prohibit definition of symbols defined by gnulib
22819         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22820         definition of symbols defined by gnulib.
22821
22822 2010-05-09  Bruno Haible  <bruno@clisp.org>
22823
22824         acl: Avoid test failure on Cygwin-hosted mingw.
22825         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22826
22827 2010-05-09  Bruno Haible  <bruno@clisp.org>
22828
22829         error: Use system's fcntl function.
22830         * lib/error.c (fcntl): Undefine.
22831
22832 2010-05-09  Jim Meyering  <meyering@redhat.com>
22833
22834         verify: adjust formatting to be more consistent
22835         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22836         argument-list '('s, and after one comma.
22837
22838 2010-05-09  Bruno Haible  <bruno@clisp.org>
22839
22840         error: More reliable output on mingw.
22841         * lib/error.c: Include <windows.h>.
22842         (is_open): New function.
22843         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22844         defined.
22845
22846 2010-05-09  Bruno Haible  <bruno@clisp.org>
22847
22848         vasnprintf: Fix syntax errors in libintl build on mingw.
22849         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22850         pad_ourselves and prec_ourselves after use.
22851
22852 2010-05-08  Bruno Haible  <bruno@clisp.org>
22853
22854         * lib/config.charset: Update comments for Cygwin 1.7.
22855         * lib/localcharset.c: Likewise.
22856
22857 2010-05-07  Jim Meyering  <meyering@redhat.com>
22858
22859         init.sh: improve comments
22860         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22861         . "${srcdir=.}/init.sh"; path_prepend_ .
22862         Add a note about path_prepend_ and the alternative of using
22863         TESTS_ENVIRONMENT.
22864
22865 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22866
22867         exclude: Unescape hashed patterns in wildcard mode.
22868         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22869         to the hash list.
22870         * tests/test-exclude8.sh: New test case.
22871         * modules/exclude-tests: Add new test.
22872
22873 2010-05-05  Eric Blake  <eblake@redhat.com>
22874
22875         verify: automate tests
22876         * modules/verify-tests: New module.
22877         * tests/test-verify.sh: New file.
22878         * tests/test-verify.c: Guard each negative test with a unique id.
22879         Also avoid warning about unused left hand of comma expressions.
22880
22881 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22882
22883         Further improvements to verify.h, suggested by Eric Blake.
22884         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22885         the GL_* versions, to avoid collision with OpenGL.
22886         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22887         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22888         than testing merely whether it's defined.
22889
22890         Modify verify.h to pacify gcc -Wredundant_decls.
22891         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22892         These use the prefix "GL_" since they're likely to be useful elsewhere.
22893         We may need to break them out into a different .h file.
22894         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22895         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22896         of verify_function__.
22897
22898 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22899
22900         Tests for module pwrite.
22901         * modules/pwrite-tests: New file.
22902         * tests/test-pwrite.sh: New file.
22903         * tests/test-pwrite.c: New file.
22904
22905         New module pwrite.
22906         * lib/unistd.in.h (pwrite): New declaration.
22907         * lib/pwrite.c: New file, from glibc with modifications.
22908         * m4/pwrite.m4: New file.
22909         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22910         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22911         REPLACE_PWRITE.
22912         * modules/pwrite: New file.
22913         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22914         REPLACE_PWRITE.
22915         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22916         * doc/posix-functions/pwrite.texi: Mention the new module.
22917
22918 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22919
22920         pread: Update documentation.
22921         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22922
22923 2010-05-04  Eric Blake  <eblake@redhat.com>
22924
22925         docs: update cygwin progress
22926         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22927         this bug.
22928         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22929         Added in cygwin 1.7.2.
22930         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22931         Likewise.
22932         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22933         Likewise.
22934         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22935         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22936         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22937         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22938         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22939         Mention nproc module.
22940         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22941         bug in cygwin 1.7.5 addition.
22942         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22943         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22944         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22945         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22946         1.7.5.
22947         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22948         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22949         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22950         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22951         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22952         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22953         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22954         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22955         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22956         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22957         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22958         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22959         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22960         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22961         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22962         Likewise.
22963         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22964         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22965         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22966         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22967         Likewise.
22968         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22969         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22970         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22971         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22972         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22973         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22974         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22975         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22976         Likewise.
22977         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22978         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22979         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22980         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22981         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22982         Likewise.
22983         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22984         Likewise.
22985         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22986         Likewise.
22987         * doc/glibc-functions/xdrrec_endofrecord.texi
22988         (xdrrec_endofrecord): Likewise.
22989         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22990         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22991         Likewise.
22992         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22993         Likewise.
22994
22995 2010-05-04  Jim Meyering  <meyering@redhat.com>
22996
22997         gendocs.sh: make its "-s FILE" option more useful
22998         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22999         $PACKAGE to reflect the probably-different basename of "FILE".
23000
23001 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23002
23003         bootstrap: don't ignore download_po_files failure
23004         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23005         failure.
23006
23007 2010-05-03  Jim Meyering  <meyering@redhat.com>
23008
23009         maint.mk: allow to pass options to gendocs.sh
23010         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23011         (gendocs_options_): New overridable variable.
23012
23013         gnu-web-doc-update: don't ignore configure or build failure
23014         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23015
23016         announce-gen: backslash-escape '@'s in --help output
23017         * build-aux/announce-gen: Fix syntax errors.
23018
23019         maint.mk, announce-gen: allow project-specific announcement mail headers
23020         * top/maint.mk (translation_project_): Define default.
23021         (announcement_Cc_, announcement_mail_headers_): Likewise.
23022         (announcement): Invoke announce-gen with new --mail-headers option.
23023         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23024
23025         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23026         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23027         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23028         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23029         line in the "err2" output file when running "make check" in verbose
23030         mode (i.e., with set -x enabled).
23031
23032 2010-05-03  Bruno Haible  <bruno@clisp.org>
23033
23034         wctob: Fix for weird platforms.
23035         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23036         argument value.
23037
23038 2010-05-03  Jim Meyering  <meyering@redhat.com>
23039
23040         maint.mk: prohibit unwarranted use of <strings.h>
23041         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23042         strings.h in a file that does not also use strcasecmp, strncasecmp,
23043         ffs or ffsll.
23044
23045         maint.mk: remove obsolete comments
23046         * top/maint.mk: Remove stale, commented-out rules.
23047
23048 2010-05-02  Bruno Haible  <bruno@clisp.org>
23049
23050         wcwidth: Declare also when it's aliased.
23051         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23052         macro.
23053
23054 2010-05-02  Bruno Haible  <bruno@clisp.org>
23055
23056         Fix regression from 2010-04-25.
23057         * gnulib-tool (func_modules_transitive_closure): Check the status of
23058         all modules, not only of the tests that are of the form foo-tests where
23059         foo is a module.
23060
23061 2010-05-02  Bruno Haible  <bruno@clisp.org>
23062
23063         wctob: Work around nasty Cygwin 1.7.2 bug.
23064         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23065         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23066
23067 2010-05-01  Bruno Haible  <bruno@clisp.org>
23068
23069         fpurge: Sharper test.
23070         * tests/test-fpurge.c (main): Add one more ftell check.
23071         * modules/fpurge-tests (Depends-on): Add ftell.
23072         Suggested by Eric Blake.
23073
23074 2010-05-01  Bruno Haible  <bruno@clisp.org>
23075
23076         ftello: Another test.
23077         * tests/test-ftello3.c: New file.
23078         * modules/ftello-tests (Files): Add it.
23079         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23080         MOSTLYCLEANFILES.
23081
23082         ftell: Another test.
23083         * tests/test-ftell3.c: New file.
23084         * modules/ftell-tests (Files): Add it.
23085         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23086         MOSTLYCLEANFILES.
23087
23088 2010-05-01  Bruno Haible  <bruno@clisp.org>
23089
23090         ftell, ftello: Work around Solaris bug.
23091         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23092         * lib/ftello.c: Include stdio-impl.h.
23093         (ftello): On Solaris, when _IOWRT is set, compute the result without
23094         looking at _IOREAD.
23095         * modules/ftello (Files): Add lib/stdio-impl.h.
23096         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23097         * doc/posix-functions/ftello.texi: Likewise.
23098         Reported by Eric Blake.
23099
23100 2010-05-01  Bruno Haible  <bruno@clisp.org>
23101
23102         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23103         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23104         the _IOWRT flag is also set.
23105
23106 2010-05-01  Bruno Haible  <bruno@clisp.org>
23107
23108         Fix doc about a HP-UX stdio bug.
23109         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23110         * doc/posix-functions/ftello.texi: Likewise.
23111
23112 2010-05-01  Bruno Haible  <bruno@clisp.org>
23113
23114         lseek test: Fix failure on Solaris.
23115         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23116         output.
23117
23118 2010-04-30  Jim Meyering  <meyering@redhat.com>
23119
23120         bootstrap: don't ignore failure to generate po*/Makevars
23121         * build-aux/bootstrap (with_gettext): Don't ignore failure
23122         to create po/Makevars or runtime-po/Makevars.
23123
23124 2010-04-29  Eric Blake  <eblake@redhat.com>
23125
23126         headers: relax license to LGPLv2+
23127         * modules/fcntl-h (License): Relax license.
23128         * modules/getopt-posix (License): Likewise.
23129         * modules/locale (License): Likewise.
23130         * modules/math (License): Likewise.
23131         * modules/pty (License): Likewise.
23132         * modules/sched (License): Likewise.
23133         * modules/search (License): Likewise.
23134         * modules/spawn (License): Likewise.
23135         * modules/stdarg (License): Likewise.
23136         * modules/sysexits (License): Likewise.
23137
23138 2010-04-29  Jim Meyering  <meyering@redhat.com>
23139
23140         inttypes: relax license to LGPLv2+
23141         * modules/inttypes (License): Relax license.
23142
23143 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23144
23145         * top/maint.mk (indent): Run twice to produce idempotent results.
23146
23147 2010-04-28  Bruno Haible  <bruno@clisp.org>
23148
23149         getdate: Generate getdate.c in the source directory.
23150         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23151         MOSTLYCLEANFILES.
23152         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23153
23154 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23155
23156         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23157         is not declared as a const *; avoid warnings in that case.
23158
23159 2010-04-28  Eric Blake  <eblake@redhat.com>
23160
23161         canonicalize-lgpl: avoid compiler warning
23162         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23163         declaration' / 'extraneous semicolon' warning with some compilers.
23164         Reported by Andreas Gruenbacher.
23165
23166 2010-04-28  Jim Meyering  <meyering@redhat.com>
23167
23168         init.sh: ensure a more reliable exit status when exiting via trap
23169         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23170         Inspired by patches from Dmitry V. Levin.
23171         Also trap on signal 3 (SIGQUIT).
23172
23173 2010-04-27  Bruno Haible  <bruno@clisp.org>
23174
23175         Update doc about utimes().
23176         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23177         'utimens' module.
23178         Reported by Andreas Gruenbacher <agruen@suse.de>.
23179
23180 2010-04-27  Eric Blake  <eblake@redhat.com>
23181
23182         full-read, full-write: relax license
23183         * modules/full-read (License): Drop to LGPLv2+.
23184         * modules/full-write (License): Likewise.
23185         * modules/safe-read (License): Likewise.
23186         * modules/safe-write (License): Likewise.
23187
23188         pthread: mention library for linking
23189         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23190
23191 2010-04-27  Jim Meyering  <meyering@redhat.com>
23192
23193         maint.mk: fix a bug introduced in last change
23194         * top/maint.mk (gl_assured_headers_): Now that all names are on
23195         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23196         is not anchored to end of word, it should be adequate.
23197
23198         maint.mk: avoid side-effect in latest syntax-check
23199         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23200         to run commands via $(shell...), and hence to incur cost only when
23201         the new rule is actually run.
23202
23203         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23204         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23205         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23206         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23207         (gl_assured_headers_, az_, AZ_): Define.
23208         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23209
23210 2010-04-26  Jim Meyering  <jim@meyering.net>
23211             Bruno Haible  <bruno@clisp.org>
23212
23213         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23214         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23215         Prompted by an exchange with Gilles Espinasse.
23216
23217 2010-04-26  Jim Meyering  <meyering@redhat.com>
23218
23219         git-version-gen: aesthetic tweak
23220         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23221         so that the command remains on a single line.
23222
23223 2010-04-26  Eric Blake  <eblake@redhat.com>
23224
23225         git-version-gen: allow use on EBCDIC hosts
23226         * build-aux/git-version-gen (dirty): Use literal rather than tying
23227         ourselves to ascii.
23228         Reported by Steve Goetze.
23229
23230 2010-04-25  Bruno Haible  <bruno@clisp.org>
23231
23232         netdb: Add support for GNULIB_POSIXCHECK.
23233         * lib/netdb.in.h: Include warn-on-use.h.
23234         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23235         functions are used when GNULIB_POSIXCHECK is defined and the
23236         getaddrinfo module is not in use.
23237         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23238         freeaddrinfo, gai_strerror, getnameinfo are declared.
23239         * modules/netdb (Depends-on): Add warn-on-use.
23240         (Makefile.am): Include warn-on-use.h in netdb.h.
23241
23242 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23243
23244         build: avoid "make check" failure without .git/ directory
23245         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23246         there is no .git/ directory.
23247
23248 2010-04-25  Bruno Haible  <bruno@clisp.org>
23249
23250         ptsname: Fix misuse of ttyname_r.
23251         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23252         of errno.
23253
23254 2010-04-25  Bruno Haible  <bruno@clisp.org>
23255
23256         ttyname_r: Make it work on Solaris 10.
23257         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23258         if the system function has the POSIX declaration. Test whether the
23259         function fails if the buffer is less than 128 bytes large.
23260         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23261         system's ttyname_r function. Provide a reasonably large buffer.
23262         * modules/ttyname_r (Depends-on): Add extensions.
23263         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23264
23265 2010-04-25  Bruno Haible  <bruno@clisp.org>
23266
23267         Use the 'extensions' module for some more functions on Solaris.
23268         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23269         module.
23270         * doc/posix-functions/ctime_r.texi: Likewise.
23271         * doc/posix-functions/getgrgid_r.texi: Likewise.
23272         * doc/posix-functions/getgrnam_r.texi: Likewise.
23273         * doc/posix-functions/getpwnam_r.texi: Likewise.
23274         * doc/posix-functions/getpwuid_r.texi: Likewise.
23275         * doc/posix-functions/readdir_r.texi: Likewise.
23276         * doc/posix-functions/sigwait.texi: Likewise.
23277         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23278         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23279
23280 2010-04-25  Bruno Haible  <bruno@clisp.org>
23281
23282         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23283         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23284         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23285         * lib/ttyname_r.c: Include <limits.h>.
23286         (ttyname_r): Define using the system's ttyname_r function, if it exists
23287         and not on Solaris.
23288         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23289         set.
23290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23291         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23292         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23293         Reported by Simon Josefsson.
23294
23295 2010-04-25  Bruno Haible  <bruno@clisp.org>
23296
23297         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23298         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23299         * doc/posix-functions/ctime_r.texi: Likewise.
23300         * doc/posix-functions/getgrgid_r.texi: Likewise.
23301         * doc/posix-functions/getgrnam_r.texi: Likewise.
23302         * doc/posix-functions/getlogin_r.texi: Likewise.
23303         * doc/posix-functions/getpwnam_r.texi: Likewise.
23304         * doc/posix-functions/getpwuid_r.texi: Likewise.
23305         * doc/posix-functions/readdir_r.texi: Likewise.
23306         * doc/posix-functions/sigwait.texi: Likewise.
23307         * doc/posix-functions/ttyname_r.texi: Likewise.
23308         Reported by Simon Josefsson.
23309
23310 2010-04-25  Bruno Haible  <bruno@clisp.org>
23311
23312         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23313         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23314         also to --create-testdir.
23315         (func_acceptable): Don't consider the status of *-tests modules here.
23316         (func_modules_transitive_closure): Consider it here, before including a
23317         test module.
23318         (func_import, func_create_testdir): Set inc_all_direct_tests,
23319         inc_all_indirect_tests.
23320         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23321         --create-testdir and --create-megatestdir.
23322
23323 2010-04-25  Bruno Haible  <bruno@clisp.org>
23324
23325         gnulib-tool: Add --without-*-tests options.
23326         * gnulib-tool (func_usage): Document the --without-*-tests options.
23327         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23328         excl_unportable_tests): New variables.
23329         Fail if they are specified with --import or --update.
23330         (func_acceptable): Respect the excl_*_tests variables.
23331         (func_import): Set the excl_*_tests variables to empty.
23332
23333 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23334             Bruno Haible  <bruno@clisp.org>
23335
23336         Work around a MacOS X 10.4 bug with openpty.
23337         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23338         * tests/test-openpty.c (main): Close the master side explicitly.
23339
23340 2010-04-25  Bruno Haible  <bruno@clisp.org>
23341
23342         strnlen: Fix a C++ test error on MacOS X and Solaris.
23343         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23344         the function is not declared.
23345         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23346         Simon Josefsson.
23347
23348 2010-04-24  Bruno Haible  <bruno@clisp.org>
23349
23350         Avoid a gcc warning.
23351         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23352         of correct type for %08lx directive.
23353         Reported by Eric Blake.
23354
23355 2010-04-24  Bruno Haible  <bruno@clisp.org>
23356
23357         vasnprintf: Correct errno value in case of out-of-memory.
23358         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23359         or sprintf. Use the errno value from SNPRINTF or sprintf.
23360         Reported by Ian Beckwith <ianb@erislabs.net>.
23361
23362 2010-04-24  Bruno Haible  <bruno@clisp.org>
23363
23364         ansi-c++-opt: Find correct compiler when cross-compiling.
23365         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23366         AC_CHECK_PROGS.
23367         Reported by Simon Josefsson.
23368
23369 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23370
23371         vc-list-files: Add support for subversion
23372         * build-aux/vc-list-files: Use "svn list" to generate the list of
23373         files controlled by subversion.
23374
23375 2010-04-23  Jim Meyering  <meyering@redhat.com>
23376
23377         vc-list-files tests: convert to use init.sh
23378         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23379         path_prepend_.
23380         Use Exit, not exit.
23381         Use skip_ rather than open coding it.
23382         Remove trap set-up and compare definitions.
23383         * tests/test-vc-list-files-git.sh: Likewise.
23384         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23385
23386 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23387
23388         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23389         backup files.
23390
23391 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23392
23393         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23394
23395 2010-04-20  Eric Blake  <eblake@redhat.com>
23396
23397         tests: be robust to ignored SIGPIPE
23398         * tests/test-select-in.sh: Consume all output.
23399         * tests/test-lseek.sh: Check correct exit status, while avoiding
23400         EPIPE.
23401
23402 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23403             Bruno Haible  <bruno@clisp.org>
23404
23405         visibility: Don't use -fvisibility if it leads to a warning.
23406         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23407         yes, don't pretend that visibility works if it leads to a warning.
23408         Reported by Mike Gran <spk121@yahoo.com>.
23409
23410 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23411
23412         * build-aux/bootstrap: Use "git -h" for testing for supported options
23413         instead of "git --help".  The short-form option only shows a summary,
23414         and doesn't layout the full man page.  Grep for the full option name
23415         in the summary, too.
23416
23417 2010-04-19  Bruno Haible  <bruno@clisp.org>
23418
23419         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23420         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23421         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23422         mention of RELOCATABLE_STRIP.
23423         Reported by Sylvain Beucler <beuc@beuc.net>.
23424
23425 2010-04-19  Bruno Haible  <bruno@clisp.org>
23426
23427         * lib/diffseq.h: Fix typo in comment.
23428         Reported by Eric Blake.
23429
23430 2010-04-19  Bruno Haible  <bruno@clisp.org>
23431
23432         ioctl: Move autoconf macro to a .m4 file.
23433         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23434         * modules/ioctl (Files): Add it.
23435         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23436         Reported by Ian Beckwith <ianb@erislabs.net>.
23437
23438 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23439             Bruno Haible  <bruno@clisp.org>
23440
23441         diffseq: Accommodate use-case with abstract arrays.
23442         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23443         is not defined.
23444         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23445         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23446
23447 2010-04-18  Bruno Haible  <bruno@clisp.org>
23448
23449         * doc/posix-headers/stdbool.texi: More precise wording.
23450
23451 2010-04-17  Jim Meyering  <meyering@redhat.com>
23452
23453         maint.mk: use gnu-style indentation in an embedded perl script
23454         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23455         Rename variable: s/two/last_two_bytes/
23456
23457 2010-04-16  Eric Blake  <eblake@redhat.com>
23458
23459         test-stdbool: skip test that fails with Solaris CC
23460         * tests/test-stdbool.c (f): Skip test that causes compilation
23461         error under buggy C++ compiler.
23462         * lib/stdbool.in.h: Document the limitation.
23463         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23464
23465         setenv: allow compilation with C++
23466         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23467         register keyword.
23468
23469         stdint: allow test to pass with C++
23470         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23471
23472         getopt: allow compilation with C++
23473         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23474         struct.
23475         * lib/getopt.c (_getopt_internal_r): Use correct type.
23476         Reported by Dagobert Michelson, via Joel E. Denny.
23477
23478 2010-04-16  Bruno Haible  <bruno@clisp.org>
23479
23480         Override netdb.h always.
23481         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23482         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23483         Reported by Ludovic Courtès <ludo@gnu.org>.
23484
23485 2010-04-15  Bruno Haible  <bruno@clisp.org>
23486
23487         openpty: Fix mistake from 2010-03-21.
23488         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23489         Reported by Simon Josefsson.
23490
23491 2010-04-15  Eric Blake  <eblake@redhat.com>
23492
23493         test-forkpty: fix expected signature
23494         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23495         Reported by Simon Josefsson.
23496
23497 2010-04-15  Jim Meyering  <meyering@redhat.com>
23498
23499         maint.mk: texinfo_suffix_re_: correct the default regexp
23500         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23501
23502         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23503         make it configurable via texinfo_suffix_re_.
23504
23505 2010-04-14  Eric Blake  <eblake@redhat.com>
23506
23507         strtok_r: relax license to LGPLv2+
23508         * modules/strtok_r (License): Relax license.
23509         Reported by Matthias Bolte.
23510
23511 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23512
23513         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23514         version 1.4.4 by default instead of requiring the libgcrypt
23515         version used during build.  This makes it possible to use the
23516         application with older but still binary compatible libgcrypt
23517         versions.
23518
23519 2010-04-13  Eric Blake  <eblake@redhat.com>
23520
23521         getopt-gnu: match recent glibc fixes and posix ruling
23522         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23523         '+' handling, when requesting extensions.
23524         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23525         'W;' handling.
23526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23527         * doc/posix-functions/getopt.texi (getopt): Document this.
23528         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23529         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23530         Likewise.
23531
23532         getopt: merge bug fixes from glibc
23533         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23534         diagnostics.  Honor '+:' correctly.  Reject ';'.
23535
23536         getopt-posix: detect MacOS bug
23537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23538         optind when missing a required argument.
23539         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23540         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23541         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23542         Likewise.
23543
23544         getopt-posix: avoid spurious failure on Solaris
23545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23546         an indicator that setting optind=1 is sufficient for reset.
23547
23548         getopt-posix: avoid spurious failure on FreeBSD
23549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23550         in POSIX mode, since the m4 test uses it.
23551
23552         gnulib-tool: silence warning on BSD sh
23553         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23554
23555 2010-04-13  Jim Meyering  <meyering@redhat.com>
23556
23557         doc: users.txt: GNU patch now uses gnulib
23558         * users.txt: Add patch.
23559
23560 2010-04-12  Jim Meyering  <meyering@redhat.com>
23561
23562         maint.mk: generate more concise timing data for syntax-check rules
23563         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23564         " done" from each line that reports a syntax-check test duration.
23565
23566 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23567
23568         git-version-gen: use "git update-index..." rather than "git status"
23569         * build-aux/git-version-gen: Use git update-index --refresh, not
23570         "git status".  With some versions of git, "git status" would fail
23571         to update the index and result in an unwarranted "-dirty" suffix.
23572
23573 2010-04-11  Jim Meyering  <meyering@redhat.com>
23574
23575         openat: correct formatting (no semantic change)
23576         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23577         Suggested by Bruno Haible.
23578
23579 2010-04-11  Bruno Haible  <bruno@clisp.org>
23580
23581         Stricter declaration checking in testdirs.
23582         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23583         If for_tests is true, augment AM_CPPFLAGS to define
23584         GNULIB_STRICT_CHECKING.
23585         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23586         GNULIB_STRICT_CHECKING is defined, verify that the function is
23587         declared.
23588
23589 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23590             Bruno Haible  <bruno@clisp.org>
23591
23592         libunistring: Improve configure output.
23593         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23594         Don't say "consider installing GNU libunistring" when checking again
23595         with libiconv.
23596
23597 2010-04-11  Bruno Haible  <bruno@clisp.org>
23598
23599         libunistring: Correct value of $LTLIBUNISTRING.
23600         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23601         correct the value of $LTLIBUNISTRING.
23602
23603 2010-04-11  Bruno Haible  <bruno@clisp.org>
23604
23605         havelib: Add static libraries to LIBS in the right order.
23606         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23607         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23608
23609 2010-04-11  Bruno Haible  <bruno@clisp.org>
23610
23611         libunistring: Detect libunistring also when it depends on libiconv.
23612         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23613         the second AC_LIB_HAVE_LINKFLAGS invocation.
23614
23615 2010-04-11  James Youngman  <jay@gnu.org>
23616
23617         close-stream: declare local scalars to be "const"
23618         * lib/close-stream.c (close_stream): Make boolean variables const
23619         to document the fact that we set but do not change them.
23620
23621 2010-04-11  Bruno Haible  <bruno@clisp.org>
23622
23623         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23624
23625 2010-04-11  Jim Meyering  <meyering@redhat.com>
23626
23627         maint.mk: don't include dist-check.mk
23628         * top/maint.mk: Remove bogus include directive.
23629
23630         maint.mk: improve empty-line-at-EOF check
23631         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23632         solution, rather than tail+Perl-based one.  The latter would read
23633         a few kilobytes from the end of each file, and did not handle empty
23634         files properly.
23635
23636         maint.mk: print the elapsed time for each syntax-check rule
23637         * top/maint.mk (sc_m_rules_): Save start time in a file.
23638         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23639         (local-check): Interpose the .z rules
23640
23641 2010-04-11  Jim Meyering  <meyering@redhat.com>
23642
23643         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23644         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23645         empty file with one that ends in an empty line.
23646
23647 2010-04-10  Bruno Haible  <bruno@clisp.org>
23648
23649         mkdir: Make it work on mingw64.
23650         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23651         * lib/mkdir.c: Update comment.
23652         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23653
23654 2010-04-10  Bruno Haible  <bruno@clisp.org>
23655
23656         Don't override improved macro from newer autoconf.
23657         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23658         autoconf >= 2.62.
23659         Reported by Joel E. Denny <jdenny@clemson.edu>.
23660
23661 2010-04-10  Jim Meyering  <meyering@redhat.com>
23662
23663         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23664         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23665
23666         maint.mk: correct a diagnostic
23667         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23668         in diagnostic; now use $prohibit.
23669
23670 2010-04-10  Bruno Haible  <address@hidden>
23671
23672         fchownat: Fix a C++ test error on Solaris 8.
23673         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23674         the function does not exist.
23675
23676 2010-04-10  Bruno Haible  <bruno@clisp.org>
23677
23678         vasnprintf: Add more tests.
23679         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23680         (test_function): Test converting an invalid wide string.
23681
23682         vasnprintf: Correct handling of unconvertible wide string arguments.
23683         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23684         VASNPRINTF.
23685         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23686         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23687         smaller than the expected maximum need for the directive. Set errno to
23688         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23689         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23691         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23692         * modules/vasnprintf (Files): Add m4/printf.m4.
23693         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23694
23695 2010-04-10  Bruno Haible  <bruno@clisp.org>
23696
23697         vasnprintf: Fix crash in %ls directive.
23698         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23699         string is passed as argument to %ls, with no precision and no width.
23700         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23701
23702 2010-04-10  Bruno Haible  <bruno@clisp.org>
23703
23704         vasnprintf: Fix multiple test failures on mingw.
23705         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23706         _snprintf, or snwprintf, not _snwprintf.
23707
23708 2010-04-10  Bruno Haible  <bruno@clisp.org>
23709
23710         write: Fix a C++ test error on mingw.
23711         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23712
23713 2010-04-10  Bruno Haible  <bruno@clisp.org>
23714
23715         vasnprintf test: Reduce code duplication.
23716         * tests/test-vasnprintf.c (test_function): New function, extracted from
23717         test_vasnprintf.
23718         (test_vasnprintf, test_asnprintf): Invoke it.
23719
23720 2010-04-10  Bruno Haible  <bruno@clisp.org>
23721
23722         strnlen: Fix warning in C++ mode on MacOS X.
23723         * lib/string.in.h (strnlen): Use the modern idiom.
23724         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23725         defining strnlen as a macro already in <config.h>.
23726         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23727         REPLACE_STRNLEN.
23728         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23729         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23730
23731 2010-04-08  James Youngman  <jay@gnu.org>
23732
23733         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23734         the example.
23735
23736 2010-04-09  Jim Meyering  <meyering@redhat.com>
23737
23738         maint.mk: print better diagnostic when there is no $(_hv_file)
23739         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23740         announce that when $(_hv_file) (aka help-version) does not exist.
23741
23742         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23743         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23744         not try to interpret its random input bytes.  Jarno Rajahalme reported
23745         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23746         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23747         (mktempd_): Likewise, just in case.
23748
23749         ftruncate: add two years to projected module removal date: 2012
23750         * m4/ftruncate.m4: Adjust comments.
23751
23752         ftruncate: mark module as obsolete; even MinGW provides it, now
23753         * modules/ftruncate (Status): Obsolete.
23754         (Notice): Say that.
23755         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23756         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23757
23758 2010-04-08  Bruno Haible  <bruno@clisp.org>
23759
23760         Fix side effects from tests-related modules.
23761         * modules/dprintf-posix (Comment): New section.
23762         * modules/fprintf-posix (Comment): Likewise.
23763         * modules/obstack-printf-posix (Comment): Likewise.
23764         * modules/printf-posix (Comment): Likewise.
23765         * modules/snprintf-posix (Comment): Likewise.
23766         * modules/sprintf-posix (Comment): Likewise.
23767         * modules/vasnprintf-posix (Comment): Likewise.
23768         * modules/vasprintf-posix (Comment): Likewise.
23769         * modules/vdprintf-posix (Comment): Likewise.
23770         * modules/vfprintf-posix (Comment): Likewise.
23771         * modules/vprintf-posix (Comment): Likewise.
23772         * modules/vsnprintf-posix (Comment): Likewise.
23773         * modules/vsprintf-posix (Comment): Likewise.
23774         * modules/xprintf-posix (Comment): Likewise.
23775         * modules/xvasprintf-posix (Comment): Likewise.
23776         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23777         * modules/floorf-tests (Depends-on): Likewise.
23778         * modules/round-tests (Depends-on): Likewise.
23779         * modules/roundf-tests (Depends-on): Likewise.
23780         * modules/trunc-tests (Depends-on): Likewise.
23781         * modules/truncf-tests (Depends-on): Likewise.
23782         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23783         'fprintf-posix' module is not present.
23784         * tests/test-floorf2.c (check): Likewise.
23785         * tests/test-trunc2.c (check): Likewise.
23786         * tests/test-truncf2.c (check): Likewise.
23787         * tests/test-round2.c (equal): Likewise.
23788         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23789
23790 2010-04-07  Karl Berry  <karl@gnu.org>
23791
23792         * config/srclist.txt,
23793         * config/srclistvars.sh,
23794         * config/srclist-update: doc fixes.
23795
23796 2010-04-07  Jim Meyering  <meyering@redhat.com>
23797
23798         maint.mk: add a PATH crosschecking syntax-check rule
23799         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23800         Useful if you use a test like the one in help-version (coreutils,
23801         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23802         printed by prog --version.
23803
23804 2010-04-06  Bruno Haible  <bruno@clisp.org>
23805
23806         Fix link error on mingw.
23807         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23808         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23809
23810 2010-04-06  Bruno Haible  <bruno@clisp.org>
23811
23812         Assume rmdir exists.
23813         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23814
23815 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23816
23817         doc: update users.txt
23818         * users.txt: Add gcal.
23819
23820 2010-04-06  Jim Meyering  <meyering@redhat.com>
23821
23822         init.sh: simply unset TMPDIR rather than risking env -i
23823         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23824         although it probably works fine on all Unix-based systems, some
23825         systems (Cygwin?) cannot tolerate a totally cleared environment.
23826         Suggestion from Eric Blake.
23827
23828 2010-04-06  Jim Meyering  <meyering@redhat.com>
23829
23830         init.sh: portability fix: use env's POSIX-specified -i option not -u
23831         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23832         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23833
23834 2010-04-05  Bruno Haible  <bruno@clisp.org>
23835
23836         btowc: Work around Cygwin 1.7.2 bug.
23837         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23838         does not map NUL to 0.
23839         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23840
23841 2010-04-05  Bruno Haible  <bruno@clisp.org>
23842
23843         Make the multithread modules work on Cygwin 1.7.2.
23844         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23845         imported symbols can be declared weak, so that it returns "no" on
23846         Cygwin 1.7.2.
23847
23848 2010-04-05  Bruno Haible  <bruno@clisp.org>
23849
23850         Use the module 'strncat'.
23851         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23852
23853         Tests for module 'strncat'.
23854         * modules/strncat-tests: New file.
23855         * tests/test-strncat.c: New file.
23856
23857         New module 'strncat'.
23858         * lib/string.in.h (strncat): New declaration.
23859         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23860         * m4/strncat.m4: New file, based on m4/memchr.m4.
23861         * modules/strncat: New file.
23862         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23863         is declared.
23864         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23865         REPLACE_STRNCAT.
23866         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23867         REPLACE_STRNCAT.
23868         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23869         module.
23870         * tests/test-string-c++.cc: Check signature of strncat.
23871
23872 2010-04-05  Jim Meyering  <meyering@redhat.com>
23873
23874         xstrtoumax-tests: convert to use init.sh
23875         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23876         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23877         Use Exit, not exit.
23878         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23879
23880         xstrtoimax-tests: convert to use init.sh
23881         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23882         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23883         Use Exit, not exit.
23884         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23885
23886 2010-04-05  Bruno Haible  <bruno@clisp.org>
23887
23888         sys_socket: Avoid #define replacements in C++ mode.
23889         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23890         warning to the function if possible, rather than #defining the symbol
23891         to a dysfunctional alias.
23892
23893 2010-04-05  Bruno Haible  <bruno@clisp.org>
23894
23895         fseeko: Fix C++ test error on mingw.
23896         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23897         gl_FUNC_FSEEKO.
23898         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23899         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23900         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23901         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23902
23903 2010-04-05  Bruno Haible  <bruno@clisp.org>
23904
23905         duplocale: Improve test output.
23906         * tests/test-duplocale.c (main): Print reason for skipped test.
23907
23908 2010-04-05  Bruno Haible  <bruno@clisp.org>
23909
23910         Assume rmdir exists.
23911         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23912         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23913
23914 2010-04-05  Bruno Haible  <bruno@clisp.org>
23915
23916         Fix link error on Solaris 8 with cc.
23917         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23918
23919 2010-04-05  Bruno Haible  <bruno@clisp.org>
23920
23921         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23922         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23923
23924 2010-04-05  Bruno Haible  <bruno@clisp.org>
23925
23926         vasprintf: Update documentation.
23927         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23928
23929 2010-04-05  Bruno Haible  <bruno@clisp.org>
23930
23931         ptsname: Improve test.
23932         * tests/test-ptsname.c (main): Also try the various master names of BSD
23933         systems.
23934
23935 2010-04-05  Bruno Haible  <bruno@clisp.org>
23936
23937         memchr: Avoid a possible C++ test error.
23938         * lib/string.in.h (memchr): Provide declaration if function is missing.
23939         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23940         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23942         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23943
23944 2010-04-05  Bruno Haible  <bruno@clisp.org>
23945
23946         strtok_r: Improve idiom.
23947         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23948         AC_LIBOBJ is used.
23949
23950 2010-04-05  Bruno Haible  <bruno@clisp.org>
23951
23952         strdup: Improve idiom.
23953         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23954         AC_LIBOBJ is used.
23955         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23956         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23957         when AC_LIBOBJ is used.
23958
23959 2010-04-05  Bruno Haible  <bruno@clisp.org>
23960
23961         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23962         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23963         don't set REPLACE_MBSINIT to 1.
23964         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23965         don't set REPLACE_MBRTOWC to 1.
23966         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23967         exist, don't set REPLACE_MBSRTOWCS to 1.
23968         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23969         exist, don't set REPLACE_MBSNRTOWCS to 1.
23970         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23971         don't set REPLACE_WCRTOMB to 1.
23972         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23973         exist, don't set REPLACE_WCSRTOMBS to 1.
23974         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23975         exist, don't set REPLACE_WCSNRTOMBS to 1.
23976
23977 2010-04-05  Bruno Haible  <bruno@clisp.org>
23978
23979         ldexpl: Improve idiom.
23980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23981         make sure to set HAVE_DECL_LDEXPL to 0.
23982
23983 2010-04-05  Jim Meyering  <meyering@redhat.com>
23984
23985         xstrtol-tests: convert to use init.sh
23986         * modules/xstrtol-tests (Files): Add tests/init.sh.
23987         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23988         Use Exit, not exit.
23989         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23990
23991         atexit-tests: convert to use init.sh
23992         * modules/atexit-tests (Files): Add tests/init.sh.
23993         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23994         Use Exit, not exit.
23995         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23996
23997         init.sh: fix typo
23998         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23999
24000         init.sh: make it easier for a test script to write to the tty, ...
24001         when using automake's parallel-tests mode.
24002         * tests/init.sh (stderr_fileno_): Define overridable variable.
24003         (warn_): New function, to use it.
24004         (fail_, skip_, framework_failure_): Use warn_.
24005
24006 2010-04-04  Bruno Haible  <bruno@clisp.org>
24007
24008         btowc: Avoid warning.
24009         * lib/btowc.c: Include <stdlib.h>.
24010         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24011
24012 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24013             Bruno Haible  <bruno@clisp.org>
24014
24015         wchar: Port to NetBSD 1.5.
24016         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24017         * lib/wctype.in.h (WEOF): Likewise.
24018
24019 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24020             Bruno Haible  <bruno@clisp.org>
24021
24022         Port extended stdio to NetBSD 1.5.
24023         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24024         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24025         older.
24026
24027 2010-04-04  Bruno Haible  <bruno@clisp.org>
24028
24029         string: Remove unused substitution.
24030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24031         HAVE_DECL_STRERROR.
24032         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24033
24034 2010-04-04  Bruno Haible  <bruno@clisp.org>
24035
24036         strtod: Avoid a possible C++ test error.
24037         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24038         set REPLACE_STRTOD.
24039
24040 2010-04-04  Bruno Haible  <bruno@clisp.org>
24041
24042         strerror: Update documentation.
24043         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24044
24045 2010-04-04  Bruno Haible  <bruno@clisp.org>
24046
24047         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24048         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24049         _GL_CXXALIAS_SYS_CAST.
24050
24051 2010-04-04  Bruno Haible  <bruno@clisp.org>
24052
24053         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24054         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24055         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24056         REPLACE_FREXPL to 1.
24057         * doc/posix-functions/frexpl.texi: Update documentation.
24058
24059 2010-04-04  Bruno Haible  <bruno@clisp.org>
24060
24061         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24062         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24063
24064 2010-04-04  Bruno Haible  <bruno@clisp.org>
24065
24066         Implement nanosleep for native Windows.
24067         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24068
24069 2010-04-04  Bruno Haible  <bruno@clisp.org>
24070
24071         math: Fix some C++ test errors on Solaris 8.
24072         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24073
24074 2010-04-04  Bruno Haible  <bruno@clisp.org>
24075
24076         math: Fix some C++ test errors on Cygwin.
24077         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24078         truncl): Provide declaration if the system does not have it.
24079         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24080         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24081         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24082         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24083         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24084         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24085         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24086         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24087         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24088         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24089         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24090         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24091         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24092         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24093         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24094         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24096         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24097         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24098         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24099         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24100         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24101
24102 2010-04-04  Bruno Haible  <bruno@clisp.org>
24103
24104         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24105         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24106         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24107         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24108         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24109         * m4/isinf.m4 (gl_ISINF): Likewise.
24110         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24111
24112 2010-04-04  Bruno Haible  <bruno@clisp.org>
24113
24114         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24115         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24116
24117 2010-04-04  Bruno Haible  <bruno@clisp.org>
24118
24119         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24120         * modules/tmpfile (configure.ac): Update.
24121
24122         tmpfile: Fix C++ test error on mingw.
24123         * lib/stdio.in.h (tmpfile): New declaration.
24124         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24125         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24126         * modules/tmpfile (Depends-on): Add stdio.
24127         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24128         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24129         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24130         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24131         REPLACE_TMPFILE.
24132         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24133
24134 2010-04-04  Bruno Haible  <bruno@clisp.org>
24135
24136         ioctl: Fix C++ test error on mingw.
24137         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24138         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24139         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24140
24141 2010-04-03  Bruno Haible  <bruno@clisp.org>
24142
24143         wcwidth: Fix C++ test error on mingw.
24144         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24146         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24147
24148 2010-04-03  Bruno Haible  <bruno@clisp.org>
24149
24150         nanosleep: Fix C++ test error on mingw.
24151         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24152         * lib/time.in.h (nanosleep): Use modern idiom.
24153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24154         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24155         REPLACE_NANOSLEEP to 1.
24156         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24157         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24158
24159 2010-04-03  Bruno Haible  <bruno@clisp.org>
24160
24161         strptime: Fix C++ test error on mingw.
24162         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24163         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24164         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24165         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24166         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24167         not REPLACE_STRPTIME.
24168         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24169         REPLACE_STRPTIME.
24170
24171 2010-04-03  Bruno Haible  <bruno@clisp.org>
24172
24173         timegm: Fix C++ test error on mingw.
24174         * lib/time.in.h (timegm): Use modern idiom.
24175         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24176         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24177         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24178         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24179
24180 2010-04-03  Bruno Haible  <bruno@clisp.org>
24181
24182         timegm: Assume declaration if function exists.
24183         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24184         if it exists. Don't clobber ac_cv_func_timegm.
24185
24186 2010-04-03  Bruno Haible  <bruno@clisp.org>
24187
24188         time_r: Fix C++ test error on mingw.
24189         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24190         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24191         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24192         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24193         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24194
24195 2010-04-03  Bruno Haible  <bruno@clisp.org>
24196
24197         time_r: Minor updates.
24198         * modules/time_r (Description): Mention the provided functions.
24199         * lib/time_r.c: Don't include <string.h>.
24200         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24201         * doc/posix-functions/localtime_r.texi: Likewise.
24202
24203 2010-04-03  Bruno Haible  <bruno@clisp.org>
24204
24205         time: Fix regression introduced on 2010-03-08.
24206         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24207         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24208
24209 2010-04-03  Jim Meyering  <meyering@redhat.com>
24210
24211         maint.mk: don't silently disable project-specific syntax-check rules
24212         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24213         that they need to convert their project-specific syntax-check rules
24214         to use the new _sc_search_regexp.
24215
24216 2010-04-03  Bruno Haible  <bruno@clisp.org>
24217
24218         fchdir: Fix regression introduced on 2010-03-08.
24219         * lib/unistd.in.h (fchdir): Fix declaration.
24220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24222         REPLACE_FCHDIR.
24223         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24224         REPLACE_FCHDIR.
24225
24226 2010-04-03  Bruno Haible  <bruno@clisp.org>
24227
24228         getpagesize: Fix C++ test error on mingw.
24229         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24230         system does not declare the function.
24231         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24232         declared.
24233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24234         HAVE_DECL_GETPAGESIZE.
24235         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24236
24237 2010-04-03  Bruno Haible  <bruno@clisp.org>
24238
24239         stdio: Make C++ tests work on mingw.
24240         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24241         does not declare the function.
24242
24243 2010-04-03  Bruno Haible  <bruno@clisp.org>
24244
24245         ftello: Fix C++ test error on mingw.
24246         * lib/stdio.in.h (ftello): Use modern idiom.
24247         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24248         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24249         is missing and that it needs to be replaced.
24250         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24252         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24253
24254 2010-04-03  Bruno Haible  <bruno@clisp.org>
24255
24256         fseeko: Fix C++ test error on mingw.
24257         * lib/stdio.in.h (fseeko): Use modern idiom.
24258         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24259         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24260         is missing and that it needs to be replaced.
24261         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24263         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24264
24265 2010-04-03  Bruno Haible  <bruno@clisp.org>
24266
24267         mkstemp: Fix C++ test error on mingw.
24268         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24269         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24270         function is missing and that it needs to be replaced.
24271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24272         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24273
24274 2010-04-03  Bruno Haible  <bruno@clisp.org>
24275
24276         stpncpy: Fix C++ test error on mingw.
24277         * lib/string.in.h (stpncpy): Use modern idiom.
24278         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24279         function is missing and that it needs to be replaced.
24280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24281         REPLACE_STPNCPY.
24282         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24283
24284 2010-04-03  Bruno Haible  <bruno@clisp.org>
24285
24286         sys_stat: Fix C++ test error on mingw.
24287         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24288         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24289
24290 2010-04-03  Bruno Haible  <bruno@clisp.org>
24291
24292         pty: Update doc.
24293         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24294
24295 2010-04-03  Bruno Haible  <bruno@clisp.org>
24296
24297         unistd: Fix C++ test error on mingw.
24298         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24299
24300 2010-04-03  Bruno Haible  <bruno@clisp.org>
24301
24302         Update doc regarding mingw.
24303         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24304         * doc/glibc-functions/login_tty.texi: Likewise.
24305         * doc/glibc-functions/forkpty.texi: Likewise.
24306
24307 2010-04-03  Bruno Haible  <bruno@clisp.org>
24308
24309         stdlib: Avoid compilation failure of c-strtold on mingw.
24310         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24311
24312 2010-04-03  Bruno Haible  <bruno@clisp.org>
24313
24314         locale: Make C++ tests work on Cygwin and mingw.
24315         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24316         cannot provide the function.
24317         Reported by Simon Josefsson.
24318
24319 2010-04-03  Bruno Haible  <bruno@clisp.org>
24320
24321         localename: Port to MacOS X 10.6.
24322         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24323         memory layout of the locales in MacOS X 10.6 as well.
24324         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24325
24326 2010-04-02  Bruno Haible  <bruno@clisp.org>
24327
24328         gnulib-tool: Ensure that long-running tests are executed last.
24329         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24330         running tests after the one for the other tests.
24331
24332 2010-04-02  Bruno Haible  <bruno@clisp.org>
24333
24334         gnulib-tool: Ensure the tests in the main directory are executed first.
24335         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24336         start with the current directory.
24337
24338 2010-04-02  Bruno Haible  <bruno@clisp.org>
24339
24340         Tests for module 'havelib', moved here from GNU gettext.
24341         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24342         modifications.
24343         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24344         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24345         with modifications.
24346         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24347         modifications.
24348         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24349         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24350         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24351         with modifications.
24352         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24353         with modifications.
24354         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24355         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24356         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24357         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24358         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24359         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24360         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24361         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24362         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24363         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24364         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24365         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24366         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24367         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24368         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24369         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24370         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24371         with modifications.
24372         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24373         with modifications.
24374         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24375         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24376         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24377         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24378         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24379         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24380         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24381         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24382         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24383         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24384         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24385         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24386         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24387         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24388         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24389         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24390         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24391         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24392         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24393         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24394         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24395         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24396         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24397         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24398         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24399         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24400         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24401         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24402         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24403         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24404         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24405         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24406         * tests/havelib/rpathx/rpathx.c: New file, from
24407         gettext/autoconf-lib-link.
24408         * tests/havelib/rpathx/Makefile.am: New file, from
24409         gettext/autoconf-lib-link.
24410         * tests/havelib/rpathx/configure.ac: New file, from
24411         gettext/autoconf-lib-link with modifications.
24412         * tests/havelib/rpathy/rpathy.c: New file, from
24413         gettext/autoconf-lib-link.
24414         * tests/havelib/rpathy/Makefile.am: New file, from
24415         gettext/autoconf-lib-link.
24416         * tests/havelib/rpathy/configure.ac: New file, from
24417         gettext/autoconf-lib-link with modifications.
24418         * tests/havelib/rpathz/rpathz.c: New file, from
24419         gettext/autoconf-lib-link.
24420         * tests/havelib/rpathz/Makefile.am: New file, from
24421         gettext/autoconf-lib-link.
24422         * tests/havelib/rpathz/configure.ac: New file, from
24423         gettext/autoconf-lib-link with modifications.
24424         * tests/havelib/rpathlx/usex.c: New file, from
24425         gettext/autoconf-lib-link.
24426         * tests/havelib/rpathlx/Makefile.am: New file, from
24427         gettext/autoconf-lib-link.
24428         * tests/havelib/rpathlx/configure.ac: New file, from
24429         gettext/autoconf-lib-link with modifications.
24430         * tests/havelib/rpathly/usey.c: New file, from
24431         gettext/autoconf-lib-link.
24432         * tests/havelib/rpathly/Makefile.am: New file, from
24433         gettext/autoconf-lib-link.
24434         * tests/havelib/rpathly/configure.ac: New file, from
24435         gettext/autoconf-lib-link with modifications.
24436         * tests/havelib/rpathlz/usez.c: New file, from
24437         gettext/autoconf-lib-link.
24438         * tests/havelib/rpathlz/Makefile.am: New file, from
24439         gettext/autoconf-lib-link.
24440         * tests/havelib/rpathlz/configure.ac: New file, from
24441         gettext/autoconf-lib-link with modifications.
24442         * tests/havelib/rpathlyx/usey.c: New file, from
24443         gettext/autoconf-lib-link.
24444         * tests/havelib/rpathlyx/Makefile.am: New file, from
24445         gettext/autoconf-lib-link.
24446         * tests/havelib/rpathlyx/configure.ac: New file, from
24447         gettext/autoconf-lib-link with modifications.
24448         * tests/havelib/rpathlzyx/usez.c: New file, from
24449         gettext/autoconf-lib-link.
24450         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24451         gettext/autoconf-lib-link.
24452         * tests/havelib/rpathlzyx/configure.ac: New file, from
24453         gettext/autoconf-lib-link with modifications.
24454         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24455         with modifications.
24456
24457 2010-04-02  Bruno Haible  <bruno@clisp.org>
24458
24459         gnulib-tool: Create distributed built sources also for the tests.
24460         * gnulib-tool (func_create_testdir): Also generate distributed built
24461         sources in the tests directory.
24462
24463 2010-04-02  Bruno Haible  <bruno@clisp.org>
24464
24465         gnulib-tool: Obey user's environment variables.
24466         * gnulib-tool (func_create_testdir): When creating built sources,
24467         respect the environment variables for autoconf, automake, etc. given by
24468         the user.
24469
24470 2010-04-02  Bruno Haible  <bruno@clisp.org>
24471
24472         gnulib-tool: Provide the value of --m4-base to modules.
24473         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24474         of gl_m4_base.
24475
24476 2010-04-02  Eric Blake  <eblake@redhat.com>
24477
24478         maint.mk: fix some fallout
24479         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24480         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24481
24482 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24483
24484         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24485         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24486         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24487         (sc_cast_of_x_alloc_return_value): Likewise.
24488         (sc_cast_of_alloca_return_value): Likewise.
24489         (sc_space_tab): Likewise.
24490         (sc_prohibit_atoi_atof): Likewise.
24491         (sc_prohibit_magic_number_exit): Likewise.
24492         (sc_error_exit_success): Likewise.
24493         (sc_file_system): Likewise.
24494         (sc_prohibit_have_config_h): Likewise.
24495         (sc_require_config_h): Likewise.
24496         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24497         (sc_obsolete_symbols): Likewise.
24498         (sc_changelog): Likewise.
24499         (sc_program_name): Likewise.
24500         (sc_the_the): Likewise.
24501         (sc_trailing_blank): Likewise.
24502         (sc_two_space_separator_in_usage): Likewise.
24503         (sc_useless_cpp_parens): Likewise.
24504         (sc_GPL_version): Likewise.
24505         (sc_GFDL_version): Likewise.
24506         (sc_texinfo_acronym): Likewise.
24507         (sc_prohibit_cvs_keyword): Likewise.
24508         (sc_prohibit_stat_st_blocks): Likewise.
24509         (sc_prohibit_S_IS_definition): Likewise.
24510         (sc_redundant_const): Likewise.
24511         (sc_makefile_TAB_only_indentation): Likewise.
24512         (sc_m4_quote_check): Likewise.
24513         (sc_makefile_path_separator_check): Likewise.
24514         (sc_copyright_check): Likewise.
24515         (sc_Wundef_boolean): Likewise.
24516         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24517
24518         maint.mk: match 0 or more whitespace-before-function-call '('
24519         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24520         that have zero or two-and-more spaces between the function name
24521         and the open parenthesis.
24522         (sc_error_message_warn_fatal): Likewise.
24523         (sc_error_message_uppercase): Likewise.
24524         (sc_error_message_period): Likewise.
24525
24526 2010-03-31  Eric Blake  <eblake@redhat.com>
24527
24528         maint.mk: check for [ as well as test
24529         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24530         Based on a libvirt report by Matthias Bolte.
24531
24532         gnumakefile: don't squelch _version output
24533         * top/GNUmakefile (_version): Create one-shot dependency rather
24534         than using $(shell) when version must be regenerated.
24535         (_autoreconf): Run verbosely, by default.
24536
24537         sys_time: avoid compiler warnings
24538         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24539         unconditional, fixing regression from 2010-03-29.
24540         Reported by Simon Josefsson.
24541
24542 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24543
24544         maint.mk: s/_header_without_use/_sc_header_without_use/
24545         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24546         (sc_prohibit_assert_without_use): Use the new name.
24547         (sc_prohibit_close_stream_without_use): Likewise.
24548         (sc_prohibit_getopt_without_use): Likewise.
24549         (sc_prohibit_quotearg_without_use): Likewise.
24550         (sc_prohibit_quote_without_use): Likewise.
24551         (sc_prohibit_long_options_without_use): Likewise.
24552         (sc_prohibit_inttostr_without_use): Likewise.
24553         (sc_prohibit_ignore_value_without_use): Likewise.
24554         (sc_prohibit_error_without_use): Likewise.
24555         (sc_prohibit_xalloc_without_use): Likewise.
24556         (sc_prohibit_hash_without_use): Likewise.
24557         (sc_prohibit_hash_pjw_without_use): Likewise.
24558         (sc_prohibit_safe_read_without_use): Likewise.
24559         (sc_prohibit_argmatch_without_use): Likewise.
24560         (sc_prohibit_canonicalize_without_use): Likewise.
24561         (sc_prohibit_root_dev_ino_without_use): Likewise.
24562         (sc_prohibit_openat_without_use): Likewise.
24563         (sc_prohibit_c_ctype_without_use): Likewise.
24564         (sc_prohibit_signal_without_use): Likewise.
24565         (sc_prohibit_intprops_without_use): Likewise.
24566
24567 2010-03-30  Eric Blake  <eblake@redhat.com>
24568
24569         maint: improve module indicators
24570         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24571         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24572         columns, and avoid extra macro expansion.
24573
24574         fdopendir: work around FreeBSD bug
24575         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24576         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24577         * modules/dirent (Makefile.am): Substitute it.
24578         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24579         declaration.
24580         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24581         fix.
24582         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24583
24584 2010-03-29  Bruno Haible  <bruno@clisp.org>
24585
24586         Emit #pragma system_header after the inclusion guard, not before.
24587         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24588         guard that spans the entire file, not before. This enables an
24589         optimization in GCC's preprocessor.
24590         * lib/ctype.in.h: Likewise.
24591         * lib/dirent.in.h: Likewise.
24592         * lib/errno.in.h: Likewise.
24593         * lib/float.in.h: Likewise.
24594         * lib/getopt.in.h: Likewise.
24595         * lib/iconv.in.h: Likewise.
24596         * lib/langinfo.in.h: Likewise.
24597         * lib/locale.in.h: Likewise.
24598         * lib/math.in.h: Likewise.
24599         * lib/netdb.in.h: Likewise.
24600         * lib/netinet_in.in.h: Likewise.
24601         * lib/pty.in.h: Likewise.
24602         * lib/sched.in.h: Likewise.
24603         * lib/se-selinux.in.h: Likewise.
24604         * lib/search.in.h: Likewise.
24605         * lib/spawn.in.h: Likewise.
24606         * lib/stdarg.in.h: Likewise.
24607         * lib/stdint.in.h: Likewise.
24608         * lib/string.in.h: Likewise.
24609         * lib/strings.in.h: Likewise.
24610         * lib/sys_file.in.h: Likewise.
24611         * lib/sys_ioctl.in.h: Likewise.
24612         * lib/sys_time.in.h: Likewise.
24613         * lib/sys_times.in.h: Likewise.
24614         * lib/sys_utsname.in.h: Likewise.
24615         * lib/sys_wait.in.h: Likewise.
24616         * lib/sysexits.in.h: Likewise.
24617         * lib/wctype.in.h: Likewise.
24618
24619 2010-03-28  James Youngman  <jay@gnu.org>
24620
24621         save-cwd: don't leak a file descriptor when the caller execs.
24622         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24623         saved file descriptor.
24624         * modules/save-cwd (Depends-on): Depend on cloexec.
24625
24626 2010-03-29  Bruno Haible  <bruno@clisp.org>
24627
24628         Remove vestiges of fts-lgpl module.
24629         * lib/fts_.h: Assume GNULIB_FTS is 1.
24630         * lib/fts.c: Likewise.
24631         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24632
24633 2010-03-28  Bruno Haible  <bruno@clisp.org>
24634
24635         Fix definition of tests witness macro.
24636         * gnulib-tool (func_import): Fix definition of witness macro.
24637
24638 2010-03-28  Bruno Haible  <bruno@clisp.org>
24639
24640         Fix ioctl's protoype on glibc systems.
24641         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24642         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24643         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24644         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24645         signature. If not, arrange to replace the ioctl function.
24646         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24647         REPLACE_IOCTL.
24648         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24649         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24650         Reported by Ludovic Courtès <ludo@gnu.org>.
24651
24652 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24653
24654         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24655         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24656         made it so grep -r --include=GLOB* ... did not work.
24657
24658 2010-03-26  Jim Meyering  <meyering@redhat.com>
24659             Eric Blake  <eblake@redhat.com>
24660
24661         maint.mk: prohibit use of test's -o and -a operators
24662         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24663
24664 2010-03-28  Bruno Haible  <bruno@clisp.org>
24665
24666         Remove unused GNULIB_XYZ macro definitions.
24667         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24668         invocation.
24669
24670 2010-03-28  Bruno Haible  <bruno@clisp.org>
24671
24672         Mark privileged tests modules.
24673         * modules/idpriv-drop-tests (Status): New section.
24674         * modules/idpriv-droptemp-tests (Status): New section.
24675
24676 2010-03-28  Bruno Haible  <bruno@clisp.org>
24677
24678         Split C++ tests into separate tests modules.
24679         * modules/dirent-c++-tests: New file, extracted from
24680         modules/dirent-tests.
24681         * modules/dirent-tests: Depend on it.
24682         * modules/fcntl-h-c++-tests: New file, extracted from
24683         modules/fcntl-h-tests.
24684         * modules/fcntl-h-tests: Depend on it.
24685         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24686         * modules/glob-tests: Depend on it.
24687         * modules/iconv-h-c++-tests: New file, extracted from
24688         modules/iconv-h-tests.
24689         * modules/iconv-h-tests: Depend on it.
24690         * modules/langinfo-c++-tests: New file, extracted from
24691         modules/langinfo-tests.
24692         * modules/langinfo-tests: Depend on it.
24693         * modules/locale-c++-tests: New file, extracted from
24694         modules/locale-tests.
24695         * modules/locale-tests: Depend on it.
24696         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24697         * modules/math-tests: Depend on it.
24698         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24699         * modules/pty-tests: Depend on it.
24700         * modules/search-c++-tests: New file, extracted from
24701         modules/search-tests.
24702         * modules/search-tests: Depend on it.
24703         * modules/signal-c++-tests: New file, extracted from
24704         modules/signal-tests.
24705         * modules/signal-tests: Depend on it.
24706         * modules/spawn-c++-tests: New file, extracted from
24707         modules/spawn-tests.
24708         * modules/spawn-tests: Depend on it.
24709         * modules/stdio-c++-tests: New file, extracted from
24710         modules/stdio-tests.
24711         * modules/stdio-tests: Depend on it.
24712         * modules/stdlib-c++-tests: New file, extracted from
24713         modules/stdlib-tests.
24714         * modules/stdlib-tests: Depend on it.
24715         * modules/string-c++-tests: New file, extracted from
24716         modules/string-tests.
24717         * modules/string-tests: Depend on it.
24718         * modules/sys_ioctl-c++-tests: New file, extracted from
24719         modules/sys_ioctl-tests.
24720         * modules/sys_ioctl-tests: Depend on it.
24721         * modules/sys_select-c++-tests: New file, extracted from
24722         modules/sys_select-tests.
24723         * modules/sys_select-tests: Depend on it.
24724         * modules/sys_socket-c++-tests: New file, extracted from
24725         modules/sys_socket-tests.
24726         * modules/sys_socket-tests: Depend on it.
24727         * modules/sys_stat-c++-tests: New file, extracted from
24728         modules/sys_stat-tests.
24729         * modules/sys_stat-tests: Depend on it.
24730         * modules/sys_time-c++-tests: New file, extracted from
24731         modules/sys_time-tests.
24732         * modules/sys_time-tests: Depend on it.
24733         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24734         * modules/time-tests: Depend on it.
24735         * modules/unistd-c++-tests: New file, extracted from
24736         modules/unistd-tests.
24737         * modules/unistd-tests: Depend on it.
24738         * modules/wchar-c++-tests: New file, extracted from
24739         modules/wchar-tests.
24740         * modules/wchar-tests: Depend on it.
24741         * modules/wctype-c++-tests: New file, extracted from
24742         modules/wctype-tests.
24743         * modules/wctype-tests: Depend on it.
24744         Reported by Simon Josefsson.
24745
24746 2010-03-28  Bruno Haible  <bruno@clisp.org>
24747
24748         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24749         * gnulib-tool (func_exists_module): New function, extracted from
24750         func_verify_module.
24751         (func_verify_module): Use it.
24752         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24753         'foo' only if 'foo' exists.
24754         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24755         module.
24756
24757 2010-03-28  Bruno Haible  <bruno@clisp.org>
24758
24759         gnulib-tool: Add support for special categories of tests.
24760         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24761         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24762         (func_usage): Document them.
24763         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24764         inc_unportable_tests, inc_all_tests): New variables.
24765         (func_acceptable): Consider these variables.
24766         (func_modules_transitive_closure): Make it work when the 'Status' field
24767         consists of multiple words.
24768         (func_import): Store and restore the values of inc_cxx_tests,
24769         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24770         inc_all_tests in gnulib-comp.m4.
24771         (func_create_testdir): Set inc_all_tests to true.
24772         * doc/gnulib.texi (Extra tests modules): New section.
24773         Suggested by Jim Meyering.
24774
24775 2010-03-28  Bruno Haible  <bruno@clisp.org>
24776
24777         ansi-c++-opt: Allow turning off the C++ build by default.
24778         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24779         gl_CXX_CHOICE_DEFAULT_NO is defined.
24780         Requested by Eric Blake.
24781
24782 2010-03-28  Bruno Haible  <bruno@clisp.org>
24783
24784         unistd: Avoid #define replacements in C++ mode.
24785         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24786         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24787         setsockopt, shutdown, select): In C++, attach a warning to the function
24788         if possible, rather than #defining the symbol to a dysfunctional alias.
24789         Reported by John W. Eaton <jwe@gnu.org>.
24790
24791 2010-03-28  Bruno Haible  <bruno@clisp.org>
24792
24793         Fix link errors on mingw.
24794         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24795         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24796         $(LIBSOCKET).
24797         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24798         $(LIBSOCKET).
24799
24800 2010-03-28  Bruno Haible  <bruno@clisp.org>
24801             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24802
24803         lib-ignore: Determine different options for different compilers.
24804         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24805         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24806         Add comments.
24807         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24808         * NEWS: Mention the change.
24809
24810 2010-03-27  Bruno Haible  <bruno@clisp.org>
24811
24812         Remove unused GNULIB_XYZ macro definitions.
24813         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24814         * modules/fseek (configure.ac): Likewise.
24815         * modules/ioctl (configure.ac): Likewise.
24816         * modules/open (configure.ac): Likewise.
24817         * modules/stdlib-safer (configure.ac): Likewise.
24818
24819 2010-03-27  Bruno Haible  <bruno@clisp.org>
24820
24821         Add a remark about certain modules.
24822         * modules/malloc (Comment): New section.
24823         * modules/realloc (Comment): Likewise.
24824         * modules/sigpipe (Comment): Likewise.
24825
24826 2010-03-27  Bruno Haible  <bruno@clisp.org>
24827
24828         Resolve conflict between the two kinds of module indicators.
24829         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24830         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24831         * modules/canonicalize (configure.ac): Invoke
24832         gl_MODULE_INDICATOR_FOR_TESTS.
24833         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24834         GNULIB_XYZ.
24835         * tests/test-dirent-c++.cc: Likewise.
24836         * tests/test-dirent-safer.c: Likewise.
24837         * tests/test-dup2.c: Likewise.
24838         * tests/test-fchdir.c: Likewise.
24839         * tests/test-fcntl-h-c++.cc: Likewise.
24840         * tests/test-getopt.c: Likewise.
24841         * tests/test-getopt.h: Likewise.
24842         * tests/test-langinfo-c++.cc: Likewise.
24843         * tests/test-locale-c++.cc: Likewise.
24844         * tests/test-math-c++.cc: Likewise.
24845         * tests/test-pty-c++.cc: Likewise.
24846         * tests/test-search-c++.cc: Likewise.
24847         * tests/test-signal-c++.cc: Likewise.
24848         * tests/test-spawn-c++.cc: Likewise.
24849         * tests/test-stdio-c++.cc: Likewise.
24850         * tests/test-stdlib-c++.cc: Likewise.
24851         * tests/test-string-c++.cc: Likewise.
24852         * tests/test-sys_ioctl-c++.cc: Likewise.
24853         * tests/test-sys_select-c++.cc: Likewise.
24854         * tests/test-sys_socket-c++.cc: Likewise.
24855         * tests/test-sys_stat-c++.cc: Likewise.
24856         * tests/test-sys_time-c++.cc: Likewise.
24857         * tests/test-time-c++.cc: Likewise.
24858         * tests/test-unistd-c++.cc: Likewise.
24859         * tests/test-wchar-c++.cc: Likewise.
24860         * tests/uninorm/test-u8-nfc.c: Likewise.
24861         * tests/uninorm/test-u8-nfd.c: Likewise.
24862         * tests/uninorm/test-u8-nfkc.c: Likewise.
24863         * tests/uninorm/test-u8-nfkd.c: Likewise.
24864         * tests/uninorm/test-u16-nfc.c: Likewise.
24865         * tests/uninorm/test-u16-nfd.c: Likewise.
24866         * tests/uninorm/test-u16-nfkc.c: Likewise.
24867         * tests/uninorm/test-u16-nfkd.c: Likewise.
24868         * tests/uninorm/test-u32-nfc.c: Likewise.
24869         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24870         * tests/uninorm/test-u32-nfd.c: Likewise.
24871         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24872         * tests/uninorm/test-u32-nfkc.c: Likewise.
24873         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24874         * tests/uninorm/test-u32-nfkd.c: Likewise.
24875         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24876         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24877
24878 2010-03-27  Bruno Haible  <bruno@clisp.org>
24879
24880         Distinguish two kinds of module indicators.
24881         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24882         gl_MODULE_INDICATOR.
24883         (gl_MODULE_INDICATOR): New macro.
24884         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24885         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24886         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24887         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24888         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24889         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24890         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24891         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24892         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24893         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24894         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24895         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24896         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24897         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24898         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24899         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24900         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24901         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24902         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24903         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24904         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24905         * modules/cloexec (configure.ac): Likewise.
24906         * modules/getopt-gnu (configure.ac): Likewise.
24907         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24908         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24909         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24910         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24911
24912 2010-03-27  Bruno Haible  <bruno@clisp.org>
24913
24914         New module description field 'Comment'.
24915         * gnulib-tool: New option --extract-comment.
24916         (func_usage): Document it.
24917         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24918         (func_get_comment): New function.
24919         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24920
24921 2010-03-27  Bruno Haible  <bruno@clisp.org>
24922
24923         Addendum to 2010-02-07 commit.
24924         * gnulib-tool (func_usage): Document --extract-applicability option.
24925
24926 2010-03-27  Bruno Haible  <bruno@clisp.org>
24927
24928         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24929         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24930         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24931         rather than link errors.
24932
24933 2010-03-27  Bruno Haible  <bruno@clisp.org>
24934
24935         Avoid side effects from tests-related modules on the compilation of lib.
24936         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24937         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24938         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24939         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24940         macro.
24941         (func_import): Define a witness macro. Assign it a value that depends
24942         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24943         tests-related modules.
24944         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24945         Reported by Jim Meyering.
24946
24947 2010-03-27  Bruno Haible  <bruno@clisp.org>
24948
24949         Factorize common .m4 code.
24950         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24951         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24952         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24953         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24954         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24955         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24956         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24957         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24958         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24959         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24960         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24961         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24962         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24963         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24964         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24965         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24966         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24967         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24969         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24970         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24971         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24972         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24973         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24974         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24975         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24976         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24977         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24978         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24979         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24980         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24981         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24982
24983 2010-03-27  Bruno Haible  <bruno@clisp.org>
24984
24985         Fix a compilation error on Cygwin with g++ >= 4.3.
24986         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24987         if it is undefined or if we alias it to chmod.
24988         (lstat): Don't warn about the use of this function if it is undefined
24989         or if we alias it to stat.
24990         Reported by Simon Josefsson.
24991
24992 2010-03-27  Bruno Haible  <bruno@clisp.org>
24993
24994         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24995         * modules/getlogin (configure.ac): Update.
24996
24997         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24998         * modules/getlogin_r (configure.ac): Update.
24999
25000         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25001         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25002         * modules/inet_ntop (configure.ac): Update.
25003
25004         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25005         * modules/inet_pton (configure.ac): Update.
25006
25007         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25008         * modules/mbslen (configure.ac): Update.
25009
25010         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25011         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25012         * modules/forkpty (configure.ac): Update.
25013         * modules/openpty (configure.ac): Update.
25014
25015 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25016
25017         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25018         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25019
25020 2010-03-25  Eric Blake  <eblake@redhat.com>
25021
25022         maint: use pragma consistently across replacement headers
25023         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25024         * lib/dirent.in.h (system_header): Likewise.
25025         * lib/errno.in.h (system_header): Likewise.
25026         * lib/float.in.h (system_header): Likewise.
25027         * lib/getopt.in.h (system_header): Likewise.
25028         * lib/iconv.in.h (system_header): Likewise.
25029         * lib/inttypes.in.h (system_header): Likewise.
25030         * lib/langinfo.in.h (system_header): Likewise.
25031         * lib/locale.in.h (system_header): Likewise.
25032         * lib/math.in.h (system_header): Likewise.
25033         * lib/netdb.in.h (system_header): Likewise.
25034         * lib/netinet_in.in.h (system_header): Likewise.
25035         * lib/pty.in.h (system_header): Likewise.
25036         * lib/sched.in.h (system_header): Likewise.
25037         * lib/se-selinux.in.h (system_header): Likewise.
25038         * lib/search.in.h (system_header): Likewise.
25039         * lib/spawn.in.h (system_header): Likewise.
25040         * lib/stdarg.in.h (system_header): Likewise.
25041         * lib/stdint.in.h (system_header): Likewise.
25042         * lib/string.in.h (system_header): Likewise.
25043         * lib/strings.in.h (system_header): Likewise.
25044         * lib/sys_file.in.h (system_header): Likewise.
25045         * lib/sys_ioctl.in.h (system_header): Likewise.
25046         * lib/sys_socket.in.h (system_header): Likewise.
25047         * lib/sys_times.in.h (system_header): Likewise.
25048         * lib/sys_utsname.in.h (system_header): Likewise.
25049         * lib/sys_wait.in.h (system_header): Likewise.
25050         * lib/sysexits.in.h (system_header): Likewise.
25051         * lib/unistd.in.h (system_header): Likewise.
25052         * lib/wctype.in.h (system_header): Likewise.
25053
25054         arpa/inet: fix mingw compilation warning
25055         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25056         Reported by Matthew Bolte.
25057
25058 2010-03-25  Bruno Haible  <bruno@clisp.org>
25059
25060         Avoid collision between gnulib wrapper and libintl wrapper.
25061         * lib/printf.c (printf): Don't define if a printf wrapper is already
25062         defined in intl/printf.c.
25063         Reported by Michel Boaventura <michel@michelboaventura.com>.
25064
25065 2010-03-25  Bruno Haible  <bruno@clisp.org>
25066
25067         Use ANSI C.
25068         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25069
25070 2010-03-25  Bruno Haible  <bruno@clisp.org>
25071
25072         Minor formatting changes.
25073         * lib/acosl.c: Insert space before function argument list.
25074         * lib/argz.c: Likewise.
25075         * lib/asinl.c: Likewise.
25076         * lib/expl.c: Likewise.
25077         * lib/gen-uni-tables.c: Likewise.
25078         * lib/gettext.h: Likewise.
25079         * lib/glthread/lock.h: Likewise.
25080         * lib/tanl.c: Likewise.
25081         * lib/uniname/uniname.c: Likewise.
25082         * tests/test-idpriv-drop.c: Likewise.
25083         * tests/test-idpriv-droptemp.c: Likewise.
25084         * tests/test-lock.c: Likewise.
25085         * tests/test-tls.c: Likewise.
25086         * lib/argp-help.c: Insert space before function-like macro argument
25087         list.
25088         * lib/memcmp.c: Likewise.
25089         * tests/test-base64.c: Likewise.
25090         * lib/localename.c: Insert space before sizeof's argument list.
25091         * lib/safe-alloc.h: Likewise.
25092         * lib/file-set.h: Insert space before macro argument list.
25093         * tests/test-argp.c: Likewise.
25094         * lib/argp-namefrob.h: Insert space before function parameter list.
25095         * lib/getaddrinfo.c: Likewise.
25096         * lib/netdb.in.h: Likewise.
25097         * lib/parse-duration.h: Likewise.
25098         * lib/parse-duration.c: Likewise.
25099         * lib/poll.c: Likewise.
25100         * lib/select.c: Likewise.
25101         * lib/trim.h: Likewise.
25102         * tests/test-usleep.c: Likewise.
25103         * lib/ldexpl.c: Insert space before function parameter list and before
25104         function argument list.
25105         * lib/logl.c: Likewise.
25106         * lib/sqrtl.c: Likewise.
25107         * lib/trim.c: Likewise.
25108         * lib/cosl.c: Use GNU style indentation. Insert space before function
25109         argument list.
25110         * lib/sinl.c: Likewise.
25111         * lib/tsearch.c: Insert space after 'for'.
25112         Reported by Jim Meyering.
25113
25114 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25115
25116         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25117         config header before grepping, as it's not present before
25118         autoreconf/configure are run.  Reported by Simon Josefsson.
25119
25120 2010-03-23  Bruno Haible  <bruno@clisp.org>
25121
25122         pt_chown: Make it work with automake < 1.11.
25123         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25124         Reported by Simon Josefsson.
25125
25126 2010-03-23  Bruno Haible  <bruno@clisp.org>
25127
25128         pt_chown: Don't depend on GPLed modules.
25129         * lib/pt_chown.c: Don't include idpriv.h.
25130         (main): Don't drop privileges.
25131         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25132         Reported by Simon Josefsson.
25133
25134 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25135
25136         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25137         suggestions from karl@freefriends.org (Karl Berry).
25138
25139 2010-03-22  Eric Blake  <eblake@redhat.com>
25140
25141         gethostname: further tweaks
25142         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25143         are overriding gethostname.
25144         Suggested by Bruno Haible.
25145
25146 2010-03-21  Bruno Haible  <bruno@clisp.org>
25147
25148         Fix comments.
25149         * lib/forkpty.c (rpl_forkpty): Fix comment.
25150         * lib/openpty.c (rpl_openpty): Likewise.
25151         Reported by Eric Blake.
25152
25153 2010-03-22  Eric Blake  <eblake@redhat.com>
25154
25155         gethostname: fix build on mingw
25156         * lib/unistd.in.h (includes): Work around fact that mingw
25157         <winsock2.h> re-includes <unistd.h>, by avoiding any
25158         redeclarations if we are being included by <winsock2.h>.
25159         Reported by Matthias Bolte.
25160
25161 2010-03-21  Bruno Haible  <bruno@clisp.org>
25162
25163         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25164         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25165         modifications.
25166         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25167         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25168         provide the replacement.
25169         * modules/forkpty (Depends-on): Add openpty, login_tty.
25170         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25171         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25172         * doc/glibc-functions/forkpty.texi: More supported platforms.
25173         * config/srclist.txt: Add forkpty.c (commented).
25174
25175 2010-03-21  Bruno Haible  <bruno@clisp.org>
25176
25177         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25178         (Makefile.am): Verify that PTY_LIB is defined.
25179
25180         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25181
25182 2010-03-21  Bruno Haible  <bruno@clisp.org>
25183
25184         Tests for module 'login_tty'.
25185         * modules/login_tty-tests: New file.
25186         * tests/test-login_tty.c: New file.
25187
25188         New module 'login_tty'.
25189         * lib/login_tty.c: New file.
25190         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25191         * modules/login_tty: New file.
25192         * doc/glibc-functions/login_tty.texi: Mention the new module.
25193
25194 2010-03-21  Bruno Haible  <bruno@clisp.org>
25195
25196         login_tty: Documentation.
25197         * doc/glibc-functions/login_tty.texi: New file.
25198         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25199
25200 2010-03-21  Bruno Haible  <bruno@clisp.org>
25201
25202         pty: Consistent macro naming.
25203         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25204         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25205         * modules/pty (configure.ac): Update.
25206
25207 2010-03-21  Bruno Haible  <bruno@clisp.org>
25208
25209         Tests for openpty: Make stricter.
25210         * tests/test-openpty.c (main): Add test of canonical processing and
25211         erase.
25212         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25213
25214         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25215         * lib/openpty.c (openpty): New replacement function.
25216         * lib/pty.in.h: Include <termios.h>.
25217         (openpty): Update declaration. Add comments.
25218         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25219         is not declared, arrange to provide the replacement. Check for _getpty
25220         and posix_openpt.
25221         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25222         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25223         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25224         * modules/pty-tests (test_pty_c___LDADD): New variable.
25225         * doc/glibc-functions/openpty.texi: More supported platforms.
25226
25227 2010-03-21  Bruno Haible  <bruno@clisp.org>
25228
25229         setenv: Tweaks.
25230         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25231         the test program.
25232         * doc/posix-functions/setenv.texi: Update platforms list.
25233
25234 2010-03-21  Bruno Haible  <bruno@clisp.org>
25235
25236         New module 'unlockpt'.
25237         * lib/unlockpt.c: New file, from glibc with modifications.
25238         * m4/unlockpt.m4: New file.
25239         * modules/unlockpt: New file.
25240         * lib/stdlib.in.h (unlockpt): New declaration.
25241         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25242         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25243         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25244         HAVE_UNLOCKPT.
25245         * doc/posix-functions/unlockpt.texi: Mention the new module.
25246         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25247         * config/srclist.txt: Add unlockpt.c (commented).
25248
25249 2010-03-21  Jim Meyering  <meyering@redhat.com>
25250
25251         maint.mk: prohibit inclusion of "intprops.h" without use
25252         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25253
25254 2010-03-21  Bruno Haible  <bruno@clisp.org>
25255
25256         New module 'grantpt'.
25257         * lib/grantpt.c: New file, from glibc with modifications.
25258         * m4/grantpt.m4: New file.
25259         * modules/grantpt: New file.
25260         * lib/stdlib.in.h (grantpt): New declaration.
25261         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25262         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25263         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25264         HAVE_GRANTPT.
25265         * doc/posix-functions/grantpt.texi: Mention the new module.
25266         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25267         * config/srclist.txt: Add grantpt.c (commented).
25268
25269 2010-03-21  Bruno Haible  <bruno@clisp.org>
25270
25271         New module 'pt_chown'.
25272         * lib/pt_chown.c: New file, from glibc with modifications.
25273         * lib/pty-private.h: New file, from glibc with modifications.
25274         * modules/pt_chown: New file.
25275         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25276
25277 2010-03-21  Bruno Haible  <bruno@clisp.org>
25278
25279         Tests for module 'ptsname'.
25280         * modules/ptsname-tests: New file.
25281         * tests/test-ptsname.c: New file.
25282
25283         New module 'ptsname'.
25284         * lib/ptsname.c: New file, from glibc with modifications.
25285         * m4/ptsname.m4: New file.
25286         * modules/ptsname: New file.
25287         * lib/stdlib.in.h (ptsname): New declaration.
25288         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25289         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25290         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25291         HAVE_PTSNAME.
25292         * doc/posix-functions/ptsname.texi: Mention the new module.
25293         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25294         * config/srclist.txt: Add ptsname.c (commented).
25295
25296 2010-03-21  Bruno Haible  <bruno@clisp.org>
25297
25298         Tests for module 'ttyname_r'.
25299         * modules/ttyname_r-tests: New file.
25300         * tests/test-ttyname_r.c: New file.
25301
25302         New module 'ttyname_r'.
25303         * lib/ttyname_r.c: New file.
25304         * m4/ttyname_r.m4: New file.
25305         * modules/ttyname_r: New file.
25306         * lib/unistd.in.h (ttyname_r): New declaration.
25307         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25308         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25309         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25310         HAVE_TTYNAME_R.
25311         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25312         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25313
25314 2010-03-20  Bruno Haible  <bruno@clisp.org>
25315
25316         signal: Undefine macro definitions in C++ mode.
25317         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25318         sigfillset): Undefine macro definitions from the system header in C++
25319         mode.
25320         Reported by John W. Eaton <jwe@gnu.org>.
25321
25322 2010-03-20  Bruno Haible  <bruno@clisp.org>
25323
25324         Ensure no #include statements inside extern "C" { ... }.
25325         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25326         contain #include statements.
25327         * lib/time.in.h: Likewise.
25328
25329 2010-03-20  Bruno Haible  <bruno@clisp.org>
25330
25331         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25332         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25333         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25334         Reported by John W. Eaton <jwe@gnu.org>.
25335
25336 2010-03-20  Bruno Haible  <bruno@clisp.org>
25337
25338         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25339         Reported by Jim Meyering.
25340
25341 2010-03-20  Bruno Haible  <bruno@clisp.org>
25342
25343         pipe: Set errno upon failure.
25344         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25345         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25346         errno value in error message.
25347
25348 2010-03-20  Bruno Haible  <bruno@clisp.org>
25349             Jim Meyering  <meyering@redhat.com>
25350
25351         lchown: Avoid "unused variable" warning.
25352         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25353
25354 2010-03-20  Bruno Haible  <bruno@clisp.org>
25355
25356         Work around unlink() bug on MacOS X 10.5.6.
25357         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25358         attempting to unlink a parent directory.
25359         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25360         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25361         activate for the replacement function.
25362         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25363
25364 2010-03-20  Bruno Haible  <bruno@clisp.org>
25365
25366         Fix link errors on Solaris 8.
25367         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25368         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25369
25370 2010-03-19  Jim Meyering  <meyering@redhat.com>
25371
25372         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25373         The _LIBC implementation of build_range_exp correctly honors the
25374         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25375         However, the non-_LIBC implementation would ignore that syntax-bit
25376         flag and return REG_ERANGE unconditionally.
25377         This change makes it honor that flag.
25378         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25379         Make two pointer parameters "const".
25380         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25381         (parse_bracket_exp): Update caller.
25382
25383         regex.m4: correct the reversed range endpoint ([b-a]) test
25384         * m4/regex.m4: When requiring that [b-a] evoke failure,
25385         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25386         test pass once again for x86-based systems.
25387
25388 2010-03-19  Bruno Haible  <bruno@clisp.org>
25389
25390         scandir: Fix link error on Solaris 8.
25391         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25392         macros.
25393
25394 2010-03-19  Bruno Haible  <bruno@clisp.org>
25395
25396         getusershell: Fix documentation.
25397         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25398         module.
25399         * doc/glibc-functions/setusershell.texi: Likewise.
25400
25401         getusershell: Provide declaration, missing on Solaris 9.
25402         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25403         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25404         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25405         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25407         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25408         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25409         HAVE_GETUSERSHELL.
25410         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25411
25412 2010-03-19  Bruno Haible  <bruno@clisp.org>
25413
25414         wctype: Provide iswblank function.
25415         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25416         exists and is fine.
25417         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25418         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25419         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25420         * doc/posix-functions/iswblank.texi: Update.
25421
25422 2010-03-19  Bruno Haible  <bruno@clisp.org>
25423
25424         Tests of module 'pty' in C++ mode.
25425         * modules/pty-tests: New file.
25426         * tests/test-pty-c++.cc: New file.
25427         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25428
25429 2010-03-19  Eric Blake  <eblake@redhat.com>
25430
25431         logb: fix documentation
25432         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25433         1.5 declaration bug.
25434
25435         forkpty, openpty: prefer glibc's const-safe prototype
25436         * lib/forkpty.c (rpl_forkpty): New file.
25437         * lib/openpty.c (rpl_openpty): Likewise.
25438         * modules/forkpty (Files): Distribute it.
25439         * modules/openpty (Files): Likewise.
25440         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25441         check...
25442         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25443         replacement for for non-const BSD signature.
25444         * modules/pty (Makefile.am): Substitute witnesses.
25445         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25446         * tests/test-forkpty.c: Update signature check.
25447         * tests/test-openpty.c: Likewise.
25448         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25449         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25450
25451         forkpty, openpty: split functions into new modules
25452         * modules/pty (Makefile.am): Substitute new witnesses.
25453         (Libraries): Move library detection...
25454         * modules/forkpty: ...into new module.
25455         * modules/openpty: Another new module.
25456         * modules/pty-tests: Rename and split...
25457         * modules/forkpty-tests: ...to this...
25458         * modules/openpty-tests: ...and this.
25459         * tests/test-pty.c: Rename and split...
25460         * tests/test-forkpty.c: ...to this...
25461         * tests/test-openpty.c: ...and this.
25462         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25463         (gl_PTY): Split library searching...
25464         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25465         (gl_FORKPTY, gl_OPENPTY): New macros.
25466         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25467         * NEWS: Mention the split.
25468         * MODULES.html.sh (Misc): Document the modules.
25469         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25470         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25471
25472         pty: improve replacement header
25473         * lib/pty.in.h: New file.
25474         * modules/pty (Files): Ship it.
25475         (Makefile.am): Always build replacement.
25476         * m4/pty.m4: Rename...
25477         * m4/pty_h.m4: ...to this.
25478         (gl_PTY): Modernize setting of witness macros; update check of
25479         forkpty to take proper advantage of cache.
25480         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25481
25482         getopt: avoid compiler warning
25483         * lib/getopt.c (attribute_hidden): Remove unused macro.
25484
25485 2010-03-18  Bruno Haible  <bruno@clisp.org>
25486
25487         Fix link errors on Solaris 8.
25488         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25489         * modules/search-tests (test_search_c___LDADD): Likewise.
25490         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25491         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25492         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25493         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25494         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25495         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25496         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25497
25498 2010-03-18  Bruno Haible  <bruno@clisp.org>
25499
25500         Fix bug introduced on 2010-03-14.
25501         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25502         (gl_SPAWN_H): Require it.
25503         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25504         Reported by Simon Josefsson.
25505
25506 2010-03-18  Bruno Haible  <bruno@clisp.org>
25507
25508         Fix typo introduced on 2009-12-31.
25509         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25510         posix_spawn_file_actions_adddup2.
25511
25512 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25513         and Eric Blake  <eblake@redhat.com>
25514
25515         test-vc-list-files-git: make more robust
25516         * tests/test-vc-list-files-git.sh: Unset problematic environment
25517         variables.  Chain commands together.
25518
25519 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25520
25521         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25522         `AC_CHECK_DECL' invocation.
25523
25524 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25525
25526         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25527         appears before executable statements. Suggested by Petr Sumbera
25528         <Petr.Sumbera@Sun.COM>.
25529
25530 2010-03-14  Bruno Haible  <bruno@clisp.org>
25531
25532         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25533         portability problems. Instead use a simpler test.
25534         (main): Check that invalid arguments are rejected only on Linux.
25535
25536 2010-03-14  Bruno Haible  <bruno@clisp.org>
25537
25538         Fix bug introduced on 2009-12-31.
25539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25540         gl_PREREQ_SYS_H_WINSOCK2 always.
25541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25542         SYS_SOCKET_H variable.
25543         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25544         Update comments.
25545         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25547         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25548         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25549         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25550
25551 2010-03-14  Bruno Haible  <bruno@clisp.org>
25552
25553         Fix values returned by sinl, cosl.
25554         * lib/trigl.h: Add specification comments.
25555         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25556         that combines the values from the precomputed table with the values of
25557         the Chebyshev polynomials.
25558
25559 2010-03-14  Bruno Haible  <bruno@clisp.org>
25560
25561         Fix compilation error when modules 'posix_spawn[p]' are not used.
25562         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25563         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25564
25565 2010-03-14  Bruno Haible  <bruno@clisp.org>
25566
25567         Fix compilation error on mingw when module 'time_r' is not used.
25568         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25569         is 1.
25570         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25571         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25572         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25573         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25574
25575 2010-03-14  Bruno Haible  <bruno@clisp.org>
25576
25577         Fix compilation error with Sun C.
25578         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25579         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25580         instead of GCC specific ULONG_LONG_MAX.
25581         * lib/xstrtoll.c: Likewise.
25582         * lib/xstrtoull.c: Likewise.
25583
25584 2010-03-13  Bruno Haible  <bruno@clisp.org>
25585
25586         Allow the user to disable C++ code and tests.
25587         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25588         (gl_PROG_ANSI_CXX): Require it.
25589
25590 2010-03-13  Bruno Haible  <bruno@clisp.org>
25591
25592         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25593         cases.
25594
25595 2010-03-13  Bruno Haible  <bruno@clisp.org>
25596
25597         Test that gnulib does not break the standard C++ headers.
25598         * tests/test-locale-c++2.cc: New file.
25599         * modules/locale-tests (Files): Add it.
25600         (Makefile.am): Compile it for test-locale-c++.
25601         * tests/test-math-c++2.cc: New file.
25602         * modules/math-tests (Files): Add it.
25603         (Makefile.am): Compile it for test-math-c++.
25604         * tests/test-signal-c++2.cc: New file.
25605         * modules/signal-tests (Files): Add it.
25606         (Makefile.am): Compile it for test-signal-c++.
25607         * tests/test-stdio-c++2.cc: New file.
25608         * modules/stdio-tests (Files): Add it.
25609         (Makefile.am): Compile it for test-stdio-c++.
25610         * tests/test-stdlib-c++2.cc: New file.
25611         * modules/stdlib-tests (Files): Add it.
25612         (Makefile.am): Compile it for test-stdlib-c++.
25613         * tests/test-string-c++2.cc: New file.
25614         * modules/string-tests (Files): Add it.
25615         (Makefile.am): Compile it for test-string-c++.
25616         * tests/test-time-c++2.cc: New file.
25617         * modules/time-tests (Files): Add it.
25618         (Makefile.am): Compile it for test-time-c++.
25619         Reported by John W. Eaton <jwe@gnu.org>.
25620
25621 2010-03-13  Bruno Haible  <bruno@clisp.org>
25622
25623         * gnulib-tool (func_usage): Clarify which options are available for
25624         --create-testdir and --create-megatestdir.
25625
25626 2010-03-13  Bruno Haible  <bruno@clisp.org>
25627
25628         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25629         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25630         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25631         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25632         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25633         when appropriate.
25634         Reported by Jim Meyering.
25635
25636 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25637
25638         * gnulib-tool (func_import): Explain origin of code.
25639
25640 2010-03-12  Bruno Haible  <bruno@clisp.org>
25641
25642         Fix problem with automake's definition of CXXLINK.
25643         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25644         Reported by Simon Josefsson and Ludovic Courtès.
25645
25646 2010-03-12  Bruno Haible  <bruno@clisp.org>
25647
25648         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25649         stable releases.
25650
25651 2010-03-11  Bruno Haible  <bruno@clisp.org>
25652
25653         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25654         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25655         whether the system provides one variant or multiple variants of the
25656         function.
25657         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25658         C++ compilers.
25659         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25660         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25661         Reported by Jim Meyering.
25662
25663 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25664
25665         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25666
25667 2010-03-08  Bruno Haible  <bruno@clisp.org>
25668
25669         gnulib-tool: Add support for --libtool in --create-testdir.
25670         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25671         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25672
25673 2010-03-08  Eric Blake  <eblake@redhat.com>
25674
25675         gnulib-tool.texi: mention possibility of git submodule
25676         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25677         submodules.
25678         * doc/.gitignore: Ignore another generated file.
25679
25680 2010-03-08  Karl Berry  <karl@gnu.org>
25681
25682         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25683         of committing gnulib files while skipping others.
25684
25685 2010-03-07  Bruno Haible  <bruno@clisp.org>
25686
25687         Tests of module 'wctype' in C++ mode.
25688         * tests/test-wctype-c++.cc: New file.
25689         * modules/wctype-tests (Files): Add it and tests/signature.h.
25690         (Depends-on): Add ansi-c++-opt.
25691         (Makefile.am): Arrange to compile and run test-wctype-c++.
25692
25693         Tests of module 'wchar' in C++ mode.
25694         * tests/test-wchar-c++.cc: New file.
25695         * modules/wchar-tests (Files): Add it and tests/signature.h.
25696         (Depends-on): Add ansi-c++-opt.
25697         (Makefile.am): Arrange to compile and run test-wchar-c++.
25698         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25699         gl_MODULE_INDICATOR.
25700
25701         Tests of module 'unistd' in C++ mode.
25702         * tests/test-unistd-c++.cc: New file.
25703         * modules/unistd-tests (Files): Add it and tests/signature.h.
25704         (Depends-on): Add ansi-c++-opt.
25705         (Makefile.am): Arrange to compile and run test-unistd-c++.
25706         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25707         gl_MODULE_INDICATOR.
25708
25709         Tests of module 'time' in C++ mode.
25710         * tests/test-time-c++.cc: New file.
25711         * modules/time-tests (Files): Add it and tests/signature.h.
25712         (Depends-on): Add ansi-c++-opt.
25713         (Makefile.am): Arrange to compile and run test-time-c++.
25714         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25715
25716         Tests of module 'sys_time' in C++ mode.
25717         * tests/test-sys_time-c++.cc: New file.
25718         * modules/sys_time-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_time-c++.
25721         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25722         gl_MODULE_INDICATOR.
25723
25724         Tests of module 'sys_stat' in C++ mode.
25725         * tests/test-sys_stat-c++.cc: New file.
25726         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25727         (Depends-on): Add ansi-c++-opt.
25728         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25729         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25730         gl_MODULE_INDICATOR.
25731
25732         Tests of module 'sys_socket' in C++ mode.
25733         * tests/test-sys_socket-c++.cc: New file.
25734         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25735         (Depends-on): Add ansi-c++-opt.
25736         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25737         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25738         gl_MODULE_INDICATOR.
25739
25740         Tests of module 'sys_select' in C++ mode.
25741         * tests/test-sys_select-c++.cc: New file.
25742         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25743         (Depends-on): Add ansi-c++-opt.
25744         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25745         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25746         gl_MODULE_INDICATOR.
25747
25748         Tests of module 'sys_ioctl' in C++ mode.
25749         * tests/test-sys_ioctl-c++.cc: New file.
25750         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25751         (Depends-on): Add ansi-c++-opt.
25752         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25753         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25754         gl_MODULE_INDICATOR.
25755
25756         Tests of module 'string' in C++ mode.
25757         * tests/test-string-c++.cc: New file.
25758         * modules/string-tests (Files): Add it and tests/signature.h.
25759         (Depends-on): Add ansi-c++-opt.
25760         (Makefile.am): Arrange to compile and run test-string-c++.
25761         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25762         gl_MODULE_INDICATOR.
25763
25764         Tests of module 'stdlib' in C++ mode.
25765         * tests/test-stdlib-c++.cc: New file.
25766         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25767         (Depends-on): Add ansi-c++-opt.
25768         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25769         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25770         gl_MODULE_INDICATOR.
25771
25772         Tests of module 'stdio' in C++ mode.
25773         * tests/test-stdio-c++.cc: New file.
25774         * modules/stdio-tests (Files): Add it and tests/signature.h.
25775         (Depends-on): Add ansi-c++-opt.
25776         (Makefile.am): Arrange to compile and run test-stdio-c++.
25777         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25778         gl_MODULE_INDICATOR.
25779
25780         Tests of module 'spawn' in C++ mode.
25781         * tests/test-spawn-c++.cc: New file.
25782         * modules/spawn-tests (Files): Add it and tests/signature.h.
25783         (Depends-on): Add ansi-c++-opt.
25784         (Makefile.am): Arrange to compile and run test-spawn-c++.
25785         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25786         gl_MODULE_INDICATOR.
25787
25788         Tests of module 'signal' in C++ mode.
25789         * tests/test-signal-c++.cc: New file.
25790         * modules/signal-tests (Files): Add it and tests/signature.h.
25791         (Depends-on): Add ansi-c++-opt.
25792         (Makefile.am): Arrange to compile and run test-signal-c++.
25793         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25794         gl_MODULE_INDICATOR.
25795
25796         Tests of module 'search' in C++ mode.
25797         * tests/test-search-c++.cc: New file.
25798         * modules/search-tests (Files): Add it and tests/signature.h.
25799         (Depends-on): Add ansi-c++-opt.
25800         (Makefile.am): Arrange to compile and run test-search-c++.
25801         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25802         gl_MODULE_INDICATOR.
25803
25804         Tests of module 'math' in C++ mode.
25805         * tests/test-math-c++.cc: New file.
25806         * modules/math-tests (Files): Add it and tests/signature.h.
25807         (Depends-on): Add ansi-c++-opt.
25808         (Makefile.am): Arrange to compile and run test-math-c++.
25809         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25810
25811         Tests of module 'locale' in C++ mode.
25812         * tests/test-locale-c++.cc: New file.
25813         * modules/locale-tests (Files): Add it and tests/signature.h.
25814         (Depends-on): Add ansi-c++-opt.
25815         (Makefile.am): Arrange to compile and run test-locale-c++.
25816         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25817         gl_MODULE_INDICATOR.
25818
25819         Tests of module 'langinfo' in C++ mode.
25820         * tests/test-langinfo-c++.cc: New file.
25821         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25822         (Depends-on): Add ansi-c++-opt.
25823         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25824         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25825         gl_MODULE_INDICATOR.
25826
25827         Tests of module 'iconv-h' in C++ mode.
25828         * tests/test-iconv-h-c++.cc: New file.
25829         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25830         (Depends-on): Add ansi-c++-opt.
25831         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25832
25833         Tests of module 'glob' in C++ mode.
25834         * tests/test-glob-c++.cc: New file.
25835         * modules/glob-tests (Files): Add it.
25836         (Depends-on): Add ansi-c++-opt.
25837         (Makefile.am): Arrange to compile and run test-glob-c++.
25838
25839         Tests of module 'fcntl-h' in C++ mode.
25840         * tests/test-fcntl-h-c++.cc: New file.
25841         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25842         (Depends-on): Add ansi-c++-opt.
25843         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25844         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25845         gl_MODULE_INDICATOR.
25846
25847         Tests of module 'dirent' in C++ mode.
25848         * tests/test-dirent-c++.cc: New file.
25849         * modules/dirent-tests (Files): Add it and tests/signature.h.
25850         (Depends-on): Add ansi-c++-opt.
25851         (Makefile.am): Arrange to compile and run test-dirent-c++.
25852         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25853         gl_MODULE_INDICATOR.
25854
25855         New module 'ansi-c++-opt'.
25856         * modules/ansi-c++-opt: New file.
25857         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25858
25859         Document C++ namespace mode.
25860         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25861
25862         wctype: Avoid #define replacements in C++ mode.
25863         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25864         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25865         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25866         In C++, define a namespaced alias symbol.
25867         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25868         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25869         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25870         rule.
25871
25872         wchar: Avoid #define replacements in C++ mode.
25873         * lib/wchar.in.h: Include c++defs.h.
25874         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25875         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25876         symbol.
25877         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25878         * modules/wchar (Depends-on): Add c++defs.
25879         (Makefile.am): Update wchar.h rule.
25880
25881         unistd: Avoid #define replacements in C++ mode.
25882         * lib/unistd.in.h: Include c++defs.h.
25883         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25884         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25885         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25886         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25887         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25888         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25889         symbol.
25890         (environ): Update.
25891         * modules/unistd (Depends-on): Add c++defs.
25892         (Makefile.am): Update unistd.h rule.
25893
25894         time: Avoid #define replacements in C++ mode.
25895         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25896         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25897         define a namespaced alias symbol.
25898         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25899         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25900         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25901         * modules/time (Depends-on): Add c++defs, warn-on-use.
25902         (Makefile.am): Update time.h rule.
25903         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25904         * modules/nanosleep (configure.ac): Likewise.
25905         * modules/strptime (configure.ac): Likewise.
25906         * modules/timegm (configure.ac): Likewise.
25907
25908         sys_time: Avoid #define replacements in C++ mode.
25909         * lib/sys_time.in.h: Include c++defs.h.
25910         (gettimeofday): In C++, define a namespaced alias symbol.
25911         * modules/sys_time (Depends-on): Add c++defs.
25912         (Makefile.am): Update sys/time.h rule.
25913
25914         sys_stat: Avoid #define replacements in C++ mode.
25915         * lib/sys_stat.in.h: Include c++defs.h.
25916         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25917         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25918         namespaced alias symbol.
25919         In C++, define a namespaced alias symbol.
25920         * modules/sys_stat (Depends-on): Add c++defs.
25921         (Makefile.am): Update sys/stat.h rule.
25922
25923         sys_socket: Avoid #define replacements in C++ mode.
25924         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25925         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25926         definitions also when the system has a <sys/socket.h>.
25927         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25928         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25929         In C++, define a namespaced alias symbol.
25930         * modules/sys_socket (Depends-on): Add c++defs.
25931         (Makefile.am): Update sys/socket.h rule.
25932
25933         sys_select: Avoid #define replacements in C++ mode.
25934         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25935         definitions also when the system has a <sys/select.h>.
25936         (select): In C++, define a namespaced alias symbol.
25937         * modules/sys_select (Depends-on): Add c++defs.
25938         (Makefile.am): Update sys/select.h rule.
25939
25940         sys_ioctl: Avoid #define replacements in C++ mode.
25941         * lib/sys_ioctl.in.h: Include c++defs.h.
25942         (ioctl): In C++, define a namespaced alias symbol.
25943         * modules/sys_ioctl (Depends-on): Add c++defs.
25944         (Makefile.am): Update sys/ioctl.h rule.
25945
25946         string: Avoid #define replacements in C++ mode.
25947         * lib/string.in.h: Include c++defs.h.
25948         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25949         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25950         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25951         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25952         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25953         * modules/string (Depends-on): Add c++defs.
25954         (Makefile.am): Update string.h rule.
25955
25956         stdlib: Avoid #define replacements in C++ mode.
25957         * lib/stdlib.in.h: Include c++defs.h.
25958         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25959         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25960         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25961         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25962         symbol.
25963         * modules/stdlib (Depends-on): Add c++defs.
25964         (Makefile.am): Update stdlib.h rule.
25965
25966         stdio: Avoid #define replacements in C++ mode.
25967         * lib/stdio.in.h: Include c++defs.h.
25968         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25969         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25970         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25971         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25972         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25973         namespaced alias symbol.
25974         * modules/stdio (Depends-on): Add c++defs.
25975         (Makefile.am): Update stdio.h rule.
25976
25977         spawn: Avoid #define replacements in C++ mode.
25978         * lib/spawn.in.h: Include c++defs.h.
25979         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25980         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25981         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25982         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25983         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25984         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25985         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25986         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25987         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25988         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25989         In C++, define a namespaced alias symbol.
25990         * modules/spawn (Depends-on): Add c++defs.
25991         (Makefile.am): Update spawn.h rule.
25992
25993         signal: Avoid #define replacements in C++ mode.
25994         * lib/signal.in.h: Include c++defs.h.
25995         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25996         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25997         namespaced alias symbol.
25998         * modules/signal (Depends-on): Add c++defs.
25999         (Makefile.am): Update signal.h rule.
26000
26001         search: Avoid #define replacements in C++ mode.
26002         * lib/search.in.h: Include c++defs.h.
26003         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26004         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26005         symbol.
26006         * modules/search (Depends-on): Add c++defs.
26007         (Makefile.am): Update search.h rule.
26008
26009         math: Avoid #define replacements in C++ mode.
26010         * lib/math.in.h: Include c++defs.h.
26011         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26012         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26013         trunc, truncl): In C++, define a namespaced alias symbol.
26014         * modules/math (Depends-on): Add c++defs.
26015         (Makefile.am): Update math.h rule.
26016
26017         locale: Avoid #define replacements in C++ mode.
26018         * lib/locale.in.h: Include c++defs.h.
26019         (duplocale): In C++, define a namespaced alias symbol.
26020         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26021         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26022         * modules/locale (Depends-on): Add c++defs.
26023         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26024
26025         langinfo: Avoid #define replacements in C++ mode.
26026         * lib/langinfo.in.h: Include c++defs.h.
26027         (nl_langinfo): In C++, define a namespaced alias symbol.
26028         * modules/langinfo (Depends-on): Add c++defs.
26029         (Makefile.am): Update langinfo.h rule.
26030
26031         iconv-h: Avoid #define replacements in C++ mode.
26032         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26033         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26034         symbol.
26035         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26036         whenever iconv is present.
26037         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26038         (Makefile.am): Update iconv.h rule.
26039
26040         glob: Avoid #define replacements in C++ mode.
26041         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26042         (_gl_glob_errfunc_fn): New type.
26043         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26044         symbol.
26045         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26046         (Makefile.am): Update glob.h rule.
26047
26048         fcntl-h: Avoid #define replacements in C++ mode.
26049         * lib/fcntl.in.h: Include c++defs.h.
26050         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26051         * modules/fcntl-h (Depends-on): Add c++defs.
26052         (Makefile.am): Update fcntl.h rule.
26053
26054         dirent: Avoid #define replacements in C++ mode.
26055         * lib/dirent.in.h: Include c++defs.h.
26056         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26057         namespaced alias symbol.
26058         (dirfd): Update declaration.
26059         * modules/dirent (Depends-on): Add c++defs.
26060         (Makefile.am): Update dirent.h rule.
26061
26062         ctype: Make it usable in C++ code.
26063         * lib/ctype.in.h: Include c++defs.h.
26064         (isblank): Declare as extern "C".
26065         * modules/ctype (Depends-on): Add c++defs.
26066         (Makefile.am): Update ctype.h rule.
26067
26068         New module 'c++defs'.
26069         * modules/c++defs: New file.
26070         * build-aux/c++defs.h: New file.
26071         Reported by John W. Eaton <jwe@gnu.org>.
26072
26073 2010-03-07  Bruno Haible  <bruno@clisp.org>
26074
26075         logb: Provide missing declaration for Cygwin.
26076         * lib/math.in.h (logb): New declaration.
26077         * m4/logb.m4: New file.
26078         * modules/logb (Files): Add m4/logb.m4.
26079         (Depends-on): Add math.
26080         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26081         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26083         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26084         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26085
26086 2010-03-07  Bruno Haible  <bruno@clisp.org>
26087
26088         Fix test-cond link error.
26089         * tests/test-cond.c: Include <stdio.h>.
26090
26091 2010-03-07  Bruno Haible  <bruno@clisp.org>
26092
26093         Fix test-dirent-safer link error.
26094         * modules/dirent-safer-tests (Makefile.am): Define
26095         test_dirent_safer_LDADD.
26096
26097 2010-03-07  Bruno Haible  <bruno@clisp.org>
26098
26099         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26100         among default module list.
26101
26102 2010-03-07  Bruno Haible  <bruno@clisp.org>
26103
26104         Fix link error on platforms with GNU libiconv.
26105         * modules/unistr/u8-strcoll-tests (Makefile): Define
26106         test_u8_strcoll_LDADD.
26107         * modules/unistr/u16-strcoll-tests (Makefile): Define
26108         test_u16_strcoll_LDADD.
26109         * modules/unistr/u32-strcoll-tests (Makefile): Define
26110         test_u32_strcoll_LDADD.
26111
26112 2010-03-07  Bruno Haible  <bruno@clisp.org>
26113
26114         Use POSIX declarations for socket functions.
26115         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26116         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26117         rpl_sendto): Change declaration to match POSIX.
26118         * lib/connect.c (rpl_connect): Likewise.
26119         * lib/accept.c (rpl_accept): Likewise.
26120         * lib/bind.c (rpl_bind): Likewise.
26121         * lib/getpeername.c (rpl_getpeername): Likewise.
26122         * lib/getsockname.c (rpl_getsockname): Likewise.
26123         * lib/recv.c (rpl_recv): Likewise.
26124         * lib/send.c (rpl_send): Likewise.
26125         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26126         * lib/sendto.c (rpl_sendto): Likewise.
26127
26128 2010-03-06  Bruno Haible  <bruno@clisp.org>
26129
26130         Clarify access, euidaccess, faccessat.
26131         * doc/posix-functions/faccessat.texi: Mention security problem under
26132         "Other problems", not "Portability problems".
26133         * doc/posix-functions/access.texi: Likewise. Mention a related security
26134         problem.
26135         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26136         * lib/euidaccess.c: Add comments about platforms.
26137         * lib/unistd.in.h (access, euidaccess): Add warnings.
26138
26139 2010-03-07  Bruno Haible  <bruno@clisp.org>
26140
26141         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26142         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26143         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26144         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26145         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26146         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26147         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26148         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26149         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26151         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26152         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26153         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26154         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26155         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26156         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26157         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26158         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26159         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26160         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26161         Likewise.
26162         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26163         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26164         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26165         Likewise.
26166         * tests/test-spawn.c (main): Make it work when
26167         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26168
26169 2010-03-07  Bruno Haible  <bruno@clisp.org>
26170
26171         Fix incorrect Makefile.am generation in German locale.
26172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26173         Execute sed command with character range in C locale.
26174
26175 2010-03-06  Bruno Haible  <bruno@clisp.org>
26176
26177         Tests for module 'iconv-h'.
26178         * modules/iconv-h-tests: New file.
26179         * tests/test-iconv-h.c: New file.
26180
26181         New module 'iconv-h'.
26182         * modules/iconv-h: New file.
26183         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26184         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26185         (configure.ac): Remove gl_ICONV_H.
26186         (Makefile.am): Remove rule for iconv.h.
26187
26188 2010-03-06  Bruno Haible  <bruno@clisp.org>
26189
26190         More consistent naming of *.m4 files.
26191         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26192         * modules/wctype (Files): Update.
26193
26194         More consistent naming of *.m4 files.
26195         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26196         * modules/wchar (Files): Update.
26197
26198 2010-03-06  Jim Meyering  <meyering@redhat.com>
26199
26200         euidaccess: relax license to LGPLv2+
26201         * modules/euidaccess (License): Relax to LGPLv2+.
26202
26203 2010-03-06  Bruno Haible  <bruno@clisp.org>
26204
26205         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26206         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26207         (Makefile.am): Augment lib_SOURCES instead.
26208
26209 2010-03-04  Jim Meyering  <meyering@redhat.com>
26210
26211         utime: remove obsolete module
26212         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26213         unnecessary for years, and has been marked as obsolete for 10 months.
26214         * modules/utime: Remove file.
26215         * lib/utime.c: Remove file.
26216         * m4/utime.m4: Remove file.
26217         * m4/utimes-null.m4: Remove file.
26218         * doc/posix-functions/utime.texi (utime): Remove reference to
26219         the module.  Move the sole "fixed by gnulib" item into the
26220         "problems not fixed by Gnulib" list.
26221         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26222
26223 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26224
26225         * modules/exit (License): Relax license to LGPLv2+.
26226         (Status): Mark as obsolete.
26227         * NEWS: Mention deprecated 'exit' module.
26228         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26229         of now obsolete 'exit'.
26230
26231 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26232
26233         fts-lgpl: remove unused module
26234         * modules/fts-lgpl: Remove.
26235         * MODULES.html.sh (func_all_modules): Adjust.
26236         * check-module (find_included_lib_files): Adjust.
26237         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26238
26239 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26240
26241         copy-acl: enhance Solaris ACL error handling
26242         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26243         * lib/set-mode-acl.c (qset_acl): Likewise.
26244
26245 2010-03-02  Bruno Haible  <bruno@clisp.org>
26246
26247         spawn: Don't override the system defined values on FreeBSD 8.
26248         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26249         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26250         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26251         if HAVE_POSIX_SPAWN is 1.
26252         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26253
26254 2010-03-01  Bruno Haible  <bruno@clisp.org>
26255
26256         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26257         regarding Automake.
26258
26259 2010-02-25  Bruno Haible  <bruno@clisp.org>
26260
26261         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26262         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26263         setting, not afterwards.
26264         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26265
26266 2010-02-24  Eric Blake  <eblake@redhat.com>
26267
26268         bootstrap, git-version-gen: use timestamp
26269         * build-aux/git-version-gen (scriptversion): Force UTC.
26270         * build-aux/bootstrap (scriptversion): New variable.
26271
26272         bootstrap: allow older git
26273         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26274         older than 1.6.4.  Requested by the libvirt project.
26275
26276 2010-02-23  Eric Blake  <eblake@redhat.com>
26277
26278         warn-on-use: work with old autoconf
26279         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26280         AS_VAR semantics of autoconf 2.60.
26281         Reported by Bruno Haible.
26282
26283         bootstrap: improve some comments
26284         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26285         clarification comments.
26286
26287         gettimeofday: provide correct function
26288         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26289         when replacement is declared, otherwise provide gettimeofday.
26290         Reported by Michael Goffioul.
26291
26292 2010-02-23  Jim Meyering  <meyering@redhat.com>
26293
26294         lib-ignore: relax license to "unlimited", not LGPLv2+
26295         * modules/lib-ignore (License): Relax to "unlimited".
26296
26297 2010-02-23  Jim Meyering  <meyering@redhat.com>
26298
26299         lib-ignore: relax license to LGPLv2+
26300         * modules/lib-ignore (License): Relax to LGPLv2+.
26301
26302 2010-02-22  Eric Blake  <eblake@redhat.com>
26303
26304         lseek: avoid bash 3.2 broken pipe bug
26305         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26306         warning from bash 3.2.
26307         Reported by Ben Pfaff, with analysis from Bruno Haible.
26308
26309         bootstrap: support non-FSF copyright holder
26310         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26311         bootstrap.conf override of COPYRIGHT_HOLDER.
26312         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26313
26314         bootstrap: interoperate with gettext 0.14.1
26315         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26316
26317         bootstrap: allow for alternate submodule location
26318         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26319         hardcoding submodule location.
26320         (gnulib_mk): Allow direct use of Makefile.am.
26321
26322         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26323         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26324         rather than reconfiguring where the submodule points.
26325
26326         gettimeofday: restore support for platforms that lack function
26327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26328         replacement if function is missing.
26329         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26330         * modules/sys_time (Makefile.am): Substitute it.
26331         * lib/sys_time.in.h (gettimeofday): Check it.
26332         Reported by Michael Goffioul.
26333
26334 2010-02-21  Bruno Haible  <bruno@clisp.org>
26335
26336         * lib/stdio.in.h (obstack_printf): Fix typo.
26337
26338 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26339
26340         vc-list-files: use bzr ls's -R option
26341         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26342         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26343
26344 2010-02-21  Jim Meyering  <meyering@redhat.com>
26345
26346         init.sh: fix EXEEXT shims to work also for names like test-prog
26347         * tests/init.sh: Re-exec a better shell, when needed.
26348         If the current shell lacks support for posix $(...), an init.sh-using
26349         test will now try to find a shell that supports that.  If EXEEXT is
26350         nonempty, we also require support for hyphen-in-alias-name and shell
26351         substitutions like ${var#glob}.  Failure to find such a shell results
26352         in a skipped test.
26353
26354 2010-02-21  Bruno Haible  <bruno@clisp.org>
26355
26356         Really work around around "broken pipe" error message from bash 3.2.
26357         * gnulib-tool (func_reset_sigpipe): Remove function.
26358         (echo): In bash 3.2, define to a function that uses printf.
26359         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26360
26361 2010-02-20  Bruno Haible  <bruno@clisp.org>
26362
26363         Restore support for automake 1.9.6 with autoconf 2.61.
26364         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26365         Reported by James Youngman <jay@gnu.org>.
26366
26367 2010-02-20  Bruno Haible  <bruno@clisp.org>
26368
26369         Improve *printf warning condition.
26370         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26371         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26372         and the function is overridden due to SIGPIPE emulation.
26373
26374 2010-02-20  Bruno Haible  <bruno@clisp.org>
26375
26376         * lib/stdio.in.h: Tweak comments.
26377
26378 2010-02-19  Bruno Haible  <bruno@clisp.org>
26379
26380         Make it easier to find modules. New gnulib-tool option '--find'.
26381         * gnulib-tool: New option --find.
26382         (func_usage): Document it.
26383         (func_sanitize_modulelist): New function, extracted from
26384         func_all_modules.
26385         (func_all_modules): Invoke it.
26386         * doc/gnulib-tool.texi (Which modules?): New node.
26387
26388 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26389
26390         * lib/sys_select.in.h: Provide select replacement even if
26391         sys/select.h exists on a system, for Interix.
26392
26393 2010-02-18  Jim Meyering  <meyering@redhat.com>
26394
26395         init.sh: don't use $(...) just yet
26396         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26397         to accommodate e.g., Solaris' /bin/sh.
26398
26399 2010-02-17  Bruno Haible  <bruno@clisp.org>
26400
26401         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26402         Reported by Ludovic Courtès <ludo@gnu.org>.
26403
26404 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26405
26406         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26407         linking with -lintl.
26408
26409 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26410
26411         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26412         if not provided by the system's netdb.h.  Reported by
26413         ludo@gnu.org (Ludovic Courtès).
26414
26415 2010-02-15  Jim Meyering  <meyering@redhat.com>
26416
26417         init.sh: improve portability and efficiency
26418         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26419         "dummy" in a for loop.
26420         Use '!', not '^' to select the complement of a character set used
26421         in a "case" statement.
26422         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26423         Suggestions from Eric Blake.
26424
26425         init.sh: automatically accommodate programs with the .exe suffix
26426         Automatically arrange for an invocation of "prog" to execute the
26427         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26428         may use the simpler "prog", yet still work when built on a system
26429         that requires specifying the added suffix.
26430         Do this by constructing a function named "prog" that invokes
26431         "prog.exe" for each .exe file in selected directories.
26432         * tests/init.sh (find_exe_basenames_): New function.
26433         (create_exe_shim_functions_): New function.
26434         (path_prepend_): Use it.
26435
26436         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26437         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26438         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26439
26440 2010-02-14  Jim Meyering  <meyering@redhat.com>
26441
26442         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26443         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26444         (sc_prohibit_hash_pjw_without_use): New rule.
26445
26446         maint.mk: allow the default upload destination dir to be overridden
26447         * top/maint.mk (upload_dest_dir_): Define with a default that
26448         preserves the status quo.
26449         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26450         Reported by Peter Simons.
26451
26452         maint.mk: prohibit inclusion of "hash.h" without_use
26453         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26454
26455 2010-02-10  Jim Meyering  <meyering@redhat.com>
26456
26457         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26458         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26459
26460 2010-02-09  Eric Blake  <ebb9@byu.net>
26461         and Bruno Haible  <bruno@clisp.org>
26462
26463         obstack-printf-posix: ensure declaration
26464         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26465         extracted from gl_FUNC_OBSTACK_PRINTF.
26466         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26467         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26468         Likewise.
26469         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26470         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26471         0.
26472
26473 2010-02-08  Bruno Haible  <bruno@clisp.org>
26474
26475         gnulib-tool: Fix typo in 2010-02-07 commit.
26476         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26477         Reported by Eric Blake.
26478
26479 2010-02-07  Bruno Haible  <bruno@clisp.org>
26480
26481         gnulib-tool: Fix up caching patches.
26482         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26483         option --no-cache. Use associative arrays when supported by the shell.
26484         (sed_comments): New variable.
26485         (modcache): Renamed from do_cache.
26486         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26487         abbreviate unnecessarily.
26488         (have_associative): New variable.
26489         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26490         way also for ksh and zsh.
26491         (func_init_sed_convert_to_cache_statements): New function, extracted
26492         from func_cache_lookup_module. Add support for associative arrays.
26493         Don't set the c_MODULE_cached variable here. Ignore all lines before
26494         the first field header. Remove only the final newline, not all trailing
26495         newlines. Support empty fields correctly. Limit the use of 'eval' to
26496         assignments.
26497         (func_get_description, func_get_status, func_get_notice,
26498         func_get_applicability, func_get_filelist, func_get_dependencies,
26499         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26500         func_get_automake_snippet, func_get_include_directive,
26501         func_get_link_directive, func_get_license, func_get_maintainer):
26502         Update documentation. List the unoptimized code first. Add support for
26503         associative arrays. Limit the use of 'eval' to assignments.
26504         (func_get_applicability): Undo stylistic pessimisations.
26505         (func_get_automake_snippet, func_get_include_directive): Reduce code
26506         duplication.
26507         (func_modules_transitive_closure, func_modules_add_dummy,
26508         func_modules_notice, func_modules_to_filelist, func_add_file,
26509         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26510         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26511         func_create_testdir, func_create_megatestdir): Update documentation.
26512
26513 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26514
26515         * gnulib-tool (func_cache_lookup_module): Store the module name
26516         belonging to the cache variable; error out if two different
26517         module names map to the same cache variable name.
26518
26519 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26520
26521         gnulib-tool: Make caching optional.
26522         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26523         Update matching short versions of --no-changelog.
26524         (func_usage): Update.
26525         (sed_extract_cache_prog): Renamed from ...
26526         (sed_extract_prog): ... this; revert to old extraction script.
26527         (func_get_description, func_get_status)
26528         (func_get_notice, func_get_applicability, func_get_filelist)
26529         (func_get_dependencies, func_get_autoconf_early_snippet)
26530         (func_get_autoconf_snippet, func_get_automake_snippet)
26531         (func_get_include_directive, func_get_link_directive)
26532         (func_get_license, func_get_maintainer): If $do_cache is false,
26533         use old, non-caching extraction scripts.
26534         Suggestion by Bruno Haible.
26535
26536 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26537
26538         gnulib-tool: cache module metainformation.
26539         * gnulib-tool (sed_extract_prog): Match newline before each
26540         header, and rewrite header to a shell variable suffix.
26541         (func_cache_var, func_cache_lookup_module): New functions,
26542         to turn a module name into a cache variable prefix, and to
26543         look up and cache module metainformation.
26544         (func_get_description, func_get_status)
26545         (func_get_notice, func_get_applicability, func_get_filelist)
26546         (func_get_dependencies, func_get_autoconf_early_snippet)
26547         (func_get_autoconf_snippet, func_get_automake_snippet)
26548         (func_get_include_directive, func_get_link_directive)
26549         (func_get_license, func_get_maintainer): Use
26550         func_cache_lookup_module.
26551
26552 2010-02-07  Bruno Haible  <bruno@clisp.org>
26553
26554         fnctl: Fix missing dependency.
26555         * modules/fcntl (Depends-on): Add getdtablesize.
26556         Reported by John W. Eaton <jwe@gnu.org>.
26557
26558 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26559
26560         Argp: fix recognition of short alias options.
26561
26562         * lib/argp-parse.c (convert_options): Fix improper use of
26563         `|' between character values.
26564         * tests/test-argp.c (group1_option): New alias option
26565         --read (-r).
26566         (group1_parser): Special handling for 'r'.
26567         (test15): New test case.
26568         (test_fun): Add test15.
26569         * tests/test-argp-2.sh: Update expected --help and --usage
26570         outputs.
26571
26572 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26573
26574         * tests/test-argp.c: Fix indentation.
26575
26576 2010-02-04  Eric Blake  <ebb9@byu.net>
26577
26578         gettimeofday: expose type of second argument
26579         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26580         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26581         * tests/test-gettimeofday.c: Use it to silence warning.
26582         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26583         the issue.
26584
26585 2010-02-03  Jim Meyering  <meyering@redhat.com>
26586
26587         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26588         * lib/regcomp.c (TYPE_SIGNED): Define.
26589         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26590
26591         regcomp.c: avoid a new -Wshadow warning
26592         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26593
26594 2010-02-01  Jim Meyering  <meyering@redhat.com>
26595
26596         removing useless parentheses in cpp #define directives
26597         For motivation, see commit c0221df4, "define STREQ(a,b)
26598         consistently, removing useless parentheses"
26599         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26600         * lib/mountlist.c (MNT_IGNORE): Likewise.
26601         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26602
26603 2010-02-01  Eric Blake  <ebb9@byu.net>
26604
26605         sys_time: use link-warning
26606         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26607         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26608         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26609         * modules/sys_time (Depends-on): Add warn-on-use.
26610         (Makefile.am): Always build replacement.
26611         (configure.ac): Update substitutions.
26612         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26613         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26614         bother with SYS_TIME_H.
26615         * modules/gettimeofday (configure.ac): Declare indicator.
26616         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26617         in use.
26618
26619         closein-tests: silence compiler warning
26620         * tests/test-closein.c (main): Ignore fread result.
26621         * modules/closein-tests (Depends-on): Add ignore-value.
26622
26623         tests: silence warning about system return
26624         * tests/test-areadlink-with-size.c (main): Ignore system result.
26625         * tests/test-areadlink.c (main): Likewise.
26626         * tests/test-areadlinkat-with-size.c (main): Likewise.
26627         * tests/test-areadlinkat.c (main): Likewise.
26628         * tests/test-canonicalize-lgpl.c (main): Likewise.
26629         * tests/test-canonicalize.c (main): Likewise.
26630         * tests/test-chown.c (main): Likewise.
26631         * tests/test-fchownat.c (main): Likewise.
26632         * tests/test-fdutimensat.c (main): Likewise.
26633         * tests/test-fstatat.c (main): Likewise.
26634         * tests/test-futimens.c (main): Likewise.
26635         * tests/test-lchown.c (main): Likewise.
26636         * tests/test-link.c (main): Likewise.
26637         * tests/test-linkat.c (main): Likewise.
26638         * tests/test-lstat.c (main): Likewise.
26639         * tests/test-mkdir.c (main): Likewise.
26640         * tests/test-mkdirat.c (main): Likewise.
26641         * tests/test-mkfifo.c (main): Likewise.
26642         * tests/test-mkfifoat.c (main): Likewise.
26643         * tests/test-mknod.c (main): Likewise.
26644         * tests/test-readlink.c (main): Likewise.
26645         * tests/test-remove.c (main): Likewise.
26646         * tests/test-rename.c (main): Likewise.
26647         * tests/test-renameat.c (main): Likewise.
26648         * tests/test-rmdir.c (main): Likewise.
26649         * tests/test-symlink.c (main): Likewise.
26650         * tests/test-symlinkat.c (main): Likewise.
26651         * tests/test-unlink.c (main): Likewise.
26652         * tests/test-unlinkat.c (main): Likewise.
26653         * tests/test-utimens.c (main): Likewise.
26654         * tests/test-utimensat.c (main): Likewise.
26655         * modules/areadlink-tests (Depends-on): Add ignore-value.
26656         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26657         * modules/areadlinkat-tests (Depends-on): Likewise.
26658         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26659         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26660         * modules/canonicalize-tests (Depends-on): Likewise.
26661         * modules/chown-tests (Depends-on): Likewise.
26662         * modules/fdutimensat-tests (Depends-on): Likewise.
26663         * modules/futimens-tests (Depends-on): Likewise.
26664         * modules/lchown-tests (Depends-on): Likewise.
26665         * modules/link-tests (Depends-on): Likewise.
26666         * modules/linkat-tests (Depends-on): Likewise.
26667         * modules/lstat-tests (Depends-on): Likewise.
26668         * modules/mkdir-tests (Depends-on): Likewise.
26669         * modules/mkfifo-tests (Depends-on): Likewise.
26670         * modules/mkfifoat-tests (Depends-on): Likewise.
26671         * modules/mknod-tests (Depends-on): Likewise.
26672         * modules/openat-tests (Depends-on): Likewise.
26673         * modules/readlink-tests (Depends-on): Likewise.
26674         * modules/remove-tests (Depends-on): Likewise.
26675         * modules/rename-tests (Depends-on): Likewise.
26676         * modules/renameat-tests (Depends-on): Likewise.
26677         * modules/rmdir-tests (Depends-on): Likewise.
26678         * modules/symlink-tests (Depends-on): Likewise.
26679         * modules/symlinkat-tests (Depends-on): Likewise.
26680         * modules/unlink-tests (Depends-on): Likewise.
26681         * modules/utimens-tests (Depends-on): Likewise.
26682         * modules/utimensat-tests (Depends-on): Likewise.
26683
26684 2010-01-31  Bruno Haible  <bruno@clisp.org>
26685
26686         Perform the same test for many <math.h> functions.
26687         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26688         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26689         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26690         of gl_MATHFUNC.
26691         * modules/acos (configure.ac): Likewise.
26692         * modules/asin (configure.ac): Likewise.
26693         * modules/atan (configure.ac): Likewise.
26694         * modules/atan2 (configure.ac): Likewise.
26695         * modules/cbrt (configure.ac): Likewise.
26696         * modules/copysign (configure.ac): Likewise.
26697         * modules/cos (configure.ac): Likewise.
26698         * modules/cosh (configure.ac): Likewise.
26699         * modules/erf (configure.ac): Likewise.
26700         * modules/erfc (configure.ac): Likewise.
26701         * modules/exp (configure.ac): Likewise.
26702         * modules/fmod (configure.ac): Likewise.
26703         * modules/hypot (configure.ac): Likewise.
26704         * modules/j0 (configure.ac): Likewise.
26705         * modules/j1 (configure.ac): Likewise.
26706         * modules/jn (configure.ac): Likewise.
26707         * modules/lgamma (configure.ac): Likewise.
26708         * modules/log (configure.ac): Likewise.
26709         * modules/log10 (configure.ac): Likewise.
26710         * modules/log1p (configure.ac): Likewise.
26711         * modules/pow (configure.ac): Likewise.
26712         * modules/remainder (configure.ac): Likewise.
26713         * modules/sin (configure.ac): Likewise.
26714         * modules/sinh (configure.ac): Likewise.
26715         * modules/tan (configure.ac): Likewise.
26716         * modules/tanh (configure.ac): Likewise.
26717         * modules/y0 (configure.ac): Likewise.
26718         * modules/y1 (configure.ac): Likewise.
26719         * modules/yn (configure.ac): Likewise.
26720         Suggested by Paolo Bonzini.
26721
26722 2010-01-31  Bruno Haible  <bruno@clisp.org>
26723
26724         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26725
26726 2010-01-31  Bruno Haible  <bruno@clisp.org>
26727
26728         Work around getdelim() bug on FreeBSD 8.0.
26729         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26730         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26731         not work.
26732         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26733         is 1.
26734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26735         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26736         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26737         a non-zero size.
26738         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26739
26740 2010-01-31  Bruno Haible  <bruno@clisp.org>
26741
26742         Work around getline() bug on FreeBSD 8.0.
26743         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26744         and a non-zero size.
26745         * tests/test-getline.c (main): Likewise.
26746         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26747         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26748
26749 2010-01-28  Eric Blake  <ebb9@byu.net>
26750
26751         regex: fix build failure
26752         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26753         platforms.
26754
26755 2010-01-28  Jim Meyering  <meyering@redhat.com>
26756
26757         regex: do not ignore memory allocation failure
26758         * lib/regex_internal.c (create_cd_newstate): Detect
26759         re_node_set_init_copy failure.   Extracted from glibc commit
26760         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26761
26762         regex: sync more white-space changes from libc
26763         * lib/regex_internal.c: White-space only changes.
26764         * lib/regexec.c: Likewise.
26765
26766         regex: add many uses of __attribute_warn_unused_result__
26767         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26768         * lib/regexec.c: Likewise.
26769         Extracted from a messy glibc commit.
26770
26771         regcomp.c: spelling and merge-artifact from glibc
26772         * lib/regcomp.c: Merge remainder of glibc's
26773         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26774
26775         regcomp.c: sync white-space changes from glibc
26776         * lib/regcomp.c: Merge to accommodate white space
26777         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26778
26779         regcomp.c: do not ignore internal return values
26780         * lib/regcomp.c: Do not ignore internal return values.
26781         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26782         but without its white-space changes and spelling fixes.
26783
26784         regex_internal.h: define __attribute_warn_unused_result__
26785         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26786
26787         maint: add a syntax-check rule to check for vulnerable Makefile.in
26788         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26789
26790 2010-01-27  Jim Meyering  <meyering@redhat.com>
26791
26792         ncftpput-ftp: clean up spaces
26793         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26794         Remove trailing blanks.
26795
26796 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26797
26798         * build-aux/git-version-gen: Fix copyright statement.
26799         * build-aux/gnupload: Likewise.
26800         * tests/test-arcfour.c: Likewise.
26801         * tests/test-arctwo.c: Likewise.
26802         * tests/test-count-one-bits.c: Likewise.
26803         * tests/test-crc.c: Likewise.
26804         * tests/test-des.c: Likewise.
26805         * tests/test-gc-arcfour.c: Likewise.
26806         * tests/test-gc-arctwo.c: Likewise.
26807         * tests/test-gc-des.c: Likewise.
26808         * tests/test-gc-hmac-md5.c: Likewise.
26809         * tests/test-gc-hmac-sha1.c: Likewise.
26810         * tests/test-gc-md2.c: Likewise.
26811         * tests/test-gc-md4.c: Likewise.
26812         * tests/test-gc-md5.c: Likewise.
26813         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26814         * tests/test-gc-rijndael.c: Likewise.
26815         * tests/test-gc-sha1.c: Likewise.
26816         * tests/test-gc.c: Likewise.
26817         * tests/test-gethostname.c: Likewise.
26818         * tests/test-gettimeofday.c: Likewise.
26819         * tests/test-hash.c: Likewise.
26820         * tests/test-hmac-md5.c: Likewise.
26821         * tests/test-hmac-sha1.c: Likewise.
26822         * tests/test-md2.c: Likewise.
26823         * tests/test-md4.c: Likewise.
26824         * tests/test-md5.c: Likewise.
26825         * tests/test-memchr.c: Likewise.
26826         * tests/test-memchr2.c: Likewise.
26827         * tests/test-memcmp.c: Likewise.
26828         * tests/test-memmem.c: Likewise.
26829         * tests/test-memrchr.c: Likewise.
26830         * tests/test-rawmemchr.c: Likewise.
26831         * tests/test-read-file.c: Likewise.
26832         * tests/test-rijndael.c: Likewise.
26833         * tests/test-sockets.c: Likewise.
26834         * tests/test-strchrnul.c: Likewise.
26835         * tests/test-strstr.c: Likewise.
26836         * tests/test-strtod.c: Likewise.
26837         * build-aux/ncftpput-ftp: Likewise.
26838
26839 2010-01-26  Eric Blake  <ebb9@byu.net>
26840
26841         ignore-value: update recommended header name
26842         * modules/ignore-value (Include): Only use <> for headers that
26843         exist in glibc.
26844
26845 2010-01-26  Jim Meyering  <meyering@redhat.com>
26846
26847         test-userspec.c: avoid compiler warnings
26848         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26849         and "initialization discards qualifiers..." warnings.
26850         Put the first "uid" in its own scope, and make char* members "const".
26851
26852 2010-01-25  Bruno Haible  <bruno@clisp.org>
26853
26854         gnulib-tool: Make warning diagnostics consistent.
26855         * gnulib-tool (func_warning): New function.
26856         Use it everywhere where gnulib-tool produces output to stderr and it is
26857         not a fatal error.
26858
26859 2010-01-25  Bruno Haible  <bruno@clisp.org>
26860
26861         Fix test dependencies.
26862         * modules/xstrtol-tests (Depends-on): Add inttypes.
26863         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26864
26865 2010-01-25 Pádraig Brady <P@draigBrady.com>
26866
26867         syntax-check: detect incorrect boolean macro values in config.h
26868         * modules/maintainer-makefile (configure.ac): Parameterize the location
26869         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26870         The logic is from Eric Blake and the location indicated by Jim Meyering.
26871         Note the more natural CONFIG_HEADER name is prohibited by automake
26872         for backwards compatibility reasons.
26873         * top/maint.mk (sc_Wundef_boolean): New rule.
26874
26875 2010-01-25  Jim Meyering  <meyering@redhat.com>
26876
26877         bootstrap: detect MacOS 10.6's shasum, too
26878         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26879         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26880
26881 2010-01-23  Jim Meyering  <meyering@redhat.com>
26882
26883         xstrtoll: new module
26884         * modules/xstrtoll: New file.
26885         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26886         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26887         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26888         ./configure fails if you use this module and lack "long long".
26889         * modules/xstrtoll-tests: New module.
26890         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26891         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26892         new init.sh-based test framework.
26893
26894 2010-01-24  Bruno Haible  <bruno@clisp.org>
26895
26896         Tests for module 'yn'.
26897         * modules/yn-tests: New file.
26898         * tests/test-yn.c: New file.
26899
26900         Tests for module 'y1'.
26901         * modules/y1-tests: New file.
26902         * tests/test-y1.c: New file.
26903
26904         Tests for module 'y0'.
26905         * modules/y0-tests: New file.
26906         * tests/test-y0.c: New file.
26907
26908         Tests for module 'tanh'.
26909         * modules/tanh-tests: New file.
26910         * tests/test-tanh.c: New file.
26911
26912         Tests for module 'tan'.
26913         * modules/tan-tests: New file.
26914         * tests/test-tan.c: New file.
26915
26916         Tests for module 'sqrt'.
26917         * modules/sqrt-tests: New file.
26918         * tests/test-sqrt.c: New file.
26919
26920         Tests for module 'sinh'.
26921         * modules/sinh-tests: New file.
26922         * tests/test-sinh.c: New file.
26923
26924         Tests for module 'sin'.
26925         * modules/sin-tests: New file.
26926         * tests/test-sin.c: New file.
26927
26928         Tests for module 'rint'.
26929         * modules/rint-tests: New file.
26930         * tests/test-rint.c: New file.
26931
26932         Tests for module 'remainder'.
26933         * modules/remainder-tests: New file.
26934         * tests/test-remainder.c: New file.
26935
26936         Tests for module 'pow'.
26937         * modules/pow-tests: New file.
26938         * tests/test-pow.c: New file.
26939
26940         Tests for module 'nextafter'.
26941         * modules/nextafter-tests: New file.
26942         * tests/test-nextafter.c: New file.
26943
26944         Tests for module 'modf'.
26945         * modules/modf-tests: New file.
26946         * tests/test-modf.c: New file.
26947
26948         Tests for module 'logb'.
26949         * modules/logb-tests: New file.
26950         * tests/test-logb.c: New file.
26951
26952         Tests for module 'log1p'.
26953         * modules/log1p-tests: New file.
26954         * tests/test-log1p.c: New file.
26955
26956         Tests for module 'log10'.
26957         * modules/log10-tests: New file.
26958         * tests/test-log10.c: New file.
26959
26960         Tests for module 'log'.
26961         * modules/log-tests: New file.
26962         * tests/test-log.c: New file.
26963
26964         Tests for module 'lgamma'.
26965         * modules/lgamma-tests: New file.
26966         * tests/test-lgamma.c: New file.
26967
26968         Tests for module 'ldexp'.
26969         * modules/ldexp-tests: New file.
26970         * tests/test-ldexp.c: New file.
26971
26972         Tests for module 'jn'.
26973         * modules/jn-tests: New file.
26974         * tests/test-jn.c: New file.
26975
26976         Tests for module 'j1'.
26977         * modules/j1-tests: New file.
26978         * tests/test-j1.c: New file.
26979
26980         Tests for module 'j0'.
26981         * modules/j0-tests: New file.
26982         * tests/test-j0.c: New file.
26983
26984         Tests for module 'hypot'.
26985         * modules/hypot-tests: New file.
26986         * tests/test-hypot.c: New file.
26987
26988         Tests for module 'fmod'.
26989         * modules/fmod-tests: New file.
26990         * tests/test-fmod.c: New file.
26991
26992         Tests for module 'fabs'.
26993         * modules/fabs-tests: New file.
26994         * tests/test-fabs.c: New file.
26995
26996         Tests for module 'exp'.
26997         * modules/exp-tests: New file.
26998         * tests/test-exp.c: New file.
26999
27000         Tests for module 'erfc'.
27001         * modules/erfc-tests: New file.
27002         * tests/test-erfc.c: New file.
27003
27004         Tests for module 'erf'.
27005         * modules/erf-tests: New file.
27006         * tests/test-erf.c: New file.
27007
27008         Tests for module 'cosh'.
27009         * modules/cosh-tests: New file.
27010         * tests/test-cosh.c: New file.
27011
27012         Tests for module 'cos'.
27013         * modules/cos-tests: New file.
27014         * tests/test-cos.c: New file.
27015
27016         Tests for module 'copysign'.
27017         * modules/copysign-tests: New file.
27018         * tests/test-copysign.c: New file.
27019
27020         Tests for module 'cbrt'.
27021         * modules/cbrt-tests: New file.
27022         * tests/test-cbrt.c: New file.
27023
27024         Tests for module 'atan2'.
27025         * modules/atan2-tests: New file.
27026         * tests/test-atan2.c: New file.
27027
27028         Tests for module 'atan'.
27029         * modules/atan-tests: New file.
27030         * tests/test-atan.c: New file.
27031
27032         Tests for module 'asin'.
27033         * modules/asin-tests: New file.
27034         * tests/test-asin.c: New file.
27035
27036         Tests for module 'acos'.
27037         * modules/acos-tests: New file.
27038         * tests/test-acos.c: New file.
27039
27040 2010-01-24  Bruno Haible  <bruno@clisp.org>
27041
27042         Fix tests for common <math.h> functions.
27043         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27044         code snippet that references the function pointer, rather than merely
27045         calling the function. Substitute the FUNC_LIBM variable.
27046         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27047         * modules/acos (configure.ac): Likewise.
27048         * modules/asin (configure.ac): Likewise.
27049         * modules/atan (configure.ac): Likewise.
27050         * modules/atan2 (configure.ac): Likewise.
27051         * modules/cbrt (configure.ac): Likewise.
27052         * modules/copysign (configure.ac): Likewise.
27053         * modules/cos (configure.ac): Likewise.
27054         * modules/cosh (configure.ac): Likewise.
27055         * modules/erf (configure.ac): Likewise.
27056         * modules/erfc (configure.ac): Likewise.
27057         * modules/exp (configure.ac): Likewise.
27058         * modules/fabs (configure.ac): Likewise.
27059         * modules/fmod (configure.ac): Likewise.
27060         * modules/hypot (configure.ac): Likewise.
27061         * modules/j0 (configure.ac): Likewise.
27062         * modules/j1 (configure.ac): Likewise.
27063         * modules/jn (configure.ac): Likewise.
27064         * modules/ldexp (configure.ac): Likewise.
27065         * modules/lgamma (configure.ac): Likewise.
27066         * modules/log (configure.ac): Likewise.
27067         * modules/log10 (configure.ac): Likewise.
27068         * modules/log1p (configure.ac): Likewise.
27069         * modules/logb (configure.ac): Likewise.
27070         * modules/modf (configure.ac): Likewise.
27071         * modules/nextafter (configure.ac): Likewise.
27072         * modules/pow (configure.ac): Likewise.
27073         * modules/remainder (configure.ac): Likewise.
27074         * modules/rint (configure.ac): Likewise.
27075         * modules/sin (configure.ac): Likewise.
27076         * modules/sinh (configure.ac): Likewise.
27077         * modules/tan (configure.ac): Likewise.
27078         * modules/tanh (configure.ac): Likewise.
27079         * modules/y0 (configure.ac): Likewise.
27080         * modules/y1 (configure.ac): Likewise.
27081         * modules/yn (configure.ac): Likewise.
27082
27083 2010-01-24  Bruno Haible  <bruno@clisp.org>
27084
27085         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27086         * tests/test-acosl.c (x): New variable.
27087         (main): Store argument in x and fetch it from x.
27088         * tests/test-asinl.c (x): New variable.
27089         (main): Store argument in x and fetch it from x.
27090         * tests/test-atanl.c (x): New variable.
27091         (main): Store argument in x and fetch it from x.
27092         * tests/test-cosl.c (x): New variable.
27093         (main): Store argument in x and fetch it from x.
27094         * tests/test-expl.c (x): New variable.
27095         (main): Store argument in x and fetch it from x.
27096         * tests/test-logl.c (x): New variable.
27097         (main): Store argument in x and fetch it from x.
27098         * tests/test-sinl.c (x): New variable.
27099         (main): Store argument in x and fetch it from x.
27100         * tests/test-sqrtl.c (x): New variable.
27101         (main): Store argument in x and fetch it from x.
27102         * tests/test-tanl.c (x): New variable.
27103         (main): Store argument in x and fetch it from x.
27104
27105 2010-01-24  Bruno Haible  <bruno@clisp.org>
27106
27107         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27108         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27109         assignments to the initial TESTS_ENVIRONMENT.
27110         * doc/gnulib.texi (Unit test modules): Document it.
27111         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27112         TESTS_ENVIRONMENT.
27113         * modules/btowc-tests (Makefile.am): Likewise.
27114         * modules/c-stack-tests (Makefile.am): Likewise.
27115         * modules/c-strcase-tests (Makefile.am): Likewise.
27116         * modules/copy-file-tests (Makefile.am): Likewise.
27117         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27118         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27119         * modules/mbrtowc-tests (Makefile.am): Likewise.
27120         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27121         * modules/mbscasestr-tests (Makefile.am): Likewise.
27122         * modules/mbschr-tests (Makefile.am): Likewise.
27123         * modules/mbscspn-tests (Makefile.am): Likewise.
27124         * modules/mbsinit-tests (Makefile.am): Likewise.
27125         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27126         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27127         * modules/mbspbrk-tests (Makefile.am): Likewise.
27128         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27129         * modules/mbsrchr-tests (Makefile.am): Likewise.
27130         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27131         * modules/mbsspn-tests (Makefile.am): Likewise.
27132         * modules/mbsstr-tests (Makefile.am): Likewise.
27133         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27134         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27135         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27136         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27137         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27138         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27139         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27140         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27141         * modules/wcrtomb-tests (Makefile.am): Likewise.
27142         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27143         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27144         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27145         assignments from TESTS_ENVIRONMENT.
27146         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27147         augmentation.
27148         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27149         * modules/atexit-tests (Makefile.am): Likewise.
27150         * modules/binary-io-tests (Makefile.am): Likewise.
27151         * modules/closein-tests (Makefile.am): Likewise.
27152         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27153         * modules/exclude-tests (Makefile.am): Likewise.
27154         * modules/fflush-tests (Makefile.am): Likewise.
27155         * modules/fpending-tests (Makefile.am): Likewise.
27156         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27157         * modules/freadahead-tests (Makefile.am): Likewise.
27158         * modules/freadptr-tests (Makefile.am): Likewise.
27159         * modules/freadseek-tests (Makefile.am): Likewise.
27160         * modules/fseek-tests (Makefile.am): Likewise.
27161         * modules/fseeko-tests (Makefile.am): Likewise.
27162         * modules/ftell-tests (Makefile.am): Likewise.
27163         * modules/ftello-tests (Makefile.am): Likewise.
27164         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27165         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27166         * modules/lseek-tests (Makefile.am): Likewise.
27167         * modules/parse-duration-tests (Makefile.am): Likewise.
27168         * modules/perror-tests (Makefile.am): Likewise.
27169         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27170         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27171         * modules/pipe-tests (Makefile.am): Likewise.
27172         * modules/pread-tests (Makefile.am): Likewise.
27173         * modules/printf-posix-tests (Makefile.am): Likewise.
27174         * modules/select-tests (Makefile.am): Likewise.
27175         * modules/sigpipe-tests (Makefile.am): Likewise.
27176         * modules/tsearch-tests (Makefile.am): Likewise.
27177         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27178         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27179         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27180         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27181         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27182         * modules/version-etc-tests (Makefile.am): Likewise.
27183         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27184         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27185         * modules/xalloc-die-tests (Makefile.am): Likewise.
27186         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27187         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27188         * modules/xstrtol-tests (Makefile.am): Likewise.
27189         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27190         * modules/yesno-tests (Makefile.am): Likewise.
27191         Suggested by Jim Meyering.
27192
27193 2010-01-24  Bruno Haible  <bruno@clisp.org>
27194
27195         More documentation.
27196         * doc/gnulib.texi (Writing modules): New chapter.
27197         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27198         the new chapter.
27199
27200 2010-01-24  Jim Meyering  <meyering@redhat.com>
27201
27202         maint.mk: do not prepend "./" after filtering
27203         * top/maint.mk (_prepend_srcdir_prefix): New variable
27204         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27205         "./" when $(srcdir) is ".".
27206
27207         define STREQ(a,b) consistently, removing useless parentheses
27208         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27209         since the only risk is that "a" or "b" contains an unparenthesized
27210         comma, but if either did that, STREQ would have 3 or more arguments.
27211         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27212         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27213         * lib/hash-triple.c (STREQ): Likewise.
27214         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27215         * lib/getugroups.c (STREQ): Likewise.
27216
27217 2010-01-23  Jim Meyering  <meyering@redhat.com>
27218
27219         maint.mk: fix syntax-check in a non-srcdir build directory
27220         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27221         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27222
27223 2010-01-22  Jim Meyering  <meyering@redhat.com>
27224
27225         userspec: add unit tests
27226         * tests/test-userspec.c: New file.
27227         * modules/userspec-tests: Likewise.
27228
27229 2010-01-21  Jim Meyering  <meyering@redhat.com>
27230
27231         maint.mk: handle source file names containing "." robustly
27232         * top/maint.mk (_dot_escaped_srcdir): Define.
27233         (VC_LIST): Use it in LHS of sed substitution.
27234
27235 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27236
27237         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27238         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27239         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27240         from a non-srcdir build.
27241
27242 2010-01-20  Eric Blake  <ebb9@byu.net>
27243
27244         warn-on-use: use instead of link-warning
27245         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27246         * modules/unistd (Depends-on, Makefile.am): Likewise.
27247         * modules/arpa_inet (Depends-on): Replace link-warning with
27248         warn-on-use.
27249         (Makefile.am): Update rules accordingly.
27250         * modules/ctype (Depends-on, Makefile.am): Likewise.
27251         * modules/dirent (Depends-on, Makefile.am): Likewise.
27252         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27253         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27254         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27255         * modules/locale (Depends-on, Makefile.am): Likewise.
27256         * modules/math (Depends-on, Makefile.am): Likewise.
27257         * modules/search (Depends-on, Makefile.am): Likewise.
27258         * modules/signal (Depends-on, Makefile.am): Likewise.
27259         * modules/spawn (Depends-on, Makefile.am): Likewise.
27260         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27261         * modules/string (Depends-on, Makefile.am): Likewise.
27262         * modules/strings (Depends-on, Makefile.am): Likewise.
27263         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27264         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27265         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27266         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27267         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27268         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27269         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27270         * modules/wchar (Depends-on, Makefile.am): Likewise.
27271         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27272         should be poisoned.
27273         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27274         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27275         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27276         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27277         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27278         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27279         * m4/math_h.m4 (gl_MATH_H): Likewise.
27280         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27281         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27282         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27283         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27284         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27285         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27286         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27287         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27288         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27290         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27291         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27292         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27293         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27294         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27295         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27296         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27297         GL_LINK_WARNING.
27298         * lib/ctype.in.h: Likewise.
27299         * lib/dirent.in.h: Likewise.
27300         * lib/fcntl.in.h: Likewise.
27301         * lib/inttypes.in.h: Likewise.
27302         * lib/langinfo.in.h: Likewise.
27303         * lib/locale.in.h: Likewise.
27304         * lib/math.in.h: Likewise.
27305         * lib/search.in.h: Likewise.
27306         * lib/signal.in.h: Likewise.
27307         * lib/spawn.in.h: Likewise.
27308         * lib/stdio.in.h: Likewise.
27309         * lib/stdlib.in.h: Likewise.
27310         * lib/string.in.h: Likewise.
27311         * lib/strings.in.h: Likewise.
27312         * lib/sys_file.in.h: Likewise.
27313         * lib/sys_ioctl.in.h: Likewise.
27314         * lib/sys_select.in.h: Likewise.
27315         * lib/sys_socket.in.h: Likewise.
27316         * lib/sys_stat.in.h: Likewise.
27317         * lib/sys_times.in.h: Likewise.
27318         * lib/sys_utsname.in.h: Likewise.
27319         * lib/unistd.in.h: Likewise.
27320         * lib/wchar.in.h: Likewise.
27321
27322 2010-01-20  Bruno Haible  <bruno@clisp.org>
27323
27324         Avoid duplicate -lm.
27325         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27326         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27327         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27328         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27329         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27330         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27331         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27332         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27333         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27334         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27335         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27336         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27337         Reported by Paolo Bonzini.
27338
27339 2010-01-19  Bruno Haible  <bruno@clisp.org>
27340
27341         langinfo, nl_langinfo: Relicense under LGPLv2+.
27342         * modules/langinfo (License): Change to LGPLv2+.
27343         * modules/nl_langinfo (License): Likewise.
27344         Patch by David Lutterkort <lutter@redhat.com>.
27345
27346 2010-01-19  Bruno Haible  <bruno@clisp.org>
27347
27348         Avoid compilation error with cc on OSF/1 5.1.
27349         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27350         statement, not before.
27351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27352
27353 2010-01-18  Bruno Haible  <bruno@clisp.org>
27354
27355         Avoid a link error due to the __printf__ symbol.
27356         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27357         and 2.6.x.
27358         (__format__, __printf__): Remove definitions.
27359         * lib/argp-fmtstream.h: Likewise.
27360         * lib/argp.h: Likewise.
27361         * lib/error.h: Likewise.
27362         * lib/vasnprintf.h: Likewise.
27363         * lib/xprintf.h: Likewise.
27364         * lib/xvasprintf.h: Likewise.
27365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27366
27367 2010-01-18  Bruno Haible  <bruno@clisp.org>
27368
27369         Tests for module 'tanl'.
27370         * modules/tanl-tests: New file.
27371         * tests/test-tanl.c: New file.
27372
27373         Tests for module 'sqrtl'.
27374         * modules/sqrtl-tests: New file.
27375         * tests/test-sqrtl.c: New file.
27376
27377         Tests for module 'sinl'.
27378         * modules/sinl-tests: New file.
27379         * tests/test-sinl.c: New file.
27380
27381         Tests for module 'logl'.
27382         * modules/logl-tests: New file.
27383         * tests/test-logl.c: New file.
27384
27385         Tests for module 'expl'.
27386         * modules/expl-tests: New file.
27387         * tests/test-expl.c: New file.
27388
27389         Tests for module 'cosl'.
27390         * modules/cosl-tests: New file.
27391         * tests/test-cosl.c: New file.
27392
27393         Tests for module 'atanl'.
27394         * modules/atanl-tests: New file.
27395         * tests/test-atanl.c: New file.
27396
27397         Tests for module 'asinl'.
27398         * modules/asinl-tests: New file.
27399         * tests/test-asinl.c: New file.
27400
27401         Tests for module 'acosl'.
27402         * modules/acosl-tests: New file.
27403         * tests/test-acosl.c: New file.
27404
27405         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27406         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27407         tanl): Use the standard gnulib idiom.
27408         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27409         * lib/sinl.c: Likewise.
27410         * lib/tanl.c: Don't include trigl.c.
27411         (kernel_tanl): Make static.
27412         * lib/sincosl.c: Include trigl.h first.
27413         * lib/trigl.c: Likewise.
27414         * m4/acosl.m4: New file.
27415         * m4/asinl.m4: New file.
27416         * m4/atanl.m4: New file.
27417         * m4/cosl.m4: New file.
27418         * m4/expl.m4: New file.
27419         * m4/logl.m4: New file.
27420         * m4/sinl.m4: New file.
27421         * m4/sqrtl.m4: New file.
27422         * m4/tanl.m4: New file.
27423         * m4/mathl.m4: Remove file.
27424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27425         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27426         Don't initialize GNULIB_MATHL.
27427         * modules/acosl: New file.
27428         * modules/asinl: New file.
27429         * modules/atanl: New file.
27430         * modules/cosl: New file.
27431         * modules/expl: New file.
27432         * modules/logl: New file.
27433         * modules/sinl: New file.
27434         * modules/sqrtl: New file.
27435         * modules/tanl: New file.
27436         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27437         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27438         substitute GNULIB_MATHL.
27439         * modules/mathl: Rewritten.
27440         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27441         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27442         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27443         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27444         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27445         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27446         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27447         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27448         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27449
27450 2010-01-18  Bruno Haible  <bruno@clisp.org>
27451
27452         sqrt: Make gl_FUNC_SQRT requirable.
27453         * m4/sqrt.m4: New file.
27454         * modules/sqrt (Files): Add it.
27455         (configure.ac): Invoke gl_FUNC_SQRT.
27456
27457 2010-01-18  Bruno Haible  <bruno@clisp.org>
27458
27459         New modules for common <math.h> functions.
27460         * m4/mathfunc.m4: New file.
27461         * modules/acos: New file.
27462         * modules/asin: New file.
27463         * modules/atan: New file.
27464         * modules/atan2: New file.
27465         * modules/cbrt: New file.
27466         * modules/copysign: New file.
27467         * modules/cos: New file.
27468         * modules/cosh: New file.
27469         * modules/erf: New file.
27470         * modules/erfc: New file.
27471         * modules/exp: New file.
27472         * modules/fabs: New file.
27473         * modules/fmod: New file.
27474         * modules/hypot: New file.
27475         * modules/j0: New file.
27476         * modules/j1: New file.
27477         * modules/jn: New file.
27478         * modules/ldexp: New file.
27479         * modules/lgamma: New file.
27480         * modules/log: New file.
27481         * modules/log10: New file.
27482         * modules/log1p: New file.
27483         * modules/logb: New file.
27484         * modules/modf: New file.
27485         * modules/nextafter: New file.
27486         * modules/pow: New file.
27487         * modules/remainder: New file.
27488         * modules/rint: New file.
27489         * modules/sin: New file.
27490         * modules/sinh: New file.
27491         * modules/sqrt: New file.
27492         * modules/tan: New file.
27493         * modules/tanh: New file.
27494         * modules/y0: New file.
27495         * modules/y1: New file.
27496         * modules/yn: New file.
27497         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27498         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27499         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27500         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27501         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27502         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27503         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27504         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27505         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27506         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27507         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27508         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27509         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27510         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27511         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27512         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27513         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27514         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27515         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27516         * doc/posix-functions/log.texi: Mention the 'log' module.
27517         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27518         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27519         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27520         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27521         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27522         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27523         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27524         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27525         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27526         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27527         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27528         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27529         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27530         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27531         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27532         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27533
27534 2010-01-18  Jim Meyering  <meyering@redhat.com>
27535
27536         ignore-value: relax license to LGPLv2+
27537         * modules/ignore-value (License): Relax to LGPLv2+.
27538
27539         getdate: don't leak when TZ contains two or more '"'s
27540         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27541         double quote in TZ after the first one.
27542
27543         readtokens: do not leak internal token_lengths buffer
27544         * lib/readtokens.c (readtokens): Free the local, lengths,
27545         when the supplied "token_lengths" parameter is NULL.
27546
27547 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27548
27549         Fix a couple of missing LIBTHREAD link failures on AIX.
27550         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27551         $(LIBTHREAD).
27552         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27553
27554         Link test-poll against INET_PTON_LIB.
27555         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27556         for inet_pton on Solaris 10.
27557
27558 2010-01-17  Bruno Haible  <bruno@clisp.org>
27559
27560         unistdio/*-sprintf: Fix typo in module description.
27561         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27562         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27563         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27564         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27565         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27566         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27567         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27569
27570 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27571
27572         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27573         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27574         variables in shell case patterns, for AIX and HP-UX ksh.
27575
27576         Split large sed scripts, for HP-UX sed.
27577         * modules/stdio: Split sed scripts around 50 sed commands,
27578         to avoid HP-UX limit of 99 commands, in the near future.
27579         * modules/string: Likewise.
27580         * modules/unistd: Likewise.
27581
27582         gnulib-tool: avoid writing in the current directory.
27583         * gnulib-tool (func_emit_lib_Makefile_am)
27584         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27585         not in the current directory, so concurrent gnulib-tool
27586         instances do not interfere.
27587
27588 2010-01-16  Jim Meyering  <meyering@redhat.com>
27589
27590         doc: update users.txt
27591         * users.txt: Add grep.
27592         (diffutils, gzip): Update URLs.
27593
27594 2010-01-12  Bruno Haible  <bruno@clisp.org>
27595
27596         posix_spawn: Avoid test failure on Cygwin.
27597         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27598         characters.
27599         Reported by Simon Josefsson.
27600
27601 2010-01-12  Bruno Haible  <bruno@clisp.org>
27602
27603         * tests/test-cond.c (main): When skipping the test, show the reason.
27604
27605 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27606
27607         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27608
27609 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27610
27611         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27612         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27613
27614 2010-01-12  Eric Blake  <ebb9@byu.net>
27615
27616         build: guarantee AS_VAR_IF
27617         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27618         (gl_AS_VAR_IF): Move...
27619         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27620         Reported by Simon Josefsson.
27621
27622 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27623
27624         * lib/stdio.in.h: Fix typo.
27625
27626 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27627
27628         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27629         libgpg-error.
27630
27631 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27632
27633         * tests/test-xalloc-die.sh: Use $EXEEXT.
27634
27635 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27636             Bruno Haible  <bruno@clisp.org>
27637
27638         getlogin, getlogin_r: Avoid test failure.
27639         * tests/test-getlogin.c: Include <stdio.h>.
27640         (main): Skip the test when the function fails because stdin is not a
27641         tty.
27642         * tests/test-getlogin_r.c: Include <stdio.h>.
27643         (main): Skip the test when the function fails because stdin is not a
27644         tty.
27645
27646 2010-01-11  Eric Blake  <ebb9@byu.net>
27647
27648         tests: avoid more large file warnings
27649         * tests/test-fflush.c: Avoid warning about ftell use.
27650         * tests/test-fseek.c: Avoid warning about fseek use.
27651
27652 2010-01-10  Bruno Haible  <bruno@clisp.org>
27653
27654         nproc: Work better on Linux when /proc and /sys are not mounted.
27655         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27656         as lower bound when, on glibc/Linux systems,
27657         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27658         Suggested by Pádraig Brady <P@draigbrady.com>.
27659         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27660
27661         nproc: Refactor.
27662         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27663         extracted from num_processors.
27664         (num_processors): Call it.
27665
27666 2010-01-11  Jim Meyering  <meyering@redhat.com>
27667
27668         utimecmp: avoid new warning from upcoming gcc-4.5.0
27669         * lib/utimecmp.c (BILLION): Define using #define rather than an
27670         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27671
27672 2010-01-11  Eric Blake  <ebb9@byu.net>
27673
27674         math: add portability warnings for classification macros
27675         * modules/math (Depends-on): Add warn-on-use.
27676         (Makefile.am): Provide new substitutions.
27677         * m4/math_h.m4 (gl_MATH_H): Require inline.
27678         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27679         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27680         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27681         implement warnings.
27682
27683         unistd: warn on use of environ without module
27684         * modules/unistd (Depends-on): Add warn-on-use.
27685         (Makefile.am): Provide new substitutions.
27686         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27687         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27688
27689         stdio: warn on suspicious uses
27690         * modules/stdio (Depends-on): Add warn-on-use.
27691         (Makefile.am): Provide new substitutions.
27692         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27693         fseeko.
27694         * lib/stdio.in.h (gets): Always warn on use.
27695         (fseek, ftell): Adjust when warnings are issued, and honor
27696         _GL_NO_LARGE_FILES as a way to silence the warning.
27697         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27698         any warning about large file offsets.
27699         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27700         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27701         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27702         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27703         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27704         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27705         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27706         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27707
27708         warn-on-use: new module
27709         * modules/warn-on-use: New file.
27710         * build-aux/warn-on-use.h: Likewise.
27711         * m4/warn-on-use.m4: Likewise.
27712         * MODULES.html.sh (Support for building): Mention it.
27713
27714 2010-01-10  Bruno Haible  <bruno@clisp.org>
27715
27716         Tests for module 'unistr/u32-strdup'.
27717         * modules/unistr/u32-strdup-tests: New file.
27718         * tests/unistr/test-u32-strdup.c: New file.
27719
27720         Tests for module 'unistr/u16-strdup'.
27721         * modules/unistr/u16-strdup-tests: New file.
27722         * tests/unistr/test-u16-strdup.c: New file.
27723
27724         Tests for module 'unistr/u8-strdup'.
27725         * modules/unistr/u8-strdup-tests: New file.
27726         * tests/unistr/test-u8-strdup.c: New file.
27727         * tests/unistr/test-strdup.h: New file.
27728
27729         Tests for module 'unistr/u32-strncmp'.
27730         * modules/unistr/u32-strncmp-tests: New file.
27731         * tests/unistr/test-u32-strncmp.c: New file.
27732
27733         Tests for module 'unistr/u16-strncmp'.
27734         * modules/unistr/u16-strncmp-tests: New file.
27735         * tests/unistr/test-u16-strncmp.c: New file.
27736
27737         Tests for module 'unistr/u8-strncmp'.
27738         * modules/unistr/u8-strncmp-tests: New file.
27739         * tests/unistr/test-u8-strncmp.c: New file.
27740         * tests/unistr/test-strncmp.h: New file.
27741
27742         Tests for module 'unistr/u32-strcoll'.
27743         * modules/unistr/u32-strcoll-tests: New file.
27744         * tests/unistr/test-u32-strcoll.c: New file.
27745
27746         Tests for module 'unistr/u16-strcoll'.
27747         * modules/unistr/u16-strcoll-tests: New file.
27748         * tests/unistr/test-u16-strcoll.c: New file.
27749
27750         Tests for module 'unistr/u8-strcoll'.
27751         * modules/unistr/u8-strcoll-tests: New file.
27752         * tests/unistr/test-u8-strcoll.c: New file.
27753
27754         Tests for module 'unistr/u32-strcmp'.
27755         * modules/unistr/u32-strcmp-tests: New file.
27756         * tests/unistr/test-u32-strcmp.c: New file.
27757         * tests/unistr/test-u32-strcmp.h: New file.
27758
27759         Tests for module 'unistr/u16-strcmp'.
27760         * modules/unistr/u16-strcmp-tests: New file.
27761         * tests/unistr/test-u16-strcmp.c: New file.
27762         * tests/unistr/test-u16-strcmp.h: New file.
27763
27764         Tests for module 'unistr/u8-strcmp'.
27765         * modules/unistr/u8-strcmp-tests: New file.
27766         * tests/unistr/test-u8-strcmp.c: New file.
27767         * tests/unistr/test-u8-strcmp.h: New file.
27768         * tests/unistr/test-strcmp.h: New file.
27769
27770         Tests for module 'unistr/u32-strncat'.
27771         * modules/unistr/u32-strncat-tests: New file.
27772         * tests/unistr/test-u32-strncat.c: New file.
27773
27774         Tests for module 'unistr/u16-strncat'.
27775         * modules/unistr/u16-strncat-tests: New file.
27776         * tests/unistr/test-u16-strncat.c: New file.
27777
27778         Tests for module 'unistr/u8-strncat'.
27779         * modules/unistr/u8-strncat-tests: New file.
27780         * tests/unistr/test-u8-strncat.c: New file.
27781         * tests/unistr/test-strncat.h: New file.
27782
27783         Tests for module 'unistr/u32-strcat'.
27784         * modules/unistr/u32-strcat-tests: New file.
27785         * tests/unistr/test-u32-strcat.c: New file.
27786
27787         Tests for module 'unistr/u16-strcat'.
27788         * modules/unistr/u16-strcat-tests: New file.
27789         * tests/unistr/test-u16-strcat.c: New file.
27790
27791         Tests for module 'unistr/u8-strcat'.
27792         * modules/unistr/u8-strcat-tests: New file.
27793         * tests/unistr/test-u8-strcat.c: New file.
27794         * tests/unistr/test-strcat.h: New file.
27795
27796         Tests for module 'unistr/u32-stpncpy'.
27797         * modules/unistr/u32-stpncpy-tests: New file.
27798         * tests/unistr/test-u32-stpncpy.c: New file.
27799
27800         Tests for module 'unistr/u16-stpncpy'.
27801         * modules/unistr/u16-stpncpy-tests: New file.
27802         * tests/unistr/test-u16-stpncpy.c: New file.
27803
27804         Tests for module 'unistr/u8-stpncpy'.
27805         * modules/unistr/u8-stpncpy-tests: New file.
27806         * tests/unistr/test-u8-stpncpy.c: New file.
27807         * tests/unistr/test-stpncpy.h: New file.
27808
27809         Tests for module 'unistr/u32-strncpy'.
27810         * modules/unistr/u32-strncpy-tests: New file.
27811         * tests/unistr/test-u32-strncpy.c: New file.
27812
27813         Tests for module 'unistr/u16-strncpy'.
27814         * modules/unistr/u16-strncpy-tests: New file.
27815         * tests/unistr/test-u16-strncpy.c: New file.
27816
27817         Tests for module 'unistr/u8-strncpy'.
27818         * modules/unistr/u8-strncpy-tests: New file.
27819         * tests/unistr/test-u8-strncpy.c: New file.
27820         * tests/unistr/test-strncpy.h: New file.
27821
27822         Tests for module 'unistr/u32-stpcpy'.
27823         * modules/unistr/u32-stpcpy-tests: New file.
27824         * tests/unistr/test-u32-stpcpy.c: New file.
27825
27826         Tests for module 'unistr/u16-stpcpy'.
27827         * modules/unistr/u16-stpcpy-tests: New file.
27828         * tests/unistr/test-u16-stpcpy.c: New file.
27829
27830         Tests for module 'unistr/u8-stpcpy'.
27831         * modules/unistr/u8-stpcpy-tests: New file.
27832         * tests/unistr/test-u8-stpcpy.c: New file.
27833         * tests/unistr/test-stpcpy.h: New file.
27834
27835         Tests for module 'unistr/u32-strcpy'.
27836         * modules/unistr/u32-strcpy-tests: New file.
27837         * tests/unistr/test-u32-strcpy.c: New file.
27838
27839         Tests for module 'unistr/u16-strcpy'.
27840         * modules/unistr/u16-strcpy-tests: New file.
27841         * tests/unistr/test-u16-strcpy.c: New file.
27842
27843         Tests for module 'unistr/u8-strcpy'.
27844         * modules/unistr/u8-strcpy-tests: New file.
27845         * tests/unistr/test-u8-strcpy.c: New file.
27846         * tests/unistr/test-strcpy.h: New file.
27847
27848         Tests for module 'unistr/u32-strnlen'.
27849         * modules/unistr/u32-strnlen-tests: New file.
27850         * tests/unistr/test-u32-strnlen.c: New file.
27851
27852         Tests for module 'unistr/u16-strnlen'.
27853         * modules/unistr/u16-strnlen-tests: New file.
27854         * tests/unistr/test-u16-strnlen.c: New file.
27855
27856         Tests for module 'unistr/u8-strnlen'.
27857         * modules/unistr/u8-strnlen-tests: New file.
27858         * tests/unistr/test-u8-strnlen.c: New file.
27859         * tests/unistr/test-strnlen.h: New file.
27860
27861         Tests for module 'unistr/u32-strlen'.
27862         * modules/unistr/u32-strlen-tests: New file.
27863         * tests/unistr/test-u32-strlen.c: New file.
27864
27865         Tests for module 'unistr/u16-strlen'.
27866         * modules/unistr/u16-strlen-tests: New file.
27867         * tests/unistr/test-u16-strlen.c: New file.
27868
27869         Tests for module 'unistr/u8-strlen'.
27870         * modules/unistr/u8-strlen-tests: New file.
27871         * tests/unistr/test-u8-strlen.c: New file.
27872
27873         Tests for module 'unistr/u32-prev'.
27874         * modules/unistr/u32-prev-tests: New file.
27875         * tests/unistr/test-u32-prev.c: New file.
27876
27877         Tests for module 'unistr/u16-prev'.
27878         * modules/unistr/u16-prev-tests: New file.
27879         * tests/unistr/test-u16-prev.c: New file.
27880
27881         Tests for module 'unistr/u8-prev'.
27882         * modules/unistr/u8-prev-tests: New file.
27883         * tests/unistr/test-u8-prev.c: New file.
27884
27885         Tests for module 'unistr/u32-next'.
27886         * modules/unistr/u32-next-tests: New file.
27887         * tests/unistr/test-u32-next.c: New file.
27888
27889         Tests for module 'unistr/u16-next'.
27890         * modules/unistr/u16-next-tests: New file.
27891         * tests/unistr/test-u16-next.c: New file.
27892
27893         Tests for module 'unistr/u8-next'.
27894         * modules/unistr/u8-next-tests: New file.
27895         * tests/unistr/test-u8-next.c: New file.
27896
27897         Tests for module 'unistr/u32-strmbtouc'.
27898         * modules/unistr/u32-strmbtouc-tests: New file.
27899         * tests/unistr/test-u32-strmbtouc.c: New file.
27900
27901         Tests for module 'unistr/u16-strmbtouc'.
27902         * modules/unistr/u16-strmbtouc-tests: New file.
27903         * tests/unistr/test-u16-strmbtouc.c: New file.
27904
27905         Tests for module 'unistr/u8-strmbtouc'.
27906         * modules/unistr/u8-strmbtouc-tests: New file.
27907         * tests/unistr/test-u8-strmbtouc.c: New file.
27908
27909         Tests for module 'unistr/u32-strmblen'.
27910         * modules/unistr/u32-strmblen-tests: New file.
27911         * tests/unistr/test-u32-strmblen.c: New file.
27912
27913         Tests for module 'unistr/u16-strmblen'.
27914         * modules/unistr/u16-strmblen-tests: New file.
27915         * tests/unistr/test-u16-strmblen.c: New file.
27916
27917         Tests for module 'unistr/u8-strmblen'.
27918         * modules/unistr/u8-strmblen-tests: New file.
27919         * tests/unistr/test-u8-strmblen.c: New file.
27920
27921         Tests for module 'unistr/u32-cpy-alloc'.
27922         * modules/unistr/u32-cpy-alloc-tests: New file.
27923         * tests/unistr/test-u32-cpy-alloc.c: New file.
27924
27925         Tests for module 'unistr/u16-cpy-alloc'.
27926         * modules/unistr/u16-cpy-alloc-tests: New file.
27927         * tests/unistr/test-u16-cpy-alloc.c: New file.
27928
27929         Tests for module 'unistr/u8-cpy-alloc'.
27930         * modules/unistr/u8-cpy-alloc-tests: New file.
27931         * tests/unistr/test-u8-cpy-alloc.c: New file.
27932         * tests/unistr/test-cpy-alloc.h: New file.
27933
27934         Tests for module 'unistr/u32-mbsnlen'.
27935         * modules/unistr/u32-mbsnlen-tests: New file.
27936         * tests/unistr/test-u32-mbsnlen.c: New file.
27937
27938         Tests for module 'unistr/u16-mbsnlen'.
27939         * modules/unistr/u16-mbsnlen-tests: New file.
27940         * tests/unistr/test-u16-mbsnlen.c: New file.
27941
27942         Tests for module 'unistr/u8-mbsnlen'.
27943         * modules/unistr/u8-mbsnlen-tests: New file.
27944         * tests/unistr/test-u8-mbsnlen.c: New file.
27945
27946         Tests for module 'unistr/u32-chr'.
27947         * modules/unistr/u32-chr-tests: New file.
27948         * tests/unistr/test-u32-chr.c: New file.
27949
27950         Tests for module 'unistr/u16-chr'.
27951         * modules/unistr/u16-chr-tests: New file.
27952         * tests/unistr/test-u16-chr.c: New file.
27953
27954         Tests for module 'unistr/u8-chr'.
27955         * modules/unistr/u8-chr-tests: New file.
27956         * tests/unistr/test-u8-chr.c: New file.
27957         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27958
27959         Tests for module 'unistr/u32-cmp2'.
27960         * modules/unistr/u32-cmp2-tests: New file.
27961         * tests/unistr/test-u32-cmp2.c: New file.
27962
27963         Tests for module 'unistr/u16-cmp2'.
27964         * modules/unistr/u16-cmp2-tests: New file.
27965         * tests/unistr/test-u16-cmp2.c: New file.
27966
27967         Tests for module 'unistr/u8-cmp2'.
27968         * modules/unistr/u8-cmp2-tests: New file.
27969         * tests/unistr/test-u8-cmp2.c: New file.
27970         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27971
27972         Tests for module 'unistr/u32-cmp'.
27973         * modules/unistr/u32-cmp-tests: New file.
27974         * tests/unistr/test-u32-cmp.c: New file.
27975
27976         Tests for module 'unistr/u16-cmp'.
27977         * modules/unistr/u16-cmp-tests: New file.
27978         * tests/unistr/test-u16-cmp.c: New file.
27979
27980         Tests for module 'unistr/u8-cmp'.
27981         * modules/unistr/u8-cmp-tests: New file.
27982         * tests/unistr/test-u8-cmp.c: New file.
27983         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27984
27985         Tests for module 'unistr/u32-set'.
27986         * modules/unistr/u32-set-tests: New file.
27987         * tests/unistr/test-u32-set.c: New file.
27988
27989         Tests for module 'unistr/u16-set'.
27990         * modules/unistr/u16-set-tests: New file.
27991         * tests/unistr/test-u16-set.c: New file.
27992
27993         Tests for module 'unistr/u8-set'.
27994         * modules/unistr/u8-set-tests: New file.
27995         * tests/unistr/test-u8-set.c: New file.
27996         * tests/unistr/test-set.h: New file.
27997
27998         Tests for module 'unistr/u32-move'.
27999         * modules/unistr/u32-move-tests: New file.
28000         * tests/unistr/test-u32-move.c: New file.
28001
28002         Tests for module 'unistr/u16-move'.
28003         * modules/unistr/u16-move-tests: New file.
28004         * tests/unistr/test-u16-move.c: New file.
28005
28006         Tests for module 'unistr/u8-move'.
28007         * modules/unistr/u8-move-tests: New file.
28008         * tests/unistr/test-u8-move.c: New file.
28009         * tests/unistr/test-move.h: New file.
28010
28011         Tests for module 'unistr/u32-cpy'.
28012         * modules/unistr/u32-cpy-tests: New file.
28013         * tests/unistr/test-u32-cpy.c: New file.
28014
28015         Tests for module 'unistr/u16-cpy'.
28016         * modules/unistr/u16-cpy-tests: New file.
28017         * tests/unistr/test-u16-cpy.c: New file.
28018
28019         Tests for module 'unistr/u8-cpy'.
28020         * modules/unistr/u8-cpy-tests: New file.
28021         * tests/unistr/test-u8-cpy.c: New file.
28022         * tests/unistr/test-cpy.h: New file.
28023
28024 2010-01-09  Bruno Haible  <bruno@clisp.org>
28025
28026         Tests for module 'unistr/u32-uctomb'.
28027         * modules/unistr/u32-uctomb-tests: New file.
28028         * tests/unistr/test-u32-uctomb.c: New file.
28029
28030         Tests for module 'unistr/u16-uctomb'.
28031         * modules/unistr/u16-uctomb-tests: New file.
28032         * tests/unistr/test-u16-uctomb.c: New file.
28033
28034         Tests for module 'unistr/u8-uctomb'.
28035         * modules/unistr/u8-uctomb-tests: New file.
28036         * tests/unistr/test-u8-uctomb.c: New file.
28037
28038         Tests for module 'unistr/u32-mbtoucr'.
28039         * modules/unistr/u32-mbtoucr-tests: New file.
28040         * tests/unistr/test-u32-mbtoucr.c: New file.
28041
28042         Tests for module 'unistr/u16-mbtoucr'.
28043         * modules/unistr/u16-mbtoucr-tests: New file.
28044         * tests/unistr/test-u16-mbtoucr.c: New file.
28045
28046         Tests for module 'unistr/u8-mbtoucr'.
28047         * modules/unistr/u8-mbtoucr-tests: New file.
28048         * tests/unistr/test-u8-mbtoucr.c: New file.
28049
28050         Tests for module 'unistr/u32-mbtouc'.
28051         * modules/unistr/u32-mbtouc-tests: New file.
28052         * tests/unistr/test-u32-mbtouc.c: New file.
28053
28054         Tests for module 'unistr/u16-mbtouc'.
28055         * modules/unistr/u16-mbtouc-tests: New file.
28056         * tests/unistr/test-u16-mbtouc.c: New file.
28057
28058         Tests for module 'unistr/u8-mbtouc'.
28059         * modules/unistr/u8-mbtouc-tests: New file.
28060         * tests/unistr/test-u8-mbtouc.c: New file.
28061
28062         Tests for module 'unistr/u32-mbtouc-unsafe'.
28063         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28064         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28065         * tests/unistr/test-u32-mbtouc.h: New file.
28066
28067         Tests for module 'unistr/u16-mbtouc-unsafe'.
28068         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28069         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28070         * tests/unistr/test-u16-mbtouc.h: New file.
28071
28072         Tests for module 'unistr/u8-mbtouc-unsafe'.
28073         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28074         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28075         * tests/unistr/test-u8-mbtouc.h: New file.
28076
28077         Tests for module 'unistr/u32-mblen'.
28078         * modules/unistr/u32-mblen-tests: New file.
28079         * tests/unistr/test-u32-mblen.c: New file.
28080
28081         Tests for module 'unistr/u16-mblen'.
28082         * modules/unistr/u16-mblen-tests: New file.
28083         * tests/unistr/test-u16-mblen.c: New file.
28084
28085         Tests for module 'unistr/u8-mblen'.
28086         * modules/unistr/u8-mblen-tests: New file.
28087         * tests/unistr/test-u8-mblen.c: New file.
28088
28089         Tests for module 'unistr/u32-to-u16'.
28090         * modules/unistr/u32-to-u16-tests: New file.
28091         * tests/unistr/test-u32-to-u16.c: New file.
28092
28093         Tests for module 'unistr/u32-to-u8'.
28094         * modules/unistr/u32-to-u8-tests: New file.
28095         * tests/unistr/test-u32-to-u8.c: New file.
28096
28097         Tests for module 'unistr/u16-to-u32'.
28098         * modules/unistr/u16-to-u32-tests: New file.
28099         * tests/unistr/test-u16-to-u32.c: New file.
28100
28101         Tests for module 'unistr/u16-to-u8'.
28102         * modules/unistr/u16-to-u8-tests: New file.
28103         * tests/unistr/test-u16-to-u8.c: New file.
28104
28105         Tests for module 'unistr/u8-to-u32'.
28106         * modules/unistr/u8-to-u32-tests: New file.
28107         * tests/unistr/test-u8-to-u32.c: New file.
28108
28109         Tests for module 'unistr/u8-to-u16'.
28110         * modules/unistr/u8-to-u16-tests: New file.
28111         * tests/unistr/test-u8-to-u16.c: New file.
28112
28113         Tests for module 'unistr/u32-check'.
28114         * modules/unistr/u32-check-tests: New file.
28115         * tests/unistr/test-u32-check.c: New file.
28116
28117         Tests for module 'unistr/u16-check'.
28118         * modules/unistr/u16-check-tests: New file.
28119         * tests/unistr/test-u16-check.c: New file.
28120
28121         Tests for module 'unistr/u8-check'.
28122         * modules/unistr/u8-check-tests: New file.
28123         * tests/unistr/test-u8-check.c: New file.
28124
28125         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28126         (category_equals): New function.
28127         (main): Add more tests.
28128         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28129
28130         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28131
28132 2010-01-10  Bruno Haible  <bruno@clisp.org>
28133
28134         unistr/u*-strcoll: Try harder to distinguish different strings.
28135         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28136         compare s1 and s2 to see if they are different.
28137
28138 2010-01-10  Bruno Haible  <bruno@clisp.org>
28139
28140         unistr/u*-stpncpy: Fix the return value.
28141         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28142         description of the return value consistent with stpncpy in glibc.
28143         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28144         written non-NUL unit.
28145
28146 2010-01-10  Bruno Haible  <bruno@clisp.org>
28147
28148         unistr/u*-next: Add missing dependencies.
28149         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28150         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28151         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28152
28153 2010-01-10  Bruno Haible  <bruno@clisp.org>
28154
28155         unistr/u8-mbsnlen: Fix return value for incomplete character.
28156         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28157         u8_mblen.
28158         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28159         Remove unistr/u8-mblen.
28160         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28161         u16_mblen.
28162         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28163         Remove unistr/u16-mblen.
28164
28165 2010-01-10  Bruno Haible  <bruno@clisp.org>
28166
28167         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28168         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28169         Reported by Brian Gough <bjg@gnu.org> and
28170         Chris Clayton <chris2553@googlemail.com> via
28171         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28172
28173 2010-01-09  Bruno Haible  <bruno@clisp.org>
28174
28175         unistr/u16-to-u32: Reject invalid input.
28176         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28177         u16_mbtouc.
28178         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28179         Remove unistr/u16-mbtouc.
28180
28181         unistr/u16-to-u8: Reject invalid input.
28182         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28183         u16_mbtouc.
28184         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28185         Remove unistr/u16-mbtouc.
28186
28187         unistr/u8-to-u32: Reject invalid input.
28188         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28189         u8_mbtouc.
28190         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28191         Remove unistr/u8-mbtouc.
28192
28193         unistr/u8-to-u16: Reject invalid input.
28194         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28195         u8_mbtouc.
28196         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28197         Remove unistr/u8-mbtouc.
28198
28199 2010-01-09  Bruno Haible  <bruno@clisp.org>
28200
28201         Tests for module 'getlogin'.
28202         * modules/getlogin-tests: New file.
28203         * tests/test-getlogin.c: New file.
28204
28205         New module 'getlogin'.
28206         * lib/unistd.in.h (getlogin): New declaration.
28207         * lib/getlogin.c: New file.
28208         * m4/getlogin.m4: New file.
28209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28210         HAVE_GETLOGIN.
28211         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28212         HAVE_GETLOGIN.
28213         * modules/getlogin: New file.
28214         * doc/posix-functions/getlogin.texi: Mention the new module.
28215         Reported by John W. Eaton <jwe@gnu.org>.
28216
28217 2010-01-09  Bruno Haible  <bruno@clisp.org>
28218
28219         getlogin_r: Support for native Windows.
28220         * lib/getlogin_r.c: Include <windows.h>
28221         (getlogin_r): Implement for native Windows.
28222         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28223         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28224         via John W. Eaton <jwe@gnu.org>.
28225
28226 2010-01-09  Bruno Haible  <bruno@clisp.org>
28227
28228         getlogin_r: Small fixes.
28229         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28230         succeeds.
28231         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28232         before testing whether getlogin_r is declared. No need to set
28233         HAVE_DECL_GETLOGIN_R to 1.
28234         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28235
28236 2010-01-09  Bruno Haible  <bruno@clisp.org>
28237
28238         * lib/unistd.in.h (getlogin_r): Add comment.
28239
28240 2010-01-09  Bruno Haible  <bruno@clisp.org>
28241
28242         Tests for module 'getlogin_r'.
28243         * modules/getlogin_r-tests: New file.
28244         * tests/test-getlogin_r.c: New file.
28245
28246 2010-01-09  Jim Meyering  <meyering@redhat.com>
28247
28248         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28249         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28250         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28251
28252 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28253
28254         * lib/dup2.c (rpl_dup2): Improve comment.
28255
28256 2010-01-08  Eric Blake  <ebb9@byu.net>
28257
28258         maint.mk: allow packages to add makefile @@ exceptions
28259         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28260         (sc_makefile_check): Rename...
28261         (sc_makefile_at_at_check): ...to this, and use hook.
28262
28263         dup2: work around mingw bug
28264         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28265         Reported by Simon Josefsson.
28266
28267 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28268
28269         glob: Fix C++ compilation.
28270         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28271         C++.
28272
28273 2010-01-07  Bruno Haible  <bruno@clisp.org>
28274
28275         Fix indentation of wctype.in.h, broken since 2007-01-06.
28276         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28277
28278 2010-01-07  Bruno Haible  <bruno@clisp.org>
28279
28280         mbslen: Avoid collision with system function.
28281         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28282         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28283         * m4/mbslen.m4: New file.
28284         * modules/mbslen (Files): Add it.
28285         (configure.ac): Invoke gl_MBSLEN.
28286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28287         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28288         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28289         via Ian Beckwith <ianb@erislabs.net>.
28290
28291 2010-01-07  Bruno Haible  <bruno@clisp.org>
28292
28293         dirent: Document the last fix.
28294         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28295
28296 2010-01-07  Bruno Haible  <bruno@clisp.org>
28297
28298         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28299         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28300         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28301         va_list are defined.
28302         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28303         Reported by Eric Blake.
28304
28305 2010-01-07  Bruno Haible  <bruno@clisp.org>
28306
28307         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28308         * modules/xlist (Depends-on): Add 'list',
28309         * modules/xoset (Depends-on): Add 'oset'.
28310         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28311
28312 2010-01-07  Bruno Haible  <bruno@clisp.org>
28313
28314         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28315         * doc/posix-functions/strncasecmp.texi: Likewise.
28316
28317 2010-01-07  Bruno Haible  <bruno@clisp.org>
28318
28319         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28320
28321 2010-01-07  John W. Eaton  <jwe@octave.org>
28322
28323         wctype: allow C++ use
28324         * lib/wctype.in.h: Add extern "C" block for C++.
28325
28326 2010-01-06  Eric Blake  <ebb9@byu.net>
28327
28328         maint.mk: detect incorrect GFDL usage
28329         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28330
28331 2010-01-06  Jim Meyering  <meyering@redhat.com>
28332         and Eric Blake  <ebb9@byu.net>
28333
28334         maint.mk: ignore multi-line copyright in NEWS
28335         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28336
28337 2010-01-06  Eric Blake  <ebb9@byu.net>
28338
28339         select: add missing dependency
28340         * modules/select-tests (Depends-on): Move sockets dependency...
28341         * modules/select (Depends-on): ...here.
28342         Reported by Ian Beckwith.
28343
28344         doc: regenerate INSTALL
28345         * doc/INSTALL: Reflect recent autoconf update.
28346         * doc/INSTALL.ISO: Likewise.
28347         * doc/INSTALL.UTF-8: Likewise.
28348
28349         pread: fix compilation on glibc
28350         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28351         Reported by Ralf Wildenhues.
28352
28353         dirent: fix test failure
28354         * lib/dirent.in.h (includes): Guarantee ino_t.
28355         Reported by Ralf Wildenhues.
28356
28357 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28358
28359         linkat, renameat: avoid bad free
28360         * lib/at-func2.c (at_func2): Fix typo.
28361         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28362
28363 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28364
28365         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28366         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28367         to avoid failure of symlink test later.
28368
28369 2010-01-06  Eric Blake  <ebb9@byu.net>
28370
28371         stdio, unistd: guarantee ssize_t
28372         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28373         2008 are exposed when needed.
28374         * lib/stdio.in.h (includes): Likewise.
28375         Reported by Ralf Wildenhues.
28376
28377 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28378
28379         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28380         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28381         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28382
28383 2010-01-06  Jim Meyering  <meyering@redhat.com>
28384
28385         readtokens: this module *does* require xalloc.h
28386         It uses only functions that were omitted by the old syntax-check rule.
28387         * lib/readtokens.c: Include "xalloc.h" once again.
28388         * modules/readtokens (Depends-on): Add xalloc.
28389         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28390
28391 2010-01-05  Eric Blake  <ebb9@byu.net>
28392
28393         maint: support 'make announcement' from a VPATH build
28394         * top/maint.mk (announcement): Look for correct NEWS file.
28395
28396 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28397
28398         utimens (fdutimens): ignore a negative FD, per contract
28399         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28400         when we have a valid file descriptor.  Otherwise, using a brand
28401         new glibc (with just-patched futimens that now fails with EBADF)
28402         would cause this function to fail with ENOSYS.
28403         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28404         See also http://bugzilla.redhat.com/552320.
28405
28406 2010-01-05  Eric Blake  <ebb9@byu.net>
28407
28408         strcase: document what it provides
28409         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28410         gnulib module.
28411         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28412         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28413
28414 2010-01-05  Jim Meyering  <meyering@redhat.com>
28415
28416         maint: remove useless inclusions of "xalloc.h"
28417         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28418         * lib/readtokens.c: Likewise.
28419         * lib/same.c: Likewise.
28420         * modules/getloadavg (Depends-on): Remove xalloc.
28421         * modules/readtokens: Likewise.
28422         * modules/same: Likewise.
28423
28424         maint.mk: include 4 more function names in alloca.h-checking regexp
28425         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28426         regexp.  Before, we would give a false-positive (saying alloca.h
28427         is included unnecessarily) when the only uses involved omitted symbols.
28428
28429         xalloc.h: use consistent formatting
28430         * lib/xalloc.h: Move declarations to start in the first column.
28431
28432 2010-01-05  Eric Blake  <ebb9@byu.net>
28433
28434         mkdir: avoid xalloc
28435         * lib/mkdir.c (includes): Drop unused header.
28436         Reported by John W. Eaton.
28437
28438 2010-01-04  Jim Meyering  <meyering@redhat.com>
28439
28440         nl_langinfo: avoid configure-time syntax error
28441         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28442         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28443         the empty string.  Don't let that provoke a shell syntax error.
28444
28445         regcomp, regexec, fnmatch: avoid array bounds read error
28446         * lib/regcomp.c (build_equiv_class): From glibc:
28447         Use only the low 24 bits of a findidx return value as an index
28448         into the weights array.  Patch by Ulrich Drepper:
28449         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28450         * lib/regexec.c (check_node_accept_bytes): Likewise.
28451         * lib/fnmatch_loop.c (FCT): Likewise.
28452
28453         regcomp: skip collseq lookup when there are no rules
28454         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28455         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28456
28457         regcomp: recognize ill-formed { } expressions
28458         * lib/regcomp.c (parse_dup_op): From glibc:
28459         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28460
28461         regcomp: fix typo in comment
28462         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28463         s/satisfy/satisfies/.
28464
28465         regcomp: sync from glibc: remove dead store
28466         * lib/regcomp.c (duplicate_node_closure): Remove useless
28467         search_duplicated_node call and dead store.
28468
28469         regcomp: sync from glibc; always use nl_langinfo
28470         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28471         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28472         * modules/regex (Depends-on): Add nl_langinfo.
28473
28474 2010-01-04  Eric Blake  <ebb9@byu.net>
28475
28476         fdopendir: fix configure test
28477         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28478
28479 2010-01-01  Bruno Haible  <bruno@clisp.org>
28480
28481         wchar: Remove unused configure check.
28482         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28483
28484 2010-01-01  Eric Blake  <ebb9@byu.net>
28485
28486         headers: make check of system header explicit
28487         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28488         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28489         ourselves.
28490         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28491         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28493         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28494         internals.
28495         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28496         missing.
28497         Suggested by Bruno Haible.
28498
28499 2010-01-01  Jim Meyering  <meyering@redhat.com>
28500
28501         ChangeLog: tweak to eliminate unnecessary copyright line
28502         * ChangeLog: Remove a copyright line that was mistakenly updated
28503         by today's update-copyright run.  Reported by Eric Blake.
28504
28505         test-update-copyright: don't let envvar setting cause test failure
28506         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28507
28508 2010-01-01  Bruno Haible  <bruno@clisp.org>
28509
28510         localename: Avoid gcc warning.
28511         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28512         function if it is not used.
28513
28514 2010-01-01  Jim Meyering  <meyering@redhat.com>
28515
28516         update nearly all FSF copyright year lists to include 2010
28517         Use the same procedure as for 2009, outlined in
28518         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28519
28520         version-etc: set COPYRIGHT_YEAR to 2010
28521         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28522
28523 2009-12-31  Eric Blake  <ebb9@byu.net>
28524
28525         doc: correct availability of cygwin 1.5.x getopt
28526         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28527         variables.
28528         * doc/posix-functions/opterr.texi (opterr): Likewise.
28529         * doc/posix-functions/optind.texi (optind): Likewise.
28530         * doc/posix-functions/optopt.texi (optopt): Likewise.
28531         * doc/posix-functions/tzname.texi (tzname): Likewise.
28532
28533         openat: update maintainer
28534         * modules/openat (Maintainer): Add myself.
28535
28536         utimens: avoid shadowing warning
28537         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28538         buffers into one, to avoid shadowing, as well as avoiding a
28539         redundant stat.
28540         Reported by Jim Meyering.
28541
28542         test-dup2: avoid compiler warning
28543         * tests/test-dup2.c (is_inheritable): Only define if used.
28544
28545 2010-01-01  Bruno Haible  <bruno@clisp.org>
28546
28547         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28548         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28549         defined, use wctomb instead of wcrtomb.
28550
28551 2010-01-01  Bruno Haible  <bruno@clisp.org>
28552
28553         iconv: Reject native Solaris iconv.
28554         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28555         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28556
28557 2009-12-31  Bruno Haible  <bruno@clisp.org>
28558
28559         * tests/test-signal.c (main): Remove test of 'SIG'.
28560
28561 2009-12-31  Bruno Haible  <bruno@clisp.org>
28562
28563         spawn: Fix incomplete fix.
28564         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28565         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28566         warnings for GNULIB_POSIXCHECK again.
28567         Reported by Eric Blake.
28568
28569 2009-12-31  Bruno Haible  <bruno@clisp.org>
28570
28571         Avoid namespace pollution on glibc systems.
28572         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28573         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28574         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28575         glibc systems.
28576
28577 2009-12-31  Bruno Haible  <bruno@clisp.org>
28578
28579         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28580         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28581         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28582         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28583         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28584         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28585         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28586
28587 2009-12-31  Bruno Haible  <bruno@clisp.org>
28588
28589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28590         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28591         afterwards.
28592
28593 2009-12-31  Bruno Haible  <bruno@clisp.org>
28594
28595         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28596         SYS_UTSNAME_H.
28597
28598 2009-12-31  Bruno Haible  <bruno@clisp.org>
28599
28600         spawn: Fix misapplied patch.
28601         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28602         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28603         warnings for GNULIB_POSIXCHECK.
28604
28605 2009-12-31  Bruno Haible  <bruno@clisp.org>
28606
28607         times: Update after sys_times changed.
28608         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28609         * modules/times (Files): Add it.
28610         (configure.ac): Invoke gl_FUNC_TIMES.
28611
28612 2009-12-31  Bruno Haible  <bruno@clisp.org>
28613
28614         Use AC_C_INLINE where necessary.
28615         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28616         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28617         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28618         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28619         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28620         * m4/mbiter.m4 (gl_MBITER): Likewise.
28621         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28622         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28623         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28624         * modules/u64 (configure.ac): Likewise.
28625
28626 2009-12-31  Bruno Haible  <bruno@clisp.org>
28627
28628         Use AC_C_INLINE instead of module 'inline' where possible.
28629         * modules/inline (Description): Clarify purpose.
28630         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28631         * modules/count-one-bits (Depends-on): Remove inline.
28632         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28633         * modules/openat (Depends-on): Remove inline.
28634         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28635         instead of depending on module 'inline'.
28636         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28637         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28638         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28639         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28640         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28641         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28642         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28643         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28644         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28645         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28646         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28647         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28648         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28649         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28650         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28651         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28652         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28653         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28654         Likewise.
28655         * modules/unictype/property-ascii-hex-digit (Depends-on,
28656         configure.ac): Likewise.
28657         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28658         configure.ac): Likewise.
28659         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28660         configure.ac): Likewise.
28661         * modules/unictype/property-bidi-block-separator (Depends-on,
28662         configure.ac): Likewise.
28663         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28664         configure.ac): Likewise.
28665         * modules/unictype/property-bidi-common-separator (Depends-on,
28666         configure.ac): Likewise.
28667         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28668         Likewise.
28669         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28670         configure.ac): Likewise.
28671         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28672         configure.ac): Likewise.
28673         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28674         configure.ac): Likewise.
28675         * modules/unictype/property-bidi-european-digit (Depends-on,
28676         configure.ac): Likewise.
28677         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28678         configure.ac): Likewise.
28679         * modules/unictype/property-bidi-left-to-right (Depends-on,
28680         configure.ac): Likewise.
28681         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28682         configure.ac): Likewise.
28683         * modules/unictype/property-bidi-other-neutral (Depends-on,
28684         configure.ac): Likewise.
28685         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28686         Likewise.
28687         * modules/unictype/property-bidi-segment-separator (Depends-on,
28688         configure.ac): Likewise.
28689         * modules/unictype/property-bidi-whitespace (Depends-on,
28690         configure.ac): Likewise.
28691         * modules/unictype/property-combining (Depends-on, configure.ac):
28692         Likewise.
28693         * modules/unictype/property-composite (Depends-on, configure.ac):
28694         Likewise.
28695         * modules/unictype/property-currency-symbol (Depends-on,
28696         configure.ac): Likewise.
28697         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28698         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28699         Likewise.
28700         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28701         configure.ac): Likewise.
28702         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28703         Likewise.
28704         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28705         Likewise.
28706         * modules/unictype/property-extender (Depends-on, configure.ac):
28707         Likewise.
28708         * modules/unictype/property-format-control (Depends-on, configure.ac):
28709         Likewise.
28710         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28711         Likewise.
28712         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28713         Likewise.
28714         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28715         Likewise.
28716         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28717         Likewise.
28718         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28719         Likewise.
28720         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28721         Likewise.
28722         * modules/unictype/property-id-start (Depends-on, configure.ac):
28723         Likewise.
28724         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28725         Likewise.
28726         * modules/unictype/property-ids-binary-operator (Depends-on,
28727         configure.ac): Likewise.
28728         * modules/unictype/property-ids-trinary-operator (Depends-on,
28729         configure.ac): Likewise.
28730         * modules/unictype/property-ignorable-control (Depends-on,
28731         configure.ac): Likewise.
28732         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28733         Likewise.
28734         * modules/unictype/property-join-control (Depends-on, configure.ac):
28735         Likewise.
28736         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28737         Likewise.
28738         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28739         Likewise.
28740         * modules/unictype/property-logical-order-exception (Depends-on,
28741         configure.ac): Likewise.
28742         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28743         Likewise.
28744         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28745         * modules/unictype/property-non-break (Depends-on, configure.ac):
28746         Likewise.
28747         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28748         Likewise.
28749         * modules/unictype/property-numeric (Depends-on, configure.ac):
28750         Likewise.
28751         * modules/unictype/property-other-alphabetic (Depends-on,
28752         configure.ac): Likewise.
28753         * modules/unictype/property-other-default-ignorable-code-point
28754         (Depends-on, configure.ac): Likewise.
28755         * modules/unictype/property-other-grapheme-extend (Depends-on,
28756         configure.ac): Likewise.
28757         * modules/unictype/property-other-id-continue (Depends-on,
28758         configure.ac): Likewise.
28759         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28760         Likewise.
28761         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28762         Likewise.
28763         * modules/unictype/property-other-math (Depends-on, configure.ac):
28764         Likewise.
28765         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28766         Likewise.
28767         * modules/unictype/property-paired-punctuation (Depends-on,
28768         configure.ac): Likewise.
28769         * modules/unictype/property-paragraph-separator (Depends-on,
28770         configure.ac): Likewise.
28771         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28772         Likewise.
28773         * modules/unictype/property-pattern-white-space (Depends-on,
28774         configure.ac): Likewise.
28775         * modules/unictype/property-private-use (Depends-on, configure.ac):
28776         Likewise.
28777         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28778         Likewise.
28779         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28780         Likewise.
28781         * modules/unictype/property-radical (Depends-on, configure.ac):
28782         Likewise.
28783         * modules/unictype/property-sentence-terminal (Depends-on,
28784         configure.ac): Likewise.
28785         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28786         Likewise.
28787         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28788         * modules/unictype/property-terminal-punctuation (Depends-on,
28789         configure.ac): Likewise.
28790         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28791         Likewise.
28792         * modules/unictype/property-unassigned-code-value (Depends-on,
28793         configure.ac): Likewise.
28794         * modules/unictype/property-unified-ideograph (Depends-on,
28795         configure.ac): Likewise.
28796         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28797         Likewise.
28798         * modules/unictype/property-variation-selector (Depends-on,
28799         configure.ac): Likewise.
28800         * modules/unictype/property-white-space (Depends-on, configure.ac):
28801         Likewise.
28802         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28803         Likewise.
28804         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28805         Likewise.
28806         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28807         Likewise.
28808         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28809         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28810         Likewise.
28811
28812 2009-12-31  Bruno Haible  <bruno@clisp.org>
28813
28814         Remove unnecessary AC_C_INLINE invocation.
28815         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28816         since 2009-08-21.
28817
28818 2009-12-31  Jim Meyering  <meyering@redhat.com>
28819
28820         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28821         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28822         With this change, we can all remove the gpg_key_ID = ... definition
28823         from our respective cfg.mk files.
28824
28825         maint.mk: create announcement template in ~/, not in /tmp
28826         * top/maint.mk (emit_upload_commands): Adjust.
28827         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28828         Remove temporary file, .ci-msg.
28829
28830 2009-12-31  Eric Blake  <ebb9@byu.net>
28831
28832         link-warning: always build headers with link warnings
28833         * modules/arpa_inet (Makefile.am): Always build replacement
28834         header.
28835         * modules/ctype (Makefile.am): Likewise.
28836         * modules/dirent (Makefile.am): Likewise.
28837         * modules/inttypes (Makefile.am): Likewise.
28838         * modules/langinfo (Makefile.am): Likewise.
28839         * modules/locale (Makefile.am): Likewise.
28840         * modules/spawn (Makefile.am): Likewise.
28841         * modules/sys_file (Makefile.am): Likewise.
28842         * modules/sys_ioctl (Makefile.am): Likewise.
28843         * modules/sys_select (Makefile.am): Likewise.
28844         * modules/sys_socket (Makefile.am): Likewise.
28845         * modules/sys_times (Makefile.am): Likewise.
28846         * modules/sys_utsname (Makefile.am): Likewise.
28847         * modules/sys_wait (Makefile.am): Likewise.
28848         * modules/wchar (Makefile.am): Likewise.
28849         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28850         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28851         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28852         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28853         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28854         Likewise.
28855         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28856         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28857         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28858         Likewise.
28859         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28860         Likewise.
28861         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28863         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28864         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28865         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28866         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28867         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28868         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28869         (gl_WCHAR_H_DEFAULTS): Likewise.
28870
28871 2009-12-31  Eric Blake  <ebb9@byu.net>
28872
28873         signal, spawn: use link warnings
28874         * lib/signal.in.h (sigset_t): Make unconditional.
28875         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28876         (sigpending, sigprocmask, sigaction): Add link warnings.
28877         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28878         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28879         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28880         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28881         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28882         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28883         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28884         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28885         (posix_spawn_file_actions_destroy)
28886         (posix_spawn_file_actions_addopen)
28887         (posix_spawn_file_actions_addclose)
28888         (posix_spawn_file_actions_adddup2): Likewise.
28889         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28890         * tests/test-signal.c (main): Enhance test.
28891
28892         spawn: improve wrapper support
28893         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28894         (gl_SPAWN_H_DEFAULTS): New defaults.
28895         * modules/spawn (Makefile.am): Substitute them.
28896         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28897         Only declare if missing or broken.
28898
28899         sys_times, sys_utsname: use include_next
28900         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28901         header.
28902         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28903         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28904         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28905         * modules/sys_times (Depends-on): Add include_next.
28906         (Makefile.am): Substitute additional values.
28907         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28908         * lib/sys_times.in.h (includes): Include native header, if
28909         available.
28910         * lib/sys_utsname.in.h (includes): Likewise.
28911         * tests/test-sys_times.c (main): Enhance test.
28912
28913         fdutimensat: revert prior patch
28914         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28915         utimens.h.
28916         Reported by Bruno Haible.
28917
28918 2009-12-30  Eric Blake  <ebb9@byu.net>
28919
28920         sys_wait: drop link-warning dependency
28921         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28922         link-warning efforts.
28923         * lib/sys_wait.in.h: Likewise.
28924
28925         fdutimensat: remove bogus dependency
28926         * modules/fdutimensat (Depends-on): Drop inline.
28927
28928         unistd: fix typo
28929         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28930
28931 2009-12-30  Bruno Haible  <bruno@clisp.org>
28932
28933         Fix compilation error with Solaris cc.
28934         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28935         * lib/unicase/u16-is-invariant.c: Likewise.
28936         * lib/unicase/u32-is-invariant.c: Likewise.
28937         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28938
28939 2009-12-30  Bruno Haible  <bruno@clisp.org>
28940
28941         Fix test crash.
28942         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28943         locales.
28944         Reported by Simon Josefsson <simon@josefsson.org>.
28945
28946 2009-12-30  Bruno Haible  <bruno@clisp.org>
28947
28948         Fix compilation error on most platforms.
28949         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28950         Reported by Simon Josefsson <simon@josefsson.org>
28951         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28952
28953 2009-12-30  Eric Blake  <ebb9@byu.net>
28954
28955         futimens, utimensat: work around ntfs-3g bug
28956         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28957         a ctime bug is present, and expand workaround to cover ntfs-3g.
28958         * lib/utimens.c (fdutimens, lutimens): Likewise.
28959         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28960         (validate_timespec): Adjust return value.
28961         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28962         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28963         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28964
28965 2009-12-29  Eric Blake  <ebb9@byu.net>
28966
28967         link-warning: make usage consistent
28968         * modules/ctype (Depends-on): Add link-warning.
28969         (Makefile.am): Update rules accordingly.
28970         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28971         * modules/locale (Depends-on, Makefile.am): Likewise.
28972         * modules/sys_file (Makefile.am): Likewise.
28973         * modules/getopt-posix (Makefile.am): Delete unused link warning
28974         efforts.
28975         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28976         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28977         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28978         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28979
28980         stdio: remove unused variables
28981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28982         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28983         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28984
28985         tests: test more substitute headers
28986         * modules/ctype-tests: New file.
28987         * modules/dirent-tests: Likewise.
28988         * modules/spawn-tests: Likewise.
28989         * modules/sys_file-tests: Likewise.
28990         * modules/sys_ioctl-tests: Likewise.
28991         * modules/sys_wait-tests: Likewise.
28992         * tests/test-ctype.c: Likewise.
28993         * tests/test-dirent.c: Likewise.
28994         * tests/test-spawn.c: Likewise.
28995         * tests/test-sys_file.c: Likewise.
28996         * tests/test-sys_ioctl.c: Likewise.
28997         * tests/test-sys_wait.c: Likewise.
28998         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28999         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29000         whether or not flock is in use.
29001
29002         tests: remove License section from module
29003         * modules/arpa_inet-tests: Remove unneeded section.
29004         * modules/byteswap-tests: Likewise.
29005         * modules/ceilf-tests: Likewise.
29006         * modules/ceill-tests: Likewise.
29007         * modules/crypto/des-tests: Likewise.
29008         * modules/crypto/gc-arcfour-tests: Likewise.
29009         * modules/crypto/gc-arctwo-tests: Likewise.
29010         * modules/crypto/gc-des-tests: Likewise.
29011         * modules/crypto/gc-hmac-md5-tests: Likewise.
29012         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29013         * modules/crypto/gc-md2-tests: Likewise.
29014         * modules/crypto/gc-md4-tests: Likewise.
29015         * modules/crypto/gc-md5-tests: Likewise.
29016         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29017         * modules/crypto/gc-rijndael-tests: Likewise.
29018         * modules/crypto/gc-sha1-tests: Likewise.
29019         * modules/crypto/gc-tests: Likewise.
29020         * modules/crypto/md2-tests: Likewise.
29021         * modules/crypto/md4-tests: Likewise.
29022         * modules/fcntl-h-tests: Likewise.
29023         * modules/floorf-tests: Likewise.
29024         * modules/floorl-tests: Likewise.
29025         * modules/frexp-nolibm-tests: Likewise.
29026         * modules/frexp-tests: Likewise.
29027         * modules/frexpl-nolibm-tests: Likewise.
29028         * modules/frexpl-tests: Likewise.
29029         * modules/getaddrinfo-tests: Likewise.
29030         * modules/inttypes-tests: Likewise.
29031         * modules/isfinite-tests: Likewise.
29032         * modules/isinf-tests: Likewise.
29033         * modules/ldexpl-tests: Likewise.
29034         * modules/locale-tests: Likewise.
29035         * modules/math-tests: Likewise.
29036         * modules/netdb-tests: Likewise.
29037         * modules/netinet_in-tests: Likewise.
29038         * modules/printf-frexp-tests: Likewise.
29039         * modules/printf-frexpl-tests: Likewise.
29040         * modules/priv-set-tests: Likewise.
29041         * modules/random_r-tests: Likewise.
29042         * modules/round-tests: Likewise.
29043         * modules/roundf-tests: Likewise.
29044         * modules/roundl-tests: Likewise.
29045         * modules/search-tests: Likewise.
29046         * modules/select-tests: Likewise.
29047         * modules/signal-tests: Likewise.
29048         * modules/stdbool-tests: Likewise.
29049         * modules/stddef-tests: Likewise.
29050         * modules/stdint-tests: Likewise.
29051         * modules/stdio-tests: Likewise.
29052         * modules/stdlib-tests: Likewise.
29053         * modules/string-tests: Likewise.
29054         * modules/strings-tests: Likewise.
29055         * modules/sys_select-tests: Likewise.
29056         * modules/sys_socket-tests: Likewise.
29057         * modules/sys_stat-tests: Likewise.
29058         * modules/sys_time-tests: Likewise.
29059         * modules/sys_utsname-tests: Likewise.
29060         * modules/sysexits-tests: Likewise.
29061         * modules/time-tests: Likewise.
29062         * modules/trunc-tests: Likewise.
29063         * modules/truncf-tests: Likewise.
29064         * modules/truncl-tests: Likewise.
29065         * modules/tsearch-tests: Likewise.
29066         * modules/unistd-tests: Likewise.
29067         * modules/wchar-tests: Likewise.
29068         * modules/wctype-tests: Likewise.
29069
29070         tests: fix license on several tests
29071         * tests/test-des.c: Update to GPLv3+.
29072         * tests/test-flock.c: Likewise.
29073         * tests/test-fsync.c: Likewise.
29074         * tests/test-futimens.h: Likewise.
29075         * tests/test-gc-arcfour.c: Likewise.
29076         * tests/test-gc-arctwo.c: Likewise.
29077         * tests/test-gc-des.c: Likewise.
29078         * tests/test-gc-hmac-md5.c: Likewise.
29079         * tests/test-gc-hmac-sha1.c: Likewise.
29080         * tests/test-gc-md2.c: Likewise.
29081         * tests/test-gc-md4.c: Likewise.
29082         * tests/test-gc-md5.c: Likewise.
29083         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29084         * tests/test-gc-rijndael.c: Likewise.
29085         * tests/test-gc-sha1.c: Likewise.
29086         * tests/test-gc.c: Likewise.
29087         * tests/test-getcwd.c: Likewise.
29088         * tests/test-link.c: Likewise.
29089         * tests/test-link.h: Likewise.
29090         * tests/test-lutimens.h: Likewise.
29091         * tests/test-md2.c: Likewise.
29092         * tests/test-md4.c: Likewise.
29093         * tests/test-mkdir.h: Likewise.
29094         * tests/test-rename.c: Likewise.
29095         * tests/test-rename.h: Likewise.
29096         * tests/test-safe-alloc.c: Likewise.
29097         * tests/test-utimens-common.h: Likewise.
29098         * tests/test-utimens.h: Likewise.
29099
29100         maint: sync license texts
29101         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29102         * doc/gpl-3.0.texi: Revert copyright year update.
29103         * doc/lgpl-3.0.texi: Likewise.
29104
29105 2009-12-29  Jim Meyering  <meyering@redhat.com>
29106
29107         update nearly all FSF copyright year lists to include 2009
29108         The files named by the following are exempted:
29109             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29110               test -f "$dst" && { echo "$dst"; continue; }
29111               test -d "$dst" || continue
29112               echo "$dst"/$(basename "$src")
29113             done > exempt
29114             git ls-files tests/unictype >> exempt
29115         In the remaining files, convert to all-interval notation if
29116         - there is already at least one year interval like 2000-2003
29117         - the file is maintained by me
29118         - the file is in lib/uni*/, where that style already prevails
29119         Otherwise, use update-copyright's default.
29120
29121 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29122         and Eric Blake  <ebb9@byu.net>
29123
29124         tests: don't require debug system() to pass
29125         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29126         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29127         * tests/test-unlink.h (test_unlink_func): Likewise.
29128         * tests/test-fstatat.c (main): ...into callers.
29129         * tests/test-lstat.c (main): Likewise.
29130         * tests/test-rmdir.c (main): Likewise.
29131         * tests/test-unlink.c (main): Likewise.
29132         * tests/test-unlinkat.c (main): Likewise.
29133         * tests/test-areadlink-with-size.c (main): Don't require a
29134         debug-only system call to pass, aiding cross-testing to mingw.
29135         * tests/test-areadlink.c (main): Likewise.
29136         * tests/test-areadlinkat-with-size.c (main): Likewise.
29137         * tests/test-areadlinkat.c (main): Likewise.
29138         * tests/test-canonicalize-lgpl.c (main): Likewise.
29139         * tests/test-canonicalize.c (main): Likewise.
29140         * tests/test-chown.c (main): Likewise.
29141         * tests/test-fchownat.c (main): Likewise.
29142         * tests/test-lchown.c (main): Likewise.
29143         * tests/test-fdutimensat.c (main): Likewise.
29144         * tests/test-futimens.c (main): Likewise.
29145         * tests/test-link.c (main): Likewise.
29146         * tests/test-linkat.c (main): Likewise.
29147         * tests/test-mkdir.c (main): Likewise.
29148         * tests/test-mkdirat.c (main): Likewise.
29149         * tests/test-mkfifo.c (main): Likewise.
29150         * tests/test-mkfifoat.c (main): Likewise.
29151         * tests/test-mknod.c (main): Likewise.
29152         * tests/test-readlink.c (main): Likewise.
29153         * tests/test-remove.c (main): Likewise.
29154         * tests/test-rename.c (main): Likewise.
29155         * tests/test-renameat.c (main): Likewise.
29156         * tests/test-symlink.c (main): Likewise.
29157         * tests/test-symlinkat.c (main): Likewise.
29158         * tests/test-utimens.c (main): Likewise.
29159         * tests/test-utimensat.c (main): Likewise.
29160
29161 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29162
29163         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29164         on $(UNUSED_PARAMETER_H) to avoid build failure.
29165
29166 2009-12-28  Jim Meyering  <meyering@redhat.com>
29167
29168         update-copyright: you may specify a max. line length other than 72
29169         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29170
29171         maint: use consistent FSF copyright line syntax
29172         * lib/posixtm.c: Add missing comma in FSF copyright line.
29173         * lib/posixtm.h: Likewise.
29174         * lib/getugroups.c: Add missing ", Inc.".
29175
29176         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29177         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29178         FSF copyright line.  Remove trailing blanks.
29179
29180 2009-12-28  Eric Blake  <ebb9@byu.net>
29181
29182         test-dup2: reduce dependencies
29183         * modules/cloexec (Configure.ac): Set witness.
29184         * modules/dup2-tests (Depends-on): Drop cloexec.
29185         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29186         not present.
29187         Suggested by Bruno Haible.
29188
29189 2009-12-26  Bruno Haible  <bruno@clisp.org>
29190
29191         Remove an unneeded dependency.
29192         * modules/fseterr (Depends-on): Remove dup2.
29193
29194 2009-12-26  Eric Blake  <ebb9@byu.net>
29195
29196         tests: use macros.h in more places
29197         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29198         (ASSERT_STREAM): Provide default of stderr.
29199         * tests/test-dirent-safer.c: Include macros.h, using alternate
29200         stream for assertions.
29201         * tests/test-dup-safer.c: Likewise.
29202         * tests/test-freopen-safer.c: Likewise.
29203         * tests/test-getopt.c: Likewise.
29204         * tests/test-openat-safer.c: Likewise.
29205         * tests/test-pipe.c: Likewise.
29206         * tests/test-popen-safer.c: Likewise.
29207         * modules/dirent-safer-tests (Files): Include macros.h.
29208         * modules/unistd-safer-tests (Files): Likewise.
29209         * modules/freopen-safer-tests (Files): Likewise.
29210         * modules/getopt-posix-tests (Files): Likewise.
29211         * modules/openat-safer-tests (Files): Likewise.
29212         * modules/pipe-tests (Files): Likewise.
29213
29214 2009-12-26  Bruno Haible  <bruno@clisp.org>
29215
29216         javacomp: Portability fix.
29217         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29218         that it also works on Solaris.
29219
29220 2009-12-26  Bruno Haible  <bruno@clisp.org>
29221
29222         localename: Fix storage allocation of gl_locale_name_thread's result.
29223         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29224         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29225         all platforms that have 'uselocale'.
29226         (gl_locale_name_thread_unsafe): New function, extracted from
29227         gl_locale_name_thread.
29228         (gl_locale_name_thread): Call struniq on all platforms that have
29229         'uselocale'.
29230         * tests/test-localename.c (test_locale_name_thread): Check that the
29231         resulting strings are permanently allocated.
29232         * modules/localename-tests (Depends-on): Add strdup.
29233
29234 2009-12-26  Bruno Haible  <bruno@clisp.org>
29235
29236         * tests/test-localename.c (categories): Fill in the strings.
29237
29238 2009-12-26  Jim Meyering  <meyering@redhat.com>
29239
29240         isdir: complete the removal of m4/isdir.m4
29241         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29242
29243         isdir: clean up, since at least grep still uses it
29244         * lib/isdir.c: Include "isdir.h".
29245         (S_ISDIR): Remove now-unneeded definition.
29246         * modules/isdir (Files): Add lib/isdir.h.
29247         * lib/isdir.h: New file, with declaration.
29248         * m4/isdir.m4: Remove file -- unneeded.
29249
29250 2009-12-25  Bruno Haible  <bruno@clisp.org>
29251
29252         selinux-h: Make generated .h files standalone.
29253         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29254         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29255         * lib/se-selinux.in.h: Likewise.
29256         * modules/selinux-h (Depends-on): Add unused-parameter.
29257         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29258         selinux/selinux.h and selinux/context.h.
29259         Suggested by Eric Blake.
29260
29261 2009-12-25  Bruno Haible  <bruno@clisp.org>
29262
29263         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29264         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29265         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29266         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29267         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29268
29269 2009-12-24  Bruno Haible  <bruno@clisp.org>
29270
29271         openat: Fix warning.
29272         * lib/openat-proc.c: Include <unistd.h>.
29273
29274 2009-12-24  Bruno Haible  <bruno@clisp.org>
29275
29276         New module 'unused-parameter'.
29277         * build-aux/unused-parameter.h: New file, extracted from earlier
29278         gnulib-common.m4.
29279         * modules/unused-parameter: New file.
29280         * lib/unistr.h: Include unused-parameter.h.
29281         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29282         _GL_UNUSED.
29283         * modules/unistr/base (Depends-on): Add unused-parameter.
29284
29285 2009-12-24  Bruno Haible  <bruno@clisp.org>
29286
29287         Add missing dependencies to 'extensions' module.
29288         * m4/extensions.m4: Add comment.
29289         * modules/accept4 (Depends-on): Add extensions.
29290         * modules/dup3 (Depends-on): Likewise.
29291         * modules/fcntl (Depends-on): Likewise.
29292         * modules/futimens (Depends-on): Likewise.
29293         * modules/mknod (Depends-on): Likewise.
29294         * modules/pipe2 (Depends-on): Likewise.
29295         * modules/stat-time (Depends-on): Likewise.
29296         * modules/strcasestr-simple (Depends-on): Likewise.
29297         * modules/strsignal (Depends-on): Likewise.
29298         * modules/utimensat (Depends-on): Likewise.
29299         * modules/localcharset (Depends-on): Likewise. Needed because of
29300         gl_FCNTL_O_FLAGS.
29301         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29302         AC_TYPE_MBSTATE_T.
29303         * modules/wcsnrtombs (Depends-on): Likewise.
29304         * modules/wcsrtombs (Depends-on): Likewise.
29305
29306 2009-12-24  Bruno Haible  <bruno@clisp.org>
29307
29308         binary-io: Avoid gcc warning due to SET_BINARY.
29309         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29310         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29311
29312 2009-12-24  Bruno Haible  <bruno@clisp.org>
29313
29314         Avoid future namespace pollution on glibc systems.
29315         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29316         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29317         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29318         glibc systems.
29319
29320 2009-12-24  Bruno Haible  <bruno@clisp.org>
29321
29322         Refactor common macros used in tests.
29323         * tests/macros.h: New file.
29324         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29325         and/or <stdlib.h>, if appropriate.
29326         (ASSERT, SIZEOF): Remove macros.
29327         * tests/test-areadlink-with-size.c: Likewise.
29328         * tests/test-areadlinkat.c: Likewise.
29329         * tests/test-areadlinkat-with-size.c: Likewise.
29330         * tests/test-argmatch.c: Likewise.
29331         * tests/test-argv-iter.c: Likewise.
29332         * tests/test-array-mergesort.c: Likewise.
29333         * tests/test-array_list.c: Likewise.
29334         * tests/test-array_oset.c: Likewise.
29335         * tests/test-avltree_list.c: Likewise.
29336         * tests/test-avltree_oset.c: Likewise.
29337         * tests/test-avltreehash_list.c: Likewise.
29338         * tests/test-base64.c: Likewise.
29339         * tests/test-binary-io.c: Likewise.
29340         * tests/test-bitrotate.c: Likewise.
29341         * tests/test-btowc.c: Likewise.
29342         * tests/test-byteswap.c: Likewise.
29343         * tests/test-c-ctype.c: Likewise.
29344         * tests/test-c-stack.c: Likewise.
29345         * tests/test-c-strcasecmp.c: Likewise.
29346         * tests/test-c-strcasestr.c: Likewise.
29347         * tests/test-c-strncasecmp.c: Likewise.
29348         * tests/test-c-strstr.c: Likewise.
29349         * tests/test-canonicalize-lgpl.c: Likewise.
29350         * tests/test-canonicalize.c: Likewise.
29351         * tests/test-carray_list.c: Likewise.
29352         * tests/test-ceilf1.c: Likewise.
29353         * tests/test-ceilf2.c: Likewise.
29354         * tests/test-ceill.c: Likewise.
29355         * tests/test-chown.c: Likewise.
29356         * tests/test-cloexec.c: Likewise.
29357         * tests/test-copy-acl.c: Likewise.
29358         * tests/test-copy-file.c: Likewise.
29359         * tests/test-count-one-bits.c: Likewise.
29360         * tests/test-dprintf-posix.c: Likewise.
29361         * tests/test-dup2.c: Likewise.
29362         * tests/test-dup3.c: Likewise.
29363         * tests/test-duplocale.c: Likewise.
29364         * tests/test-fbufmode.c: Likewise.
29365         * tests/test-fchdir.c: Likewise.
29366         * tests/test-fchownat.c: Likewise.
29367         * tests/test-fcntl-safer.c: Likewise.
29368         * tests/test-fcntl.c: Likewise.
29369         * tests/test-fdopendir.c: Likewise.
29370         * tests/test-fdutimensat.c: Likewise.
29371         * tests/test-fflush2.c: Likewise.
29372         * tests/test-file-has-acl.c: Likewise.
29373         * tests/test-filevercmp.c: Likewise.
29374         * tests/test-flock.c: Likewise.
29375         * tests/test-floorf1.c: Likewise.
29376         * tests/test-floorf2.c: Likewise.
29377         * tests/test-floorl.c: Likewise.
29378         * tests/test-fnmatch.c: Likewise.
29379         * tests/test-fopen.h: Likewise.
29380         * tests/test-fpending.c: Likewise.
29381         * tests/test-fprintf-posix.c: Likewise.
29382         * tests/test-fpurge.c: Likewise.
29383         * tests/test-freadable.c: Likewise.
29384         * tests/test-freadahead.c: Likewise.
29385         * tests/test-freading.c: Likewise.
29386         * tests/test-freadptr.c: Likewise.
29387         * tests/test-freadptr2.c: Likewise.
29388         * tests/test-freadseek.c: Likewise.
29389         * tests/test-freopen.c: Likewise.
29390         * tests/test-frexp.c: Likewise.
29391         * tests/test-frexpl.c: Likewise.
29392         * tests/test-fseek.c: Likewise.
29393         * tests/test-fseeko.c: Likewise.
29394         * tests/test-fstatat.c: Likewise.
29395         * tests/test-fstrcmp.c: Likewise.
29396         * tests/test-fsync.c: Likewise.
29397         * tests/test-ftell.c: Likewise.
29398         * tests/test-ftello.c: Likewise.
29399         * tests/test-func.c: Likewise.
29400         * tests/test-futimens.c: Likewise.
29401         * tests/test-fwritable.c: Likewise.
29402         * tests/test-fwriting.c: Likewise.
29403         * tests/test-getcwd.c: Likewise.
29404         * tests/test-getdate.c: Likewise.
29405         * tests/test-getdelim.c: Likewise.
29406         * tests/test-getdtablesize.c: Likewise.
29407         * tests/test-getgroups.c: Likewise.
29408         * tests/test-getline.c: Likewise.
29409         * tests/test-getndelim2.c: Likewise.
29410         * tests/test-glob.c: Likewise.
29411         * tests/test-hash.c: Likewise.
29412         * tests/test-i-ring.c: Likewise.
29413         * tests/test-iconv-utf.c: Likewise.
29414         * tests/test-iconv.c: Likewise.
29415         * tests/test-idpriv-drop.c: Likewise.
29416         * tests/test-idpriv-droptemp.c: Likewise.
29417         * tests/test-inet_ntop.c: Likewise.
29418         * tests/test-inet_pton.c: Likewise.
29419         * tests/test-isblank.c: Likewise.
29420         * tests/test-isfinite.c: Likewise.
29421         * tests/test-isinf.c: Likewise.
29422         * tests/test-isnan.c: Likewise.
29423         * tests/test-isnand.h: Likewise.
29424         * tests/test-isnanf.h: Likewise.
29425         * tests/test-isnanl.h: Likewise.
29426         * tests/test-lchown.c: Likewise.
29427         * tests/test-ldexpl.c: Likewise.
29428         * tests/test-link.c: Likewise.
29429         * tests/test-linkat.c: Likewise.
29430         * tests/test-linked_list.c: Likewise.
29431         * tests/test-linkedhash_list.c: Likewise.
29432         * tests/test-localename.c: Likewise.
29433         * tests/test-lseek.c: Likewise.
29434         * tests/test-lstat.c: Likewise.
29435         * tests/test-mbmemcasecmp.c: Likewise.
29436         * tests/test-mbmemcasecoll.c: Likewise.
29437         * tests/test-mbrtowc.c: Likewise.
29438         * tests/test-mbscasecmp.c: Likewise.
29439         * tests/test-mbscasestr1.c: Likewise.
29440         * tests/test-mbscasestr2.c: Likewise.
29441         * tests/test-mbscasestr3.c: Likewise.
29442         * tests/test-mbscasestr4.c: Likewise.
29443         * tests/test-mbschr.c: Likewise.
29444         * tests/test-mbscspn.c: Likewise.
29445         * tests/test-mbsinit.c: Likewise.
29446         * tests/test-mbsncasecmp.c: Likewise.
29447         * tests/test-mbsnrtowcs.c: Likewise.
29448         * tests/test-mbspbrk.c: Likewise.
29449         * tests/test-mbspcasecmp.c: Likewise.
29450         * tests/test-mbsrchr.c: Likewise.
29451         * tests/test-mbsrtowcs.c: Likewise.
29452         * tests/test-mbsspn.c: Likewise.
29453         * tests/test-mbsstr1.c: Likewise.
29454         * tests/test-mbsstr2.c: Likewise.
29455         * tests/test-mbsstr3.c: Likewise.
29456         * tests/test-memchr.c: Likewise.
29457         * tests/test-memchr2.c: Likewise.
29458         * tests/test-memcmp.c: Likewise.
29459         * tests/test-memmem.c: Likewise.
29460         * tests/test-memrchr.c: Likewise.
29461         * tests/test-mkdir.c: Likewise.
29462         * tests/test-mkdirat.c: Likewise.
29463         * tests/test-mkfifo.c: Likewise.
29464         * tests/test-mkfifoat.c: Likewise.
29465         * tests/test-mknod.c: Likewise.
29466         * tests/test-nanosleep.c: Likewise.
29467         * tests/test-nl_langinfo.c: Likewise.
29468         * tests/test-obstack-printf.c: Likewise.
29469         * tests/test-open.c: Likewise.
29470         * tests/test-openat.c: Likewise.
29471         * tests/test-pipe-filter-gi1.c: Likewise.
29472         * tests/test-pipe-filter-gi2-main.c: Likewise.
29473         * tests/test-pipe-filter-ii1.c: Likewise.
29474         * tests/test-pipe-filter-ii2-main.c: Likewise.
29475         * tests/test-pipe2.c: Likewise.
29476         * tests/test-popen.h: Likewise.
29477         * tests/test-posixtm.c: Likewise.
29478         * tests/test-pread.c: Likewise.
29479         * tests/test-printf-frexp.c: Likewise.
29480         * tests/test-printf-frexpl.c: Likewise.
29481         * tests/test-printf-posix.c: Likewise.
29482         * tests/test-priv-set.c: Likewise.
29483         * tests/test-quotearg.c: Likewise.
29484         * tests/test-random_r.c: Likewise.
29485         * tests/test-rawmemchr.c: Likewise.
29486         * tests/test-rbtree_list.c: Likewise.
29487         * tests/test-rbtree_oset.c: Likewise.
29488         * tests/test-rbtreehash_list.c: Likewise.
29489         * tests/test-readlink.c: Likewise.
29490         * tests/test-remove.c: Likewise.
29491         * tests/test-rename.c: Likewise.
29492         * tests/test-renameat.c: Likewise.
29493         * tests/test-rmdir.c: Likewise.
29494         * tests/test-round1.c: Likewise.
29495         * tests/test-roundf1.c: Likewise.
29496         * tests/test-roundl.c: Likewise.
29497         * tests/test-safe-alloc.c: Likewise.
29498         * tests/test-sameacls.c: Likewise.
29499         * tests/test-set-mode-acl.c: Likewise.
29500         * tests/test-setenv.c: Likewise.
29501         * tests/test-sigaction.c: Likewise.
29502         * tests/test-signbit.c: Likewise.
29503         * tests/test-sleep.c: Likewise.
29504         * tests/test-snprintf-posix.c: Likewise.
29505         * tests/test-snprintf.c: Likewise.
29506         * tests/test-sprintf-posix.c: Likewise.
29507         * tests/test-stat-time.c: Likewise.
29508         * tests/test-stat.c: Likewise.
29509         * tests/test-strcasestr.c: Likewise.
29510         * tests/test-strchrnul.c: Likewise.
29511         * tests/test-strerror.c: Likewise.
29512         * tests/test-striconv.c: Likewise.
29513         * tests/test-striconveh.c: Likewise.
29514         * tests/test-striconveha.c: Likewise.
29515         * tests/test-strsignal.c: Likewise.
29516         * tests/test-strstr.c: Likewise.
29517         * tests/test-strtod.c: Likewise.
29518         * tests/test-strverscmp.c: Likewise.
29519         * tests/test-symlink.c: Likewise.
29520         * tests/test-symlinkat.c: Likewise.
29521         * tests/test-trunc1.c: Likewise.
29522         * tests/test-trunc2.c: Likewise.
29523         * tests/test-truncf1.c: Likewise.
29524         * tests/test-truncf2.c: Likewise.
29525         * tests/test-truncl.c: Likewise.
29526         * tests/test-uname.c: Likewise.
29527         * tests/test-unlink.c: Likewise.
29528         * tests/test-unlinkat.c: Likewise.
29529         * tests/test-unsetenv.c: Likewise.
29530         * tests/test-usleep.c: Likewise.
29531         * tests/test-utimens.c: Likewise.
29532         * tests/test-utimensat.c: Likewise.
29533         * tests/test-vasnprintf-posix.c: Likewise.
29534         * tests/test-vasnprintf-posix2.c: Likewise.
29535         * tests/test-vasnprintf.c: Likewise.
29536         * tests/test-vasprintf-posix.c: Likewise.
29537         * tests/test-vasprintf.c: Likewise.
29538         * tests/test-vdprintf-posix.c: Likewise.
29539         * tests/test-vfprintf-posix.c: Likewise.
29540         * tests/test-vprintf-posix.c: Likewise.
29541         * tests/test-vsnprintf-posix.c: Likewise.
29542         * tests/test-vsnprintf.c: Likewise.
29543         * tests/test-vsprintf-posix.c: Likewise.
29544         * tests/test-wcrtomb.c: Likewise.
29545         * tests/test-wcsnrtombs.c: Likewise.
29546         * tests/test-wcsrtombs.c: Likewise.
29547         * tests/test-wctype.c: Likewise.
29548         * tests/test-wcwidth.c: Likewise.
29549         * tests/test-xfprintf-posix.c: Likewise.
29550         * tests/test-xmemdup0.c: Likewise.
29551         * tests/test-xprintf-posix.c: Likewise.
29552         * tests/test-xvasprintf.c: Likewise.
29553         * tests/unicase/test-locale-language.c: Likewise.
29554         * tests/unicase/test-mapping-part1.h: Likewise.
29555         * tests/unicase/test-predicate-part1.h: Likewise.
29556         * tests/unicase/test-u8-casecmp.c: Likewise.
29557         * tests/unicase/test-u8-casecoll.c: Likewise.
29558         * tests/unicase/test-u8-casefold.c: Likewise.
29559         * tests/unicase/test-u8-is-cased.c: Likewise.
29560         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29561         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29562         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29563         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29564         * tests/unicase/test-u8-tolower.c: Likewise.
29565         * tests/unicase/test-u8-totitle.c: Likewise.
29566         * tests/unicase/test-u8-toupper.c: Likewise.
29567         * tests/unicase/test-u16-casecmp.c: Likewise.
29568         * tests/unicase/test-u16-casecoll.c: Likewise.
29569         * tests/unicase/test-u16-casefold.c: Likewise.
29570         * tests/unicase/test-u16-is-cased.c: Likewise.
29571         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29572         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29573         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29574         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29575         * tests/unicase/test-u16-tolower.c: Likewise.
29576         * tests/unicase/test-u16-totitle.c: Likewise.
29577         * tests/unicase/test-u16-toupper.c: Likewise.
29578         * tests/unicase/test-u32-casecmp.c: Likewise.
29579         * tests/unicase/test-u32-casecoll.c: Likewise.
29580         * tests/unicase/test-u32-casefold.c: Likewise.
29581         * tests/unicase/test-u32-is-cased.c: Likewise.
29582         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29583         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29584         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29585         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29586         * tests/unicase/test-u32-tolower.c: Likewise.
29587         * tests/unicase/test-u32-totitle.c: Likewise.
29588         * tests/unicase/test-u32-toupper.c: Likewise.
29589         * tests/unicase/test-ulc-casecmp.c: Likewise.
29590         * tests/unicase/test-ulc-casecoll.c: Likewise.
29591         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29592         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29593         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29594         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29595         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29596         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29597         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29598         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29599         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29600         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29601         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29602         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29603         * tests/unictype/test-bidi_byname.c: Likewise.
29604         * tests/unictype/test-bidi_name.c: Likewise.
29605         * tests/unictype/test-bidi_of.c: Likewise.
29606         * tests/unictype/test-bidi_test.c: Likewise.
29607         * tests/unictype/test-block_list.c: Likewise.
29608         * tests/unictype/test-block_of.c: Likewise.
29609         * tests/unictype/test-block_test.c: Likewise.
29610         * tests/unictype/test-categ_and.c: Likewise.
29611         * tests/unictype/test-categ_and_not.c: Likewise.
29612         * tests/unictype/test-categ_byname.c: Likewise.
29613         * tests/unictype/test-categ_name.c: Likewise.
29614         * tests/unictype/test-categ_none.c: Likewise.
29615         * tests/unictype/test-categ_of.c: Likewise.
29616         * tests/unictype/test-categ_or.c: Likewise.
29617         * tests/unictype/test-categ_test_withtable.c: Likewise.
29618         * tests/unictype/test-combining.c: Likewise.
29619         * tests/unictype/test-decdigit.c: Likewise.
29620         * tests/unictype/test-digit.c: Likewise.
29621         * tests/unictype/test-mirror.c: Likewise.
29622         * tests/unictype/test-numeric.c: Likewise.
29623         * tests/unictype/test-pr_byname.c: Likewise.
29624         * tests/unictype/test-pr_test.c: Likewise.
29625         * tests/unictype/test-predicate-part1.h: Likewise.
29626         * tests/unictype/test-scripts.c: Likewise.
29627         * tests/unictype/test-sy_c_ident.c: Likewise.
29628         * tests/unictype/test-sy_java_ident.c: Likewise.
29629         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29630         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29631         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29632         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29633         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29634         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29635         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29636         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29637         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29638         * tests/uninorm/test-compat-decomposition.c: Likewise.
29639         * tests/uninorm/test-composition.c: Likewise.
29640         * tests/uninorm/test-decomposing-form.c: Likewise.
29641         * tests/uninorm/test-decomposition.c: Likewise.
29642         * tests/uninorm/test-u8-nfc.c: Likewise.
29643         * tests/uninorm/test-u8-nfd.c: Likewise.
29644         * tests/uninorm/test-u8-nfkc.c: Likewise.
29645         * tests/uninorm/test-u8-nfkd.c: Likewise.
29646         * tests/uninorm/test-u8-normcmp.c: Likewise.
29647         * tests/uninorm/test-u8-normcoll.c: Likewise.
29648         * tests/uninorm/test-u16-nfc.c: Likewise.
29649         * tests/uninorm/test-u16-nfd.c: Likewise.
29650         * tests/uninorm/test-u16-nfkc.c: Likewise.
29651         * tests/uninorm/test-u16-nfkd.c: Likewise.
29652         * tests/uninorm/test-u16-normcmp.c: Likewise.
29653         * tests/uninorm/test-u16-normcoll.c: Likewise.
29654         * tests/uninorm/test-u32-nfc.c: Likewise.
29655         * tests/uninorm/test-u32-nfd.c: Likewise.
29656         * tests/uninorm/test-u32-nfkc.c: Likewise.
29657         * tests/uninorm/test-u32-nfkd.c: Likewise.
29658         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29659         * tests/uninorm/test-u32-normcmp.c: Likewise.
29660         * tests/uninorm/test-u32-normcoll.c: Likewise.
29661         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29662         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29663         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29664         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29665         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29666         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29667         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29668         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29669         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29670         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29671         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29672         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29673         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29674         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29675         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29676         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29677         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29678         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29679         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29680         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29681         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29682         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29683         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29684         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29685         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29686         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29687         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29688         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29689         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29690         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29691         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29692         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29693         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29694         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29695         * tests/uniwidth/test-u8-width.c: Likewise.
29696         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29697         * tests/uniwidth/test-u16-width.c: Likewise.
29698         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29699         * tests/uniwidth/test-u32-width.c: Likewise.
29700         * tests/uniwidth/test-uc_width.c: Likewise.
29701         * tests/uniwidth/test-uc_width2.c: Likewise.
29702         * modules/acl-tests (Files): Add tests/macros.h.
29703         * modules/areadlink-tests (Files): Likewise.
29704         * modules/areadlink-with-size-tests (Files): Likewise.
29705         * modules/areadlinkat-tests (Files): Likewise.
29706         * modules/areadlinkat-with-size-tests (Files): Likewise.
29707         * modules/argmatch-tests (Files): Likewise.
29708         * modules/argv-iter-tests (Files): Likewise.
29709         * modules/array-list-tests (Files): Likewise.
29710         * modules/array-mergesort-tests (Files): Likewise.
29711         * modules/array-oset-tests (Files): Likewise.
29712         * modules/avltree-list-tests (Files): Likewise.
29713         * modules/avltree-oset-tests (Files): Likewise.
29714         * modules/avltreehash-list-tests (Files): Likewise.
29715         * modules/base64-tests (Files): Likewise.
29716         * modules/binary-io-tests (Files): Likewise.
29717         * modules/bitrotate-tests (Files): Likewise.
29718         * modules/btowc-tests (Files): Likewise.
29719         * modules/byteswap-tests (Files): Likewise.
29720         * modules/c-ctype-tests (Files): Likewise.
29721         * modules/c-stack-tests (Files): Likewise.
29722         * modules/c-strcase-tests (Files): Likewise.
29723         * modules/c-strcasestr-tests (Files): Likewise.
29724         * modules/c-strstr-tests (Files): Likewise.
29725         * modules/canonicalize-lgpl-tests (Files): Likewise.
29726         * modules/canonicalize-tests (Files): Likewise.
29727         * modules/carray-list-tests (Files): Likewise.
29728         * modules/ceilf-tests (Files): Likewise.
29729         * modules/ceill-tests (Files): Likewise.
29730         * modules/chown-tests (Files): Likewise.
29731         * modules/cloexec-tests (Files): Likewise.
29732         * modules/copy-file-tests (Files): Likewise.
29733         * modules/count-one-bits-tests (Files): Likewise.
29734         * modules/dprintf-posix-tests (Files): Likewise.
29735         * modules/dup2-tests (Files): Likewise.
29736         * modules/dup3-tests (Files): Likewise.
29737         * modules/duplocale-tests (Files): Likewise.
29738         * modules/fbufmode-tests (Files): Likewise.
29739         * modules/fchdir-tests (Files): Likewise.
29740         * modules/fcntl-safer-tests (Files): Likewise.
29741         * modules/fcntl-tests (Files): Likewise.
29742         * modules/fdopendir-tests (Files): Likewise.
29743         * modules/fdutimensat-tests (Files): Likewise.
29744         * modules/fflush-tests (Files): Likewise.
29745         * modules/filevercmp-tests (Files): Likewise.
29746         * modules/flock-tests (Files): Likewise.
29747         * modules/floorf-tests (Files): Likewise.
29748         * modules/floorl-tests (Files): Likewise.
29749         * modules/fnmatch-tests (Files): Likewise.
29750         * modules/fopen-safer-tests (Files): Likewise.
29751         * modules/fopen-tests (Files): Likewise.
29752         * modules/fpending-tests (Files): Likewise.
29753         * modules/fprintf-posix-tests (Files): Likewise.
29754         * modules/fpurge-tests (Files): Likewise.
29755         * modules/freadable-tests (Files): Likewise.
29756         * modules/freadahead-tests (Files): Likewise.
29757         * modules/freading-tests (Files): Likewise.
29758         * modules/freadptr-tests (Files): Likewise.
29759         * modules/freadseek-tests (Files): Likewise.
29760         * modules/freopen-tests (Files): Likewise.
29761         * modules/frexp-nolibm-tests (Files): Likewise.
29762         * modules/frexp-tests (Files): Likewise.
29763         * modules/frexpl-nolibm-tests (Files): Likewise.
29764         * modules/frexpl-tests (Files): Likewise.
29765         * modules/fseek-tests (Files): Likewise.
29766         * modules/fseeko-tests (Files): Likewise.
29767         * modules/fstrcmp-tests (Files): Likewise.
29768         * modules/fsync-tests (Files): Likewise.
29769         * modules/ftell-tests (Files): Likewise.
29770         * modules/ftello-tests (Files): Likewise.
29771         * modules/func-tests (Files): Likewise.
29772         * modules/futimens-tests (Files): Likewise.
29773         * modules/fwritable-tests (Files): Likewise.
29774         * modules/fwriting-tests (Files): Likewise.
29775         * modules/getcwd-tests (Files): Likewise.
29776         * modules/getdate-tests (Files): Likewise.
29777         * modules/getdelim-tests (Files): Likewise.
29778         * modules/getdtablesize-tests (Files): Likewise.
29779         * modules/getgroups-tests (Files): Likewise.
29780         * modules/getline-tests (Files): Likewise.
29781         * modules/getndelim2-tests (Files): Likewise.
29782         * modules/glob-tests (Files): Likewise.
29783         * modules/hash-tests (Files): Likewise.
29784         * modules/i-ring-tests (Files): Likewise.
29785         * modules/iconv-tests (Files): Likewise.
29786         * modules/iconv_open-utf-tests (Files): Likewise.
29787         * modules/idpriv-drop-tests (Files): Likewise.
29788         * modules/idpriv-droptemp-tests (Files): Likewise.
29789         * modules/inet_ntop-tests (Files): Likewise.
29790         * modules/inet_pton-tests (Files): Likewise.
29791         * modules/isblank-tests (Files): Likewise.
29792         * modules/isfinite-tests (Files): Likewise.
29793         * modules/isinf-tests (Files): Likewise.
29794         * modules/isnan-tests (Files): Likewise.
29795         * modules/isnand-nolibm-tests (Files): Likewise.
29796         * modules/isnand-tests (Files): Likewise.
29797         * modules/isnanf-nolibm-tests (Files): Likewise.
29798         * modules/isnanf-tests (Files): Likewise.
29799         * modules/isnanl-nolibm-tests (Files): Likewise.
29800         * modules/isnanl-tests (Files): Likewise.
29801         * modules/lchown-tests (Files): Likewise.
29802         * modules/ldexpl-tests (Files): Likewise.
29803         * modules/link-tests (Files): Likewise.
29804         * modules/linkat-tests (Files): Likewise.
29805         * modules/linked-list-tests (Files): Likewise.
29806         * modules/linkedhash-list-tests (Files): Likewise.
29807         * modules/localename-tests (Files): Likewise.
29808         * modules/lseek-tests (Files): Likewise.
29809         * modules/lstat-tests (Files): Likewise.
29810         * modules/mbmemcasecmp-tests (Files): Likewise.
29811         * modules/mbmemcasecoll-tests (Files): Likewise.
29812         * modules/mbrtowc-tests (Files): Likewise.
29813         * modules/mbscasecmp-tests (Files): Likewise.
29814         * modules/mbscasestr-tests (Files): Likewise.
29815         * modules/mbschr-tests (Files): Likewise.
29816         * modules/mbscspn-tests (Files): Likewise.
29817         * modules/mbsinit-tests (Files): Likewise.
29818         * modules/mbsncasecmp-tests (Files): Likewise.
29819         * modules/mbsnrtowcs-tests (Files): Likewise.
29820         * modules/mbspbrk-tests (Files): Likewise.
29821         * modules/mbspcasecmp-tests (Files): Likewise.
29822         * modules/mbsrchr-tests (Files): Likewise.
29823         * modules/mbsrtowcs-tests (Files): Likewise.
29824         * modules/mbsspn-tests (Files): Likewise.
29825         * modules/mbsstr-tests (Files): Likewise.
29826         * modules/memchr-tests (Files): Likewise.
29827         * modules/memchr2-tests (Files): Likewise.
29828         * modules/memcmp-tests (Files): Likewise.
29829         * modules/memmem-tests (Files): Likewise.
29830         * modules/memrchr-tests (Files): Likewise.
29831         * modules/mkdir-tests (Files): Likewise.
29832         * modules/mkfifo-tests (Files): Likewise.
29833         * modules/mkfifoat-tests (Files): Likewise.
29834         * modules/mknod-tests (Files): Likewise.
29835         * modules/nanosleep-tests (Files): Likewise.
29836         * modules/nl_langinfo-tests (Files): Likewise.
29837         * modules/obstack-printf-tests (Files): Likewise.
29838         * modules/open-tests (Files): Likewise.
29839         * modules/openat-tests (Files): Likewise.
29840         * modules/pipe-filter-gi-tests (Files): Likewise.
29841         * modules/pipe-filter-ii-tests (Files): Likewise.
29842         * modules/pipe2-tests (Files): Likewise.
29843         * modules/popen-safer-tests (Files): Likewise.
29844         * modules/popen-tests (Files): Likewise.
29845         * modules/posixtm-tests (Files): Likewise.
29846         * modules/pread-tests (Files): Likewise.
29847         * modules/printf-frexp-tests (Files): Likewise.
29848         * modules/printf-frexpl-tests (Files): Likewise.
29849         * modules/printf-posix-tests (Files): Likewise.
29850         * modules/priv-set-tests (Files): Likewise.
29851         * modules/quotearg-tests (Files): Likewise.
29852         * modules/random_r-tests (Files): Likewise.
29853         * modules/rawmemchr-tests (Files): Likewise.
29854         * modules/rbtree-list-tests (Files): Likewise.
29855         * modules/rbtree-oset-tests (Files): Likewise.
29856         * modules/rbtreehash-list-tests (Files): Likewise.
29857         * modules/readlink-tests (Files): Likewise.
29858         * modules/remove-tests (Files): Likewise.
29859         * modules/rename-tests (Files): Likewise.
29860         * modules/renameat-tests (Files): Likewise.
29861         * modules/rmdir-tests (Files): Likewise.
29862         * modules/round-tests (Files): Likewise.
29863         * modules/roundf-tests (Files): Likewise.
29864         * modules/roundl-tests (Files): Likewise.
29865         * modules/safe-alloc-tests (Files): Likewise.
29866         * modules/setenv-tests (Files): Likewise.
29867         * modules/sigaction-tests (Files): Likewise.
29868         * modules/signbit-tests (Files): Likewise.
29869         * modules/sleep-tests (Files): Likewise.
29870         * modules/snprintf-posix-tests (Files): Likewise.
29871         * modules/snprintf-tests (Files): Likewise.
29872         * modules/sprintf-posix-tests (Files): Likewise.
29873         * modules/stat-tests (Files): Likewise.
29874         * modules/stat-time-tests (Files): Likewise.
29875         * modules/strcasestr-tests (Files): Likewise.
29876         * modules/strchrnul-tests (Files): Likewise.
29877         * modules/strerror-tests (Files): Likewise.
29878         * modules/striconv-tests (Files): Likewise.
29879         * modules/striconveh-tests (Files): Likewise.
29880         * modules/striconveha-tests (Files): Likewise.
29881         * modules/strsignal-tests (Files): Likewise.
29882         * modules/strstr-tests (Files): Likewise.
29883         * modules/strtod-tests (Files): Likewise.
29884         * modules/strverscmp-tests (Files): Likewise.
29885         * modules/symlink-tests (Files): Likewise.
29886         * modules/symlinkat-tests (Files): Likewise.
29887         * modules/trunc-tests (Files): Likewise.
29888         * modules/truncf-tests (Files): Likewise.
29889         * modules/truncl-tests (Files): Likewise.
29890         * modules/uname-tests (Files): Likewise.
29891         * modules/unicase/cased-tests (Files): Likewise.
29892         * modules/unicase/ignorable-tests (Files): Likewise.
29893         * modules/unicase/locale-language-tests (Files): Likewise.
29894         * modules/unicase/tolower-tests (Files): Likewise.
29895         * modules/unicase/totitle-tests (Files): Likewise.
29896         * modules/unicase/toupper-tests (Files): Likewise.
29897         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29898         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29899         * modules/unicase/u8-casefold-tests (Files): Likewise.
29900         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29901         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29902         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29903         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29904         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29905         * modules/unicase/u8-tolower-tests (Files): Likewise.
29906         * modules/unicase/u8-totitle-tests (Files): Likewise.
29907         * modules/unicase/u8-toupper-tests (Files): Likewise.
29908         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29909         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29910         * modules/unicase/u16-casefold-tests (Files): Likewise.
29911         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29912         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29913         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29914         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29915         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29916         * modules/unicase/u16-tolower-tests (Files): Likewise.
29917         * modules/unicase/u16-totitle-tests (Files): Likewise.
29918         * modules/unicase/u16-toupper-tests (Files): Likewise.
29919         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29920         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29921         * modules/unicase/u32-casefold-tests (Files): Likewise.
29922         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29923         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29924         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29925         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29926         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29927         * modules/unicase/u32-tolower-tests (Files): Likewise.
29928         * modules/unicase/u32-totitle-tests (Files): Likewise.
29929         * modules/unicase/u32-toupper-tests (Files): Likewise.
29930         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29931         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29932         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29933         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29934         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29935         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29936         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29937         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29938         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29939         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29940         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29941         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29942         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29943         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29944         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29945         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29946         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29947         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29948         * modules/unictype/block-list-tests (Files): Likewise.
29949         * modules/unictype/block-of-tests (Files): Likewise.
29950         * modules/unictype/block-test-tests (Files): Likewise.
29951         * modules/unictype/category-C-tests (Files): Likewise.
29952         * modules/unictype/category-Cc-tests (Files): Likewise.
29953         * modules/unictype/category-Cf-tests (Files): Likewise.
29954         * modules/unictype/category-Cn-tests (Files): Likewise.
29955         * modules/unictype/category-Co-tests (Files): Likewise.
29956         * modules/unictype/category-Cs-tests (Files): Likewise.
29957         * modules/unictype/category-L-tests (Files): Likewise.
29958         * modules/unictype/category-Ll-tests (Files): Likewise.
29959         * modules/unictype/category-Lm-tests (Files): Likewise.
29960         * modules/unictype/category-Lo-tests (Files): Likewise.
29961         * modules/unictype/category-Lt-tests (Files): Likewise.
29962         * modules/unictype/category-Lu-tests (Files): Likewise.
29963         * modules/unictype/category-M-tests (Files): Likewise.
29964         * modules/unictype/category-Mc-tests (Files): Likewise.
29965         * modules/unictype/category-Me-tests (Files): Likewise.
29966         * modules/unictype/category-Mn-tests (Files): Likewise.
29967         * modules/unictype/category-N-tests (Files): Likewise.
29968         * modules/unictype/category-Nd-tests (Files): Likewise.
29969         * modules/unictype/category-Nl-tests (Files): Likewise.
29970         * modules/unictype/category-No-tests (Files): Likewise.
29971         * modules/unictype/category-P-tests (Files): Likewise.
29972         * modules/unictype/category-Pc-tests (Files): Likewise.
29973         * modules/unictype/category-Pd-tests (Files): Likewise.
29974         * modules/unictype/category-Pe-tests (Files): Likewise.
29975         * modules/unictype/category-Pf-tests (Files): Likewise.
29976         * modules/unictype/category-Pi-tests (Files): Likewise.
29977         * modules/unictype/category-Po-tests (Files): Likewise.
29978         * modules/unictype/category-Ps-tests (Files): Likewise.
29979         * modules/unictype/category-S-tests (Files): Likewise.
29980         * modules/unictype/category-Sc-tests (Files): Likewise.
29981         * modules/unictype/category-Sk-tests (Files): Likewise.
29982         * modules/unictype/category-Sm-tests (Files): Likewise.
29983         * modules/unictype/category-So-tests (Files): Likewise.
29984         * modules/unictype/category-Z-tests (Files): Likewise.
29985         * modules/unictype/category-Zl-tests (Files): Likewise.
29986         * modules/unictype/category-Zp-tests (Files): Likewise.
29987         * modules/unictype/category-Zs-tests (Files): Likewise.
29988         * modules/unictype/category-and-not-tests (Files): Likewise.
29989         * modules/unictype/category-and-tests (Files): Likewise.
29990         * modules/unictype/category-byname-tests (Files): Likewise.
29991         * modules/unictype/category-name-tests (Files): Likewise.
29992         * modules/unictype/category-none-tests (Files): Likewise.
29993         * modules/unictype/category-of-tests (Files): Likewise.
29994         * modules/unictype/category-or-tests (Files): Likewise.
29995         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29996         * modules/unictype/combining-class-tests (Files): Likewise.
29997         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29998         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29999         * modules/unictype/ctype-blank-tests (Files): Likewise.
30000         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30001         * modules/unictype/ctype-digit-tests (Files): Likewise.
30002         * modules/unictype/ctype-graph-tests (Files): Likewise.
30003         * modules/unictype/ctype-lower-tests (Files): Likewise.
30004         * modules/unictype/ctype-print-tests (Files): Likewise.
30005         * modules/unictype/ctype-punct-tests (Files): Likewise.
30006         * modules/unictype/ctype-space-tests (Files): Likewise.
30007         * modules/unictype/ctype-upper-tests (Files): Likewise.
30008         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30009         * modules/unictype/decimal-digit-tests (Files): Likewise.
30010         * modules/unictype/digit-tests (Files): Likewise.
30011         * modules/unictype/mirror-tests (Files): Likewise.
30012         * modules/unictype/numeric-tests (Files): Likewise.
30013         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30014         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30015         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30016         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30017         Likewise.
30018         * modules/unictype/property-bidi-block-separator-tests (Files):
30019         Likewise.
30020         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30021         Likewise.
30022         * modules/unictype/property-bidi-common-separator-tests (Files):
30023         Likewise.
30024         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30025         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30026         Likewise.
30027         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30028         Likewise.
30029         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30030         Likewise.
30031         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30032         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30033         Likewise.
30034         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30035         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30036         Likewise.
30037         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30038         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30039         * modules/unictype/property-bidi-segment-separator-tests (Files):
30040         Likewise.
30041         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30042         * modules/unictype/property-byname-tests (Files): Likewise.
30043         * modules/unictype/property-combining-tests (Files): Likewise.
30044         * modules/unictype/property-composite-tests (Files): Likewise.
30045         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30046         * modules/unictype/property-dash-tests (Files): Likewise.
30047         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30048         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30049         Likewise.
30050         * modules/unictype/property-deprecated-tests (Files): Likewise.
30051         * modules/unictype/property-diacritic-tests (Files): Likewise.
30052         * modules/unictype/property-extender-tests (Files): Likewise.
30053         * modules/unictype/property-format-control-tests (Files): Likewise.
30054         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30055         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30056         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30057         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30058         * modules/unictype/property-hyphen-tests (Files): Likewise.
30059         * modules/unictype/property-id-continue-tests (Files): Likewise.
30060         * modules/unictype/property-id-start-tests (Files): Likewise.
30061         * modules/unictype/property-ideographic-tests (Files): Likewise.
30062         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30063         * modules/unictype/property-ids-trinary-operator-tests (Files):
30064         Likewise.
30065         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30066         * modules/unictype/property-iso-control-tests (Files): Likewise.
30067         * modules/unictype/property-join-control-tests (Files): Likewise.
30068         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30069         * modules/unictype/property-line-separator-tests (Files): Likewise.
30070         * modules/unictype/property-logical-order-exception-tests (Files):
30071         Likewise.
30072         * modules/unictype/property-lowercase-tests (Files): Likewise.
30073         * modules/unictype/property-math-tests (Files): Likewise.
30074         * modules/unictype/property-non-break-tests (Files): Likewise.
30075         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30076         * modules/unictype/property-numeric-tests (Files): Likewise.
30077         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30078         * modules/unictype/property-other-default-ignorable-code-point-tests
30079         (Files): Likewise.
30080         * modules/unictype/property-other-grapheme-extend-tests (Files):
30081         Likewise.
30082         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30083         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30084         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30085         * modules/unictype/property-other-math-tests (Files): Likewise.
30086         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30087         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30088         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30089         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30090         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30091         * modules/unictype/property-private-use-tests (Files): Likewise.
30092         * modules/unictype/property-punctuation-tests (Files): Likewise.
30093         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30094         * modules/unictype/property-radical-tests (Files): Likewise.
30095         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30096         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30097         * modules/unictype/property-space-tests (Files): Likewise.
30098         * modules/unictype/property-terminal-punctuation-tests (Files):
30099         Likewise.
30100         * modules/unictype/property-test-tests (Files): Likewise.
30101         * modules/unictype/property-titlecase-tests (Files): Likewise.
30102         * modules/unictype/property-unassigned-code-value-tests (Files):
30103         Likewise.
30104         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30105         * modules/unictype/property-uppercase-tests (Files): Likewise.
30106         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30107         * modules/unictype/property-white-space-tests (Files): Likewise.
30108         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30109         * modules/unictype/property-xid-start-tests (Files): Likewise.
30110         * modules/unictype/property-zero-width-tests (Files): Likewise.
30111         * modules/unictype/scripts-tests (Files): Likewise.
30112         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30113         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30114         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30115         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30116         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30117         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30118         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30119         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30120         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30121         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30122         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30123         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30124         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30125         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30126         * modules/uninorm/composition-tests (Files): Likewise.
30127         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30128         * modules/uninorm/decomposition-tests (Files): Likewise.
30129         * modules/uninorm/filter-tests (Files): Likewise.
30130         * modules/uninorm/nfc-tests (Files): Likewise.
30131         * modules/uninorm/nfd-tests (Files): Likewise.
30132         * modules/uninorm/nfkc-tests (Files): Likewise.
30133         * modules/uninorm/nfkd-tests (Files): Likewise.
30134         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30135         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30136         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30137         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30138         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30139         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30140         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30141         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30142         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30143         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30144         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30145         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30146         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30147         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30148         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30149         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30150         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30151         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30152         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30153         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30154         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30155         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30156         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30157         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30158         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30159         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30160         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30161         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30162         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30163         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30164         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30165         * modules/uniwidth/u8-width-tests (Files): Likewise.
30166         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30167         * modules/uniwidth/u16-width-tests (Files): Likewise.
30168         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30169         * modules/uniwidth/u32-width-tests (Files): Likewise.
30170         * modules/uniwidth/width-tests (Files): Likewise.
30171         * modules/unlink-tests (Files): Likewise.
30172         * modules/unsetenv-tests (Files): Likewise.
30173         * modules/usleep-tests (Files): Likewise.
30174         * modules/utimens-tests (Files): Likewise.
30175         * modules/utimensat-tests (Files): Likewise.
30176         * modules/vasnprintf-posix-tests (Files): Likewise.
30177         * modules/vasnprintf-tests (Files): Likewise.
30178         * modules/vasprintf-posix-tests (Files): Likewise.
30179         * modules/vasprintf-tests (Files): Likewise.
30180         * modules/vdprintf-posix-tests (Files): Likewise.
30181         * modules/vfprintf-posix-tests (Files): Likewise.
30182         * modules/vprintf-posix-tests (Files): Likewise.
30183         * modules/vsnprintf-posix-tests (Files): Likewise.
30184         * modules/vsnprintf-tests (Files): Likewise.
30185         * modules/vsprintf-posix-tests (Files): Likewise.
30186         * modules/wcrtomb-tests (Files): Likewise.
30187         * modules/wcsnrtombs-tests (Files): Likewise.
30188         * modules/wcsrtombs-tests (Files): Likewise.
30189         * modules/wctype-tests (Files): Likewise.
30190         * modules/wcwidth-tests (Files): Likewise.
30191         * modules/xmemdup0-tests (Files): Likewise.
30192         * modules/xprintf-posix-tests (Files): Likewise.
30193         * modules/xvasprintf-tests (Files): Likewise.
30194
30195 2009-12-24  Eric Blake  <ebb9@byu.net>
30196
30197         test-nanosleep: fix typo
30198         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30199         patch.
30200         Reported by Bruno Haible.
30201
30202 2009-12-24  Bruno Haible  <bruno@clisp.org>
30203
30204         Reduce namespace pollution on glibc systems.
30205         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30206         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30207         systems.
30208         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30209         <getopt.h> on glibc systems.
30210         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30211         systems.
30212         * lib/fcntl.c: Include <unistd.h> here instead.
30213
30214 2009-12-24  Bruno Haible  <bruno@clisp.org>
30215
30216         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30217
30218 2009-12-24  Eric Blake  <ebb9@byu.net>
30219
30220         tests: add signature checks
30221         * tests/signature.h (SIGNATURE_CHECK): New file.
30222         * modules/atexit-tests (Files): Use it.
30223         * modules/btowc-tests (Files): Likewise.
30224         * modules/canonicalize-lgpl-tests (Files): Likewise.
30225         * modules/ceilf-tests (Files): Likewise.
30226         * modules/ceill-tests (Files): Likewise.
30227         * modules/chown-tests (Files): Likewise.
30228         * modules/dprintf-posix-tests (Files): Likewise.
30229         * modules/dup2-tests (Files): Likewise.
30230         * modules/dup3-tests (Files): Likewise.
30231         * modules/duplocale-tests (Files): Likewise.
30232         * modules/fchdir-tests (Files): Likewise.
30233         * modules/fcntl-tests (Files): Likewise.
30234         * modules/fdopendir-tests (Files): Likewise.
30235         * modules/fflush-tests (Files): Likewise.
30236         * modules/flock-tests (Files): Likewise.
30237         * modules/floorf-tests (Files): Likewise.
30238         * modules/floorl-tests (Files): Likewise.
30239         * modules/fnmatch-tests (Files): Likewise.
30240         * modules/fopen-tests (Files): Likewise.
30241         * modules/fprintf-posix-tests (Files): Likewise.
30242         * modules/freopen-tests (Files): Likewise.
30243         * modules/frexp-nolibm-tests (Files): Likewise.
30244         * modules/frexp-tests (Files): Likewise.
30245         * modules/frexpl-nolibm-tests (Files): Likewise.
30246         * modules/frexpl-tests (Files): Likewise.
30247         * modules/fseek-tests (Files): Likewise.
30248         * modules/fseeko-tests (Files): Likewise.
30249         * modules/fsync-tests (Files): Likewise.
30250         * modules/ftell-tests (Files): Likewise.
30251         * modules/ftello-tests (Files): Likewise.
30252         * modules/futimens-tests (Files): Likewise.
30253         * modules/getaddrinfo-tests (Files): Likewise.
30254         * modules/getcwd-tests (Files): Likewise.
30255         * modules/getdelim-tests (Files): Likewise.
30256         * modules/getdtablesize-tests (Files): Likewise.
30257         * modules/getgroups-tests (Files): Likewise.
30258         * modules/gethostname-tests (Files): Likewise.
30259         * modules/getline-tests (Files): Likewise.
30260         * modules/getopt-posix-tests (Files): Likewise.
30261         * modules/gettimeofday-tests (Files): Likewise.
30262         * modules/glob-tests (Files): Likewise.
30263         * modules/iconv-tests (Files): Likewise.
30264         * modules/inet_ntop-tests (Files): Likewise.
30265         * modules/inet_pton-tests (Files): Likewise.
30266         * modules/isblank-tests (Files): Likewise.
30267         * modules/lchown-tests (Files): Likewise.
30268         * modules/ldexpl-tests (Files): Likewise.
30269         * modules/link-tests (Files): Likewise.
30270         * modules/linkat-tests (Files): Likewise.
30271         * modules/lseek-tests (Files): Likewise.
30272         * modules/lstat-tests (Files): Likewise.
30273         * modules/mbrtowc-tests (Files): Likewise.
30274         * modules/mbsinit-tests (Files): Likewise.
30275         * modules/mbsnrtowcs-tests (Files): Likewise.
30276         * modules/mbsrtowcs-tests (Files): Likewise.
30277         * modules/memchr-tests (Files): Likewise.
30278         * modules/memcmp-tests (Files): Likewise.
30279         * modules/memmem-tests (Files): Likewise.
30280         * modules/memrchr-tests (Files): Likewise.
30281         * modules/mkdir-tests (Files): Likewise.
30282         * modules/mkfifo-tests (Files): Likewise.
30283         * modules/mkfifoat-tests (Files): Likewise.
30284         * modules/mknod-tests (Files): Likewise.
30285         * modules/nanosleep-tests (Files): Likewise.
30286         * modules/nl_langinfo-tests (Files): Likewise.
30287         * modules/obstack-printf-tests (Files): Likewise.
30288         * modules/open-tests (Files): Likewise.
30289         * modules/openat-tests (Files): Likewise.
30290         * modules/perror-tests (Files): Likewise.
30291         * modules/pipe2-tests (Files): Likewise.
30292         * modules/poll-tests (Files): Likewise.
30293         * modules/popen-tests (Files): Likewise.
30294         * modules/posix_spawn-tests (Files): Likewise.
30295         * modules/posix_spawnp-tests (Files): Likewise.
30296         * modules/pread-tests (Files): Likewise.
30297         * modules/printf-posix-tests (Files): Likewise.
30298         * modules/pty-tests (Files): Likewise.
30299         * modules/random_r-tests (Files): Likewise.
30300         * modules/rawmemchr-tests (Files): Likewise.
30301         * modules/readlink-tests (Files): Likewise.
30302         * modules/remove-tests (Files): Likewise.
30303         * modules/rename-tests (Files): Likewise.
30304         * modules/renameat-tests (Files): Likewise.
30305         * modules/rmdir-tests (Files): Likewise.
30306         * modules/round-tests (Files): Likewise.
30307         * modules/roundf-tests (Files): Likewise.
30308         * modules/roundl-tests (Files): Likewise.
30309         * modules/select-tests (Files): Likewise.
30310         * modules/setenv-tests (Files): Likewise.
30311         * modules/sigaction-tests (Files): Likewise.
30312         * modules/sleep-tests (Files): Likewise.
30313         * modules/snprintf-posix-tests (Files): Likewise.
30314         * modules/snprintf-tests (Files): Likewise.
30315         * modules/sprintf-posix-tests (Files): Likewise.
30316         * modules/stat-tests (Files): Likewise.
30317         * modules/strcasestr-tests (Files): Likewise.
30318         * modules/strchrnul-tests (Files): Likewise.
30319         * modules/strerror-tests (Files): Likewise.
30320         * modules/strsignal-tests (Files): Likewise.
30321         * modules/strstr-tests (Files): Likewise.
30322         * modules/strtod-tests (Files): Likewise.
30323         * modules/strverscmp-tests (Files): Likewise.
30324         * modules/symlink-tests (Files): Likewise.
30325         * modules/symlinkat-tests (Files): Likewise.
30326         * modules/times-tests (Files): Likewise.
30327         * modules/trunc-tests (Files): Likewise.
30328         * modules/truncf-tests (Files): Likewise.
30329         * modules/truncl-tests (Files): Likewise.
30330         * modules/tsearch-tests (Files): Likewise.
30331         * modules/uname-tests (Files): Likewise.
30332         * modules/unlink-tests (Files): Likewise.
30333         * modules/unsetenv-tests (Files): Likewise.
30334         * modules/usleep-tests (Files): Likewise.
30335         * modules/utimensat-tests (Files): Likewise.
30336         * modules/vasprintf-tests (Files): Likewise.
30337         * modules/vdprintf-posix-tests (Files): Likewise.
30338         * modules/vfprintf-posix-tests (Files): Likewise.
30339         * modules/vprintf-posix-tests (Files): Likewise.
30340         * modules/vsnprintf-posix-tests (Files): Likewise.
30341         * modules/vsnprintf-tests (Files): Likewise.
30342         * modules/vsprintf-posix-tests (Files): Likewise.
30343         * modules/wcrtomb-tests (Files): Likewise.
30344         * modules/wcsnrtombs-tests (Files): Likewise.
30345         * modules/wcsrtombs-tests (Files): Likewise.
30346         * modules/wcwidth-tests (Files): Likewise.
30347         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30348         * tests/test-isinf.c (isinf): Likewise.
30349         * tests/test-isnan.c (isnan): Likewise.
30350         * tests/test-signbit.c (signbit): Likewise.
30351         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30352         declaration, either as macro or with correct signature.
30353         (select): Ensure function under test is declared with correct
30354         signature in correct header.
30355         * tests/test-atexit.c (atexit): Likewise.
30356         * tests/test-btowc.c (btowc): Likewise.
30357         * tests/test-canonicalize-lgpl.c (realpath)
30358         (canonicalize_file_name): Likewise.
30359         * tests/test-ceilf1.c (ceilf): Likewise.
30360         * tests/test-ceill.c (ceill): Likewise.
30361         * tests/test-chown.c (chown): Likewise.
30362         * tests/test-dprintf-posix.c (dprintf): Likewise.
30363         * tests/test-dup2.c (dup2): Likewise.
30364         * tests/test-dup3.c (dup3): Likewise.
30365         * tests/test-duplocale.c (duplocale): Likewise.
30366         * tests/test-fchdir.c (fchdir): Likewise.
30367         * tests/test-fchownat.c (fchownat): Likewise.
30368         * tests/test-fcntl.c (fcntl): Likewise.
30369         * tests/test-fdopendir.c (fdopendir): Likewise.
30370         * tests/test-fflush.c (fflush): Likewise.
30371         * tests/test-flock.c (flock): Likewise.
30372         * tests/test-floorf1.c (floorf): Likewise.
30373         * tests/test-floorl.c (floorl): Likewise.
30374         * tests/test-fnmatch.c (fnmatch): Likewise.
30375         * tests/test-fopen.c (fopen): Likewise.
30376         * tests/test-fprintf-posix.c (fprintf): Likewise.
30377         * tests/test-freopen.c (freopen): Likewise.
30378         * tests/test-frexp.c (frexp): Likewise.
30379         * tests/test-frexpl.c (frexpl): Likewise.
30380         * tests/test-fseek.c (fseek): Likewise.
30381         * tests/test-fseeko.c (fseeko): Likewise.
30382         * tests/test-fstatat.c (fstatat): Likewise.
30383         * tests/test-fsync.c (fsync): Likewise.
30384         * tests/test-ftell.c (ftell): Likewise.
30385         * tests/test-ftello.c (ftello): Likewise.
30386         * tests/test-futimens.c (futimens): Likewise.
30387         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30388         (gai_strerror): Likewise.
30389         * tests/test-getcwd.c (getcwd): Likewise.
30390         * tests/test-getdelim.c (getdelim): Likewise.
30391         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30392         * tests/test-getgroups.c (getgroups): Likewise.
30393         * tests/test-gethostname.c (gethostname): Likewise.
30394         * tests/test-getline.c (getline): Likewise.
30395         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30396         Likewise.
30397         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30398         * tests/test-glob.c (glob, globfree): Likewise.
30399         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30400         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30401         * tests/test-inet_pton.c (inet_pton): Likewise.
30402         * tests/test-isblank.c (isblank): Likewise.
30403         * tests/test-lchown.c (lchown): Likewise.
30404         * tests/test-ldexpl.c (ldexpl): Likewise.
30405         * tests/test-link.c (link): Likewise.
30406         * tests/test-linkat.c (linkat): Likewise.
30407         * tests/test-lseek.c (lseek): Likewise.
30408         * tests/test-lstat.c (lstat): Likewise.
30409         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30410         * tests/test-mbsinit.c (mbsinit): Likewise.
30411         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30412         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30413         * tests/test-memchr.c (memchr): Likewise.
30414         * tests/test-memcmp.c (memcmp): Likewise.
30415         * tests/test-memmem.c (memmem): Likewise.
30416         * tests/test-memrchr.c (memrchr): Likewise.
30417         * tests/test-mkdir.c (mkdir): Likewise.
30418         * tests/test-mkdirat.c (mkdirat): Likewise.
30419         * tests/test-mkfifo.c (mkfifo): Likewise.
30420         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30421         * tests/test-mknod.c (mknod): Likewise.
30422         * tests/test-nanosleep.c (nanosleep): Likewise.
30423         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30424         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30425         Likewise.
30426         * tests/test-open.c (open): Likewise.
30427         * tests/test-openat.c (openat): Likewise.
30428         * tests/test-perror.c (perror): Likewise.
30429         * tests/test-pipe2.c (pipe2): Likewise.
30430         * tests/test-poll.c (poll): Likewise.
30431         * tests/test-popen.c (popen, pclose): Likewise.
30432         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30433         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30434         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30435         (posix_spawn_file_actions_destroy)
30436         (posix_spawn_file_actions_addclose)
30437         (posix_spawn_file_actions_addopen)
30438         (posix_spawn_file_actions_adddup2): Likewise.
30439         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30440         * tests/test-pread.c (pread): Likewise.
30441         * tests/test-printf-posix.c (printf): Likewise.
30442         * tests/test-pty.c (openpty, forkpty): Likewise.
30443         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30444         (random_r): Likewise.
30445         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30446         * tests/test-readlink.c (readlink): Likewise.
30447         * tests/test-remove.c (remove): Likewise.
30448         * tests/test-rename.c (rename): Likewise.
30449         * tests/test-renameat.c (renameat): Likewise.
30450         * tests/test-rmdir.c (rmdir): Likewise.
30451         * tests/test-round1.c (round): Likewise.
30452         * tests/test-roundf1.c (roundf): Likewise.
30453         * tests/test-roundl.c (roundl): Likewise.
30454         * tests/test-setenv.c (setenv): Likewise.
30455         * tests/test-sigaction.c (sigaction): Likewise.
30456         * tests/test-sleep.c (sleep): Likewise.
30457         * tests/test-snprintf.c (snprintf): Likewise.
30458         * tests/test-sprintf-posix.c (sprintf): Likewise.
30459         * tests/test-stat.c (stat): Likewise.
30460         * tests/test-stpncpy.c (stpncpy): Likewise.
30461         * tests/test-strcasestr.c (strcasestr): Likewise.
30462         * tests/test-strchrnul.c (strchrnul): Likewise.
30463         * tests/test-strerror.c (strerror): Likewise.
30464         * tests/test-strsignal.c (strsignal): Likewise.
30465         * tests/test-strstr.c (strstr): Likewise.
30466         * tests/test-strtod.c (strtod): Likewise.
30467         * tests/test-strverscmp.c (strverscmp): Likewise.
30468         * tests/test-symlink.c (symlink): Likewise.
30469         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30470         * tests/test-times.c (times): Likewise.
30471         * tests/test-trunc1.c (trunc): Likewise.
30472         * tests/test-truncf1.c (truncf): Likewise.
30473         * tests/test-truncl.c (truncl): Likewise.
30474         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30475         Likewise.
30476         * tests/test-uname.c (uname): Likewise.
30477         * tests/test-unlink.c (unlink): Likewise.
30478         * tests/test-unlinkat.c (unlinkat): Likewise.
30479         * tests/test-unsetenv.c (unsetenv): Likewise.
30480         * tests/test-usleep.c (usleep): Likewise.
30481         * tests/test-utimensat.c (utimensat): Likewise.
30482         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30483         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30484         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30485         * tests/test-vprintf-posix.c (vprintf): Likewise.
30486         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30487         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30488         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30489         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30490         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30491         * tests/test-wcwidth.c (wcwidth): Likewise.
30492
30493         build: pull in conditional headers during GNULIB_POSIXCHECK
30494         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30495         definitions from any conditionally-included headers.
30496         * lib/stdlib.in.h (includes): Likewise.
30497         * lib/unistd.in.h (includes): Likewise.
30498
30499 2009-12-24  Bruno Haible  <bruno@clisp.org>
30500
30501         * tests/test-argv-iter.c: Include header file being tested immediately
30502         after config.h.
30503         * tests/test-base64.c: Likewise.
30504         * tests/test-flock.c: Likewise.
30505         * tests/test-fsync.c: Likewise.
30506         * tests/test-getdate.c: Likewise.
30507         * tests/test-getndelim2.c: Likewise.
30508         * tests/test-isfinite.c: Likewise.
30509         * tests/test-isinf.c: Likewise.
30510         * tests/test-strerror.c: Likewise.
30511         * tests/test-strsignal.c: Likewise.
30512
30513 2009-12-23  Eric Blake  <ebb9@byu.net>
30514
30515         unistd: work around cygwin bug
30516         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30517         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30518         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30519
30520 2009-12-23  Bruno Haible  <bruno@clisp.org>
30521
30522         localename: More tests.
30523         * tests/test-localename.c (SIZEOF): New macro.
30524         (categories): New variable.
30525         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30526         test_locale_name_default): Add test w.r.t. thread locale.
30527         (test_locale_name_thread): New function.
30528         (main): Invoke it.
30529
30530         localename: Make aware of thread locale.
30531         * lib/localename.h (gl_locale_name_thread): New declaration.
30532         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30533         behaviour with respect to thread locale.
30534         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30535         <langinfo.h>, glthread/lock.h.
30536         (SIZE_BITS): New macro.
30537         (string_hash): New function.
30538         (struct hash_node): New type.
30539         (HASH_TABLE_SIZE): New macro.
30540         (struniq_hash_table, struniq_lock): New variables.
30541         (struniq): New function.
30542         (gl_locale_name_thread): New function.
30543         (gl_locale_name): Invoke it.
30544         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30545         * modules/localename (Depends-on): Add lock.
30546         Reported by Mike Gran <spk121@yahoo.com>.
30547
30548 2009-12-23  Eric Blake  <ebb9@byu.net>
30549
30550         va-args: new module
30551         * modules/va-args: New file.
30552         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30553         * MODULES.html.sh (Core language properties): Mention it.
30554
30555         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30556         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30557         named alias for __attribute__((__unused__)).
30558         * lib/chown.c: Update client.
30559         * lib/fchmodat.c: Likewise.
30560         * lib/fts.c: Likewise.
30561         * lib/getdate.y: Likewise.
30562         * lib/getgroups.c: Likewise.
30563         * lib/getopt.c: Likewise.
30564         * lib/getugroups.c: Likewise.
30565         * lib/mkdir.c: Likewise.
30566         * lib/mkfifo.c: Likewise.
30567         * lib/mkfifoat.c: Likewise.
30568         * lib/mknod.c: Likewise.
30569         * lib/mknodat.c: Likewise.
30570         * lib/readlink.c: Likewise.
30571         * lib/se-context.in.h: Likewise.
30572         * lib/se-selinux.in.h: Likewise.
30573         * lib/sockets.c: Likewise.
30574         * lib/symlink.c: Likewise.
30575         * lib/symlinkat.c: Likewise.
30576         * lib/unicodeio.c: Likewise.
30577         * lib/unistr.h: Likewise.
30578         * tests/test-areadlink.c: Likewise.
30579         * tests/test-areadlinkat.c: Likewise.
30580         * tests/test-filenamecat.c: Likewise.
30581         * tests/test-fseeko.c: Likewise.
30582         * tests/test-ftello.c: Likewise.
30583         * tests/test-getdate.c: Likewise.
30584         * tests/test-getgroups.c: Likewise.
30585         * tests/test-gethostname.c: Likewise.
30586         * tests/test-quotearg.c: Likewise.
30587         * tests/test-version-etc.c: Likewise.
30588         * tests/test-xalloc-die.c: Likewise.
30589         * tests/test-xfprintf-posix.c: Likewise.
30590         * tests/test-xprintf-posix.c: Likewise.
30591         * tests/test-xvasprintf.c: Likewise.
30592
30593         tests: avoid compiler warnings
30594         * tests/test-fcntl.c (main): Delete unused parameters.
30595         * tests/test-freopen-safer.c (main): Likewise.
30596         * tests/test-xalloc-die.c (main): Mark unused parameters.
30597         * tests/test-fseeko.c (main): Likewise.
30598         * tests/test-ftello.c (main): Likewise.
30599         * tests/test-nanosleep.c (main): Avoid declaration warning.
30600         * tests/test-sleep.c (main): Likewise.
30601         * tests/test-unsetenv.c (main): Silence warning about string
30602         literal.
30603         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30604
30605 2009-12-23  Bruno Haible  <bruno@clisp.org>
30606
30607         * tests/test-localename.c (test_locale_name): New function, extracted
30608         from main. Also test mixed situations.
30609         (test_locale_name_posix, test_locale_name_environ,
30610         test_locale_name_default): New functions.
30611         (main): Invoke them all.
30612         * modules/localename-tests (configure.ac): Test for newlocale.
30613
30614 2009-12-23  Bruno Haible  <bruno@clisp.org>
30615
30616         unistd: Ensure getcwd gets declared before being overridden.
30617         * lib/unistd.in.h: Conditionally include <io.h>.
30618
30619 2009-12-22  Bruno Haible  <bruno@clisp.org>
30620
30621         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30622         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30623         (gl_WCHAR_H): Invoke it.
30624         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30625         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30626         Reported by Karl Berry <karl@freefriends.org>.
30627
30628 2009-12-22  Eric Blake  <ebb9@byu.net>
30629
30630         math, unistd: avoid redundant includes
30631         * lib/math.in.h (isnan): No need to re-include <math.h>.
30632         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30633
30634         getsubopt: work around cygwin bug
30635         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30636         avoid conflicting with system getsubopt.
30637         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30638         bug.
30639
30640         getopt: synchronize from glibc
30641         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30642         parameter order.  Adjust all callers.
30643         (_getopt_internal_r, main): Adjust quoting in error messages.
30644         Drop considerations for outdated POSIX 1003.2 error message.
30645         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30646         callers.
30647         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30648
30649         test-getopt: test stderr behavior
30650         * modules/getopt-posix-tests (Depends-on): Add dup2.
30651         * tests/test-getopt.c (ASSERT): Avoid stderr.
30652         (main): Move stderr to a temporary file.
30653         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30654         Instead, add parameter to inform caller if output occurred.
30655         (test_getopt): Adjust all existing tests to expect silence, and
30656         add new tests of leading ":".
30657         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30658         glibc shortcomings with leading "-:" or "+:" in optstring.
30659         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30660         Likewise.
30661         * doc/posix-functions/getopt.texi (getopt): Likewise.
30662
30663         test-getopt: enhance test
30664         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30665         supports optind=0.
30666         * tests/test-getopt.c (OPTIND_MIN): Move...
30667         * tests/test-getopt.h (OPTIND_MIN): ...here.
30668         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30669         Require that optind=0 works, since modern BSD supports it in
30670         addition to optreset, and since coreutils expects it.
30671         (test_getopt_long_only): New test.
30672         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30673         glibc shortcomings with 'W;', and enforcement of optind=0.
30674         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30675         Likewise.
30676
30677 2009-12-21  Bruno Haible  <bruno@clisp.org>
30678
30679         localename: Improvements for MacOS X and Cygwin.
30680         * lib/localename.h (gl_locale_name_environ): New declaration.
30681         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30682         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30683         (gl_locale_name_posix): Invoke it.
30684         (gl_locale_name_default): Add comments. Use Windows native API also on
30685         Cygwin.
30686
30687 2009-12-21  Bruno Haible  <bruno@clisp.org>
30688
30689         Update list of Win32 locale ids.
30690         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30691         (LANG_SAMI): Renamed from LANG_SAAMI.
30692         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30693         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30694         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30695         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30696         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30697         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30698         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30699         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30700         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30701         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30702         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30703         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30704         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30705         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30706         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30707         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30708         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30709         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30710         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30711         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30712         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30713         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30714         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30715         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30716         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30717         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30718         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30719         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30720         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30721         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30722         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30723         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30724         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30725         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30726         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30727         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30728         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30729         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30730         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30731         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30732         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30733         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30734         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30735         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30736         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30737         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30738         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30739         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30740         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30741         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30742         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30743         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30744         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30745         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30746         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30747         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30748         Add more languages and countries for Sami, Sorbian. Add more countries
30749         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30750         for Pashto. Change country for Syriac, Tswana.
30751
30752 2009-12-21  Eric Blake  <ebb9@byu.net>
30753
30754         test-utimens: avoid spurious failure
30755         * tests/test-chown.h (nap): Factor...
30756         * tests/nap.h: ...into new file.
30757         * tests/test-lchown.h (nap): Avoid duplication.
30758         * tests/test-utimens-common.h (nap): Use shared implementation,
30759         necessary on file systems with 1-second resolution.
30760         * modules/chown-tests (Files): Include new file.
30761         * modules/fdutimensat-tests (Files): Likewise.
30762         * modules/futimens-tests (Files): Likewise.
30763         * modules/lchown-tests (Files): Likewise.
30764         * modules/openat-tests (Files): Likewise.
30765         * modules/utimens-tests (Files): Likewise.
30766         * modules/utimensat-tests (Files): Likewise.
30767
30768 2009-12-19  Eric Blake  <ebb9@byu.net>
30769
30770         futimens, utimensat: work around Linux bug
30771         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30772         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30773         * lib/utimensat.c (rpl_utimensat): Work around it.
30774         * lib/futimens.c (rpl_futimens): Adjust comment.
30775
30776         utimens: work around Linux ctime bug
30777         * lib/utimens.c (detect_ctime_bug): New helper function.
30778         (update_timespec): Differentiate between workaround needed for
30779         this bug vs. what is needed for systems that lack utimensat.
30780         (fdutimens, lutimens): Work around bug.
30781
30782         utimens: check for ctime update
30783         * tests/test-utimens-common.h (check_ctime): Define.
30784         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30785         * tests/test-futimens.h (test_futimens): Likewise.
30786         * tests/test-lutimens.h (test_lutimens): Likewise.
30787         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30788         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30789
30790 2009-12-19  Bruno Haible  <bruno@clisp.org>
30791
30792         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30793         * tests/test-dprintf-posix2.sh: New file.
30794         * tests/test-dprintf-posix2.c: New file.
30795         * modules/dprintf-posix-tests (Files): Add them.
30796         (configure.ac): Check for getrlimit and setrlimit.
30797         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30798
30799 2009-12-19  Bruno Haible  <bruno@clisp.org>
30800
30801         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30802         * tests/test-fprintf-posix3.sh: New file.
30803         * tests/test-fprintf-posix3.c: New file.
30804         * modules/fprintf-posix-tests (Files): Add them.
30805         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30806
30807 2009-12-19  Eric Blake  <ebb9@byu.net>
30808
30809         dirfd: fix prototype
30810         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30811         * lib/dirfd.c (dirfd): Likewise.
30812
30813         canonicalize: reduce memory usage
30814         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30815         allocation to size.
30816         Reported by Solar Designer <solar@openwall.com>.
30817
30818 2009-12-19  Bruno Haible  <bruno@clisp.org>
30819
30820         New module attribute 'Applicability'.
30821         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30822         * gnulib-tool: New option --extract-applicability.
30823         (func_usage): Document it.
30824         (sed_extract_prog): Recognize it.
30825         (func_get_applicability): New function.
30826         (func_import): Generalize handling of 'link-warning' module.
30827         * modules/link-warning (Applicability): New section.
30828         * modules/arg-nonnull (Applicability): New section.
30829         Repoted by Simon Josefsson <simon@josefsson.org>.
30830
30831 2009-12-19  Bruno Haible  <bruno@clisp.org>
30832
30833         fflush: tweak
30834         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30835         * lib/fseeko.c (rpl_fseeko): Likewise.
30836
30837 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30838
30839         * lib/gl_list.h: Fix typo in comment.
30840
30841 2009-12-16  Eric Blake  <ebb9@byu.net>
30842
30843         fcntl: use to simplify other modules
30844         * modules/cloexec (Depends-on): Add fcntl.
30845         * modules/fchdir (Depends-on): Likewise.
30846         * modules/fd-safer-flag (Depends-on): Likewise.
30847         * modules/unistd-safer (Depends-on): Likewise.
30848         * modules/dup3 (configure.ac): Set module indicator.
30849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30850         missing.
30851         * lib/fchdir.c (_gl_register_dup): Fix comment.
30852         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30853         * lib/dup-safer.c (dup_safer): Likewise.
30854         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30855         * lib/dup3.c (dup3): Likewise.
30856         * tests/test-fchdir.c (main): Enhance test.
30857         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30858
30859         fcntl: port portions of fcntl to mingw
30860         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30861         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30862         replacement for mingw.
30863         * modules/fcntl (Description): Update.
30864         (Depends-on): Add dup2.
30865         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30866         * modules/fcntl-h (Makefile.am): Substitute it.
30867         * lib/fcntl.in.h (fcntl): Update declaration.
30868         (F_DUPFD, F_GETFD): New macros, when needed.
30869         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30870         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30871         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30872         we now guarantee.
30873
30874         fcntl: work around cygwin bug in F_DUPFD
30875         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30876         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30877         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30878         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30879         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30880
30881         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30882         * modules/fcntl (Files): List new files.
30883         (configure.ac): Run a test.
30884         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30885         * lib/fcntl.c (rpl_fcntl): Likewise.
30886         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30887         (gl_FCNTL_H): Always replace fcntl.h.
30888         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30889         * lib/fcntl.in.h (fcntl): Declare replacement.
30890         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30891         needed, plus a witness.
30892         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30893         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30894         * tests/test-fcntl.c: New file.
30895         * modules/fcntl-tests: Likewise.
30896
30897         binary-io: avoid potential compilation warning
30898         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30899         directives.
30900
30901         fflush: avoid compilation error on NetBSD
30902         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30903         between off_t and fpos_t, since the latter is sometimes a struct.
30904         * lib/fseeko.c (rpl_fseeko): Likewise.
30905         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30906
30907 2009-12-15  Eric Blake  <ebb9@byu.net>
30908
30909         fcntl-h, stdio, sys_ioctl: fix declarations
30910         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30911         function must not take arguments.
30912         * lib/sys_ioctl.in.h (ioctl): Likewise.
30913         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30914         (open): Add a link warning.
30915
30916 2009-12-15  Jim Meyering  <meyering@redhat.com>
30917
30918         areadlink, areadlink-with-size: relax license to LGPLv2+
30919         * modules/areadlink (License): Relax to LGPLv2+.
30920         * modules/areadlink-with-size (License): Likewise.
30921
30922 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30923             Bruno Haible  <bruno@clisp.org>
30924
30925         *printf: Fix memory leak.
30926         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30927         * lib/vfprintf.c (vfprintf): Likewise.
30928         * lib/dprintf.c (dprintf): Likewise.
30929         * lib/vdprintf.c (vdprintf): Likewise.
30930
30931 2009-12-14  Eric Blake  <ebb9@byu.net>
30932
30933         accept4: adjust module dependencies
30934         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30935
30936         utimens: one more try at avoiding compiler warning
30937         * lib/utimens.c (lutimens): Lower scope of result.
30938
30939 2009-12-13  Bruno Haible  <bruno@clisp.org>
30940
30941         Move the malloc checking from module 'list' to new module 'xlist'.
30942         * modules/xlist: New file.
30943         * lib/gl_xlist.h: New file.
30944         * lib/gl_xlist.c: New file.
30945         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30946         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30947         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30948         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30949         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30950         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30951         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30952         gl_sortedlist_nx_add): New declarations.
30953         (struct gl_list_implementation): Rename and change methods accordingly.
30954         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30955         (gl_list_nx_create): Renamed from gl_list_create.
30956         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30957         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30958         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30959         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30960         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30961         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30962         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30963         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30964         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30965         gl_list_create_empty.
30966         (gl_list_nx_create): Renamed from gl_list_create.
30967         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30968         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30969         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30970         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30971         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30972         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30973         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30974         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30975         * lib/gl_array_list.c: Don't include xalloc.h.
30976         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30977         NULL upon out-of-memory.
30978         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30979         out-of-memory.
30980         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30981         Change return type to 'int'.
30982         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30983         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30984         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30985         upon out-of-memory.
30986         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30987         upon out-of-memory.
30988         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30989         upon out-of-memory.
30990         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30991         upon out-of-memory.
30992         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30993         out-of-memory.
30994         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30995         Update.
30996         (gl_array_list_implementation): Update.
30997         * lib/gl_carray_list.c: Don't include xalloc.h.
30998         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30999         Return NULL upon out-of-memory.
31000         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31001         out-of-memory.
31002         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31003         Change return type to 'int'.
31004         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31005         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31006         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31007         upon out-of-memory.
31008         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31009         upon out-of-memory.
31010         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31011         out-of-memory.
31012         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31013         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31014         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31015         Update.
31016         (gl_carray_list_implementation): Update.
31017         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31018         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31019         gl_linked_create_empty. Return NULL upon out-of-memory.
31020         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31021         out-of-memory.
31022         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31023         Change return type to 'int'. Return -1 upon out-of-memory.
31024         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31025         out-of-memory.
31026         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31027         upon out-of-memory.
31028         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31029         upon out-of-memory.
31030         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31031         NULL upon out-of-memory.
31032         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31033         upon out-of-memory.
31034         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31035         out-of-memory.
31036         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31037         Update.
31038         * lib/gl_linked_list.c: Don't include xalloc.h.
31039         (gl_linked_list_implementation): Update.
31040         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31041         (add_to_bucket): Change return type to 'int'.
31042         (gl_linkedhash_list_implementation): Update.
31043         * lib/gl_anytree_list1.h (free_subtree): New function.
31044         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31045         gl_tree_create_empty. Return NULL upon out-of-memory.
31046         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31047         Change return type to 'int'. Return -1 upon out-of-memory.
31048         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31049         out-of-memory.
31050         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31051         (gl_tree_remove_node): New function, moved here from
31052         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31053         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31054         Update.
31055         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31056         malloc, not xmalloc. Return NULL upon out-of-memory.
31057         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31058         out-of-memory.
31059         (gl_tree_remove_node_from_tree): New function, extracted from
31060         gl_tree_remove_node.
31061         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31062         upon out-of-memory.
31063         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31064         out-of-memory.
31065         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31066         upon out-of-memory.
31067         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31068         upon out-of-memory.
31069         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31070         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31071         not xmalloc. Return NULL upon out-of-memory.
31072         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31073         out-of-memory.
31074         (gl_tree_remove_node_from_tree): New function, extracted from
31075         gl_tree_remove_node.
31076         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31077         upon out-of-memory.
31078         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31079         out-of-memory.
31080         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31081         upon out-of-memory.
31082         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31083         upon out-of-memory.
31084         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31085         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31086         gl_anytree_list1.h before gl_anyavltree_list2.h.
31087         (gl_avltree_list_implementation): Update.
31088         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31089         gl_anytree_list1.h before gl_anyavltree_list2.h.
31090         (gl_rbtree_list_implementation): Update.
31091         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31092         Change return type to 'int'. Return -1 upon out-of-memory. Use
31093         __builtin_expect.
31094         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31095         (gl_avltreehash_list_implementation): Update.
31096         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31097         (gl_rbtreehash_list_implementation): Update.
31098         * modules/array-list (Depends-on): Remove xalloc.
31099         * modules/carray-list (Depends-on): Likewise.
31100         * modules/linked-list (Depends-on): Likewise.
31101         * modules/linkedhash-list (Depends-on): Likewise.
31102         * modules/avltree-list (Depends-on): Likewise.
31103         * modules/rbtree-list (Depends-on): Likewise.
31104         * modules/avltreehash-list (Depends-on): Likewise.
31105         * modules/rbtreehash-list (Depends-on): Likewise.
31106
31107         * modules/xsublist: New file.
31108         * lib/gl_xsublist.h: New file.
31109         * lib/gl_xsublist.c: New file.
31110         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31111         (gl_sublist_nx_create): New declaration.
31112         * lib/gl_sublist.c: Don't include xalloc.h.
31113         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31114         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31115         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31116         Change return type to 'int'. Return -1 upon out-of-memory.
31117         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31118         upon out-of-memory.
31119         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31120         NULL upon out-of-memory.
31121         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31122         upon out-of-memory.
31123         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31124         NULL upon out-of-memory.
31125         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31126         NULL upon out-of-memory.
31127         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31128         upon out-of-memory.
31129         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31130         (gl_sublist_list_implementation): Update.
31131         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31132         upon out-of-memory.
31133         * modules/sublist (Depends-on): Remove xalloc.
31134
31135         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31136         * tests/test-carray_list.c: Likewise.
31137         * tests/test-linked_list.c: Likewise.
31138         * tests/test-linkedhash_list.c: Likewise.
31139         * tests/test-avltree_list.c: Likewise.
31140         * tests/test-rbtree_list.c: Likewise.
31141         * tests/test-avltreehash_list.c: Likewise.
31142         * tests/test-rbtreehash_list.c: Likewise.
31143         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31144         * modules/carray-list-tests (Makefile.am): Likewise.
31145         * modules/linked-list-tests (Makefile.am): Likewise.
31146         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31147         * modules/avltree-list-tests (Makefile.am): Likewise.
31148         * modules/rbtree-list-tests (Makefile.am): Likewise.
31149         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31150         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31151
31152         * NEWS: Mention the changes.
31153
31154         * lib/clean-temp.c: Include gl_xlist.h.
31155         * modules/clean-temp (Depends-on): Add xlist.
31156
31157         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31158         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31159
31160         * tests/test-array_oset.c: Include gl_xlist.h.
31161         * modules/array-oset-tests (Depends-on): Add xlist.
31162
31163         Reported by José E. Marchesi <jemarch@gnu.org>.
31164
31165 2009-12-13  Bruno Haible  <bruno@clisp.org>
31166
31167         Move the malloc checking from module 'oset' to new module 'xoset'.
31168         * modules/xoset: New file.
31169         * lib/gl_xoset.h: New file.
31170         * lib/gl_xoset.c: New file.
31171         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31172         declarations.
31173         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31174         (struct gl_oset_implementation): Rename and change methods accordingly.
31175         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31176         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31177         'int'. Mark as __warn_unused_result__.
31178         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31179         gl_oset_create_empty.
31180         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31181         'int'.
31182         * lib/gl_array_oset.c: Don't include xalloc.h.
31183         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31184         malloc, not xmalloc.
31185         (grow): Change return type to 'int'. Don't call xalloc_die.
31186         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31187         to 'int'.
31188         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31189         'int'.
31190         (gl_array_oset_implementation): Update.
31191         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31192         gl_tree_create_empty.
31193         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31194         'int'.
31195         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31196         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31197         xmalloc.
31198         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31199         not xmalloc.
31200         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31201         xmalloc.
31202         (gl_avltree_oset_implementation): Update.
31203         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31204         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31205         xmalloc.
31206         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31207         not xmalloc.
31208         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31209         xmalloc.
31210         (gl_rbtree_oset_implementation): Update.
31211         * modules/array-oset (Depends-on): Remove xalloc.
31212         * modules/avltree-oset (Depends-on): Likewise.
31213         * modules/rbtree-oset (Depends-on): Likewise.
31214         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31215         * tests/test-avltree_oset.c: Likewise.
31216         * tests/test-rbtree_oset.c: Likewise.
31217         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31218         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31219         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31220         * NEWS: Mention the change.
31221
31222 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31223
31224         maint.mk: allow a project to override release-prep commands
31225         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31226         commands into a new rule.
31227         (release-prep): New rule.
31228         (release-prep-hook): New overridable variable.
31229
31230 2009-12-13  Bruno Haible  <bruno@clisp.org>
31231
31232         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31233
31234 2009-12-13  Jim Meyering  <meyering@redhat.com>
31235
31236         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31237         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31238
31239 2009-12-12  Bruno Haible  <bruno@clisp.org>
31240
31241         duplocale: Tweak.
31242         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31243
31244 2009-12-12  Karl Berry  <karl@gnu.org>
31245
31246         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31247
31248 2009-12-12  Bruno Haible  <bruno@clisp.org>
31249
31250         * m4/po.m4: Undo incorrect untabification.
31251
31252 2009-12-12  Bruno Haible  <bruno@clisp.org>
31253
31254         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31255         * modules/c-strtod (Depends-on): Add locale.
31256         * modules/c-strtold (Depends-on): Likewise.
31257
31258 2009-12-12  Bruno Haible  <bruno@clisp.org>
31259
31260         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31261
31262 2009-12-11  Eric Blake  <ebb9@byu.net>
31263
31264         setenv: relax requirement in light of POSIX ruling
31265         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31266         not NULL.
31267         * tests/test-setenv.c (main): Relax test.
31268         * tests/test-unsetenv.c (main): Likewise.
31269         * doc/posix-functions/setenv.texi (setenv): Document this.
31270         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31271
31272 2009-12-11  Bruno Haible  <bruno@clisp.org>
31273
31274         New module 'fd-safer-flag'.
31275         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31276         * lib/dup-safer.c (dup_safer_flag): Remove function.
31277         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31278         * lib/fd-safer.c (fd_safer_flag): Remove function.
31279         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31280         * modules/cloexec (configure.ac): Drop indicator macro.
31281         * modules/fd-safer-flag: New file.
31282         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31283         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31284         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31285
31286 2009-12-11  Bruno Haible  <bruno@clisp.org>
31287
31288         Tests for module 'nl_langinfo'.
31289         * modules/nl_langinfo-tests: New file.
31290         * tests/test-nl_langinfo.sh: New file.
31291         * tests/test-nl_langinfo.c: New file.
31292
31293         New module 'nl_langinfo'.
31294         * lib/nl_langinfo.c: New file.
31295         * m4/nl_langinfo.m4: New file.
31296         * modules/nl_langinfo: New file.
31297         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31298
31299 2009-12-11  Bruno Haible  <bruno@clisp.org>
31300
31301         Tests for module 'langinfo'.
31302         * modules/langinfo-tests: New file.
31303         * tests/test-langinfo.c: New file.
31304
31305         New module 'langinfo'.
31306         * lib/langinfo.in.h: New file.
31307         * m4/langinfo_h.m4: New file.
31308         * modules/langinfo: New file.
31309         * doc/posix-headers/langinfo.texi: Mention the new module.
31310
31311 2009-12-11  Bruno Haible  <bruno@clisp.org>
31312
31313         * lib/config.charset: Untabify.
31314
31315 2009-12-11  Bruno Haible  <bruno@clisp.org>
31316
31317         * modules/unistd-safer (configure.ac): Drop indicator macro.
31318
31319 2009-12-11  Bruno Haible  <bruno@clisp.org>
31320
31321         Move pipe2-safer code to its own file.
31322         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31323         * lib/pipe-safer.c (pipe2_safer): Remove function.
31324         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31325         (Makefile.am): Add it to lib_SOURCES.
31326
31327 2009-12-10  Bruno Haible  <bruno@clisp.org>
31328
31329         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31330
31331 2009-12-10  Bruno Haible  <bruno@clisp.org>
31332
31333         Declare which arguments expect non-NULL values, for GCC and clang.
31334         * build-aux/arg-nonnull.h: New file.
31335         * modules/arg-nonnull: New file.
31336         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31337         (inet_ntop, inet_pton): Use it.
31338         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31339         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31340         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31341         (open, openat): Use it.
31342         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31343         (fnmatch): Use it.
31344         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31345         (getopt, getopt_long, getopt_long_only): Use it.
31346         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31347         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31348         Use it.
31349         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31350         (iconv_open): Use it.
31351         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31352         (strtoimax, strtoumax): Use it.
31353         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31354         (duplocale): Use it.
31355         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31356         (frexp, frexpl): Use it.
31357         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31358         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31359         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31360         (tsearch, tfind, tdelete, twalk): Use it.
31361         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31362         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31363         sigpending): Use it.
31364         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31365         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31366         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31367         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31368         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31369         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31370         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31371         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31372         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31373         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31374         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31375         Use it.
31376         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31377         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31378         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31379         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31380         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31381         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31382         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31383         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31384         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31385         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31386         strtoull, unsetenv): Use it.
31387         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31388         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31389         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31390         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31391         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31392         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31393         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31394         (strcasecmp, strncasecmp): Use it.
31395         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31396         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31397         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31398         rpl_setsockopt): Use it.
31399         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31400         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31401         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31402         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31403         (gettimeofday): Use it.
31404         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31405         (times): Use it.
31406         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31407         (uname): Use it.
31408         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31409         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31410         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31411         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31412         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31413         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31414         unlinkat, write): Use it.
31415         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31416         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31417         * lib/argv-iter.h: Include arg-nonnull.h.
31418         (_ATTRIBUTE_NONNULL_): Remove macro.
31419         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31420         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31421         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31422         optimization.
31423         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31424         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31425         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31426         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31427         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31428         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31429         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31430         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31431         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31432         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31433         * modules/dirent (Depends-on): Add arg-nonnull.
31434         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31435         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31436         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31437         * modules/fnmatch (Depends-on): Add arg-nonnull.
31438         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31439         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31440         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31441         * modules/glob (Depends-on): Add arg-nonnull.
31442         (Makefile.am): Insert arg-nonnull.h into glob.h.
31443         * modules/iconv_open (Depends-on): Add arg-nonnull.
31444         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31445         * modules/inttypes (Depends-on): Add arg-nonnull.
31446         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31447         * modules/locale (Depends-on): Add arg-nonnull.
31448         (Makefile.am): Insert arg-nonnull.h into locale.h.
31449         * modules/math (Depends-on): Add arg-nonnull.
31450         (Makefile.am): Insert arg-nonnull.h into math.h.
31451         * modules/netdb (Depends-on): Add arg-nonnull.
31452         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31453         * modules/search (Depends-on): Add arg-nonnull.
31454         (Makefile.am): Insert arg-nonnull.h into search.h.
31455         * modules/signal (Depends-on): Add arg-nonnull.
31456         (Makefile.am): Insert arg-nonnull.h into signal.h.
31457         * modules/spawn (Depends-on): Add arg-nonnull.
31458         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31459         * modules/stdio (Depends-on): Add arg-nonnull.
31460         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31461         * modules/stdlib (Depends-on): Add arg-nonnull.
31462         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31463         * modules/string (Depends-on): Add arg-nonnull.
31464         (Makefile.am): Insert arg-nonnull.h into string.h.
31465         * modules/strings (Depends-on): Add arg-nonnull.
31466         (Makefile.am): Insert arg-nonnull.h into strings.h.
31467         * modules/sys_socket (Depends-on): Add arg-nonnull.
31468         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31469         * modules/sys_stat (Depends-on): Add arg-nonnull.
31470         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31471         * modules/sys_time (Depends-on): Add arg-nonnull.
31472         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31473         * modules/sys_times (Depends-on): Add arg-nonnull.
31474         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31475         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31476         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31477         * modules/time (Depends-on): Add arg-nonnull.
31478         (Makefile.am): Insert arg-nonnull.h into time.h.
31479         * modules/unistd (Depends-on): Add arg-nonnull.
31480         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31481         * modules/wchar (Depends-on): Add arg-nonnull.
31482         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31483         * modules/argv-iter (Depends-on): Add arg-nonnull.
31484         * tests/test-canonicalize.c (null_ptr): New function.
31485         (main): Use it.
31486         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31487         (main): Use it.
31488         * tests/test-memmem.c (null_ptr): New function.
31489         (main): Use it.
31490         Reported by Jim Meyering.
31491
31492 2009-12-10  Bruno Haible  <bruno@clisp.org>
31493
31494         Use spaces for indentation, not tabs.
31495         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31496         * m4/*.m4: Untabify.
31497         * build-aux/*.h: Untabify.
31498         * tests/**/*.[hc]: Untabify.
31499         * README: New section "Indent with spaces, not TABs", based on
31500         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31501         * NEWS: Mention the change.
31502
31503 2009-12-10  Bruno Haible  <bruno@clisp.org>
31504
31505         pty test: Fix link error.
31506         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31507         test_pty_LDADD.
31508
31509 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31510
31511         * modules/pty: New file.
31512         * modules/pty-tests: New file.
31513         * m4/pty.m4: New file.
31514         * tests/test-pty.c: New file.
31515         * doc/glibc-headers/pty.texi: Modified.
31516         * doc/glibc-functions/forkpty.texi: Modified.
31517         * doc/glibc-functions/openpty.texi: Modified.
31518
31519 2009-12-10  Bruno Haible  <bruno@clisp.org>
31520
31521         Avoid syntax error in C++ mode.
31522         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31523
31524 2009-12-10  Bruno Haible  <bruno@clisp.org>
31525
31526         Use sed with option -e.
31527         * gnulib-tool (func_version, func_emit_copyright_notice,
31528         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31529         option -e to sed.
31530         * modules/link-warning (Makefile.am): Likewise.
31531
31532 2009-12-10  Jim Meyering  <meyering@redhat.com>
31533
31534         mgetgroups: do not write bytes beyond end of malloc'd buffer
31535         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31536         username, we call getgroups with a one-element-shorter buffer,
31537         but still told it the length was original, max_n_groups.
31538
31539 2009-12-09  Eric Blake  <ebb9@byu.net>
31540
31541         cloexec: relax license
31542         * modules/cloexec (Maintainer): Add myself.
31543         (License): Use LGPL, not GPL.
31544
31545         link-warning: optimize generation
31546         * modules/link-warning (Makefile.am): Reduce process usage.
31547
31548 2009-12-09  Bruno Haible  <bruno@clisp.org>
31549
31550         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31551         workaround was added on 2009-11-17.
31552
31553 2009-12-09  Jim Meyering  <meyering@redhat.com>
31554             Bruno Haible  <bruno@clisp.org>
31555
31556         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31557         * modules/link-warning (Makefile.am): Make the comment-removing sed
31558         command more robust in the face of bootstrap-prepended comment lines.
31559
31560 2009-12-09  Bruno Haible  <bruno@clisp.org>
31561
31562         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31563         most one group.
31564
31565 2009-12-09  Simon Josefsson <simon@josefsson.org>
31566             Bruno Haible  <bruno@clisp.org>
31567
31568         * build-aux/link-warning.h: Add copyright notice.
31569         * modules/link-warning (Makefile.am): Generate link-warning.h from
31570         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31571         * NEWS: Mention change in link-warning module.
31572         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31573         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31574         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31575         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31576         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31577         * modules/math (Makefile.am): Add dependency to math.h.
31578         * modules/search (Makefile.am): Add dependency to search.h.
31579         * modules/signal (Makefile.am): Add dependency to signal.h.
31580         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31581         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31582         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31583         * modules/string (Makefile.am): Add dependency to string.h.
31584         * modules/strings (Makefile.am): Add dependency to strings.h.
31585         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31586         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31587         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31588         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31589         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31590         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31591         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31592         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31593         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31594
31595 2009-12-09  Bruno Haible  <bruno@clisp.org>
31596
31597         fchdir: Optimize away rpl_fstat when possible.
31598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31599         REPLACE_OPEN_DIRECTORY.
31600         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31601
31602 2009-12-09  Bruno Haible  <bruno@clisp.org>
31603
31604         * lib/fchdir.c: Update comment.
31605
31606 2009-12-09  Bruno Haible  <bruno@clisp.org>
31607
31608         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31609
31610 2009-12-08  Eric Blake  <ebb9@byu.net>
31611
31612         fchdir: avoid memory leak on re-registration.
31613         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31614
31615 2009-12-08  Jim Meyering  <meyering@redhat.com>
31616
31617         init.sh: avoid Solaris 10 /bin/sh portability problem
31618         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31619         sourced script:
31620           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31621           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31622           bar
31623         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31624         and two tests used that idiom.
31625         * tests/init.sh: Update suggested usage comments.
31626         (path_prepend_): New function, to be used in place
31627         of the --src-path=DIR option.
31628         (setup_): Move PATH-prepending code into path_prepend_.
31629         * tests/test-pread.sh: Adapt to new usage.
31630         * tests/test-xalloc-die.sh: Likewise.
31631
31632 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31633
31634         * doc/gnulib.texi (Glibc pty.h): Add.
31635         * doc/glibc-functions/forkpty.texi: Add.
31636         * doc/glibc-functions/openpty.texi: Add.
31637         Suggested by Bruno Haible.
31638
31639 2009-12-08  Eric Blake  <ebb9@byu.net>
31640
31641         fchdir: fix logic bugs
31642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31643         * tests/test-fchdir.c (main): Enhance test.
31644         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31645         is in use.
31646
31647         dup2: fix logic bugs
31648         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31649         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31650         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31651         exists.
31652         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31653
31654 2009-12-07  Eric Blake  <ebb9@byu.net>
31655
31656         unlink: fix m4 detection
31657         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31658
31659         unistd-safer: add unit test
31660         * modules/unistd-safer-tests: New file.
31661         * tests/test-dup-safer.c: Likewise.
31662         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31663         * tests/test-dup2.c (setmode): Likewise.
31664         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31665
31666         cloexec: preserve text vs. binary across dup_cloexec
31667         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31668         mode.
31669         * modules/dup2-tests (Depends-on): Add binary-io.
31670         * modules/cloexec-tests (Depends-on): Likewise.
31671         * tests/test-dup2.c (setmode, is_mode): New helpers.
31672         (main): Add tests that translation mode is preserved.
31673         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31674         Reported by Bruno Haible.
31675
31676         mgetgroups: reduce duplicate listings
31677         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31678         resulting array.
31679         * tests/test-chown.h (test_chown): Simplify client.
31680         * tests/test-lchown.h (test_lchown): Likewise.
31681
31682 2009-12-06  Bruno Haible  <bruno@clisp.org>
31683
31684         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31685         value.
31686
31687 2009-12-06  Bruno Haible  <bruno@clisp.org>
31688
31689         * lib/progname.c: Include stdio.h, stdlib.h.
31690         (set_program_name): Reject a NULL argument.
31691
31692 2009-12-05  Eric Blake  <ebb9@byu.net>
31693
31694         pipe2-safer: new module
31695         * modules/pipe2-safer: New file.
31696         * lib/unistd-safer.h (pipe2_safer): New prototype.
31697         * lib/unistd--.h (pipe2): New wrapper.
31698         * lib/pipe-safer.c (pipe2_safer): New function.
31699         * modules/pipe (Depends-on): Add pipe2-safer.
31700         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31701
31702         stdlib-safer: preserve cloexec flag for mkostemp[s]
31703         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31704         fd_safer_flag.
31705
31706         unistd-safer: allow preservation of cloexec status via flag
31707         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31708         prototypes.
31709         * lib/dup-safer.c (dup_safer_flag): New function.
31710         * lib/fd-safer.c (fd_safer_flag): Likewise.
31711         * modules/cloexec (configure.ac): Set witness.
31712
31713         test-dup2: enhance test
31714         * modules/dup2-tests (Depends-on): Add cloexec.
31715         * tests/test-dup2.c (main): Enhance test.
31716
31717         cloexec: add dup_cloexec
31718         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31719         header and comments.
31720         * lib/cloexec.c (set_cloexec_flag): Add comments.
31721         (dup_cloexec): New function, with mingw implementation borrowed
31722         from...
31723         * lib/w32spawn.h (dup_noinherit): ...here.
31724         * modules/execute (Depends-on): Add cloexec.
31725         * modules/pipe (Depends-on): Likewise.
31726         * modules/cloexec (Depends-on): Add dup2.
31727         * modules/cloexec-tests (Files): New file.
31728         * tests/test-cloexec.c: Likewise.
31729
31730         test-xalloc-die: fix test for mingw
31731         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31732         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31733         directory and .exe suffix off argv[0] output.
31734
31735         test-fseeko: fix test for mingw
31736         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31737         than undefining fseek, so test will pass on mingw.
31738
31739 2009-12-05  Bruno Haible  <bruno@clisp.org>
31740
31741         * lib/progname.h (set_program_name): Clarify specification.
31742         * lib/progname.c (set_program_name): Likewise.
31743         Reported by Jim Meyering.
31744
31745 2009-12-05  Jim Meyering  <meyering@redhat.com>
31746
31747         maint.mk: backslash-escape parens in default regexp
31748         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31749         backslash-escape the literal parentheses.
31750
31751         maint.mk: news-date-check: use grep -E
31752         * top/maint.mk (today): Define a Make variable, not a...
31753         (news-date-check): ...shell variable.
31754         (news-date-regexp): Use the Make variable.
31755         Use grep's -E option.  Change the failing diagnostic to mention
31756         the variable, $(news-date-regexp).
31757
31758 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31759
31760         maintainer-makefile: allow customization of NEWS entry format
31761         * top/maint.mk (news-date-regexp): New overridable variable.
31762         (news-date-check): Use it.
31763
31764 2009-12-04  Eric Blake  <ebb9@byu.net>
31765
31766         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31767         * lib/mgetgroups.h (xgetgroups): New prototype.
31768         * lib/mgetgroups.c (xgetgroups): New wrapper.
31769         (mgetgroups): Handle ENOSYS.
31770         * modules/mgetgroups (Depends-on): Add realloc.
31771         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31772
31773         mgetgroups: avoid argument promotion issues with -1
31774         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31775         for invalid gid_t.
31776         * tests/test-chown.h (getegid, test_chown): Likewise.
31777         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31778
31779 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31780
31781         exclude: Fix header file problems.
31782         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31783
31784 2009-12-01  Jim Meyering  <meyering@redhat.com>
31785
31786         fts: fts_open: do not let an empty string cause immediate failure
31787         This is required in support of GNU rm, for which the command
31788         "rm A '' B" must process and remove both A and B, in spite of
31789         the empty string argument.
31790         * lib/fts.c (fts_open): Do not let the presence of an empty string
31791         cause fts_open to fail immediately.  Most fts-using tools must be
31792         able to process all arguments, in order, and can be expected to
31793         diagnose such arguments themselves.
31794
31795 2009-11-30  Eric Blake  <ebb9@byu.net>
31796
31797         utimens: fix compilation error
31798         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31799         Declare variable at right scope.
31800
31801 2009-11-29  Jim Meyering  <meyering@redhat.com>
31802
31803         bootstrap: handle perl-5.11's changed --version output
31804         * build-aux/bootstrap (get_version): Handle perl separately,
31805         since perl-5.11's --version output is different.
31806
31807 2009-11-28  Jim Meyering  <meyering@redhat.com>
31808
31809         userspec: depend on the inttostr module, too
31810         * modules/userspec (Depends-on): Add inttostr.
31811
31812         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31813         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31814         number of MAXUID when it evaluates to (uid_t) -1.
31815         Likewise for group ID.  Reported by Matt McCutchen in
31816         <http://savannah.gnu.org/bugs/?28113>
31817
31818         userspec: reformat to use spaces, not TABs
31819         * lib/userspec.c: Expand TABs to spaces.
31820         Add Emacs' "indent-tabs-mode: nil" hint.
31821
31822 2009-11-27  Eric Blake  <ebb9@byu.net>
31823
31824         getopt-gnu: flush out another BSD bug
31825         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31826         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31827         flush out BSD bug.
31828         * tests/test-getopt.h (test_getopt): End lists with NULL.
31829         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31830         (test_getopt_long_posix): Enhance test.
31831         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31832         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31833         getopt-gnu.
31834         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31835         Likewise.
31836
31837 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31838
31839         * modules/idpriv-droptemp-tests (Notice): Fix text.
31840
31841 2009-11-27  Jim Meyering  <meyering@redhat.com>
31842
31843         test-xalloc-die: avoid spurious failure due to libtool argv difference
31844         In a libtool-enabled project, this test would fail due to a difference
31845         in the emitted program name, e.g.,
31846         -test-xalloc-die: memory exhausted
31847         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31848         Use program to avoid that.
31849         * modules/xalloc-die-tests (Depends-on): Add progname.
31850         * tests/test-xalloc-die.c: Include progname.h".
31851         (program_name): Remove decl.
31852         (main): Call set_program_name.
31853         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31854
31855 2009-11-26  Richard Jones  <rjones@redhat.com>
31856
31857         w32sock: leave win32 error in place.
31858         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31859
31860 2009-11-26  Eric Blake  <ebb9@byu.net>
31861
31862         init.sh: suggest to use skip_ and fail_ functions in comments
31863         * tests/init.sh: Add a sentence.
31864
31865 2009-11-25  Bruno Haible  <bruno@clisp.org>
31866
31867         init.sh: add documentation in comments
31868         * tests/init.sh: Add some developer and user documentation.
31869
31870 2009-11-26  Jim Meyering  <meyering@redhat.com>
31871
31872         init.sh: accommodate even those who specify bogus srcdir manually
31873         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31874         configure-time tests to be sanitized, so that there is no need to
31875         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31876         (with no double quotes) suffices.  However, since tests may be
31877         invoked manually, and since you may explicitly set srcdir to the
31878         name of a directory containing spaces, do quote its uses here.
31879         * tests/test-pread.sh: Likewise.
31880         Suggested by Bruno Haible.
31881
31882         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31883         * tests/test-pread.sh: Write no data into the pipe, because
31884         test-pread actually reads none.  This avoids a diagnostic,
31885         "bash: echo: write error: Broken pipe", that arises in the unusual
31886         event something is ignoring SIGPIPE, and might be interpreted
31887         as some sort of failure.  Reported by Bruno Haible.
31888
31889 2009-11-25  Jim Meyering  <meyering@redhat.com>
31890
31891         test-pread: cover failure with ESPIPE and EINVAL
31892         * tests/test-pread.c (main): Test for failure, too.
31893         * tests/test-pread.sh: Invoke with stdin on a pipe.
31894         Suggested by Eric Blake.
31895
31896         pread: improvement and fix
31897         * modules/pread (Depends-on): Depend on lseek, for portability to
31898         e.g., mingw.  Suggested by Eric Blake.
31899         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31900
31901         unistd.in.h: correct declaration of pread
31902         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31903         Reported by Richard W.M. Jones.
31904
31905         test-pread.sh: distribute the test script
31906         * modules/pread-tests (Files): Include test-pread.sh.
31907
31908         test-pread.sh: clean up
31909         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31910         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31911         That is unnecessary, since it's always ".".
31912         Suggestion from Eric Blake.
31913
31914         test-pread.sh: make executable
31915         * tests/test-pread.sh: Set executable bit.
31916         Reported by Eric Blake.
31917
31918         correct typo in test-pread.sh
31919         * tests/test-pread.sh: Add #! line.
31920
31921         test pread
31922         * tests/test-pread.c: New file.
31923         * tests/test-pread.sh: Likewise.
31924         * modules/pread-tests: Likewise.
31925
31926         pread: new module
31927         * modules/pread: New file.
31928         * lib/unistd.in.h (pread): Define/declare.
31929         * lib/pread.c (pread): New file.
31930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31931         * modules/unistd (Makefile.am): Substitute witnesses.
31932         * doc/posix-functions/pread.texi (pread): Update.
31933         * MODULES.html.sh: Add pread.
31934
31935 2009-11-25  Jim Meyering  <meyering@redhat.com>
31936
31937         tests/init.sh: new file to be used via most *.sh tests
31938         * tests/init.sh: New file.
31939
31940 2009-11-25  Eric Blake  <ebb9@byu.net>
31941
31942         utimens: work around older Linux failure with symlinks
31943         * lib/utimens.c (lutimensat_works_really): New variable.
31944         (fdutimens, lutimens): Use it to manage kernels that support
31945         nanosecond times on files, but not on symlinks.
31946         Reported by OndÅ™ej Vašík.
31947
31948         utimes: fix configure grammar
31949         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31950
31951 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31952
31953         regex: Fix fastmap for multibyte character ranges.
31954         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31955         characters when a multibyte character range is included.
31956
31957 2009-11-22  Andy Wingo  <wingo@pobox.com>
31958
31959         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31960         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31961
31962 2009-11-24  Bruno Haible  <bruno@clisp.org>
31963
31964         doc: Most *_l functions exist in MacOS X 10.5.
31965         * doc/posix-functions/duplocale.texi: Update platforms list.
31966         * doc/posix-functions/freelocale.texi: Likewise.
31967         * doc/posix-functions/newlocale.texi: Likewise.
31968         * doc/posix-functions/uselocale.texi: Likewise.
31969         * doc/posix-functions/isalnum_l.texi: Likewise.
31970         * doc/posix-functions/isalpha_l.texi: Likewise.
31971         * doc/posix-functions/isblank_l.texi: Likewise.
31972         * doc/posix-functions/iscntrl_l.texi: Likewise.
31973         * doc/posix-functions/isdigit_l.texi: Likewise.
31974         * doc/posix-functions/isgraph_l.texi: Likewise.
31975         * doc/posix-functions/islower_l.texi: Likewise.
31976         * doc/posix-functions/isprint_l.texi: Likewise.
31977         * doc/posix-functions/ispunct_l.texi: Likewise.
31978         * doc/posix-functions/isspace_l.texi: Likewise.
31979         * doc/posix-functions/isupper_l.texi: Likewise.
31980         * doc/posix-functions/iswalnum_l.texi: Likewise.
31981         * doc/posix-functions/iswalpha_l.texi: Likewise.
31982         * doc/posix-functions/iswblank_l.texi: Likewise.
31983         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31984         * doc/posix-functions/iswctype_l.texi: Likewise.
31985         * doc/posix-functions/iswdigit_l.texi: Likewise.
31986         * doc/posix-functions/iswgraph_l.texi: Likewise.
31987         * doc/posix-functions/iswlower_l.texi: Likewise.
31988         * doc/posix-functions/iswprint_l.texi: Likewise.
31989         * doc/posix-functions/iswpunct_l.texi: Likewise.
31990         * doc/posix-functions/iswspace_l.texi: Likewise.
31991         * doc/posix-functions/iswupper_l.texi: Likewise.
31992         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31993         * doc/posix-functions/isxdigit_l.texi: Likewise.
31994         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31995         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31996         * doc/posix-functions/strcoll_l.texi: Likewise.
31997         * doc/posix-functions/strfmon_l.texi: Likewise.
31998         * doc/posix-functions/strftime_l.texi: Likewise.
31999         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32000         * doc/posix-functions/strxfrm_l.texi: Likewise.
32001         * doc/posix-functions/tolower_l.texi: Likewise.
32002         * doc/posix-functions/toupper_l.texi: Likewise.
32003         * doc/posix-functions/towctrans_l.texi: Likewise.
32004         * doc/posix-functions/towlower_l.texi: Likewise.
32005         * doc/posix-functions/towupper_l.texi: Likewise.
32006         * doc/posix-functions/wcscoll_l.texi: Likewise.
32007         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32008         * doc/posix-functions/wctrans_l.texi: Likewise.
32009         * doc/posix-functions/wctype_l.texi: Likewise.
32010         * doc/glibc-functions/strptime_l.texi: Likewise.
32011         * doc/glibc-functions/strtod_l.texi: Likewise.
32012         * doc/glibc-functions/strtof_l.texi: Likewise.
32013         * doc/glibc-functions/strtol_l.texi: Likewise.
32014         * doc/glibc-functions/strtold_l.texi: Likewise.
32015         * doc/glibc-functions/strtoll_l.texi: Likewise.
32016         * doc/glibc-functions/strtoul_l.texi: Likewise.
32017         * doc/glibc-functions/strtoull_l.texi: Likewise.
32018         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32019         * doc/glibc-functions/wcstod_l.texi: Likewise.
32020         * doc/glibc-functions/wcstof_l.texi: Likewise.
32021         * doc/glibc-functions/wcstol_l.texi: Likewise.
32022         * doc/glibc-functions/wcstold_l.texi: Likewise.
32023         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32024         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32025         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32026
32027 2009-11-24  Bruno Haible  <bruno@clisp.org>
32028
32029         duplocale: Fix logic bug.
32030         * lib/duplocale.c: Don't include <langinfo.h>.
32031         (_NL_LOCALE_NAME): Remove macro.
32032         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32033         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32034
32035 2009-11-23  Jim Meyering  <meyering@redhat.com>
32036
32037         test-update-copyright: don't hard-code /usr/bin/perl
32038         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32039         perl to print the current year.  Gilles Espinasse reported that
32040         the replaced use of perl was hard-coded as /usr/bin/perl.
32041
32042 2009-11-23  Bruno Haible  <bruno@clisp.org>
32043
32044         duplocale: Add support for glibc 2.3.x.
32045         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32046
32047 2009-11-22  Bruno Haible  <bruno@clisp.org>
32048
32049         vasnprintf: Tiny optimization.
32050         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32051         MacOS X.
32052
32053 2009-11-22  Bruno Haible  <bruno@clisp.org>
32054
32055         Tests for module 'duplocale'.
32056         * modules/duplocale-tests: New file.
32057         * tests/test-duplocale.c: New file.
32058
32059         New module 'duplocale'.
32060         * m4/duplocale.m4: New file.
32061         * lib/locale.in.h (duplocale): New declaration.
32062         * lib/duplocale.c: New file.
32063         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32064         gl_LOCALE_H_DEFAULTS): New macros.
32065         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32066         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32067         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32068         REPLACE_DUPLOCALE.
32069         * modules/duplocale: New file.
32070         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32071
32072 2009-11-22  Bruno Haible  <bruno@clisp.org>
32073
32074         * modules/locale-tests (configure.ac): Test for newlocale function.
32075         * tests/test-locale.c: When the system has extended locale functions,
32076         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32077
32078         locale: Make locale_t available when possible.
32079         * lib/locale.in.h: Include <xlocale.h> when it exists.
32080         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32081         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32082         * modules/locale (Depends-on): Add extensions.
32083         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32084         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32085
32086 2009-11-22  Bruno Haible  <bruno@clisp.org>
32087
32088         Add comments.
32089         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32090         invocation.
32091         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32092         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32093         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32094
32095 2009-11-22  Bruno Haible  <bruno@clisp.org>
32096
32097         error: account for the possibility of freopen (stdout).
32098         * lib/error.c: Include <unistd.h>.
32099         (flush_stdout): New function, extracted from error and error_at_line.
32100         Determine stdout's fd dynamically.
32101         (error, error_at_line): Invoke flush_stdout.
32102         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32103         * modules/error (Depends-on): Add unistd.
32104
32105 2009-11-22  Bruno Haible  <bruno@clisp.org>
32106
32107         diffseq: Add comment.
32108         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32109
32110 2009-11-22  Jim Meyering  <meyering@redhat.com>
32111
32112         c-stack: avoid defining an unused static function
32113         * lib/c-stack.c (find_stack_direction): Do not define this function
32114         when it will not be used.
32115
32116         diffseq: avoid spurious gcc warnings
32117         * lib/diffseq.h (IF_LINT2): Define.
32118         (compareseq): Use it to initialize two members of "part".
32119         This avoids two used-uninitialized warnings.
32120
32121 2009-11-21  Jim Meyering  <meyering@redhat.com>
32122
32123         c-stack: avoid "ignoring return value of `write'" warning
32124         * lib/c-stack.c: Include "ignore-value.h".
32125         (die): Explicitly ignore each write return value.
32126         * modules/c-stack (Depends-on): Add ignore-value.
32127
32128 2009-11-21  Bruno Haible  <bruno@clisp.org>
32129
32130         diffseq: reduce scope of variable 'best'.
32131         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32132         variable, earlier used for two different purposes.
32133
32134 2009-11-21  Jim Meyering  <meyering@redhat.com>
32135
32136         diffseq: remove useless assignment to "best"
32137         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32138         assignment.  At that point "best" is already guaranteed to be zero.
32139
32140 2009-11-20  Eric Blake  <ebb9@byu.net>
32141
32142         build: mention ftp redirector in release announcements
32143         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32144         values that used to come from cfg.mk; mention FTP redirect URL.
32145         * build-aux/announce-gen: Mention the mirror list.
32146         Suggested by Karl Berry.
32147
32148         nanosleep: improve port to mingw
32149         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32151         LIB_NANOSLEEP, but only when needed.
32152         * modules/select (Link): Document LIBSOCKET.
32153         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32154         enough.
32155
32156         nanosleep: work around cygwin bug
32157         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32158         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32159         bug.
32160         (getnow): Delete, not needed.
32161         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32162         LIB_CLOCK_GETTIME.
32163         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32164         clock-time, gettime.
32165         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32166         bug.
32167         * modules/nanosleep-tests: New test.
32168         * tests/test-nanosleep.c: New file.
32169
32170         sleep: work around cygwin bug
32171         * lib/sleep.c (rpl_sleep): Work around the bug.
32172         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32173         (gl_PREREQ_SLEEP): Delete unused macro.
32174         * modules/sleep (Depends-on): Add verify.
32175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32176         * modules/unistd (Makefile.am): Substitute witness.
32177         * lib/unistd.in.h (sleep): Update prototype.
32178         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32179         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32180         * modules/sleep-tests (Depends-on): Check for alarm.
32181
32182 2009-11-20  Jim Meyering  <meyering@redhat.com>
32183
32184         maint.mk: improve sc_prohibit_magic_number_exit
32185         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32186         so it does not match uses like System.exit(1).
32187         Add comments showing how to correct all offenders.
32188
32189 2009-11-19  Eric Blake  <ebb9@byu.net>
32190
32191         xalloc-die-tests: add missing library
32192         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32193
32194         test-xvasprintf: silence compiler warnings
32195         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32196         empty string from gcc.
32197
32198 2009-11-19  Jim Meyering  <meyering@redhat.com>
32199
32200         xfreopen: new module, from coreutils
32201         * modules/xfreopen: New module.
32202         * lib/xfreopen.c: New file.
32203         * lib/xfreopen.h: New file.
32204         * MODULES.html.sh (File stream based Input/Output"): Add it.
32205
32206 2009-11-19  Eric Blake  <ebb9@byu.net>
32207
32208         manywarnings: depend on warnings
32209         * modules/manywarnings (Depends-on): Add warnings.
32210
32211         build: avoid compiler warnings
32212         * lib/select.c (rpl_select): Delete unused variable.
32213         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32214
32215 2009-11-18  Eric Blake  <ebb9@byu.net>
32216
32217         tests: avoid false negative with --with-packager
32218         * tests/test-version-etc.sh: Discard packager information.
32219         * tests/test-argp-version-etc-1.sh: Likewise.
32220         Reported by Mike Frysinger.
32221
32222         utimens: fix regression on Solaris
32223         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32224         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32225         can only change fd timestamps via futimesat.  Instead, use an
32226         additional witness macro to avoid BSD bug.
32227         Reported by Jim Meyering.
32228
32229 2009-11-17  Eric Blake  <ebb9@byu.net>
32230
32231         usleep: use it to simplify tests
32232         * modules/stat-time-tests (Depends-on): Add usleep.
32233         (configure.ac): Drop usleep check.
32234         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32235         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32236         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32237         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32238         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32239         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32240         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32241         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32242         Likewise.
32243         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32244         * tests/test-lchown.h (nap): Likewise.
32245         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32246         * tests/test-stat-time.c (nap): Likewise.
32247         * tests/test-utimens-common.h (nap): Update comments.
32248
32249         usleep: new module
32250         * modules/usleep: New file.
32251         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32252         * lib/usleep.c (usleep): Likewise.
32253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32254         * modules/unistd (Makefile.am): Substitute witnesses.
32255         * lib/unistd.in.h (usleep): Add declaration.
32256         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32257         * MODULES.html.sh (Date and time): Likewise.
32258         * modules/usleep-tests (Depends-on): New test.
32259         * tests/test-usleep.c: New file.
32260
32261         chown: work around OpenBSD bug
32262         * lib/chown.c (rpl_chown): Work around the bug.
32263         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32264         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32265         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32266         * modules/chown (Depends-on): Add stdbool.
32267         * modules/lchown (Depends-on): Likewise.
32268         * doc/posix-functions/chown.texi (chown): Document the bug.
32269         * doc/posix-functions/lchown.texi (lchown): Likewise.
32270         * tests/test-lchown.h (test_chown): Relax test.
32271
32272         mkstemp: avoid conflict with C++ keyword template
32273         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32274         * lib/mkostemp.c (mkostemp): Likewise.
32275         * lib/mkostemps.c (mkostemps): Likewise.
32276         * lib/mkstemp.c (mkstemp): Likewise.
32277         * lib/mkstemps.c (mkstemps): Likewise.
32278
32279         xalloc-die-tests: optimize
32280         * tests/test-xalloc-die.sh: Reduce number of processes.
32281
32282 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32283
32284         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32285         patch from ludo@gnu.org (Ludovic Courtès).
32286
32287 2009-11-17  Jim Meyering  <meyering@redhat.com>
32288
32289         version-etc: use proper license string
32290         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32291         * modules/version-etc-fsf: Likewise.
32292
32293 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32294
32295         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32296         printed to stdout.  Deal with EOL differences.
32297
32298 2009-11-17  Eric Blake  <ebb9@byu.net>
32299
32300         unsetenv: work around Solaris bug
32301         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32302         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32303         Reported by Jim Meyering.
32304
32305         vasnprintf: avoid compiler warnings
32306         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32307         variables.
32308         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32309
32310 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32311
32312         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32313         settings since xalloc-die is no longer the self test,
32314         xalloc-die.sh is.
32315
32316 2009-11-17  Jim Meyering  <meyering@redhat.com>
32317
32318         test-xalloc-die.sh: make the code agree with the commit log
32319         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32320         at the end, just in case you happen to have a test-xalloc-die
32321         program in some other PATH directory.
32322
32323         test-xalloc-die.sh: fix a portability bug
32324         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32325         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32326         Otherwise, argv[0] (as often seen in diagnostics) would be too
32327         system-dependent, sometimes with, and sometimes without the leading "./".
32328
32329         version-etc-fsf: relax license to LGPLv3+
32330         * modules/version-etc-fsf (License): Relax license.
32331
32332 2009-11-16  Eric Blake  <ebb9@byu.net>
32333
32334         xalloc-die-tests: avoid printing null pointer
32335         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32336         shell script.
32337         * tests/test-xalloc-die.c (program_name): Declare.
32338         * tests/test-xalloc-die.sh (tmpfiles): New file.
32339
32340         setenv, unsetenv: work around various bugs
32341         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32342         (setenv) [HAVE_SETENV]: Work around bugs.
32343         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32344         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32345         for bugs.
32346         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32347         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32349         * modules/stdlib (Makefile.am): Update substitutions.
32350         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32351         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32352         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32353         * modules/setenv-tests: New test.
32354         * modules/unsetenv-tests: Likewise.
32355         * tests/test-setenv.c: New file.
32356         * tests/test-unsetenv.c: Likewise.
32357
32358 2009-11-16  Jim Meyering  <meyering@redhat.com>
32359
32360         version-etc: relax license to LGPLv3+
32361         * modules/version-etc (License): Relax license.
32362
32363         better AC_REQUIRE expanded-before-required-warning avoidance
32364         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32365         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32366         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32367         which is no longer needed.
32368
32369 2009-11-16  Eric Blake  <ebb9@byu.net>
32370
32371         test-freading: clean up temporary file
32372         * tests/test-freading.c (main): Remove file on success, and use
32373         ASSERT more liberally.
32374         Reported by Jim Meyering.
32375
32376 2009-11-16  Jim Meyering  <meyering@redhat.com>
32377
32378         avoid new AC_REQUIRE expanded-before-required warnings
32379         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32380         merely using it.
32381         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32382         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32383
32384 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32385
32386         * tests/test-xalloc-die.c: New file.
32387         * modules/xalloc-die-tests: New file.
32388         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32389         XFAIL_TESTS so it can be appended by modules.
32390
32391 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32392
32393         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32394         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32395
32396 2009-11-14  Eric Blake  <ebb9@byu.net>
32397
32398         fnmatch: avoid compiler warning
32399         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32400         to silence compiler warning about mismatch signedness in ?:.
32401         Reported by Robert Millan.
32402
32403         intprops: add double-inclusion guard
32404         * lib/intprops.h: Allow idempotent includes.
32405         Suggested by Bruce Korb.
32406
32407         openat: detect Solaris fchownat bug
32408         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32409         penalizing glibc chownat when only lchownat is broken.
32410         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32411         trailing slash bugs.
32412         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32413         * modules/openat-tests (Files): Include more files.
32414         (Depends-on): Add mgetgroups, sleep, stat-time.
32415         (configure.ac): Add additional checks.
32416         (Makefile.am): Build new test.
32417         * tests/test-fchownat.c: New file.
32418
32419         lchown: detect Solaris and FreeBSD bug
32420         * lib/lchown.c (rpl_lchown): Work around bug.
32421         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32423         * modules/unistd (Makefile.am): Populate it.
32424         * lib/unistd.in.h (lchown): Update declaration.
32425         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32426         * modules/lchown-tests: New file.
32427         * tests/test-lchown.h (test_lchown): Likewise.
32428         * tests/test-lchown.c (main): Likewise.
32429
32430         chown: detect Solaris and FreeBSD bug
32431         * lib/chown.c (rpl_chown): Work around bug.
32432         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32433         (gl_PREREQ_CHOWN): Delete.
32434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32435         * modules/unistd (Makefile.am): Populate it.
32436         * lib/unistd.in.h (chown): Update declaration.
32437         * lib/lchown.c (chown): Update client.
32438         * modules/lchown (Depends-on): Add lstat.
32439         * doc/posix-functions/chown.texi (chown): Document the bug.
32440         * doc/posix-functions/getgroups.texi (getgroups): Document
32441         getgroups pitfall.
32442         * modules/chown-tests: New file.
32443         * tests/test-chown.h (test_chown): Likewise.
32444         * tests/test-chown.c (main): Likewise.
32445
32446 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32447
32448         gnulib-tool: correctly detect absence of m4 directories
32449         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32450
32451 2009-11-14  Jim Meyering  <meyering@redhat.com>
32452
32453         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32454         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32455
32456 2009-11-14  John W. Eaton  <jwe@gnu.org>
32457
32458         strftime.h: wrap funtion declaration in extern "C" block
32459         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32460
32461 2009-11-13  Eric Blake  <ebb9@byu.net>
32462
32463         getgroups: avoid compiler warning
32464         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32465
32466         getgroups: work around FreeBSD bug
32467         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32468         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32469         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32470         * tests/test-getgroups.c (main): Fix buffer overrun.
32471
32472         getgroups: avoid compilation failure
32473         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32474         * modules/getgroups (Depends-on): Add stdint.
32475
32476 2009-11-13  Jim Meyering  <meyering@redhat.com>
32477
32478         test-getgroups: avoid compilation failure
32479         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32480
32481 2009-11-13  Eric Blake  <ebb9@byu.net>
32482
32483         mgetgroups: new module, taken from coreutils
32484         * modules/mgetgroups: New file.
32485         * lib/mgetgroups.h: Likewise.
32486         * lib/mgetgroups.c (mgetgroups): Likewise.
32487         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32488         * MODULES.html.sh (Users and groups): Mention it.
32489
32490         getgroups: don't expose GETGROUPS_T to user
32491         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32492         an element at a time if GETGROUPS_T is wrong size.
32493         * lib/getugroups.h (getugroups): Change signature.
32494         * lib/unistd.in.h (getgroups): Likewise.
32495         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32496         signature needs fixing.
32497         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32498         AC_TYPE_GETGROUPS.
32499         * modules/group-member (Depends-on): Add getgroups.
32500         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32501         (group_member): Rely on getgroups replacement.
32502         * lib/getugroups.c (getugroups): Use gid_t.
32503         * tests/test-getgroups.c (main): Likewise.
32504         * NEWS: Mention the signature change.
32505         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32506         problem with signature.
32507         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32508         GETGROUPS_T is still useful for setgroups.
32509
32510         getgroups, getugroups: provide stubs for mingw
32511         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32512         * lib/getugroups.c (getugroups): Likewise.
32513         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32514         function.  Modernize replacement scheme.
32515         (gl_PREREQ_GETGROUPS): Delete.
32516         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32517         * modules/getgroups (configure.ac): Declare witness.
32518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32519         * modules/unistd (Depends-on): Substitute witness.
32520         * lib/unistd.in.h (getgroups): Declare replacement.
32521
32522         getgroups: avoid calling exit
32523         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32524         drop xalloc.
32525         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32526         dependencies.
32527         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32528         exiting, in the rare case of malloc failure.
32529
32530         getgroups: fix logic error
32531         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32532         has more than 20 groups.
32533         * modules/getgroups-tests: New test.
32534         * tests/test-getgroups.c: New file.
32535
32536 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32537
32538         * tests/test-base64.c: Improve.
32539
32540 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32541
32542         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32543         Blake <ebb9@byu.net>.
32544
32545 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32546
32547         * tests/test-xvasprintf.c: Add %s%s related checks.
32548
32549 2009-11-12  Eric Blake  <ebb9@byu.net>
32550
32551         version-etc: match standards.texi style
32552         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32553         and use <> only for URLs.
32554
32555 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32556
32557         fts: do not fail on a submount during traversal
32558         * lib/fts.c (fts_build): Read the stat info again after opening
32559         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32560         Original report at http://bugzilla.redhat.com/501848.
32561
32562 2009-11-12  Jim Meyering  <meyering@redhat.com>
32563
32564         bootstrap: sync from coreutils
32565         * build-aux/bootstrap (bootstrap_epilogue): New function.
32566         Use git_modules_config in one more place.  This make bootstrap's
32567         --gnulib-srcdir option more useful for testing.
32568
32569         bootstrap: generalize autoheader check
32570         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32571         AC_CONFIG_HEADERS.
32572
32573 2009-11-11  Eric Blake  <ebb9@byu.net>
32574
32575         mkfifoat: use new modules for Solaris and BSD bugs
32576         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32577         * lib/mkfifoat.c (mknodat): Split...
32578         * lib/mknodat.c (mknodat): ...into new file.
32579         * modules/mkfifoat (Files): Ship new file.
32580         (Depends-on): Add mkfifo, mknod.
32581         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32582         (Depends-on): Add symlink.
32583         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32584         redundant with test_mkfifo.h.
32585         (do_mkfifoat, do_mknodat): New helpers.
32586
32587         mknod: new module
32588         * modules/mknod: New file.
32589         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32590         * lib/mknod.c (mknod): Likewise.
32591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32592         defaults.
32593         * modules/sys_stat (Makefile.am): Substitute them.
32594         * lib/sys_stat.in.h (mknod): Declare replacement.
32595         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32596         Document it.
32597         * doc/posix-functions/mknod.texi (mknod): Likewise.
32598         * modules/mknod-tests: New test.
32599         * tests/test-mknod.c: Likewise.
32600
32601         mkfifo: new module
32602         * modules/mkfifo: New file.
32603         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32604         * lib/mkfifo.c (mkfifo): Likewise.
32605         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32606         defaults.
32607         * modules/sys_stat (Makefile.am): Substitute them.
32608         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32609         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32610         Document it.
32611         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32612         * modules/mkfifo-tests: New test.
32613         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32614         from test-mkfifoat.c.
32615         * tests/test-mkfifo.c: New file.
32616
32617         readlink: detect FreeBSD bug
32618         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32619         slash on symlink.
32620         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32621         * tests/test-readlink.h (test_readlink): Enhance test.
32622
32623         symlink: detect FreeBSD bug
32624         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32625         slash on symlink.
32626         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32627         * tests/test-symlink.h (test_symlink): Enhance test.
32628
32629 2009-11-10  Eric Blake  <ebb9@byu.net>
32630
32631         link: detect FreeBSD bug
32632         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32633         symlink.
32634         * doc/posix-functions/link.texi (link): Document the bug.
32635         * tests/test-link.h (test_link): Enhance test.
32636         * tests/test-linkat.c (main): Update caller.
32637
32638         unlink, remove: detect FreeBSD bug
32639         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32640         slash on symlink.
32641         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32642         * doc/posix-functions/remove.texi (remove): Likewise.
32643         * tests/test-unlink.h (test_unlink): Enhance test.
32644         * tests/test-remove.c (main): Likewise.
32645
32646 2009-11-09  Eric Blake  <ebb9@byu.net>
32647
32648         rename: detect FreeBSD bug
32649         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32650         slash on symlink.
32651         * modules/renameat-tests (Depends-on): Add filenamecat.
32652         * tests/test-rename.h (test_rename): Allow one more errno.
32653         * tests/test-renameat.c (main): Likewise.
32654         * doc/posix-functions/rename.texi (rename): Document the bug.
32655
32656         open: detect FreeBSD bug
32657         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32658         symlink.
32659         * doc/posix-functions/open.texi (open): Document the bug.
32660         * doc/posix-functions/utimes.texi (utimes): Likewise.
32661         * tests/test-open.h (test_open): Add parameters, and test symlink
32662         handling.
32663         * tests/test-open.c (main): Adjust caller.
32664         * tests/test-fcntl-safer.c (main): Likewise.
32665         * modules/open-tests (Depends-on): Add stdbool, symlink.
32666         * modules/fcntl-safer-tests (Depends-on): Likewise.
32667         * tests/test-openat.c (main): Add test-open tests.
32668
32669         stat: detect FreeBSD bug
32670         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32671         symlink.
32672         * doc/posix-functions/stat.texi (stat): Document the bug.
32673         * tests/test-stat.h (test_stat_func): Add argument.
32674         * tests/test-stat.c (main): Adjust caller.
32675         * tests/test-fstatat.c (main): Likewise.
32676         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32677         Reported by Jim Meyering.
32678
32679 2009-11-09  James Youngman  <jay@gnu.org>
32680
32681         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32682         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32683
32684 2009-11-08  Jim Meyering  <meyering@redhat.com>
32685
32686         utimens: remove invalid futimesat call
32687         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32688         It used the file descriptor of the target file as the DIR_FD
32689         parameter and NULL as the file name.  That caused failure with
32690         errno == EFAULT on FreeBSD-8.0-rc2
32691
32692 2009-11-07  Eric Blake  <ebb9@byu.net>
32693
32694         fflush, freadseek: use fseeko, not fseek
32695         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32696         (clear_ungetc_buffer): Avoid potential problems on large files.
32697         * lib/freadseek.c (freadseek): Likewise.
32698         * modules/freadseek (Depends-on): Add fseeko.
32699         * modules/fseek (configure.ac): Set a witness.
32700         * tests/test-fflush.c (main): Use fseeko.
32701         * tests/test-fpurge.c (fseek): Disable link warning.
32702         * tests/test-freadable.c (fseek): Likewise.
32703         * tests/test-freading.c (fseek): Likewise.
32704         * tests/test-fseeko.c (fseek): Likewise.
32705         * tests/test-ftell.c (fseek): Likewise.
32706         * tests/test-ftello.c (fseek): Likewise.
32707         * tests/test-fwritable.c (fseek): Likewise.
32708         * tests/test-fwriting.c (fseek): Likewise.
32709
32710 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32711
32712         * modules/memchr (Depends-on): Drop getpagesize dependency.
32713
32714 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32715
32716         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32717         Reported by Ludovic Courtès.
32718         * build-aux/pmccabe2html: Improve example usage.
32719         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32720
32721 2009-11-06  Jim Meyering  <meyering@redhat.com>
32722
32723         do-release-commit-and-tag: New module.
32724         Automate the release-commit and tag process.
32725         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32726         * modules/do-release-commit-and-tag: New file.
32727         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32728
32729 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32730
32731         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32732         because test-select.c uses inet_pton.
32733
32734 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32735
32736         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32737         GETADDRINFO_LIB.  Bump serial number.
32738         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32739         Suggested by Eric Blake <ebb9@byu.net>.
32740
32741 2009-11-05  Eric Blake  <ebb9@byu.net>
32742
32743         strtod: detect darwin bug
32744         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32745         Reported by Leo Davis.
32746
32747         freopen-safer: new module
32748         * modules/freopen-safer: New module.
32749         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32750         * lib/freopen-safer.c (freopen_safer): New file.
32751         * lib/stdio-safer.h (freopen_safer): New declaration.
32752         * lib/stdio--.h (freopen): New override.
32753         * MODULES.html.sh (File stream based Input/Output): Mention it.
32754         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32755         freopen-safer module.
32756         * doc/posix-functions/stderr.texi (stderr): Likewise.
32757         * doc/posix-functions/stdin.texi (stdin): Likewise.
32758         * doc/posix-functions/stdout.texi (stdout): Likewise.
32759         * modules/freopen-safer-tests: New test.
32760         * tests/test-reopen-safer.c: New file.
32761
32762 2009-11-05  Jim Meyering  <meyering@redhat.com>
32763
32764         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32765         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32766
32767 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32768
32769         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32770
32771 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32772
32773         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32774
32775 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32776
32777         Fix link error.
32778         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32779         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32780
32781 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32782
32783         * tests/test-func.c: Also test value of __func__.
32784
32785 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32786
32787         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32788         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32789
32790 2009-11-05  Bruno Haible  <bruno@clisp.org>
32791
32792         Fix link error.
32793         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32794         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32795         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32796
32797 2009-11-05  Bruno Haible  <bruno@clisp.org>
32798
32799         Tests for module 'inet_pton'.
32800         * modules/inet_pton-tests: New file.
32801         * tests/test-inet_pton.c: New file.
32802
32803 2009-11-05  Bruno Haible  <bruno@clisp.org>
32804
32805         Tests for module 'inet_ntop'.
32806         * modules/inet_ntop-tests: New file.
32807         * tests/test-inet_ntop.c: New file.
32808
32809 2009-11-04  Eric Blake  <ebb9@byu.net>
32810
32811         stdlib-safer: wrap all mkstemp variants
32812         * modules/mkostemp (configure.ac): Set witness.
32813         * modules/mkostemps (configure.ac): Likewise.
32814         * modules/mkstemps (configure.ac): Likewise.
32815         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32816         (mkstemps_safer): Wrap more functions.
32817         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32818         wrapping.
32819         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32820         (mkstemps_safer): Implement the wrappers.
32821
32822         mkstemps, mkostemps: new modules
32823         * modules/mkostemps: New module.
32824         * modules/mkstemps: Likewise.
32825         * lib/mkostemps.c (mkostemps): New file.
32826         * lib/mkstemps.c (mkstemps): Likewise.
32827         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32828         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32830         * modules/stdlib (Makefile.am): Substitute them.
32831         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32832         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32833         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32834         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32835         * MODULES.html.sh (File system functions): Mention them.
32836
32837         tempname: resync from glibc
32838         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32839         same values for __GT_FILE as glibc.  Abort even when assertions
32840         are disabled.
32841         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32842         match its value otherwise.  Allow idempotent inclusion.
32843         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32844         * lib/mkostemp.c (mkostemp): Likewise.
32845         * lib/mkstemp.c (mkstemp): Likewise.
32846         * lib/tmpfile.c (tmpfile): Likewise.
32847         * NEWS: Document this.
32848
32849         utimens: fix use of futimens on older Linux
32850         * lib/utimens.c (fdutimens): Use updated, rather than original,
32851         timespec to avoid bug in older Linux kernel.
32852         Reported by Simon Josefsson.
32853
32854 2009-11-04  Bruno Haible  <bruno@clisp.org>
32855
32856         Make num_processors more flexible and consistent.
32857         * lib/nproc.h (enum nproc_query): New type.
32858         (num_processors): Add a 'query' argument.
32859         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32860         (num_processors): Add a 'query' argument. Test the value of the
32861         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32862         mingw, count the number of CPUs available for the current process.
32863         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32864         Check for sched_getaffinity and sched_getaffinity_np.
32865         * modules/nproc (Depends-on): Add c-ctype, extensions.
32866         * NEWS: Mention the change.
32867
32868 2009-11-03  Bruno Haible  <bruno@clisp.org>
32869
32870         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32871
32872 2009-11-03  Jim Meyering  <meyering@redhat.com>
32873
32874         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32875         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32876         if it is defined.
32877
32878 2009-11-02  Eric Blake  <ebb9@byu.net>
32879
32880         mktime, timegm: share common declaration
32881         * lib/mktime-internal.h: New file.
32882         * lib/mktime.c: Use it rather than open-coding a declaration.
32883         * lib/timegm.c: Likewise.
32884         * modules/mktime (Files): Ship it.
32885         * modules/timegm (Files): Likewise.
32886         Suggested by Bruno Haible.
32887
32888         test-update-copyright: update test to match script changes
32889         * tests/test-update-copyright.sh: Avoid hard-coding perl
32890         location.  Don't update *.bak created by earlier runs.
32891
32892 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32893             Simon Josefsson  <simon@josefsson.org>
32894             Bruno Haible  <bruno@clisp.org>
32895
32896         Fix link error on Solaris 8.
32897         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32898         also in libnsl. Define also INET_PTON_LIB.
32899         * modules/inet_pton (Link): New section.
32900
32901 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32902             Bruno Haible  <bruno@clisp.org>
32903
32904         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32905         * modules/inet_ntop (Link): New section.
32906         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32907
32908 2009-11-02  Eric Blake  <ebb9@byu.net>
32909
32910         maint: avoid compiler warnings in m4 macros
32911         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32912         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32913
32914 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32915
32916         * m4/pmccabe2html.m4: Remove file.
32917         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32918         function.  Change maintainer.
32919         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32920         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32921         Courtès).
32922
32923 2009-10-31  Eric Blake  <ebb9@byu.net>
32924
32925         fseeko: fix m4 regression
32926         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32927         regression from 2009-10-27.
32928         Reported by Ralf Wildenhues.
32929
32930 2009-10-31  Jim Meyering  <meyering@redhat.com>
32931
32932         inttostr: aesthetics and improved (compile-time) safety
32933         Define inttype_is_signed rather than inttype_is_unsigned,
32934         since the sole use is via "#if inttype_is_signed".
32935         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32936         inttype_is_unsigned.
32937         * lib/offtostr.c (inttype_is_signed): Likewise.
32938         * lib/uinttostr.c (inttype_is_signed): Likewise.
32939         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32940         * lib/inttostr.c (inttostr): Use verify to cross-check the
32941         inttype_is_signed value and the signedness of the actual type.
32942         * modules/inttostr (Depends-on): Add verify.
32943
32944 2009-10-30  Eric Blake  <ebb9@byu.net>
32945
32946         build: avoid compiler warnings
32947         * lib/fchmodat.c (lchmod): Mark unused variables.
32948         * lib/getopt.c (_getopt_initialize): Likewise.
32949         * lib/mktime.c (__mktime_internal): Provide prototype.
32950         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32951         older gcc that do not understand #pragma GCC diagnostic.
32952         * lib/uinttostr.c (inttype_is_unsigned): Define.
32953         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32954
32955 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32956
32957         stat: fix compilation on AIX
32958         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32959         only see struct stat64.
32960
32961 2009-10-30  Eric Blake  <ebb9@byu.net>
32962
32963         exclude: make more robust
32964         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32965         rather than masking a coding bug.
32966         Suggested by Bruno Haible.
32967
32968 2009-10-30  Jim Meyering  <meyering@redhat.com>
32969
32970         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32971         Rather than putting #!/usr/bin/perl on the first line,
32972         start with a variant of what's recommended by "man perlrun" that
32973         invokes the first "perl" program from your shell's search path.
32974         * build-aux/gitlog-to-changelog: Replace #!... as above.
32975         Add a "Local Variables" perl mode setting.
32976         Prompted by a patch from Ludovic Courtès.
32977         Improved by Eric Blake.
32978         * build-aux/useless-if-before-free: Likewise.
32979         * build-aux/announce-gen: Likewise.
32980         * build-aux/update-copyright: Likewise.
32981
32982 2009-10-29  Eric Blake  <ebb9@byu.net>
32983
32984         filenamecat-lgpl: adjust clients
32985         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32986         filenamecat.
32987         * modules/renameat (Depends-on): Likewise.
32988
32989         filenamecat: split into filenamecat-lgpl
32990         * modules/filenamecat-lgpl: New module.
32991         * modules/filenamecat (Files): Move library-safe files into
32992         filenamecat-lgpl.
32993         (Depends-on): Add filenamecat-lgpl.
32994         (configure.ac): Declare witness.
32995         * lib/filenamecat.h (file_name_concat): Only declare when using
32996         GPL module.
32997         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32998         Move...
32999         * lib/filenamecat-lgpl.c: ...into new file.
33000         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33001         (gl_FILE_NAME_CONCAT): Use it.
33002         * MODULES.html.sh (File system functions): Mention new module.
33003
33004         argp: avoid memory leak
33005         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33006         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33007         base_name, since the latter malloc()s and can call exit().
33008         Leak introduced 2006-07-03.
33009
33010         dirname-lgpl: adjust clients that don't need full dirname
33011         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33012         * modules/filenamecat (Depends-on): Likewise.
33013         * modules/linkat (Depends-on): Likewise.
33014         * modules/mkancesdirs (Depends-on): Likewise.
33015         * modules/mkdir (Depends-on): Likewise.
33016         * modules/openat (Depends-on): Likewise.
33017         * modules/savewd (Depends-on): Likewise.
33018         * modules/rename (Depends-on): Likewise.
33019         (License): Relax license.
33020         * modules/mkdir-tests (Depends-on): Drop progname.
33021         (Makefile.am): Delete unneeded LDADD.
33022         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33023
33024         dirname: split into dirname-lgpl
33025         * modules/dirname-lgpl: New module.
33026         * modules/dirname (Files): Move library-safe files into
33027         dirname-lgpl.
33028         (Depends-on): Add dirname-lgpl.
33029         (configure.ac): Declare witness.
33030         * modules/double-slash-root (License): Relax license.
33031         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33032         module.
33033         * lib/dirname.c (dir_len, mdir_name): Move...
33034         * lib/dirname-lgpl.c: ...into new file.
33035         * lib/basename.c (last_component, base_len): Move...
33036         * lib/basename-lgpl.c: ...into new file.
33037         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33038         (gl_DIRNAME): Use it.
33039         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33040         Mention new module.
33041         * modules/dirname-tests (Depends-on): Add progname.
33042         * tests/test-dirname.c (program_name): Delete.
33043
33044         mkdir: make safe for libraries
33045         * modules/mkdir (Depends-on): Drop xalloc.
33046         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33047         exit.
33048
33049         tests: avoid some compiler warnings
33050         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33051         literals.
33052         * tests/test-memchr.c (main): Avoid type mismatch.
33053         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33054         * tests/test-base64.c (main): Likewise.
33055         * tests/test-getdelim.c (main): Likewise.
33056         * tests/test-gethostname.c (main): Likewise.
33057         * tests/test-getline.c (main): Likewise.
33058         * tests/test-netinet_in.c (main): Likewise.
33059         * tests/test-select.c (open_server_socket, main): Likewise.
33060         * tests/test-select-stdin.c (main): Likewise.
33061         * tests/test-sockets.c (main): Likewise.
33062         * tests/test-strsignal.c (main): Likewise.
33063         * tests/test-sys_select.c (main): Likewise.
33064         * tests/test-sys_socket.c (main): Likewise.
33065         * tests/test-u64.c (main): Likewise.
33066         * tests/test-xfprintf-posix.c (main): Likewise.
33067         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33068
33069         sockets: avoid compiler warning
33070         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33071
33072         maint: detect usage(1) and other suspicious exits
33073         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33074
33075 2009-10-29  Jim Meyering  <meyering@redhat.com>
33076
33077         timespec: long-to-int truncation could make timespec_cmp malfunction
33078         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33079         a multiple of 2^32 nanoseconds as no difference.
33080
33081 2009-10-28  Jim Meyering  <meyering@redhat.com>
33082
33083         fprintftime: wrap macro code argument in "do {...} while(0)"
33084         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33085         cpy macro must be a statement that can be followed by a semicolon.
33086         Now that the else clause contains a comment and is hence longer
33087         than one line, I require curly braces.  That in turn requires
33088         that we wrap this code block in the standard do...while(0).
33089
33090         fprintftime: remove stray semicolon from previous change
33091         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33092
33093         fprintftime: avoid a warning about ignored fwrite return value
33094         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33095         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33096         that is unsafe.
33097         * modules/fprintftime (Depends-on): Add ignore-value.
33098
33099         exclude: avoid an unwarranted warning
33100         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33101
33102 2009-10-27  Eric Blake  <ebb9@byu.net>
33103
33104         fseek: avoid compilation failure when fflush is replaced
33105         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33106         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33107         module is in use.
33108         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33109         module is not in use; since REPLACE_FSEEK worked otherwise.
33110         (GNULIB_FTELLO): Likewise for ftell.
33111         Reported by Ian Beckwith and others.
33112
33113 2009-10-27  Bruno Haible  <bruno@clisp.org>
33114
33115         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33116         Reported by Jim Meyering.
33117
33118 2009-10-27  Jim Meyering  <jim@meyering.net>
33119             Bruno Haible  <bruno@clisp.org>
33120
33121         Avoid warning despite dropping the return value of fwrite.
33122         * lib/unicodeio.c: Include ignore-value.h.
33123         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33124         * modules/unicodeio (Depends-on): Add ignore-value.
33125
33126 2009-10-26  Eric Blake  <ebb9@byu.net>
33127
33128         areadlinkat: fix fallback path
33129         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33130         pointer and zero.
33131
33132 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33133
33134         Use a better IO block size for modern systems
33135         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33136         * lib/md2.c: Likewise.
33137         * lib/md4.c: Likewise.
33138         * lib/md5.c: Likewise.
33139         * lib/sha1.c: Likewise.
33140         * lib/sha256.c: Likewise.
33141         * lib/sha512.c: Likewise.
33142
33143 2009-10-22  Eric Blake  <ebb9@byu.net>
33144
33145         tests: avoid several compiler warnings
33146         * tests/test-getcwd.c (main): Avoid buffer underflow.
33147         * tests/test-getdate.c (main): String literals are not safe with
33148         putenv, so use setenv.  Declare unused argument.
33149         * modules/getdate-tests (Depends-on): Add setenv.
33150         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33151         problems with string literals in char *.
33152         * tests/test-hash.c (main): Avoid shadowing declaration.
33153         (insert_new): Treat string literals as char const *.
33154         * tests/test-getopt.h (test_getopt): Likewise.
33155         (getopt_loop): Alter types to minimize casting elsewhere.
33156         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33157         (test_getopt_long_posix): Likewise.
33158         (do_getopt_long): Add wrapper to minimize casting.
33159         * tests/test-atexit.c (clear_temp_file): Use void.
33160         * tests/test-areadlink-with-size.c (main): Declare unused
33161         arguments.
33162         * tests/test-areadlink.c (main): Likewise.
33163         * tests/test-areadlinkat-with-size.c (main): Likewise.
33164         * tests/test-areadlinkat.c (main): Likewise.
33165         * tests/test-canonicalize-lgpl.c (main): Likewise.
33166         * tests/test-canonicalize.c (main): Likewise.
33167         * tests/test-dirent-safer.c (main): Likewise.
33168         * tests/test-dirname.c (main): Likewise.
33169         * tests/test-dup2.c (main): Likewise.
33170         * tests/test-fchdir.c (main): Likewise.
33171         * tests/test-fcntl-h.c (main): Likewise.
33172         * tests/test-fcntl-safer.c (main): Likewise.
33173         * tests/test-fdopendir.c (main): Likewise.
33174         * tests/test-fdutimensat.c (main): Likewise.
33175         * tests/test-fflush.c (main): Likewise.
33176         * tests/test-filenamecat.c (main): Likewise.
33177         * tests/test-filevercmp.c (main): Likewise.
33178         * tests/test-fopen-safer.c (main): Likewise.
33179         * tests/test-fopen.c (main): Likewise.
33180         * tests/test-fpending.c (main): Likewise.
33181         * tests/test-fpurge.c (main): Likewise.
33182         * tests/test-freading.c (main): Likewise.
33183         * tests/test-fstatat.c (main): Likewise.
33184         * tests/test-fsync.c (main): Likewise.
33185         * tests/test-futimens.c (main): Likewise.
33186         * tests/test-getndelim2.c (main): Likewise.
33187         * tests/test-gettimeofday.c (main): Likewise.
33188         * tests/test-getopt.c (main): Likewise.
33189         * tests/test-i-ring.c (main): Likewise.
33190         * tests/test-inttypes.c (main): Likewise.
33191         * tests/test-link.c (main): Likewise.
33192         * tests/test-lstat.c (main): Likewise.
33193         * tests/test-math.c (main): Likewise.
33194         * tests/test-md5.c (main): Likewise.
33195         * tests/test-memchr2.c (main): Likewise.
33196         * tests/test-memrchr.c (main): Likewise.
33197         * tests/test-mkdir.c (main): Likewise.
33198         * tests/test-mkdirat.c (main): Likewise.
33199         * tests/test-mkfifoat.c (main): Likewise.
33200         * tests/test-open.c (main): Likewise.
33201         * tests/test-openat-safer.c (main): Likewise.
33202         * tests/test-openat.c (main): Likewise.
33203         * tests/test-quotearg.c (main): Likewise.
33204         * tests/test-rawmemchr.c (main): Likewise.
33205         * tests/test-readlink.c (main): Likewise.
33206         * tests/test-remove.c (main): Likewise.
33207         * tests/test-rename.c (main): Likewise.
33208         * tests/test-renameat.c (main): Likewise.
33209         * tests/test-rmdir.c (main): Likewise.
33210         * tests/test-sha1.c (main): Likewise.
33211         * tests/test-signal.c (main): Likewise.
33212         * tests/test-sigaction.c (main): Likewise.
33213         * tests/test-stat.c (main): Likewise.
33214         * tests/test-stat-time.c (main): Likewise.
33215         * tests/test-stddef.c (main): Likewise.
33216         * tests/test-stdint.c (main): Likewise.
33217         * tests/test-stdio.c (main): Likewise.
33218         * tests/test-stdlib.c (main): Likewise.
33219         * tests/test-strchrnul.c (main): Likewise.
33220         * tests/test-strerror.c (main): Likewise.
33221         * tests/test-string.c (main): Likewise.
33222         * tests/test-strtod.c (main): Likewise.
33223         * tests/test-strverscmp.c (main): Likewise.
33224         * tests/test-symlink.c (main): Likewise.
33225         * tests/test-symlinkat.c (main): Likewise.
33226         * tests/test-sys_stat.c (main): Likewise.
33227         * tests/test-sys_time.c (main): Likewise.
33228         * tests/test-time.c (main): Likewise.
33229         * tests/test-unistd.c (main): Likewise.
33230         * tests/test-unlink.c (main): Likewise.
33231         * tests/test-unlinkat.c (main): Likewise.
33232         * tests/test-utimens.c (main): Likewise.
33233         * tests/test-utimensat.c (main): Likewise.
33234         * tests/test-version-etc.c (main): Likewise.
33235         * tests/test-wchar.c (main): Likewise.
33236         * tests/test-wctype.c (main): Likewise.
33237         * tests/test-xprintf-posix.c (main): Likewise.
33238         * tests/test-posixtm.c (main): Likewise.
33239         (STREQ): Delete unused macro.
33240         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33241         shadowed variables.
33242         * tests/test-memchr.c (main): Likewise.
33243
33244 2009-10-21  Eric Blake  <ebb9@byu.net>
33245
33246         areadlinkat: avoid failure on older glibc
33247         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33248         rather than mis-comparing 0 against FUNC_RESULT of char*.
33249
33250 2009-10-21  Bruno Haible  <bruno@clisp.org>
33251
33252         * modules/stpncpy (License): Relicense under LGPLv2+.
33253         Reported by David Lutterkort <lutter@redhat.com>.
33254
33255 2009-10-20  Eric Blake  <ebb9@byu.net>
33256
33257         utimensat: work around Solaris 9 bug
33258         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33259         has trailing slash bugs.
33260         * tests/test-lutimens.h (test_lutimens): Enhance test.
33261         * tests/test-utimens.h (test_utimens): Likewise.
33262         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33263         * doc/posix-functions/utimes.texi (utimes): Likewise.
33264         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33265         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33266         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33267         * doc/posix-functions/futimens.texi (futimens): Likewise.
33268
33269         fdutimensat: new module
33270         * modules/fdutimensat: New file.
33271         * lib/fdutimensat.c (fdutimensat): Likewise.
33272         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33273         * MODULES.html.sh (File system functions): Mention module.
33274         * modules/fdutimensat-tests: New test.
33275         * tests/test-fdutimensat.c: Likewise.
33276
33277         doc: regenerate INSTALL
33278         * doc/INSTALL: Reflect recent autoconf update.
33279         * doc/INSTALL.ISO: Likewise.
33280         * doc/INSTALL.UTF-8: Likewise.
33281
33282 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33283
33284         acl: warn if ACL support is not detected
33285         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33286
33287 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33288
33289         * lib/nproc.h: Add extern "C" block for C++.
33290
33291 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33292             Bruno Haible  <bruno@clisp.org>
33293
33294         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33295         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33296         * doc/posix-functions/isalpha.texi: Likewise.
33297         * doc/posix-functions/isblank.texi: Likewise.
33298         * doc/posix-functions/iscntrl.texi: Likewise.
33299         * doc/posix-functions/isdigit.texi: Likewise.
33300         * doc/posix-functions/isgraph.texi: Likewise.
33301         * doc/posix-functions/islower.texi: Likewise.
33302         * doc/posix-functions/isprint.texi: Likewise.
33303         * doc/posix-functions/ispunct.texi: Likewise.
33304         * doc/posix-functions/isspace.texi: Likewise.
33305         * doc/posix-functions/isupper.texi: Likewise.
33306         * doc/posix-functions/isxdigit.texi: Likewise.
33307
33308 2009-10-18  Bruno Haible  <bruno@clisp.org>
33309
33310         Tests for module 'isblank'.
33311         * modules/isblank-tests: New file.
33312         * tests/test-isblank.c: New file.
33313
33314         New module 'isblank'.
33315         * lib/isblank.c: New file.
33316         * m4/isblank.m4: New file.
33317         * modules/isblank: New file.
33318         * doc/posix-functions/isblank.texi: Mention the new module.
33319
33320 2009-10-18  Bruno Haible  <bruno@clisp.org>
33321
33322         New module 'ctype'.
33323         * lib/ctype.in.h: New file.
33324         * m4/ctype.m4: New file.
33325         * modules/ctype: New file.
33326         * doc/posix-headers/ctype.texi: Mention the new module.
33327
33328 2009-10-18  Jim Meyering  <meyering@redhat.com>
33329
33330         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33331         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33332         right after its initialization, rather than farther down.
33333         Keeping these in close proximity makes it easier to ensure
33334         that each such variable is initialized.  E.g.,
33335
33336             LIB_CLOCK_GETTIME=
33337             AC_SUBST([LIB_CLOCK_GETTIME])
33338
33339         This change also increments these serial numbers.
33340         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33341         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33343
33344 2009-10-18  Bruno Haible  <bruno@clisp.org>
33345
33346         Don't let environment variables perturb build.
33347         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33348         (gl_PREREQ_GETHRXTIME): ... not here.
33349
33350 2009-10-18  Bruno Haible  <bruno@clisp.org>
33351
33352         Avoid symlink attack in localcharset module.
33353         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33354         (O_NOFOLLOW): Define fallback.
33355         (get_charset_aliases): Don't open the file if it is a symbolic link.
33356         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33357         gl_FCNTL_H.
33358         (gl_FCNTL_H): Require it.
33359         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33360         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33361         Reported by Fergal Glynn <fglynn@veracode.com>.
33362
33363 2009-10-18  Bruno Haible  <bruno@clisp.org>
33364
33365         Implement nproc for mingw.
33366         * lib/nproc.c: Include <windows.h>
33367         (num_processors): On native Windows platforms, try GetSystemInfo.
33368
33369 2009-10-18  Bruno Haible  <bruno@clisp.org>
33370
33371         Implement nproc for IRIX.
33372         * lib/nproc.c: Include <sys/sysmp.h>.
33373         (num_processors): On IRIX systems, try sysmp.
33374         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33375
33376 2009-10-18  Bruno Haible  <bruno@clisp.org>
33377
33378         Implement nproc for HP-UX.
33379         * lib/nproc.c: Include <sys/pstat.h>
33380         (num_processors): On HP-UX systems, try pstat_getdynamic.
33381         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33382         pstat_getdynamic.
33383
33384 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33385             Bruno Haible  <bruno@clisp.org>
33386
33387         Implement nproc for NetBSD, OpenBSD.
33388         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33389         (ARRAY_SIZE): New macro.
33390         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33391         * m4/nproc.m4: New file.
33392         * modules/nproc (Files): Add m4/nproc.m4.
33393         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33394         (Makefile.am): Instead, augment lib_SOURCES.
33395
33396 2009-10-18  Bruno Haible  <bruno@clisp.org>
33397
33398         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33399         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33400         sys/param.h.
33401
33402 2009-10-16  Eric Blake  <ebb9@byu.net>
33403
33404         utimensat: new module
33405         * modules/utimensat: New file.
33406         * lib/utimensat.c (utimensat): Likewise.
33407         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33408         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33409         so we can work around Linux bugs.
33410         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33411         * modules/sys_stat (Makefile.am): Substitute them.
33412         * lib/sys_stat.in.h (utimensat): Declare it.
33413         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33414         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33415         * modules/utimensat-tests: New test.
33416         * tests/test-utimensat.c: Likewise.
33417
33418         utimens: let lutimens work on non-symlinks
33419         * lib/utimens.c (lutimens): Fall back to utimens rather than
33420         failing with ENOSYS, when file is not a symlink.
33421         (utimens): Reduce redirection.
33422         * tests/test-lutimens.h (test_lutimens): Update test to cover
33423         non-symlinks.
33424         * tests/test-utimens.h (test_utimens): Update test to cover
33425         symlinks.
33426         * tests/test-utimens.c (main): Update caller.
33427
33428         utimens: cache whether utimensat syscall works
33429         * lib/utimens.c (utimensat_works_really): New cache variable.
33430         (fdutimens, lutimens): Use it to avoid failing syscall.
33431
33432         test-stat-time, test-utimens: improve portability
33433         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33434         ext4 on alpha, and for cygwin.
33435         * tests/test-utimens-common.h: New file.
33436         (nap): Factor delays into single function.
33437         * tests/test-lutimens.h (test_lutimens): Use new header.
33438         * tests/test-futimens.h (test_futimens): Likewise.
33439         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33440         timestamps to occur from same machine, as was done previously for
33441         test_utimens.
33442         * modules/utimens-tests (Files): Ship new file.
33443         * modules/futimens-tests (Files): Likewise.
33444         Reported in part by Jim Meyering.
33445
33446         sys_stat: sort replacement declarations
33447         * lib/sys_stat.in.h: Sort declarations.
33448         * lib/futimens.c (futimens): Fix typo.
33449
33450 2009-10-15  Jim Meyering  <meyering@redhat.com>
33451
33452         don't let environment settings perturb build
33453         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33454         could cause a configure-time and/or build-time malfunction.
33455         Typically, a configure-time function-in-library test is performed
33456         via code like this:
33457
33458           LIB_VAR=
33459           AC_SUBST([LIB_VAR])
33460           prefix_saved_LIBS=$LIBS
33461             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33462                        [test "$ac_cv_search_FUNC" = "none required" ||
33463                         LIB_VAR=$ac_cv_search_FUNC])
33464           LIBS=$prefix_saved_LIBS
33465
33466         However, in each of the files affected by this change, the LIB_VAR=
33467         initialization was omitted.  Thus, when set in the environment, its
33468         value would propagate into generated Makefiles when FUNC is not found
33469         in LIB_NAME.
33470         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33471         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33473
33474 2009-10-14  Eric Blake  <ebb9@byu.net>
33475
33476         fchdir: avoid infinite recursion in mingw
33477         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33478         recursing.
33479
33480         test-stat-time: port to mingw
33481         * tests/test-stat-time.c (force_unlink): Return a value.
33482         (test_ctime) [W32]: Fix compilation error.
33483         (nap): Don't call usleep with too large an argument.  Use
33484         force_unlink.
33485         * doc/pastposix-functions/usleep.texi (usleep): Document the
33486         portability issue.
33487
33488 2009-10-13  Jim Meyering  <meyering@redhat.com>
33489
33490         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33491         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33492         * modules/pipe-filter-ii: Likewise.
33493         * modules/sys_socket-tests: Likewise.
33494         * modules/tsearch-tests: Likewise.
33495         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33496         (check): Depend on it.
33497
33498 2009-10-12  Eric Blake  <ebb9@byu.net>
33499
33500         utimens-tests: port to NFS file systems
33501         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33502         comparisons to avoid spurious failures from timestamp drift
33503         between NFS machines.
33504
33505 2009-10-12  Eric Blake  <ebb9@byu.net>
33506
33507         stat-time-tests: minor cleanups
33508         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33509         * tests/test-stat-time.c (nap): Separate assignment from call.
33510         Suggested by Paolo Bonzini and Bruno Haible.
33511
33512         sys_stat: guarantee struct timespec
33513         * lib/sys_stat.in.h (includes): Always include <time.h>
33514         * modules/sys_stat (Depends-on): Add time.
33515         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33516         mode_t permission values.
33517         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33518         get at subsecond timestamps.
33519
33520 2009-10-10  Eric Blake  <ebb9@byu.net>
33521
33522         futimens: new module
33523         * modules/futimens: New file.
33524         * lib/futimens.c (futimens): Likewise.
33525         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33526         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33527         we can work around Linux bugs.
33528         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33529         * modules/sys_stat (Makefile.am): Substitute them.
33530         * lib/sys_stat.in.h (futimens): Declare it.
33531         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33532         * doc/posix-functions/futimens.texi (futimens): Likewise.
33533         * modules/futimens-tests: New test.
33534         * tests/test-futimens.c: Likewise.
33535
33536         utimens: introduce fdutimens
33537         * lib/utimens.h (fdutimens): New prototype.
33538         * lib/utimens.c (gl_futimens): Move guts...
33539         (fdutimens): ...to new interface.
33540         * tests/test-utimens.c (do_fdutimens): Use it.
33541
33542         utimens: add UTIME_NOW and UTIME_OMIT support
33543         * lib/utimens.c (validate_timespec, update_timespec): New helper
33544         functions.
33545         (gl_futimens, lutimens): Use them.
33546         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33547         stdbool, sys_stat.
33548         (Link): Mention resulting library dependency.
33549         * modules/utimecmp (Link): Likewise.
33550         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33551         (Makefile.am): Pick up library dependency.
33552         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33553         definition.
33554         * tests/test-sys_stat.c: Test the definitions.
33555         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33556         * NEWS: Document library dependency.
33557
33558         utimecmp: support symlink timestamps
33559         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33560         hashing when possible.  Use pathconf when available.
33561         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33562         * modules/utimecmp (Depends-on): Add lstat.
33563
33564         utimens: add lutimens interface
33565         * lib/utimens.c (lutimens): New function.
33566         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33567         * lib/utimens.h (lutimens): Declare new interface.
33568         * tests/test-utimens.c (main): Enhance test.
33569         * tests/test-lutimens.h (test_lutimens): New file.
33570         * modules/utimens-tests (Files): Distribute it.
33571         (Depends-on): Add symlink.
33572         (configure.ac): Check for usleep.
33573
33574         utimens: validate futimens usage
33575         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33576         fewer syscalls on failure later on.  Avoid compiler warning on
33577         mingw.
33578         * modules/utimens (Depends-on): Add dup2.
33579
33580         utimens: add test
33581         * modules/utimens-tests: New test.
33582         * tests/test-utimens.h: New file.
33583         * tests/test-futimens.h: Likewise.
33584         * tests/test-utimens.c: Likewise.
33585
33586         doc: mention timestamp portability issues
33587         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33588         instead.
33589         * doc/posix-functions/utime.texi (utime): Likewise.
33590         * doc/posix-functions/utimes.texi (utimes): Likewise.
33591         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33592         instead.
33593         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33594         module.
33595         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33596         Mention weakness with symlink timestamps.
33597         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33598         to utimensat/futimens instead.
33599         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33600
33601         test-dup2: enhance test
33602         * tests/test-dup2.c (main): Also check AT_FDCWD.
33603
33604         test-stat-time: avoid more spurious failures
33605         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33606         xfs; and avoid race if the two timestamps cross quantization edge.
33607
33608         relocatable: prefer 'file system' over 'filesystem'
33609         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33610         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33611         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33612         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33613         * lib/relocatable.c (compute_curr_prefix): Likewise.
33614
33615 2009-10-10  Jim Meyering  <meyering@redhat.com>
33616
33617         stat-time-tests: check for the usleep function
33618         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33619
33620 2009-10-10  Bruno Haible  <bruno@clisp.org>
33621
33622         * modules/xnanosleep: Put the Link section after the Include section.
33623
33624 2009-10-09  Eric Blake  <ebb9@byu.net>
33625
33626         dup2: work around FreeBSD 6.1 bug
33627         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33628         * doc/posix-functions/dup2.texi (dup2): Document it.
33629         Reported by Nelson H. F. Beebe and Jim Meyering.
33630
33631         test-stat-time: port to buggy NFS clients
33632         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33633         (test_ctime): Also skip test if mtime and ctime are skewed.
33634
33635         maint: prefer 'file system' over 'filesystem'
33636         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33637         * doc/posix-functions/lstat.texi (lstat): Likewise.
33638         * lib/file-has-acl.c (file_has_acl): Likewise.
33639         * lib/fwriteerror.c [TEST]: Likewise.
33640         * tests/test-areadlink.h (test_areadlink): Likewise.
33641         * tests/test-areadlinkat-with-size.c (main): Likewise.
33642         * tests/test-areadlinkat.c (main): Likewise.
33643         * tests/test-canonicalize-lgpl.c (main): Likewise.
33644         * tests/test-canonicalize.c (main): Likewise.
33645         * tests/test-fstatat.c (main): Likewise.
33646         * tests/test-linkat.c (main): Likewise.
33647         * tests/test-lstat.h (test_lstat_func): Likewise.
33648         * tests/test-mkdir.h (test_mkdir): Likewise.
33649         * tests/test-readlink.h (test_readlink): Likewise.
33650         * tests/test-remove.c (main): Likewise.
33651         * tests/test-rename.h (test_rename): Likewise.
33652         * tests/test-renameat.c (main): Likewise.
33653         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33654         * tests/test-symlink.h (test_symlink): Likewise.
33655         * tests/test-symlinkat.c (main): Likewise.
33656         * tests/test-unlink.h (test_unlink_func): Likewise.
33657         * tests/test-unlinkat.c (main): Likewise.
33658
33659         maint: make realtime library usage explicit
33660         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33661         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33662         * modules/settime (Link): Likewise.
33663         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33664
33665         test-stat-time: speed up execution
33666         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33667         warning on mingw.
33668         (nap): New helper function.
33669         (prepare_test): Use it to reduce sleep time.
33670         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33671         execution.
33672         * modules/stat-time-tests (configure.ac): Check for usleep.
33673
33674 2009-10-09  Jim Meyering  <meyering@redhat.com>
33675
33676         selinux-h: always use getfilecon wrappers
33677         * lib/getfilecon.c: New file.
33678         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33679         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33680         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33681         (fgetfilecon): Provide a stub.
33682         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33683         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33684         file unconditionally.
33685         When <selinux/selinux.h> is found, arrange to use wrappers.
33686         * modules/selinux-h (Files): Add getfilecon.c.
33687         (Makefile.am): Substitute include-next-related bits
33688         into the now-always-generated selinux/selinux.h file.
33689         * doc/glibc-functions/lgetfilecon.texi: New file.
33690         * doc/glibc-functions/fgetfilecon.texi: New file.
33691         * doc/glibc-functions/getfilecon.texi: New file.
33692         * doc/glibc-functions/getfilecon-desc.texi: New file.
33693         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33694         which to pull in the new files.
33695         * MODULES.html.sh (Misc): Add selinux-h.
33696
33697 2009-10-08  Jim Meyering  <meyering@redhat.com>
33698
33699         unistd: fix comment typo
33700         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33701
33702 2009-10-08  Eric Blake  <ebb9@byu.net>
33703
33704         areadlink: use SIZE_MAX consistently
33705         * modules/areadlink (Depends-on): Add stdint.
33706         * modules/areadlink-with-size (Depends-on): Likewise.
33707         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33708         gives NULL; drop sys/types, since unistd gives size_t; and add
33709         stdint for SIZE_MAX.
33710         (SIZE_MAX): Rely on headers.
33711         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33712         and add stdint.
33713         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33714         (SIZE_MAX): Likewise.
33715         (INITIAL_BUF_SIZE): Turn into enum.
33716         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33717
33718 2009-10-08  Jim Meyering  <meyering@redhat.com>
33719
33720         areadlinkat: avoid compilation failure
33721         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33722         Fix typo in comment.
33723
33724 2009-10-07  Eric Blake  <ebb9@byu.net>
33725
33726         areadlinkat-with-size: new module
33727         * modules/areadlinkat-with-size: New module.
33728         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33729         * lib/areadlink.h (areadlinkat): Declare it.
33730         * MODULES.html.sh (File system functions): Mention it.
33731         * modules/areadlinkat-with-size-tests: New test.
33732         * tests/test-areadlinkat-with-size.c: New file.
33733
33734         xreadlinkat: new module
33735         * modules/xreadlinkat: New module.
33736         * lib/xreadlinkat.c (xreadlinkat): New file.
33737         * lib/xreadlink.h (xreadlinkat): Declare it.
33738         * MODULES.html.sh (File system functions): Mention it.
33739
33740         areadlinkat: new module
33741         * lib/at-func.c (FUNC_FAIL): New define.
33742         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33743         * modules/areadlinkat: New module.
33744         * lib/linkat.c (areadlinkat): Move...
33745         * lib/areadlinkat.c (areadlinkat): ...to new file.
33746         * lib/areadlink.h (areadlinkat): Declare it.
33747         * modules/linkat (Depends-on): Add areadlinkat.
33748         * MODULES.html.sh (File system functions): Mention it.
33749         * modules/areadlinkat-tests: New test.
33750         * tests/test-areadlinkat.c: New file.
33751
33752         areadlink, areadlink-with-size: add tests
33753         * modules/areadlink-tests: New test.
33754         * modules/areadlink-with-size-tests: Likewise.
33755         * tests/test-areadlink.h: New file.
33756         * tests/test-areadlink.c: Likewise.
33757         * tests/test-areadlink-with-size.c: Likewise.
33758
33759         maint: minor cleanups
33760         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33761         _UNUSED_PARAMETER_ instead.
33762         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33763         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33764         * modules/linkat-tests (Files): Distribute test-link.h.
33765
33766         openat, utimens: whitespace cleanup
33767         * lib/openat.c: Prefer space throughout, rather than mix of 8
33768         spaces vs. tabs.
33769         * lib/at-func.c: Likewise.
33770         * lib/utimens.c: Likewise.
33771
33772         openat: avoid using wrong fd
33773         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33774         working directory chooses same fd.
33775         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33776
33777         mkdir, mkdirat: fix cygwin 1.5.x bug
33778         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33779         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33780         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33781         bug.
33782         (gl_PREREQ_MKDIR): Delete unused macro.
33783         * modules/mkdir (Files): Track file rename.
33784         (configure.ac): Update macro name.
33785         * modules/openat (Depends-on): Add mkdir.
33786         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33787
33788         mkdir, mkdirat: add tests
33789         * modules/mkdir-tests: New test.
33790         * tests/test-mkdir.h: New file.
33791         * tests/test-mkdir.c: Likewise.
33792         * tests/test-mkdirat.c: Likewise.
33793         * modules/openat-tests (Files): Add new files.
33794         (Makefile.am): Run new test.
33795
33796 2009-10-06  Eric Blake  <ebb9@byu.net>
33797
33798         doc: tweak *at function documentation
33799         * doc/posix-functions/faccessat.texi (faccessat): Mention
33800         known issue with replacement.
33801         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33802         * doc/posix-functions/linkat.texi (linkat): Likewise.
33803         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33804         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33805         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33806         * doc/posix-functions/renameat.texi (renameat): Likewise.
33807         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33808
33809         openat: fix GNU/Hurd bug in unlinkat
33810         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33811         broken.
33812         * doc/posix-functions/unlink.texi (unlink): Document this.
33813         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33814
33815         fdopendir: fix GNU/Hurd bug
33816         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33817         allowing non-directory fds.
33818         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33819         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33820         * modules/dirent (Makefile.am): Substitute it.
33821         * lib/dirent.in.h (fdopendir): Declare replacement.
33822         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33823         * tests/test-fdopendir.c (main): Test something other than
33824         /dev/null, since on Hurd that behaves like a directory.
33825
33826         test-symlink: port to GNU/Hurd
33827         * tests/test-symlink.h (test_symlink): Relax expected errno.
33828
33829         doc: tweak more cygwin information
33830         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33831         now compatible with glibc.
33832         * doc/posix-functions/getopt.texi (getopt): Likewise.
33833
33834         getopt-gnu: add another test
33835         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33836         guarantee behavior relied on by m4.
33837         * tests/test-getopt.c (main): Use it.
33838         * modules/getopt-posix-tests (Depends-on): Add setenv.
33839         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33840
33841         getopt: fix compilation on darwin
33842         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33843         include.
33844         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33845         Reported by Ludovic Courtès.
33846
33847 2009-10-06  Bruno Haible  <bruno@clisp.org>
33848
33849         * modules/size_max (Description): Discourage its use.
33850         Reported by Simon Josefsson.
33851
33852 2009-10-06  Jim Meyering  <meyering@redhat.com>
33853
33854         linkat: avoid compilation failure
33855         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33856
33857 2009-10-05  Eric Blake  <ebb9@byu.net>
33858
33859         linkat: support Linux 2.6.17
33860         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33861         linkat on Linux, but allow cache variable override.
33862         * lib/linkat.c (rpl_linkat): Define override.
33863         * modules/linkat (Depends-on): Add symlinkat.
33864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33865         * modules/unistd (Makefile.am): Substitute it.
33866         * lib/unistd.in.h (linkat): Declare replacement.
33867         Reported by Pádraig Brady.
33868
33869         quotearg: port test to systems with C.UTF-8 locale
33870         * tests/test-quotearg.c (struct result_strings): Add another
33871         member, differentiating between C.ASCII and C.UTF-8 handling.
33872         (compare_strings): Add parameter.
33873         (main): Adjust all callers.
33874
33875         getopt: avoid clash with FreeBSD _getopt_internal
33876         * lib/getopt.in.h (_getopt_internal): Override the name.
33877         * lib/getopt_int.h (includes): Pick up any overrides.
33878         Reported by Reuben Thomas.
33879
33880         hash: allow C89 compilation
33881         * lib/hash.c (check_tuning): Move declaration before statement.
33882         Reported by Reuben Thomas.
33883
33884 2009-10-05  Karl Berry  <karl@gnu.org>
33885
33886         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33887
33888 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33889             Bruno Haible  <bruno@clisp.org>
33890
33891         * lib/uname.c (uname): Use a table-driven algorithm to compute
33892         Windows NT versions.
33893
33894 2009-10-04  Bruno Haible  <bruno@clisp.org>
33895
33896         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33897         program_invocation_short_name.
33898         * modules/progname (configure.ac): Test for presence of
33899         program_invocation_short_name.
33900         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33901
33902 2009-10-04  Bruno Haible  <bruno@clisp.org>
33903
33904         * lib/progname.c (set_program_name): Fix comment.
33905         Reported by Jim Meyering.
33906
33907 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33908             Bruno Haible  <bruno@clisp.org>
33909
33910         * lib/uname.c: Include <string.h>.
33911         (uname): Do only one call to GetVersionEx in the common case.
33912
33913 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33914             Bruno Haible  <bruno@clisp.org>
33915
33916         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33917         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33918         (uname): Add support for Windows CE and various non-x86 CPU types.
33919
33920 2009-10-03  Bruno Haible  <bruno@clisp.org>
33921
33922         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33923         invocation to tests/configure.ac.
33924         Reported by Ian Beckwith <ianb@erislabs.net>.
33925
33926 2009-10-02  Eric Blake  <ebb9@byu.net>
33927
33928         fchdir: avoid compiler warning
33929         * lib/fchdir.c (canonicalize_file_name)
33930         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33931
33932         test-open: support mingw errno values
33933         * tests/test-open.h (test_open): Relax test.
33934         * tests/test-fopen.h (test_fopen): Likewise.
33935         * tests/test-openat-safer.c (main): Likewise.
33936
33937         open: fix opening directory on mingw
33938         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33939
33940         test-open: on GNU/Hurd, /dev/null is a directory
33941         * tests/test-fopen.h (main): Rename...
33942         (test_fopen): ...to this.  Use a guaranteed non-directory when
33943         confirming open behavior on trailing slash.
33944         * tests/test-openat-safer.c (main): Likewise.
33945         * tests/test-open.h (main): Likewise....
33946         (test_open): ...to this.
33947         * tests/test-fopen.c (main): Adjust caller.
33948         * tests/test-fopen-safer.c (main): Likewise.
33949         * tests/test-open.c (main): Likewise.
33950         * tests/test-fcntl-safer.c (main): Likewise.
33951         Reported by Samuel Thibault.
33952
33953         rename, fchdir: don't ignore chdir failure
33954         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33955         * lib/rename.c (rpl_rename) [W32]: Likewise.
33956         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33957         an empty destination directory if source cannot be renamed,
33958         although there is still possibility for failure.
33959         * doc/posix-functions/rename.texi (rename): Document the race.
33960         Reported by Jim Meyering.
33961
33962         maint: cleanup whitespace in recent commits
33963         * lib/rename.c (rpl_rename): Remove tabs.
33964         * tests/test-link.h (test_link): Likewise.
33965         * lib/fchdir.c (get_name): Likewise.
33966         Reported by Jim Meyering.
33967
33968 2009-10-02  Ben Pfaff  <blp@gnu.org>
33969
33970         relocatable-prog-wrapper: Add missing dependency on
33971         double-slash-root.
33972         * modules/relocatable-prog-wrapper: Add dependency.
33973         Reported by Ian Beckwith <ianb@erislabs.net>.
33974
33975 2009-10-02  Eric Blake  <ebb9@byu.net>
33976
33977         renameat: fix Solaris bugs
33978         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33979         needed fixing.
33980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33981         * modules/stdio (Makefile.am): Substitute it.
33982         * lib/stdio.in.h (renameat): Declare replacement.
33983         * lib/renameat.c (rpl_renameat): Implement fix.
33984
33985         renameat: new module
33986         * modules/renameat: New file.
33987         * lib/renameat.c (renameat): Likewise.
33988         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33990         * modules/stdio (Makefile.am): Substitute them.
33991         * lib/stdio.in.h (renameat): Declare it.
33992         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33993         * doc/posix-functions/renameat.texi (renameat): Likewise.
33994         * modules/renameat-tests: New test.
33995         * tests/test-renameat.c: Likewise.
33996
33997         rename: fix mingw bugs
33998         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33999         directory overwrite bugs.
34000
34001         rename: fix another cygwin 1.5 bug
34002         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34003         checks.
34004         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34005         unnecessary cygwin workarounds.  Also work around bug with moving
34006         full directory onto an empty one.
34007         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34008
34009         rename-dest-slash: merge into rename module
34010         * modules/rename-dest-slash (Status): Mark obsolete.
34011         (Depends-on): Add rename.
34012         (Files): Let rename do it all.
34013         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34014         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34015         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34016         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34017         * lib/rename.c (rpl_rename): Update comments.
34018
34019         rename: fix cygwin 1.5.x bugs
34020         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34021         * lib/rename.c (rpl_rename): Work around them.
34022         * modules/rename (Depends-on): Add same-inode.
34023
34024         rename: fix Solaris 10 bug
34025         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34026         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34027         was the only bug.
34028
34029         rename: fix Solaris 9 bug
34030         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34031         on non-directory.  Avoid calling exit.
34032         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34033         strdup.
34034         * modules/rename-tests (Depends-on): Drop lstat.
34035         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34036         (gl_PREREQ_RENAME): Delete unused macro.
34037
34038         rename-dest-slash: fix NetBSD bug
34039         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34040         links.
34041         * modules/rename-dest-slash (Depends-on): Add same-inode.
34042
34043         rename-tests: new test, exposes several platform bugs
34044         * modules/rename-tests: New file.
34045         * tests/test-rename.h: Likewise.
34046         * tests/test-rename.c: Likewise.
34047         * doc/posix-functions/rename.texi (rename): Improve documentation,
34048         including bugs that will eventually be fixed in gnulib.
34049
34050 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34051
34052         * lib/uname.c: Include <stdlib.h>
34053         (uname): Assume version info is available.
34054
34055 2009-10-02  Jim Meyering  <meyering@redhat.com>
34056
34057         gnu-web-doc-update: correct --help output
34058         * build-aux/gnu-web-doc-update: Make --help output relevant.
34059
34060         gnu-web-doc-update: add standard options
34061         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34062
34063         gnu-web-doc-update: New module.
34064         Use this script to automatically update the on-line web documentation
34065         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34066         * modules/gnu-web-doc-update: New file, from coreutils.
34067         * build-aux/gnu-web-doc-update: New script.
34068
34069 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34070
34071         link: LoadLibrary is not needed.
34072         * lib/link.c: Use GetModuleHandle.
34073
34074 2009-10-01  Eric Blake  <ebb9@byu.net>
34075
34076         getopt: bump serial number
34077         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34078         change.
34079
34080         tests: tighten link, rmdir, and remove tests
34081         * tests/test-link.h (includes): No need to use <config.h> here.
34082         Clean up if directory hard link was created, otherwise test for
34083         trailing '.'.
34084         * tests/test-linkat.c (main): Simplify.
34085         * tests/test-remove.c (main): Enhance test for trailing '.'.
34086         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34087
34088 2009-10-01  Jim Meyering  <meyering@redhat.com>
34089
34090         maint.mk: requiring "make major" was annoying, for a "minor" release.
34091         What is intended is "stable", to contrast with alpha and beta,
34092         so require "make stable", not "make major".
34093         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34094         (get_tool_versions): Likewise.
34095         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34096
34097 2009-09-30  Ben Pfaff  <blp@gnu.org>
34098
34099         Fix broken build of replacement for Windows tmpfile().
34100         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34101         flags argument added along with the 'mkostemp' module.
34102
34103 2009-09-28  Bruno Haible  <bruno@clisp.org>
34104
34105         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34106         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34107         to 'remove_elt'.
34108         (gl_list_remove): Update.
34109         * lib/gl_list.c (gl_list_remove): Update.
34110         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34111         to 'remove_elt'.
34112         (gl_oset_remove): Update.
34113         * lib/gl_list.c (gl_oset_remove): Update.
34114         Reported by Eric Blake.
34115
34116 2009-09-28  Eric Blake  <ebb9@byu.net>
34117
34118         doc: mention yet more cygwin 1.7 status
34119         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34120         cygwin.
34121         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34122         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34123
34124         argp: fix test failure
34125         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34126         that are not upper-case.  Pass correct range to tolower.
34127
34128 2009-09-27  Jim Meyering  <meyering@redhat.com>
34129
34130         test-yesno: work around sparc-dash here-document infelicity
34131         Without this change, the literal \177 byte in a here document
34132         would make dash 0.5.5.1-3 access uninitialized memory.
34133         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34134         Instead, use a marker, "@", and filter through tr to create the desired
34135         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34136
34137 2009-09-27  Bruno Haible  <bruno@clisp.org>
34138
34139         Disable untested support for new flavours of ACLs on AIX.
34140         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34141         progress.
34142         * lib/set-mode-acl.c (qset_acl): Likewise.
34143
34144 2008-12-07  Bruno Haible  <bruno@clisp.org>
34145
34146         Add support for new flavours of ACLs on AIX. (Untested.)
34147         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34148         (file_has_acl): Add support for newer AIX.
34149         * lib/set-mode-acl.c (qset_acl): Likewise.
34150         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34151         Rainer Tammer <tammer@tammer.net>.
34152
34153 2009-09-26  Eric Blake  <ebb9@byu.net>
34154
34155         argp: fix compilation of getopt
34156         * lib/getopt.in.h (includes): Use different guard than glibc.
34157         Reported by Sergey Poznyakoff.
34158
34159         doc: mention more cygwin 1.7 status
34160         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34161         bug.
34162         * doc/posix-functions/execl.texi (execl): Likewise.
34163         * doc/posix-functions/execle.texi (execle): Likewise.
34164         * doc/posix-functions/execlp.texi (execlp): Likewise.
34165         * doc/posix-functions/execv.texi (execv): Likewise.
34166         * doc/posix-functions/execve.texi (execve): Likewise.
34167         * doc/posix-functions/execvp.texi (execvp): Likewise.
34168         * doc/glibc-functions/canonicalize_file_name.texi
34169         (canonicalize_file_name): Cygwin 1.7 now provides this.
34170         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34171         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34172         on AT_SYMLINK_NOFOLLOW.
34173
34174 2009-09-24  Eric Blake  <ebb9@byu.net>
34175
34176         test-linkat: make test more robust
34177         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34178
34179         getopt: fix inclusion guards for cygwin
34180         * modules/getopt-posix (Depends-on): Add include-next.
34181         (Makefile.am): Substitute more items in replacement header.
34182         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34183         <getopt.h>.
34184         * lib/getopt.in.h (includes): Use split inclusion guard, and
34185         prefer <getopt.h> over include <unistd.h> when one is present.
34186         (option): Also override name of 'struct option'.
34187
34188         same-inode: revert prior change; it is not yet ready
34189         * NEWS: Undo mention of this change.
34190         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34191         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34192         * lib/cycle-check.c (cycle_check): Likewise.
34193         * lib/same.c (same_name): Likewise.
34194         * lib/at-func2.c (at_func2): Likewise.
34195
34196 2009-09-23  Eric Blake  <ebb9@byu.net>
34197
34198         linkat: new module
34199         * modules/linkat: New file.
34200         * lib/at-func2.c (at_func2): Likewise.
34201         * lib/linkat.c (linkat): Likewise.
34202         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34203         * lib/openat-priv.h (at_func2): Add declaration.
34204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34205         * modules/unistd (Makefile.am): Substitute them.
34206         * lib/unistd.in.h (linkat): Declare it.
34207         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34208         * doc/posix-functions/linkat.texi (linkat): Likewise.
34209         * doc/posix-functions/link.texi (link): Tweak wording.
34210         * tests/test-link.c (main): Move guts...
34211         * tests/test-link.h (test_link): ...into new file.
34212         * modules/linkat-tests: New test.
34213         * tests/test-linkat.c: Likewise.
34214         * modules/link-tests (Files): Ship new file.
34215         (Depends-on): Add stdbool.
34216
34217         dirname: add library-safe mdir_name
34218         * lib/dirname.h (mdir_name): New prototype.
34219         * lib/dirname.c (dir_name): Move guts...
34220         (mdir_name): ...to new function that avoids xalloc_die.
34221
34222         fchdir: another mingw fix
34223         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34224         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34225         on mingw (where it has not yet been ported), and make it optional
34226         elsewhere.
34227         (_gl_register_fd): Use it.
34228
34229         same-inode: make SAME_INODE tri-state, to port to mingw
34230         * NEWS: Mention this change.
34231         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34232         st_ino always being 0.
34233         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34234         * lib/cycle-check.c (cycle_check): Likewise.
34235         * lib/same.c (same_name): Likewise.
34236
34237         lstat: avoid mingw compilation error
34238         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34239         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34240         lstat ourselves.
34241         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34242         was adequate.
34243         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34244         the checks for lstat.
34245         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34246
34247         link: fix test failure on Solaris 9
34248         * lib/link.c (rpl_link): Don't assume link will catch bogus
34249         trailing slash on source.
34250
34251         test-symlinkat: enhance test
34252         * tests/test-readlink.c (main): Move guts...
34253         * tests/test-readlink.h (test_readlink): ...into new file.
34254         * tests/test-symlink.c (main): Move guts...
34255         * tests/test-symlink.h (test_symlink): ...into new file.
34256         * tests/test-symlinkat.c (main): Use new files for further
34257         coverage.
34258         (do_symlink, do_readlink): New helper functions.
34259         * modules/symlink-tests (Files): Ship new file.
34260         (Depends-on): Add stdbool.
34261         * modules/readlink-tests (Files): Ship new file.
34262         (Depends-on): Add stdbool.
34263         * modules/symlinkat-tests (Files): Use new files.
34264
34265 2009-09-23  Eric Blake  <ebb9@byu.net>
34266
34267         readlink: document portability issue with symlink length
34268         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34269         systems have bogus st_size on symlinks, and mention the
34270         areadlink-with-size module.
34271         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34272         * doc/posix-functions/readlink.texi (readlink): Mention the
34273         areadlink module, and ERANGE failure.
34274         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34275         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34276
34277         readlink: fix Solaris 9 bug with trailing slash
34278         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34279         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34280         * doc/posix-functions/readlink.texi (readlink): Document this.
34281         * modules/readlink-tests: New test.
34282         * tests/test-readlink.c: Likewise.
34283
34284         readlink: fix cygwin 1.5.x bug with return type
34285         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34286         * lib/unistd.in.h (readlink): Use ssize_t.
34287         * lib/readlink.c (readlink): Likewise.
34288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34289         * modules/unistd (Makefile.am): Substitute it.
34290         * lib/unistd.in.h (readlink): Declare replacement.
34291         * doc/posix-functions/readlink.texi (readlink): Document this.
34292
34293         symlink: use throughout gnulib
34294         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34295         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34296         symlink is not used.
34297         * modules/symlinkat (Depends-on): Add symlink.
34298         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34299         * modules/canonicalize-tests (Depends-on): Likewise.
34300         * modules/lstat-tests (Depends-on): Likewise.
34301         * modules/openat-tests (Depends-on): Likewise.
34302         * modules/remove-tests (Depends-on): Likewise.
34303         * modules/rmdir-tests (Depends-on): Likewise.
34304         * modules/unlink-tests (Depends-on): Likewise.
34305         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34306         * tests/test-canonicalize.c (symlink): Likewise.
34307         * tests/test-fstatat.c (symlink): Likewise.
34308         * tests/test-lstat.c (symlink): Likewise.
34309         * tests/test-remove.c (symlink): Likewise.
34310         * tests/test-rmdir.c (symlink): Likewise.
34311         * tests/test-unlink.c (symlink): Likewise.
34312         * tests/test-unlinkat.c (symlink): Likewise.
34313
34314         symlink: new module, for Solaris 9 bug
34315         * modules/symlink: New file.
34316         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34317         * lib/symlink.c: Likewise.
34318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34319         * modules/unistd (Makefile.am): Substitute them.
34320         * lib/unistd.in.h (symlink): Declare replacement.
34321         * MODULES.html.sh (File system functions): Mention it.
34322         * doc/posix-functions/symlink.texi (symlink): Likewise.
34323         * modules/symlink-tests: New test.
34324         * tests/test-symlink.c: Likewise.
34325
34326 2009-09-23  Bruno Haible  <bruno@clisp.org>
34327
34328         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34329         when needed.
34330         Test case: gnulib-tool --import --with-tests atexit inttypes.
34331         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34332
34333 2009-09-23  Bruno Haible  <bruno@clisp.org>
34334
34335         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34336         subcommand, not in a subshell.
34337
34338 2009-09-22  Eric Blake  <ebb9@byu.net>
34339
34340         unistd: sort replacement declarations
34341         * lib/unistd.in.h: Sort declarations.
34342
34343         open, openat: minor optimization
34344         * lib/open.c (open): If open succeeded, len is non-zero.
34345         * lib/openat.c (rpl_openat): Likewise.
34346
34347         link-follow: ensure correct result
34348         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34349         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34350         distinguish between possible failures.
34351
34352 2009-09-21  Eric Blake  <ebb9@byu.net>
34353
34354         fts: avoid compiler warning
34355         * lib/fts.c (dirent_inode_sort_may_be_useful)
34356         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34357
34358 2009-09-19  Bruno Haible  <bruno@clisp.org>
34359
34360         * lib/progreloc.c (canonicalize_file_name): New declaration.
34361
34362 2009-09-19  Eric Blake  <ebb9@byu.net>
34363
34364         link: fix quoting
34365         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34366
34367         openat: fix openat bugs on Solaris 9
34368         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34369         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34370         * modules/openat (Depends-on): Add open.
34371         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34372         * modules/fcntl-h (Makefile.am): Substitute it.
34373         * lib/fcntl.in.h (openat): Declare replacement.
34374         * doc/posix-functions/openat.texi (openat): Document this.
34375
34376         openat: move fstatat and unlinkat into correct files
34377         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34378         compiled.
34379         * lib/openat.c (fstatat, unlinkat): Move...
34380         * lib/fstatat.c (fstatat): ...into correct files.
34381         * lib/unlinkat.c (unlinkat): Likewise.
34382
34383         openat: fix unlinkat bugs on Solaris 9
34384         * lib/unlinkat.c (unlinkat): New file.
34385         * modules/openat (Depends-on): Add unlink.
34386         (Files): Distribute it.
34387         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34388         trailing slash behavior is broken.
34389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34390         * modules/unistd (Makefile.am): Substitute it.
34391         * lib/unistd.in.h (unlinkat): Declare replacement.
34392         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34393
34394         openat: fix fstatat bugs on Solaris 9
34395         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34396         stat.
34397         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34398
34399         test-unlinkat: enhance test, to expose Solaris 9 bug
34400         * tests/test-unlink.c (main): Factor guts...
34401         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34402         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34403         * tests/test-rmdir.c (main): Adjust caller.
34404         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34405         (unlinker): New helper function.
34406         (rmdirat): Enhance check.
34407         * modules/rmdir-tests (Depends-on): Add stdbool.
34408         * modules/unlink-tests (Depends-on): Likewise.
34409         (Files): Add test-unlink.h.
34410         * modules/openat-tests (Files): Likewise.
34411         (Depends-on): Add unlinkdir.
34412
34413         test-fstatat: new test, to expose Solaris 9 bugs
34414         * tests/test-stat.c (main): Factor guts...
34415         * tests/test-stat.h (test_stat_func): ...into new file.
34416         * tests/test-lstat.c (main): Factor guts...
34417         * tests/test-lstat.h (test_lstat_func): ...into new file.
34418         * tests/test-fstatat.c: New file.
34419         * modules/stat-tests (Files): Add test-stat.h.
34420         * modules/lstat-tests (Files): Add test-lstat.h.
34421         (Depends-on): Add stdbool.
34422         * modules/openat-tests (Depends-on): Add pathmax.
34423         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34424         (Makefile.am): Run new test.
34425
34426         remove: new module, for mingw and Solaris 9 bugs
34427         * modules/remove: New file.
34428         * lib/remove.c: Likewise.
34429         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34431         * modules/stdio (Makefile.am): Use them.
34432         * lib/stdio.in.h (remove): Declare replacement.
34433         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34434         * doc/posix-functions/remove.texi (remove): Likewise.
34435         * modules/remove-tests: New test.
34436         * tests/test-remove.c: Likewise.
34437
34438         unlink: new module, for Solaris 9 bug
34439         * modules/unlink: New file.
34440         * lib/unlink.c: Likewise.
34441         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34443         * modules/unistd (Makefile.am): Use them.
34444         * lib/unistd.in.h (stat): Declare replacement.
34445         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34446         * doc/posix-functions/unlink.texi (unlink): Likewise.
34447         * modules/unlink-tests: New test.
34448         * tests/test-unlink.c: Likewise.
34449
34450         lstat: fix Solaris 9 bug
34451         * lib/lstat.c (lstat): Also check for trailing slash on
34452         non-symlink, non-directories.  Use stat module to simplify logic.
34453         * doc/posix-functions/lstat.texi (lstat): Document it.
34454         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34455         (configure.ac): Check for symlink.
34456         * tests/test-lstat.c (main): Add more tests.
34457
34458         stat: add as dependency to other modules
34459         * modules/chown (Depends-on): Add stat.
34460         * modules/euidaccess (Depends-on): Likewise.
34461         * modules/fchdir (Depends-on): Likewise.
34462         * modules/isdir (Depends-on): Likewise.
34463         * modules/link (Depends-on): Likewise.
34464         * modules/lstat (Depends-on): Likewise.
34465         * modules/mkdir-p (Depends-on): Likewise.
34466         * modules/modechange (Depends-on): Likewise.
34467         * modules/open (Depends-on): Likewise.
34468         * modules/readlink (Depends-on): Likewise.
34469         * modules/same (Depends-on): Likewise.
34470
34471         stat: fix Solaris 9 bug
34472         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34473         slash.
34474         * lib/stat.c (rpl_stat): Work around it.
34475         * doc/posix-functions/stat.texi (stat): Update documentation.
34476
34477         stat: new module, for mingw bug
34478         * modules/stat: New file.
34479         * lib/stat.c: Likewise.
34480         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34481         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34482         * modules/sys_stat (Makefile.am): Use them.
34483         * lib/sys_stat.in.h (stat): Declare replacement.
34484         * lib/openat.c (fstatat): Deal with lstat and stat being function
34485         macros.
34486         * modules/openat (Depends-on): Add inline.
34487         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34488         * doc/posix-functions/stat.texi (stat): Likewise.
34489         * modules/stat-tests: New test.
34490         * tests/test-stat.c: Likewise.
34491
34492 2009-09-19  Jim Meyering  <meyering@redhat.com>
34493
34494         syntax-check: detect unnecessary inclusion of canonicalize.h
34495         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34496
34497 2009-09-19  Eric Blake  <ebb9@byu.net>
34498
34499         canonicalize-lgpl: adjust clients to use correct header
34500         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34501         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34502         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34503         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34504         * lib/progreloc.c (includes): Likewise.
34505
34506 2009-09-19  Jim Meyering  <meyering@redhat.com>
34507
34508         test-posixtm.c: correct a comment
34509         * tests/test-posixtm.c: Correct first-line comment.
34510         Spotted by Eric Blake.
34511
34512 2009-09-16  Jim Meyering  <meyering@redhat.com>
34513
34514         posixtm-tests: make T const-correct; add a test case
34515         * tests/test-posixtm.c (T): Declare const.
34516         Add a test for -(2^31+1).
34517         Remove useless can-succeed-only-in-2002 test.
34518
34519         posixtm-tests: adjust the sole failing test
34520         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34521         expected output matches what mktime now produces.  Cross-checked via
34522         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34523
34524         posixtm: move #ifdef'd tests into a new module
34525         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34526         * tests/test-posixtm.c: ... this new file.
34527         * modules/posixtm-tests: New module.
34528
34529 2009-09-19  Eric Blake  <ebb9@byu.net>
34530
34531         openat: simplify use of at-func.c
34532         * lib/at-func.c (includes): Include prerequisites here, to
34533         simplify requirements on client files.
34534         * lib/openat-priv.h: Add double-inclusion guard.
34535         * lib/faccessat.c (includes): Simplify.
34536         * lib/fchmodat.c (includes): Likewise.
34537         * lib/fchownat.c (includes): Likewise.
34538         * lib/mkdirat.c (includes): Likewise.
34539         * lib/mkfifoat.c (includes): Likewise.
34540         * lib/symlinkat.c (includes): Likewise.
34541
34542         openat: allow return of fd 0
34543         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34544         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34545         unistd-safer.
34546         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34547         <fcntl.h>; this module does not leak fds.
34548         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34549         must be allowed to return 0, leaving openat_safer to add the
34550         safety.
34551         (openat_permissive): Avoid writing to just-opened fd 2 if
34552         restoring the current directory fails.
34553         * lib/openat-die.c (openat_restore_fail): Add comment.
34554         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34555         (save_cwd): Guarantee safe fd, but without use of open_safer.
34556         * tests/test-openat.c: New test.
34557         * modules/openat-tests (Files, Makefile.am): Distribute and build
34558         new file.
34559
34560         relocatable-prog-wrapper: fix build
34561         * modules/relocatable-prog-wrapper (Files): Update name of
34562         canonicalize m4 file, broken on 2009-09-17.
34563         Reported by emad hajjar <aleppos@hotmail.com>.
34564
34565 2009-09-19  Bruno Haible  <bruno@clisp.org>
34566
34567         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34568         * lib/safe-alloc.c: Likewise.
34569         Reported by Ian Beckwith <ianb@erislabs.net>.
34570
34571 2009-09-18  Bruno Haible  <bruno@clisp.org>
34572
34573         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34574         Reported by <erobles@sensacd.com.mx>.
34575
34576 2009-09-17  Eric Blake  <ebb9@byu.net>
34577
34578         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34579         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34580         slashes when checking if last component is missing.
34581         * tests/test-canonicalize.c (main): Test this.
34582
34583         canonicalize, canonicalize-lgpl: honor // if distinct from /
34584         * modules/canonicalize (Files): Add double-slash-root.m4.
34585         * modules/canonicalize-lgpl (Files): Likewise.
34586         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34587         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34588         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34589         fallback definition.
34590         (canonicalize_filename_mode): Use it to protect //.
34591         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34592         (__realpath): Likewise.
34593         * tests/test-canonicalize.c (main): Test this.
34594         * tests/test-canonicalize-lgpl.c (main): Likewise.
34595         * modules/canonicalize-tests (Depends-on): Add same-inode.
34596         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34597
34598         canonicalize-lgpl: fix glibc bug with trailing slash
34599         * m4/canonicalize-lgpl.m4: Move contents...
34600         * m4/canonicalize.m4: ...here.
34601         (gl_CANONICALIZE_LGPL): Factor realpath check...
34602         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34603         glibc 2.3.5 bug, fixed 2005-04-27.
34604         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34605         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34606         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34607         * modules/canonicalize-lgpl (Files): Manage file rename.
34608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34609         * modules/stdlib (Makefile.am): Substitute witness.
34610         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34611         is needed.
34612         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34613         replacement is required.
34614         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34615         * doc/glibc-functions/canonicalize_file_name.texi
34616         (canonicalize_file_name): Document this.
34617         * doc/posix-functions/realpath.texi (realpath): Likewise.
34618
34619         canonicalize-lgpl: reject non-directory with trailing slash
34620         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34621         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34622         catches failures in glibc 2.3.5.
34623         * tests/test-canonicalize.c (main): Likewise.
34624
34625         canonicalize-lgpl: use native realpath if it works
34626         * lib/canonicalize-lgpl.c (realpath): Guard with
34627         FUNC_REALPATH_WORKS.
34628         * lib/stdlib.in.h (realpath): Make declaration optional based on
34629         HAVE_REALPATH.
34630         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34631         native realpath works.
34632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34633         * modules/stdlib (Makefile.am): Substitute witness.
34634
34635         canonicalize, canonicalize-lgpl: use <stdlib.h>
34636         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34637         (Include): Mention <stdlib.h>.
34638         (configure.ac): Mention functions we provide.
34639         * modules/canonicalize (configure.ac): Likewise.
34640         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34641         realpath if canonicalize_file_name is missing.
34642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34643         * modules/stdlib (Makefile.am): Substitute witnesses.
34644         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34645         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34646         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34647         * NEWS: Document this.
34648         * doc/glibc-functions/canonicalize_file_name.texi
34649         (canonicalize_file_name): Likewise.
34650         * doc/posix-functions/realpath.texi (realpath): Likewise.
34651         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34652
34653         test-canonicalize: consolidate into single C program
34654         * tests/test-canonicalize.sh: Delete; move setup into...
34655         * tests/test-canonicalize.c (main): ...the program, making it
34656         easier to run in debugger.  Add some tests.
34657         * modules/canonicalize-tests (Files): Remove unused file.
34658         (Depends-on): Add progname.
34659         (configure.ac, Makefile.am): Simplify.
34660
34661         test-canonicalize-lgpl: consolidate into single C program
34662         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34663         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34664         easier to run in debugger.  Add some tests.
34665         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34666         (configure.ac, Makefile.am): Simplify.
34667
34668         canonicalize: avoid resolvepath
34669         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34670         unnecessary checks.
34671         * lib/canonicalize.c (includes): Simplify.
34672         (canonicalize_file_name): Drop resolvepath implementation.
34673         * modules/canonicalize (Depends-on): Drop filenamecat.
34674
34675         canonicalize: don't lose errno
34676         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34677         over calls to free.
34678
34679         canonicalize: simplify errno handling
34680         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34681         assignment.
34682
34683         canonicalize, canonicalize-lgpl: update module dependencies
34684         * modules/canonicalize (Depends-on): Add extensions, lstat,
34685         pathmax, stdlib.
34686         (Files): Drop pathmax.h.
34687         (configure.ac): Adjust macro name.
34688         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34689         lstat, stdlib, sys_stat.
34690         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34691         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34692         extensions.
34693         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34694         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34695         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34696         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34697         declaration, if available.
34698         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34699         we can rely on the readlink module.
34700         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34701         (includes): Use <unistd.h> unconditionally.
34702
34703 2009-09-17  Eric Blake  <ebb9@byu.net>
34704
34705         maint: make Include sections of modules consistent
34706         * modules/alloca: Use only header name; no need to list #include.
34707         * modules/alloca-opt: Likewise.
34708         * modules/arpa_inet: Likewise.
34709         * modules/canon-host: Likewise.
34710         * modules/configmake: Likewise.
34711         * modules/dirent: Likewise.
34712         * modules/eealloc: Likewise.
34713         * modules/environ: Likewise.
34714         * modules/fchdir: Likewise.
34715         * modules/fcntl: Likewise.
34716         * modules/fcntl-h: Likewise.
34717         * modules/gethrxtime: Likewise.
34718         * modules/gettime: Likewise.
34719         * modules/ignore-value: Likewise.
34720         * modules/inet_ntop: Likewise.
34721         * modules/inet_pton: Likewise.
34722         * modules/inttypes: Likewise.
34723         * modules/isnand-nolibm: Likewise.
34724         * modules/isnanf-nolibm: Likewise.
34725         * modules/mbchar: Likewise.
34726         * modules/mbfile: Likewise.
34727         * modules/mbiter: Likewise.
34728         * modules/mbuiter: Likewise.
34729         * modules/netdb: Likewise.
34730         * modules/netinet_in: Likewise.
34731         * modules/nproc: Likewise.
34732         * modules/pagealign_alloc: Likewise.
34733         * modules/poll: Likewise.
34734         * modules/printf-frexp: Likewise.
34735         * modules/pthread: Likewise.
34736         * modules/putenv: Likewise.
34737         * modules/random_r: Likewise.
34738         * modules/relocatable-prog: Likewise.
34739         * modules/search: Likewise.
34740         * modules/select: Likewise.
34741         * modules/selinux-h: Likewise.
34742         * modules/settime: Likewise.
34743         * modules/signal: Likewise.
34744         * modules/size_max: Likewise.
34745         * modules/socklen: Likewise.
34746         * modules/ssize_t: Likewise.
34747         * modules/stdarg: Likewise.
34748         * modules/stdbool: Likewise.
34749         * modules/stddef: Likewise.
34750         * modules/stdint: Likewise.
34751         * modules/stdio: Likewise.
34752         * modules/stdlib: Likewise.
34753         * modules/string: Likewise.
34754         * modules/strings: Likewise.
34755         * modules/sys_file: Likewise.
34756         * modules/sys_ioctl: Likewise.
34757         * modules/sys_select: Likewise.
34758         * modules/sys_socket: Likewise.
34759         * modules/sys_stat: Likewise.
34760         * modules/sys_time: Likewise.
34761         * modules/sys_times: Likewise.
34762         * modules/sys_utsname: Likewise.
34763         * modules/sys_wait: Likewise.
34764         * modules/sysexits: Likewise.
34765         * modules/time: Likewise.
34766         * modules/times: Likewise.
34767         * modules/tmpfile: Likewise.
34768         * modules/trim: Likewise.
34769         * modules/unistd: Likewise.
34770         * modules/wchar: Likewise.
34771         * modules/wctype: Likewise.
34772
34773 2009-09-17  Bruno Haible  <bruno@clisp.org>
34774
34775         Make getdate.y compile on QNX and NetBSD 5 / i386.
34776         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34777         TIME_T_FITS_IN_LONG_INT.
34778         * lib/getdate.y (long_time_t): New type.
34779         (relative_time): Change type of 'seconds' field to long_time_t.
34780         (get_date): Update types of local variables. Check against overflow
34781         during conversion from long_time_t to time_t.
34782         Reported by Matt Kraai <kraai@ftbfs.org>
34783         and Hasso Tepper <hasso@netbsd.org>.
34784
34785 2009-09-17  Bruno Haible  <bruno@clisp.org>
34786
34787         * modules/COPYING: Update copyright years.
34788         * modules/README: Likeiwse.
34789         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34790         Reported by Ian Beckwith <ianb@erislabs.net>.
34791
34792 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34793
34794         * users.txt: Update references for gnuit package.
34795
34796 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34797
34798         * m4/getdelim.m4: Fix typo in copyright line.
34799
34800 2009-09-17  Bruno Haible  <bruno@clisp.org>
34801
34802         * lib/atoll.c: Use the standard header with GPL copyright.
34803         * lib/argz.in.h: Likewise.
34804         * lib/glob.c: Likewise.
34805         * lib/glob-libc.h: Likewise.
34806         * lib/random_r.c: Likewise.
34807         * lib/siglist.h: Likewise.
34808         * lib/strsignal.c: Likewise.
34809         Reported by Ian Beckwith <ianb@erislabs.net>.
34810
34811 2009-09-17  Eric Blake  <ebb9@byu.net>
34812
34813         rmdir: ensure correct dependency order
34814         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34815
34816 2009-09-17  Bruno Haible  <bruno@clisp.org>
34817
34818         Disable assertion that fails on NetBSD 5 / i386.
34819         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34820         Reported by Sam Steingold <sds@gnu.org>
34821         and Hasso Tepper <hasso@netbsd.org>.
34822
34823 2009-09-16  Eric Blake  <ebb9@byu.net>
34824
34825         unlinkdir: port to mingw
34826         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34827         on which no one can unlink a directory.
34828
34829         stdlib: sort witness names
34830         * modules/stdlib (Makefile.am): Sort replacements.
34831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34832         * lib/stdlib.in.h: Likewise.
34833
34834         parse-duration-tests: avoid link failure
34835         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34836         LIBINTL.
34837         Reported by Tom G. Christensen.
34838
34839         openat-tests: ensure unlinkat behaves like rmdir
34840         * tests/test-rmdir.c (main): Factor guts...
34841         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34842         * modules/rmdir-tests (Files): Ship new file.
34843         * modules/openat-tests: New test.
34844         * tests/test-unlinkat.c: Likewise.
34845
34846         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34847         * modules/rmdir-errno (Status, Notice): Now obsolete.
34848
34849         rmdir: work around cygwin 1.5.x and mingw bugs
34850         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34851         * lib/rmdir.c (rmdir): Work around it.
34852         * modules/rmdir (Status, Notice): No longer obsolete.
34853         (Files): Add dos.m4.
34854         (Depends-on): Add unistd.
34855         (configure.ac): Set witnesses.
34856         (License): Relax to LGPLv2+.
34857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34858         * modules/unistd (Makefile.am): Substitute witnesses.
34859         * lib/unistd.in.h (rmdir): Declare replacement.
34860         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34861         * modules/rmdir-tests: New tests.
34862         * tests/test-rmdir.c: Likewise.
34863
34864 2009-09-15  Eric Blake  <ebb9@byu.net>
34865
34866         fchdir: improve use of replacement functions
34867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34868         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34869         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34870         REPLACE_CLOSEDIR.
34871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34872         * modules/sys_stat (Makefile.am): Substitute correct witness.
34873         * modules/dirent (Makefile.am): Likewise.
34874         * modules/unistd (Makefile.am): Likewise.
34875         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34876         * lib/unistd.in.h (dup): Likewise.
34877         * lib/sys_stat.in.h (fstat): Likewise.
34878
34879         maint: ignore gnulib-tool temp files
34880         * .gitignore: Ignore files created during gnulib-tool --test.
34881
34882 2009-09-13  Jim Meyering  <meyering@redhat.com>
34883
34884         posixtm: don't reject a time that specify "60" as the number of seconds
34885         * lib/posixtm.c (posixtime): The code to reject invalid dates
34886         would also reject a time specified with the .60 suffix.
34887         But POSIX allows that, in order to accommodate leap seconds.
34888         So don't reject it.
34889         (main): Adjust tests accordingly.
34890         * modules/posixtm (Depends-on): Add stpcpy.
34891
34892 2009-09-11  Jim Meyering  <meyering@redhat.com>
34893
34894         announce-gen: include [$release_type] in emitted Subject:
34895         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34896         e.g., [stable] in the emitted Subject: line.
34897
34898 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34899
34900         Remove obsolete macros from several modules.
34901         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34902         obsolete Autoconf macros with their modern counterparts.
34903         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34904         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34905         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34906         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34907         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34908         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34910         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34911         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34912         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34913         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34915         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34916         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34917         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34918         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34919         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34920         * m4/time_r.m4 (gl_TIME_R): Likewise.
34921         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34922         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34923         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34924
34925         Fix copyright header in build-aux scripts.
34926         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34927         recommendation.
34928         * build-aux/ncftpput-ftp: Likewise.
34929         * build-aux/update-copyright: Likewise.
34930
34931 2009-09-09  Eric Blake  <ebb9@byu.net>
34932
34933         test-link: allow Linux choice of errno
34934         * tests/test-link.c (main): Relax test for alternate error.
34935
34936         strndup: fix improper m4 caching
34937         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34938         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34939         (gl_PREREQ_STRNDUP): Delete.
34940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34941         * modules/string (Makefile.am): Substitute it.
34942         * lib/string.in.h (strndup): Modernize prototype.
34943
34944         getcwd: port to mingw
34945         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34946         different from the POSIX assumptions made throughout the getcwd
34947         module; fortunately, the mingw getcwd does not need replacement.
34948         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34949         * modules/getcwd-tests: New test.
34950         * tests/test-getcwd.c: Likewise.
34951
34952         link: fix platform bugs
34953         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34954         * lib/link.c (link): Work around them.  Fix related mingw bug.
34955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34956         * modules/unistd (Makefile.am): Substitute it.
34957         * lib/unistd.in.h (link): Declare replacement.
34958         * doc/posix-functions/link.texi (link): Document this.
34959         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34960
34961         test-link: consolidate into single C program, test more cases
34962         * tests/test-link.sh: Delete.
34963         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34964         at least Cygwin and Solaris.
34965         * modules/link-tests (Files): Remove unused file.
34966         (Depends-on): Add errno, sys_stat.
34967         (Makefile.am): Simplify.
34968
34969 2009-09-08  Bruno Haible  <bruno@clisp.org>
34970
34971         Work around towlower, towupper bug on mingw.
34972         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34973         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34974         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34975         * doc/posix-functions/towupper.texi: Likewise.
34976         Reported by Eric Blake.
34977
34978 2009-09-08  Jim Meyering  <meyering@redhat.com>
34979
34980         build: don't try to run autoheader if we don't use it
34981         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34982         is not used in configure.ac.
34983
34984 2009-09-08  Eric Blake  <ebb9@byu.net>
34985
34986         euidaccess: fix compilation error
34987         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34988
34989         rawmemchr: relax license
34990         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34991         okay.
34992         Reported by Jim Meyering.
34993
34994         mkfifoat: new module
34995         * modules/mkfifoat: New file.
34996         * lib/mkfifoat.c: Likewise.
34997         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34999         * modules/sys_stat (Makefile.am): Use them.
35000         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35001         * MODULES.html.sh (File system functions): Mention module.
35002         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35003         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35004         * modules/mkfifoat-tests: New test.
35005         * tests/test-mkfifoat.c: Likewise.
35006
35007         strchrnul: relax license
35008         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35009         okay.
35010         Reported by Jim Meyering.
35011
35012 2009-09-08  Eric Blake  <ebb9@byu.net>
35013
35014         fstatat: fix compilation on Solaris
35015         * lib/fstatat.c (includes): Add fcntl.h.
35016         Reported by Pádraig Brady.
35017
35018 2009-09-07  Eric Blake  <ebb9@byu.net>
35019
35020         rename: modernize replacement
35021         * modules/rename (Depends-on): Add stdio.
35022         (configure.ac): Declare witness.
35023         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35024         stdio take care of replacement.
35025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35026         * modules/stdio (Makefile.am): Substitute them.
35027         * lib/stdio.in.h (rename): Declare replacement.
35028         * lib/rename.c (includes): Allow cross-compilation to non-windows
35029         machines.
35030         * doc/posix-functions/rename.texi (rename): Improve
35031         documentation.
35032
35033         stdio: sort witness names
35034         * modules/stdio (Makefile.am): Sort replacements.
35035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35036         * lib/stdio.in.h: Likewise.
35037
35038         getcwd: minor cleanups
35039         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35040         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35041
35042         openat: provide more convenience names
35043         * modules/faccessat (configure.ac): Add C witness.
35044         * lib/unistd.in.h (readlinkat): Fix typo.
35045         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35046         convenience wrappers.
35047         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35048         wrappers in syntax checks.
35049
35050 2009-09-06  Eric Blake  <ebb9@byu.net>
35051
35052         doc: fix comments in recent patches
35053         * lib/faccessat.c: Mention correct function.
35054         * lib/fchmodat.c: Likewise.
35055         * lib/fchownat.c: Likewise.
35056         * lib/symlinkat.c: Likewise.
35057         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35058         constants.
35059
35060         faccessat, symlinkat: continue cleanup of previous patch
35061         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35062         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35063         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35065         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35066         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35067         set.
35068
35069 2009-09-06  Bruno Haible  <bruno@clisp.org>
35070
35071         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35072         (fstatat): Declare if GNULIB_FSTATAT is set.
35073         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35074         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35075         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35076         * modules/fcntl-h (Files): Remove m4/openat.m4.
35077         * modules/sys_stat (Files): Remove m4/openat.m4.
35078         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35079         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35080         * modules/unistd (Files): Remove m4/openat.m4.
35081         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35082         GNULIB_OPENAT.
35083         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35084         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35085         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35086         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35087         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35088         gl_OPENAT_DEFAULTS.
35089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35090         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35091         Don't require gl_OPENAT_DEFAULTS.
35092         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35093         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35094         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35095         (gl_OPENAT_DEFAULTS): Remove macro.
35096
35097 2009-09-06  Bruno Haible  <bruno@clisp.org>
35098
35099         * modules/openat (configure.ac): Remove unneeded witness.
35100
35101 2009-09-06  Bruno Haible  <bruno@clisp.org>
35102
35103         Set errno to ENOSYS when a function is entirely unsupported.
35104         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35105         EOPNOTSUPP.
35106         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35107         * modules/chown (Depends-on): Remove errno.
35108
35109 2009-09-06  Bruno Haible  <bruno@clisp.org>
35110
35111         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35112
35113 2009-09-06  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35116
35117 2009-09-06  Ben Pfaff  <blp@gnu.org>
35118             Bruno Haible  <bruno@clisp.org>
35119
35120         Work around a glibc bug in strtok_r.
35121         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35122         Undefine if UNDEFINE_STRTOK_R is set.
35123         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35125         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35127         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35128         UNDEFINE_STRTOK_R.
35129         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35130
35131 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35132
35133         exclude: minor fix
35134         * lib/exclude.c: Include wctype.h
35135
35136 2009-09-06  Akim Demaille  <demaille@gostai.com>
35137
35138         bootstrap: improve error message
35139         * build-aux/bootstrap (find_tool): Upon failure, report the list
35140         of candidates.
35141         Honor the initial value of the envvar.
35142
35143 2009-09-05  Eric Blake  <ebb9@byu.net>
35144
35145         symlinkat: new module
35146         * modules/symlinkat: New file.
35147         * lib/symlinkat.c: Likewise.
35148         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35150         * modules/unistd (Makefile.am): Use them.
35151         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35152         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35153         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35154         * MODULES.html.sh (File system functions): Mention module.
35155         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35156         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35157         * modules/symlinkat-tests: New test.
35158         * tests/test-symlinkat.c: Likewise.
35159
35160         test-openat-safer: add more checks
35161         * tests/test-openat-safer.c (main): Check more code paths.
35162
35163 2009-09-05  Jim Meyering  <meyering@redhat.com>
35164
35165         syntax-check: detect unnecessary inclusion of openat.h
35166         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35167
35168 2009-09-05  Bruno Haible  <bruno@clisp.org>
35169
35170         Support towlower, towupper.
35171         * doc/posix-functions/towlower.texi: Mention module wctype.
35172         * doc/posix-functions/towupper.texi: Likewise.
35173         * lib/wctype.in.h (towlower, towupper): New functions.
35174         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35175         (ASSERT): New macro.
35176         (e): New variable.
35177         (main): Test also towlower, towupper. Test WEOF argument.
35178         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35179
35180 2009-09-05  Bruno Haible  <bruno@clisp.org>
35181
35182         Fix conversion behaviour when the input is invalid.
35183         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35184         mark occurring in first pass of indirect conversion.
35185         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35186         input.
35187         Found by clang's static analyzer.
35188
35189 2009-09-05  Bruno Haible  <bruno@clisp.org>
35190
35191         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35192         where direct conversion is possible.
35193
35194 2009-09-04  Eric Blake  <ebb9@byu.net>
35195
35196         openat: fail with ENOENT on empty name
35197         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35198         buffer.
35199
35200         link-follow: fix logic bug in prior patch
35201         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35202         reversed sense of yes and no in prior patch.  Avoid confusing
35203         compilation failure with desired semantics.
35204
35205         link-follow: accomodate mingw and cross-compilation
35206         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35207         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35208         cross-compilation results to -1, to make linkat easier to
35209         implement when cross-compiling.  Trivially support mingw.
35210         * modules/link-follow (configure.ac): Call new name.
35211         * NEWS: Mention this.
35212
35213 2009-09-03  Eric Blake  <ebb9@byu.net>
35214
35215         faccessat: compile replacement
35216         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35217         needed.
35218
35219         fts: fix compilation error
35220         * lib/fts.c (includes): Re-add "openat.h", for
35221         openat_needs_fchdir.
35222
35223         faccessat: new module
35224         * modules/faccessat: New file.
35225         * lib/faccessat.c: Likewise.
35226         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35228         * modules/unistd (Makefile.am): Use it.
35229         * lib/unistd.in.h (faccessat): Declare it.
35230         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35231         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35232         * MODULES.html.sh (File system functions): Mention it.
35233         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35234         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35235
35236         euidaccess: prefer POSIX over non-standard implementation
35237         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35238         * lib/euidaccess.c (euidaccess): Use it if available.
35239
35240         openat: make template easier to use
35241         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35242         AT_FUNC_F2 to be undefined.
35243         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35244         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35245         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35246         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35247         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35248         Likewise.
35249         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35250         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35251         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35252         Likewise.
35253
35254         openat: declare in POSIX headers
35255         * NEWS: Mention this.
35256         * modules/openat (configure.ac): Declare witnesses.
35257         (Depends-on): Add fcntl-h, sys_stat, unistd.
35258         (Include): Mention correct headers.
35259         * modules/fcntl-h (Depends-on): Add link-warning.
35260         (Files): Add openat.m4.
35261         (Makefile.am): Substitute witnesses.
35262         * modules/sys_stat (Files, Makefile.am): Likewise.
35263         * modules/unistd (Files, Makefile.am): Likewise.
35264         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35265         (gl_OPENAT_DEFAULTS): New macro.
35266         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35268         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35269         (SYS_STAT_H): Remove unused variable.
35270         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35271         * lib/fcntl--.h (includes): Remove unneeded header.
35272         * lib/openat-safer.c (includes): Likewise.
35273         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35274         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35275         appropriate headers.
35276         (__OPENAT_PREFIX): Delete.
35277         * lib/fcntl.in.h (openat): Provide declaration.
35278         (AT_FDCWD): Fix Solaris bug.
35279         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35280         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35281         * lib/fchmodat.c (includes):  Adjust to find declaration.
35282         * lib/fchownat.c (includes): Likewise.
35283         * lib/mkdirat.c (includes): Likewise.
35284         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35285         still visible.
35286
35287 2009-09-02  Eric Blake  <ebb9@byu.net>
35288
35289         errno: use consistently
35290         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35291         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35292         * lib/canonicalize.c (ELOOP): Likewise.
35293         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35294         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35295         * lib/lchown.c (EOPNOTSUPP): Likewise.
35296         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35297         * lib/savewd.c (ESTALE): Likewise.
35298         * lib/settime.c (ENOSYS): Likewise.
35299         * lib/utimens.c (ENOSYS): Likewise.
35300         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35301         * lib/chdir-safer.c (ELOOP): Likewise.
35302         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35303         * modules/c-stack (Depends-on): Add errno.
35304         * modules/canonicalize (Depends-on): Likewise.
35305         * modules/chdir-safer (Depends-on): Likewise.
35306         * modules/fdopendir (Depends-on): Likewise.
35307         * modules/inet_ntop (Depends-on): Likewise.
35308         * modules/inet_pton (Depends-on): Likewise.
35309         * modules/lchown (Depends-on): Likewise.
35310         * modules/openat (Depends-on): Likewise.
35311         * modules/savewd (Depends-on): Likewise.
35312         * modules/settime (Depends-on): Likewise.
35313         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35314
35315         fts: avoid leaking fds
35316         * modules/fts (Depends-on): Add cloexec.
35317         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35318         flag.
35319
35320         fts: make directory fds more robust
35321         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35322         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35323
35324         backupfile, chdir-long, fts, savedir: make safer
35325         * lib/backupfile.c (includes): Use "dirent--.h", since
35326         numbered_backup can write to stderr during readdir.
35327         * lib/savedir.c (includes): Likewise.
35328         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35329         emulation can write to stderr on failure.
35330         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35331         * lib/getcwd.c: Document why opendir_safer is unused.
35332         * lib/glob.c: Likewise.
35333         * lib/scandir.c: Likewise.
35334         * lib/openat-proc.c: Likewise, for open_safer.
35335         * modules/backupfile (Depends-on): Add dirent-safer.
35336         * modules/savedir (Depends-on): Likewise.
35337         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35338         * modules/chdir-long (Depends-on): Add openat-safer.
35339
35340         openat-safer: new module
35341         * modules/openat-safer: New file.
35342         * lib/openat-safer.c: Likewise.
35343         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35344         * lib/fcntl-safer.h (openat_safer): Declare.
35345         * lib/fcntl--.h (openat): Override.
35346         * MODULES.html.sh (File descriptor based I/O): Mention it.
35347         * lib/openat.h: Add double-inclusion guards.
35348         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35349         "fcntl--.h", so we can implement openat.
35350         * modules/openat-safer-tests: New test.
35351         * tests/test-openat-safer.c: New file.
35352
35353         dirent-safer: new module
35354         * modules/dirent-safer: New file.
35355         * lib/dirent--.h: Likewise.
35356         * lib/dirent-safer.h: Likewise.
35357         * lib/opendir-safer.c: Likewise.
35358         * m4/dirent-safer.m4: Likewise.
35359         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35360         * modules/dirent-safer-tests: New test.
35361         * tests/test-dirent-safer.c: New file.
35362         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35363
35364         fdopendir: optimize on mingw
35365         * lib/unistd.in.h (_gl_directory_name): New prototype.
35366         * lib/fchdir.c (_gl_directory_name): Implement it.
35367         (fchdir): Use it to simplify implementation.
35368         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35369         fchdir, when available, to avoid calling [f]chdir().
35370
35371         fdopendir: split into its own module
35372         * lib/openat.c (fdopendir): Move...
35373         * lib/fdopendir.c: ...into new file.
35374         * modules/fdopendir: New module.
35375         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35376         * modules/openat (Depends-on): Add fdopendir.
35377         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35378         fdopendir here.
35379         * modules/savedir (Depends-on): Only need fdopendir, not full
35380         openat.
35381         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35382         * lib/openat.h (fdopendir): Drop prototype.
35383         * lib/dirent.in.h (fdopendir): Provide prototype.
35384         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35385         * modules/dirent (Makefile.am): Substitute them.
35386         * MODULES.html.sh (File system functions): Mention it.
35387         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35388         * modules/fdopendir-tests: New file.
35389         * tests/test-fdopendir.c: Likewise.
35390
35391         fchdir: use more consistent macro convention
35392         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35393         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35394         REPLACE_FCHDIR, rather than relying on config.h macros.
35395         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35396         inside a single make-time REPLACE_FCHDIR block, rather than using
35397         the config.h FCHDIR_REPLACEMENT.
35398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35399         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35400         Manage fstat replacement.
35401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35402         REPLACE_FCHDIR.
35403         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35404         (Makefile.am): Substitute REPLACE_FCHDIR.
35405         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35406         FCHDIR_REPLACEMENT.
35407         * lib/dup-safer.c (dup_safer): Likewise.
35408         * lib/dup2.c (rpl_dup2): Likewise.
35409         * lib/dup3.c (rpl_dup3): Likewise.
35410         * lib/open.c (rpl_open): Likewise.
35411
35412         fchdir: simplify error handling, and support dup3
35413         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35414         stdbool, malloc-posix, realloc-posix.
35415         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35416         (ensure_dirs_slot): Return false on allocation failure.
35417         (rpl_dup2): Delete.
35418         (_gl_register_dup): New function.
35419         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35420         (_gl_register_fd): Close fd on allocation failure.
35421         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35422         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35423         prototype.
35424         (rpl_dup2_fchdir): Delete prototype.
35425         * lib/open.c (open): Update caller.
35426         * lib/dup2.c (dup2): Track fchdir metadata.
35427         * lib/dup3.c (dup3): Likewise.
35428         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35430
35431 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35432
35433         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35434         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35435         don't pass arguments to AC_OUTPUT.
35436
35437 2009-09-02  Bruno Haible  <bruno@clisp.org>
35438
35439         * modules/mkdtemp (License): Relicense under LGPLv2+.
35440         Reported by Paolo Bonzini.
35441
35442 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35443
35444         Replace uses of obsolete autoconf macros in Jim's modules.
35445         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35446         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35447         can evoke a warning from autoconf when run with -Wobsolete
35448         enabled.  They were declared obsolete for good reasons (see
35449         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35450         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35451         should not continue using the deprecated macros.
35452         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35453         obsolete Autoconf macros with modern counterparts.
35454         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35455         * m4/dos.m4 (gl_AC_DOS): Likewise.
35456         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35457         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35458         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35459         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35460         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35461         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35462         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35463         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35464         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35465         Likewise.
35466         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35467         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35468         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35469         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35470         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35471         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35472
35473 2009-09-01  Eric Blake  <ebb9@byu.net>
35474
35475         fchdir: fix off-by-one bug in previous patch
35476         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35477         (_gl_unregister_fd): Delete useless if.
35478
35479 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35480
35481         maint.mk: sort the list of syntax-check rules
35482         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35483         easier to get a sense of progress when the rules are run sequentially
35484         and take a long time.
35485
35486 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35487
35488         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35489         * modules/netinet_in: Likewise.
35490         * modules/sys_file: Likewise.
35491         * modules/sys_ioctl: Likewise.
35492         * modules/sys_select: Likewise.
35493         * modules/sys_socket: Likewise.
35494         * modules/sys_stat: Likewise.
35495         * modules/sys_time: Likewise.
35496         * modules/sys_times: Likewise.
35497         * modules/sys_utsname: Likewise.
35498         * modules/sys_wait: Likewise.
35499
35500 2009-09-01  Jim Meyering  <meyering@redhat.com>
35501
35502         fts: help ensure that return values are not ignored
35503         * lib/fts_.h (__GNUC_PREREQ): Define.
35504         (__attribute_warn_unused_result__): Define.
35505         (fts_children, fts_close, fts_open, fts_read): Declare with
35506         __attribute_warn_unused_result__.
35507
35508         fts: fts_close now fails also when closing a dir file descriptor fails
35509         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35510         and propagate to caller, along with errno.
35511
35512         announce-gen: correct formatting in --help output
35513         * build-aux/announce-gen (usage): Move the one-line description in
35514         --help output "up", to where it belongs, just after Usage:.
35515
35516 2009-08-31  Eric Blake  <ebb9@byu.net>
35517
35518         fchdir: port to mingw
35519         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35520         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35521         opened, then use a substitute.
35522         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35523         replacement.
35524         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35525         (_gl_register_fd): No need to check stat if open already filters
35526         all directories.
35527         (fchdir): Fix error condition to match POSIX.
35528         * modules/fchdir (Depends-on): Add sys_stat.
35529         * doc/posix-functions/open.texi (open): Document the limitation.
35530         * modules/fchdir-tests: New file.
35531         * tests/test-fchdir.c: Likewise.
35532
35533         canonicalize: allow cross-testing from cygwin to mingw
35534         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35535         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35536         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35537         Likewise.
35538         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35539         target does not support symlinks.
35540         * tests/test-canonicalize-lgpl.sh: Likewise.
35541
35542         chown: avoid compilation warning on mingw
35543         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35544         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35545         mingw.
35546         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35547         * modules/chown (Depends-on): Add errno.
35548
35549 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35550
35551         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35552         command.
35553
35554 2009-08-31  Jim Meyering  <meyering@redhat.com>
35555
35556         canonicalize: remove useless initialization
35557         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35558         initialization of local, "end".
35559
35560 2009-08-30  Bruno Haible  <bruno@clisp.org>
35561
35562         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35563         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35564         ENOSYS.
35565
35566 2009-08-30  Bruno Haible  <bruno@clisp.org>
35567
35568         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35569         /usr/xpg4/bin/tr when it exists.
35570         * tests/test-pipe-filter-gi1.sh: Likewise.
35571
35572 2009-08-30  Bruno Haible  <bruno@clisp.org>
35573
35574         Work around deficient /usr/bin/id program on Solaris.
35575         * tests/test-file-has-acl.sh (ID): New variable.
35576         * tests/test-set-mode-acl.sh (ID): Likewise.
35577         * tests/test-copy-acl.sh (ID): Likewise.
35578         * tests/test-copy-file.sh (ID): Likewise.
35579
35580 2009-08-30  Bruno Haible  <bruno@clisp.org>
35581
35582         New module 'xstriconveh'.
35583         * lib/xstriconveh.h: New file.
35584         * lib/xstriconveh.c: New file.
35585         * modules/xstriconveh: New file.
35586
35587 2009-08-30  Bruno Haible  <bruno@clisp.org>
35588
35589         Make it easier to use mem_cd_iconveh.
35590         * lib/striconveh.h (iconveh_t): New type.
35591         (iconveh_open, iconveh_close): New declarations.
35592         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35593         with a single 'const iconveh_t *' argument.
35594         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35595         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35596         with a single 'const iconveh_t *' argument.
35597         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35598         * tests/test-striconveh.c (main): Update.
35599         * NEWS: Mention the change.
35600
35601 2009-08-30  Bruno Haible  <bruno@clisp.org>
35602
35603         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35604         problem.
35605
35606 2009-08-30  Bruno Haible  <bruno@clisp.org>
35607
35608         Work around iconv_open problem on Solaris.
35609         * lib/iconv_open-solaris.gperf: New file.
35610         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35611         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35612         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35613         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35614         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35615         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35616
35617 2009-08-29  Jim Meyering  <meyering@redhat.com>
35618
35619         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35620         * top/maint.mk (cvs-check): Remove target; it was just an alias
35621         to the better-named vc-diff-check.
35622         (maintainer-distcheck): Remove rule.  It was used only from
35623         the (alpha/beta/major) target, and all of its commands but one
35624         were coreutils-specific.
35625         (vc-dist): Remove rule.
35626         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35627         Run vc-diff-check, not vc-dist.
35628         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35629
35630 2009-08-27  Bruno Haible  <bruno@clisp.org>
35631
35632         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35633         of 0.
35634
35635 2009-08-27  Bruno Haible  <bruno@clisp.org>
35636
35637         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35638         compilers.
35639         * doc/func.texi: Document the SunPRO C bug.
35640
35641 2009-08-27  Bruno Haible  <bruno@clisp.org>
35642
35643         Fix link error on Solaris.
35644         * tests/test-parse-duration.c (xstrdup): Remove function.
35645
35646 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35647
35648         ignore-value: handle pointer types, too
35649         * lib/ignore-value.h (__attribute__): Remove definition.
35650         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35651         of a more concise and more-often effective "(void) i" statement.
35652         (ignore_ptr): New function to suppress warnings from functions that
35653         return pointers, and to make it explicit that one function doesn't
35654         handle all cases.
35655
35656 2009-08-25  Bruno Haible  <bruno@clisp.org>
35657
35658         dup2: work around a Linux bug.
35659         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35660         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35661         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35662         Reported by Simon Josefsson.
35663
35664 2009-08-25  Jim Meyering  <meyering@redhat.com>
35665
35666         libguestfs uses gnulib
35667         * users.txt: Add libguestfs.
35668
35669 2009-08-24  Eric Blake  <ebb9@byu.net>
35670
35671         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35672         * lib/pipe2.c (includes): Add binary-io.h.
35673         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35674
35675 2009-08-24  Bruno Haible  <bruno@clisp.org>
35676
35677         Tolerate declared but missing accept4 syscall.
35678         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35679         available.
35680         * lib/sys_socket.in.h (accept4): If the function is already present,
35681         override it.
35682         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35683         * modules/accept4 (Makefile.am): Compile accept4.c always.
35684         Reported by Paolo Bonzini and Eric Blake.
35685
35686 2009-08-23  Bruno Haible  <bruno@clisp.org>
35687
35688         New module 'accept4'.
35689         * lib/sys_socket.in.h (accept4): New declaration.
35690         * lib/accept4.c: New file.
35691         * m4/accept4.m4: New file.
35692         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35693         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35694         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35695         HAVE_ACCEPT4.
35696         * modules/accept4: New file.
35697         * doc/glibc-functions/accept4.texi: Mention the new module.
35698
35699 2009-08-24  Jim Meyering  <meyering@redhat.com>
35700
35701         progname: also set global program_invocation_name, when possible
35702         Before this change, a libtool-enabled program that calls glibc's
35703         error function would report the program name as
35704         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35705         * modules/progname (configure.ac): Check for a declaration of
35706         program_invocation_name.
35707         * lib/progname.c:  Include <errno.h>.
35708         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35709         Set program_invocation_name.
35710
35711 2009-08-23  Bruno Haible  <bruno@clisp.org>
35712
35713         * lib/dup3.c: Include <string.h>.
35714
35715 2009-08-23  Bruno Haible  <bruno@clisp.org>
35716
35717         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35718         * lib/pipe2.c (pipe2): Likewise.
35719         Suggested by Eric Blake.
35720
35721 2009-08-23  Bruno Haible  <bruno@clisp.org>
35722
35723         Tolerate declared but missing dup3 syscall.
35724         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35725         * lib/unistd.in.h (dup3): If the function is already present,
35726         override it.
35727         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35728         * modules/dup3 (Makefile.am): Compile dup3.c always.
35729         Reported by Paolo Bonzini.
35730
35731 2009-08-23  Bruno Haible  <bruno@clisp.org>
35732
35733         Tolerate declared but missing pipe2 syscall.
35734         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35735         available.
35736         * lib/unistd.in.h (pipe2): If the function is already present,
35737         override it.
35738         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35739         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35740         Reported by Paolo Bonzini.
35741
35742 2009-08-23  Bruno Haible  <bruno@clisp.org>
35743
35744         * lib/pipe2.c (pipe2): Move #ifs inside function.
35745
35746 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35747
35748         quotearg: document limitations of quote_these_too
35749         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35750         those limitations are created.
35751         * lib/quotearg.h (set_char_quoting): Document that digits and
35752         letters that are special after backslash are not permitted.
35753         (quotearg_char): Cross-reference set_char_quoting documentation.
35754
35755 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35756
35757         quotearg: implement custom_quoting_style
35758         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35759         right_quote fields.
35760         (set_custom_quoting): New public function.
35761         (quotearg_buffer_restyled): Add left_quote and right_quote
35762         arguments, handle them very much like locale quoting, and update
35763         all uses.
35764         (quotearg_n_custom): New public function.
35765         (quotearg_n_custom_mem): New public function.
35766         (quotearg_custom): New public function.
35767         (quotearg_custom_mem): New public function.
35768         * lib/quotearg.h: Prototype and document new public functions.
35769         (enum quoting_style): For escape_quoting_style and
35770         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35771         ignored even though they're otherwise like c_quoting_style.
35772         Add custom_quoting_style member and document with comparison to
35773         clocale_quoting_style.
35774         * tests/test-quotearg.c (custom_quotes): New array.
35775         (custom_results): New array.
35776         (main): Extend to test custom quoting.
35777
35778 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35779
35780         quotearg: fix right quote escaping when it's in quote_these_too
35781         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35782         quote, be sure to prepend only one backslash.
35783         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35784         (main): Test it.
35785
35786 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35787
35788         quotearg-tests: test escaping of embedded locale quotes
35789         * tests/test-quotearg.c (struct result_strings): Add member for
35790         new input.
35791         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35792         (inputs): Add new input.
35793         (results_g): Add expected results.
35794         (flag_results): Likewise.
35795         (locale_results): Likewise.
35796         (compare_strings): Check those.
35797
35798 2009-08-23  Bruno Haible  <bruno@clisp.org>
35799
35800         Tests for module 'dup3'.
35801         * modules/dup3-tests: New file.
35802         * tests/test-dup3.c: New file.
35803
35804         New module 'dup3'.
35805         * lib/unistd.in.h (dup3): New declaration.
35806         * lib/dup3.c: New file.
35807         * m4/dup3.m4: New file.
35808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35809         HAVE_DUP3.
35810         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35811         * modules/dup3: New file.
35812         * doc/glibc-functions/dup3.texi: Mention the new module.
35813
35814 2009-08-23  Bruno Haible  <bruno@clisp.org>
35815
35816         Tweak the dup2 test.
35817         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35818         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35819         the test file is still empty. Fix argument order of lseek.
35820
35821 2009-08-23  Bruno Haible  <bruno@clisp.org>
35822
35823         Avoid test link errors when the modules getopt-gnu, gettext are used.
35824         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35826
35827 2009-08-23  Bruno Haible  <bruno@clisp.org>
35828
35829         Fix getdtablesize() on mingw.
35830         * lib/getdtablesize.c (getdtablesize): Implement differently.
35831         * lib/unistd.in.h (getdtablesize): Improve comment.
35832
35833 2009-08-23  Bruno Haible  <bruno@clisp.org>
35834
35835         New module 'mkostemp'.
35836         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35837         * lib/stdlib.in.h (mksotemp): New declaration.
35838         * lib/mkostemp.c: New file, from glibc with modifications.
35839         * lib/tempname.h (GT_FILE): Remove outdated comment.
35840         (gen_tempname): Add flags argument.
35841         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35842         (__GT_FILE): Map to 1.
35843         (small_open, large_open): Remove macros.
35844         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35845         * lib/mkstemp.c (mkstemp): Update.
35846         * lib/mkdtemp.c (mkdtemp): Likewise.
35847         * m4/mkostemp.m4: New file.
35848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35849         HAVE_MKOSTEMP.
35850         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35851         HAVE_MKOSTEMP.
35852         * modules/mkostemp: New file, based on modules/mkstemp.
35853         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35854         * NEWS: Mention the change.
35855
35856 2009-08-23  Bruno Haible  <bruno@clisp.org>
35857
35858         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35859         Reported by Eric Blake.
35860
35861 2009-08-23  Bruno Haible  <bruno@clisp.org>
35862
35863         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35864         Reported by Eric Blake.
35865
35866 2009-08-23  Bruno Haible  <bruno@clisp.org>
35867
35868         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35869         * modules/pipe2 (Depends-on): Likewise.
35870
35871 2009-08-23  Eric Blake  <ebb9@byu.net>
35872
35873         fcntl-h: add O_TTY_INIT support
35874         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35875         * tests/test-fcntl-h.c (o): Test it.
35876         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35877
35878         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35879         * modules/fcntl: Move <fcntl.h> header replacement...
35880         * modules/fcntl-h: ...to new name, so as not to collide with
35881         like-named function.
35882         * tests/test-fcntl.c: Rename...
35883         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35884         * modules/fcntl-tests: Rename...
35885         * modules/fcntl-h-tests: ...to this.  Update test file name.
35886         * modules/chdir-long (Depends-on): Update clients.
35887         * modules/chdir-safer (Depends-on): Likewise.
35888         * modules/fcntl-safer (Depends-on): Likewise.
35889         * modules/fts (Depends-on): Likewise.
35890         * modules/mkancesdirs (Depends-on): Likewise.
35891         * modules/mkdir-p (Depends-on): Likewise.
35892         * modules/open (Depends-on): Likewise.
35893         * modules/savewd (Depends-on): Likewise.
35894         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35895         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35896
35897 2009-08-22  Bruno Haible  <bruno@clisp.org>
35898
35899         * modules/binary-io (License): Relicense under LGPL.
35900         * modules/pipe2 (License): Likewise.
35901
35902 2009-08-22  Bruno Haible  <bruno@clisp.org>
35903
35904         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35905         return value.
35906         * lib/pipe-filter-gi.c (filter_init): Likewise.
35907         Reported by Eric Blake.
35908
35909 2009-08-22  Bruno Haible  <bruno@clisp.org>
35910
35911         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35912         * modules/pipe (Depends-on): Add pipe2.
35913
35914 2009-08-22  Bruno Haible  <bruno@clisp.org>
35915
35916         Tests for module 'pipe2'.
35917         * modules/pipe2-tests: New file.
35918         * tests/test-pipe2.c: New file.
35919
35920         New module 'pipe2'.
35921         * lib/unistd.in.h (pipe2): New declaration.
35922         * lib/pipe2.c: New file.
35923         * m4/pipe2.m4: New file.
35924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35925         HAVE_PIPE2.
35926         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35927         * modules/pipe2: New file.
35928         * doc/glibc-functions/pipe2.texi: Mention the new module.
35929
35930 2009-08-22  Bruno Haible  <bruno@clisp.org>
35931
35932         Reference some new glibc functions.
35933         * doc/glibc-functions/accept4.texi: New file.
35934         * doc/glibc-functions/dup3.texi: New file.
35935         * doc/glibc-functions/mkostemp.texi: New file.
35936         * doc/glibc-functions/pipe2.texi: New file.
35937         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35938         (Glibc sys/socket.h): Refer to accept4.
35939         (Glibc unistd.h): Refer to dup3, pipe2.
35940         Reported by Eric Blake.
35941
35942 2009-08-22  Jim Meyering  <meyering@redhat.com>
35943             Bruno Haible  <bruno@clisp.org>
35944
35945         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35946         This makes it so packages using automake-1.11's silent-rules option
35947         can print e.g., a single "GEN    configmake.h" line, rather than
35948         the 30+ statements that perform the job.  If you want to see the
35949         actual commands, you can still run "make V=1".
35950         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35951         so that make output is abbreviated when those variables are defined
35952         appropriately.
35953         * modules/argz: Likewise.
35954         * modules/arpa_inet: Likewise.
35955         * modules/byteswap: Likewise.
35956         * modules/configmake: Likewise.
35957         * modules/dirent: Likewise.
35958         * modules/errno: Likewise.
35959         * modules/fcntl: Likewise.
35960         * modules/float: Likewise.
35961         * modules/fnmatch: Likewise.
35962         * modules/getopt-posix: Likewise.
35963         * modules/glob: Likewise.
35964         * modules/iconv_open: Likewise.
35965         * modules/inttypes: Likewise.
35966         * modules/localcharset: Likewise.
35967         * modules/locale: Likewise.
35968         * modules/math: Likewise.
35969         * modules/netdb: Likewise.
35970         * modules/netinet_in: Likewise.
35971         * modules/poll: Likewise.
35972         * modules/posix_spawnp-tests: Likewise.
35973         * modules/sched: Likewise.
35974         * modules/search: Likewise.
35975         * modules/selinux-h: Likewise.
35976         * modules/signal: Likewise.
35977         * modules/spawn: Likewise.
35978         * modules/stdarg: Likewise.
35979         * modules/stdbool: Likewise.
35980         * modules/stddef: Likewise.
35981         * modules/stdint: Likewise.
35982         * modules/stdio: Likewise.
35983         * modules/stdlib: Likewise.
35984         * modules/string: Likewise.
35985         * modules/strings: Likewise.
35986         * modules/sys_file: Likewise.
35987         * modules/sys_ioctl: Likewise.
35988         * modules/sys_select: Likewise.
35989         * modules/sys_socket: Likewise.
35990         * modules/sys_stat: Likewise.
35991         * modules/sys_time: Likewise.
35992         * modules/sys_times: Likewise.
35993         * modules/sys_utsname: Likewise.
35994         * modules/sys_wait: Likewise.
35995         * modules/sysexits: Likewise.
35996         * modules/time: Likewise.
35997         * modules/unistd: Likewise.
35998         * modules/wchar: Likewise.
35999         * modules/wctype: Likewise.
36000
36001 2009-08-22  Jim Meyering  <meyering@redhat.com>
36002
36003         announce-gen: detect write failure
36004         * build-aux/announce-gen: Add Coda at end.
36005         Remove equivalent-but-more-verbose block at top.
36006
36007 2009-08-19  Akim Demaille  <demaille@gostai.com>
36008
36009         bootstrap: --help to stdout.
36010         * bootstrap (usage): Don't send --help to stderr.
36011         Use a here doc instead of a long string.
36012
36013 2009-08-21  Eric Blake  <ebb9@byu.net>
36014
36015         test-popen-safer: split from test-popen
36016         * tests/test-popen.c (main): Move...
36017         * tests/test-popen.h: ...into new file.
36018         * tests/test-popen-safer2.c: New file.
36019         * modules/popen-tests (Files): Add test-popen.h.
36020         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36021         Suggested by Bruno Haible.
36022
36023         test-fcntl-safer: split from test-open
36024         * tests/test-open.c (main): Move...
36025         * tests/test-open.h: ...into new file.
36026         * tests/test-fcntl-safer.c: New file.
36027         * modules/open-tests (Files): Add test-open.h.
36028         * modules/fcntl-safer-tests: New file.
36029         Suggested by Bruno Haible.
36030
36031         test-fopen-safer: split from test-fopen
36032         * tests/test-fopen.c (main): Move...
36033         * tests/test-fopen.h: ...into new file.
36034         * tests/test-fopen-safer.c: New file.
36035         * modules/fopen-tests (Files): Add test-fopen.h.
36036         * modules/fopen-safer-tests: New file.
36037         Suggested by Bruno Haible.
36038
36039 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36040
36041         popen-safer: test O_CLOEXEC at run-time.
36042         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36043
36044 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36045
36046         fcntl: move more flags to the header
36047         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36048         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36049         * lib/fcntl.in.h: Do both things here.
36050
36051 2009-08-21  Jim Meyering  <meyering@redhat.com>
36052
36053         consistently remove $@-t before redirecting to it
36054         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36055         * modules/alloca-opt: Likewise.
36056         * modules/byteswap: Likewise.
36057         * modules/fnmatch: Likewise.
36058         * modules/getopt-posix: Likewise.
36059         * modules/glob: Likewise.
36060         * modules/poll: Likewise.
36061         * modules/posix_spawnp-tests: Likewise.
36062         * modules/sys_socket: Likewise.
36063         * modules/sysexits: Likewise.
36064
36065 2009-08-21  Eric Blake  <ebb9@byu.net>
36066
36067         popen: simplify access to original popen
36068         * lib/popen.c (rpl_popen): No need to worry about popen being a
36069         macro.
36070         Reported by Bruno Haible.
36071
36072 2009-08-20  Eric Blake  <ebb9@byu.net>
36073
36074         build: avoid some compiler warnings
36075         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36076         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36077         type.
36078         (new_exclude_segment, excluded_file_pattern_p)
36079         (excluded_file_name_p): Reduce scope.
36080         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36081         old-style declaration.
36082
36083 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36084
36085         * tests/test-exclude1.sh: Handle Windows EOL.
36086         * tests/test-exclude2.sh: Likewise.
36087         * tests/test-exclude3.sh: Likewise.
36088         * tests/test-exclude4.sh: Likewise.
36089         * tests/test-exclude5.sh: Likewise.
36090         * tests/test-exclude6.sh: Likewise.
36091         * tests/test-exclude7.sh: Likewise.
36092
36093 2009-08-19  Akim Demaille  <demaille@gostai.com>
36094
36095         bootstrap: find sha1sum when named gsha1sum.
36096         * bootstrap (find_tool): New.
36097         ($SHA1SUM): New.
36098         Use it.
36099
36100 2009-08-20  Jim Meyering  <meyering@redhat.com>
36101
36102         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36103         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36104         expression that converts "." in a file name to "\." in the resulting
36105         regexp.  Start with a dummy statement, so that prior shell variable
36106         definitions are expanded portably.  Reported by Simon Josefsson.
36107
36108 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36109
36110         Fix polling for writeability of a screen buffer.
36111         * lib/poll.c: Distinguish input and screen buffers for the
36112         Win32 implementation.
36113         * lib/select.c: Likewise.
36114
36115 2009-08-19  Eric Blake  <ebb9@byu.net>
36116
36117         popen-safer: prevent popen from clobbering std descriptors
36118         * modules/popen-safer: New file.
36119         * lib/popen-safer.c: Likewise.
36120         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36121         * lib/stdio--.h (popen): Provide override.
36122         * lib/stdio-safer.h (popen_safer): Provide declaration.
36123         * tests/test-popen.c (includes): Partially test this.
36124         * modules/popen-safer-tests: New file, for more tests.
36125         * tests/test-popen-safer.c: Likewise.
36126         * MODULES.html.sh (file stream based Input/Output): Mention it.
36127
36128         tests: test some of the *-safer modules
36129         * modules/fopen-safer (Depends-on): Add fopen.
36130         * modules/fcntl-safer (Depends-on): Add fcntl.
36131         * modules/stdlib-safer (Depends-on): Add stdlib.
36132         (configure.ac): Set indicator.
36133         * modules/unistd-safer (configure.ac): Likewise.
36134         * modules/tmpfile-safer (configure.ac): Likewise.
36135         (Depends-on): Add tmpfile.
36136         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36137         active.
36138         * tests/test-fopen.c (includes): Test safer versions when they are
36139         in use.
36140         * tests/test-open.c (includes): Likewise.
36141
36142         popen: fix cygwin 1.5 bug when stdin closed
36143         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36144         * modules/popen: New file.
36145         * modules/popen-tests: Likewise.
36146         * tests/test-popen.c: Likewise.
36147         * m4/popen.m4: Likewise.
36148         * lib/popen.c: Likewise.
36149         * lib/stdio.in.h (popen): New declaration.
36150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36151         * modules/stdio (Makefile.am): Likewise.
36152         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36153
36154 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36155
36156         maint.mk: give full control over update-copyright exclusions
36157         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36158         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36159         (update-copyright): Don't force inclusion of top-level
36160         ChangeLog.  Don't force exclusion of all COPYING files, but make
36161         them the default exclusion instead.
36162
36163 2009-08-16  Bruno Haible  <bruno@clisp.org>
36164
36165         Fix test failures on Solaris 10.
36166         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36167         tests when Solaris iconv() is used.
36168         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36169         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36170         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36171         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36172         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36173
36174 2009-08-16  Bruno Haible  <bruno@clisp.org>
36175
36176         Fix test failures on Solaris 10.
36177         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36178         'tr' program and pass it as first argument.
36179         * tests/test-pipe-filter-gi1.sh: Likewise.
36180         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36181         program as first argument.
36182         * tests/test-pipe-filter-gi1.c (main): Likewise.
36183
36184 2009-08-16  Eric Blake  <ebb9@byu.net>
36185
36186         fpurge: fix previous commits
36187         * modules/fpurge (Makefile.am): Make replacement conditional,
36188         partially reverting 2007-04-29 change; missed in previous
36189         attempt.
36190         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36191         is missing.
36192
36193 2009-08-16  Bruno Haible  <bruno@clisp.org>
36194
36195         Clarify fpurge's effect on the file position.
36196         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36197         * tests/test-fpurge.c (main): Make a second pass for checking the file
36198         position.
36199
36200 2009-08-16  Bruno Haible  <bruno@clisp.org>
36201
36202         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36203         declaration of fpurge is missing.
36204         * tests/test-fpurge.c (main): Check that the file has not more contents
36205         than expected. Close the file before removing it.
36206
36207 2009-08-15  Eric Blake  <ebb9@byu.net>
36208
36209         fpurge: don't wrap working cygwin implementation
36210         * lib/fpurge.c (fpurge): Fix comment typo.
36211         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36212         1.7 to avoid replacement.
36213         * tests/test-fpurge.c (main): Enhance test.
36214
36215 2009-08-15  Eric Blake  <ebb9@byu.net>
36216         and Jim Meyering  <meyering@redhat.com>
36217
36218         test-update-copyright: skip if perl is insufficient
36219         * tests/test-update-copyright.sh: Failure to run maintainer tool
36220         should not cause testsuite failure on cygwin 1.5.
36221
36222 2009-08-14  Eric Blake  <ebb9@byu.net>
36223
36224         doc: mention more functions added in cygwin 1.7.0
36225         * doc/posix-headers/limits.texi (limits.h): Update for recent
36226         cygwin additions.
36227         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36228         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36229         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36230         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36231         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36232
36233 2009-08-14  Eric Blake  <ebb9@byu.net>
36234
36235         maint.mk: simplify update-copyright rule
36236         * top/maint.mk (update-copyright-local): Delete, and document how
36237         to do it in cfg.mk instead.
36238         (update-copyright-exclude-regexp): Delete, and document how to do
36239         it in .x-update-copyright instead.
36240         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36241         exclude ChangeLog.
36242
36243 2009-08-14  Bruno Haible  <bruno@clisp.org>
36244
36245         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36246
36247 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36248
36249         maint.mk: support update-copyright-env
36250         * top/maint.mk (update-copyright-env): Define place-holder.
36251         (update-copyright): Expand $(update-copyright-env) before
36252         invoking update-copyright.
36253
36254 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36255
36256         update-copyright: implement forced reformatting
36257         * build-aux/update-copyright: Implement and document
36258         UPDATE_COPYRIGHT_FORCE.
36259         * tests/test-update-copyright.sh: Test it.
36260
36261 2009-08-14  Eric Blake  <ebb9@byu.net>
36262         and Bruno Haible  <bruno@clisp.org>
36263
36264         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36265         * tests/test-locale.c: Revert previous patch related to NULL.
36266         * tests/test-stdio.c: Likewise.
36267         * tests/test-stdlib.c: Likewise.
36268         * tests/test-string.c: Likewise.
36269         * tests/test-unistd.c: Likewise.
36270         * modules/time-tests (Depends-on): Add verify.
36271         * modules/wchar-tests (Depends-on): Likewise.
36272         * tests/test-time.c: Test for NULL compliance.
36273         * tests/test-wchar.c: Likewise.
36274         * modules/locale (Depends-on): Add stddef.
36275         * modules/stdio (Depends-on): Likewise.
36276         * modules/stdlib (Depends-on): Likewise.
36277         * modules/string (Depends-on): Likewise.
36278         * modules/time (Depends-on): Likewise.
36279         * modules/unistd (Depends-on): Likewise.
36280         * modules/wchar (Depends-on): Likewise.
36281         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36282         * lib/stdlib.in.h (includes): Likewise.
36283         * lib/string.in.h (includes): Likewise.
36284         * lib/time.in.h (includes): Likewise.
36285         * lib/unistd.in.h (includes): Likewise.
36286         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36287         replaced.
36288         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36289         * m4/stddef_h.m4: New file.
36290         * modules/stddef: Likewise.
36291         * lib/stddef.in.h: Likewise.
36292         * modules/stddef-tests: Likewise.
36293         * tests/test-stddef.c: Likewise.
36294         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36295         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36296         * doc/posix-headers/locale.texi (locale.h): Likewise.
36297         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36298         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36299         * doc/posix-headers/string.texi (string.h): Likewise.
36300         * doc/posix-headers/time.texi (time.h): Likewise.
36301         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36302         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36303
36304 2009-08-14  Eric Blake  <ebb9@byu.net>
36305
36306         doc: improve git diff of texinfo files
36307         * .gitattributes: Add rule for *.texi files, with hint on how to
36308         use it.
36309         Copied from m4, and based on a report by Bruno Haible.
36310
36311 2009-08-14  Bruno Haible  <bruno@clisp.org>
36312
36313         Disable multithread support by default on Cygwin 1.5.x for real.
36314         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36315
36316 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36317
36318         update-copyright: much ado about intervals
36319         * build-aux/update-copyright: Implement and document
36320         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36321         of copyright year intervals.
36322         Also, document UPDATE_COPYRIGHT_YEAR.
36323         * tests/test-update-copyright.sh: Test it.
36324
36325         update-copyright: convert 2-digit to 4-digit years
36326         * build-aux/update-copyright: Implement and document.
36327         * tests/test-update-copyright.sh: Update.
36328
36329 2009-08-14  Jim Meyering  <meyering@redhat.com>
36330
36331         test-exclude: avoid coreutils "make check" failure
36332         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36333         just as in test-argmatch.c.
36334
36335 2009-08-13  Eric Blake  <ebb9@byu.net>
36336
36337         test-dup2: fix bad assumption
36338         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36339         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36340
36341         test-version-etc: fix CRLF portability issue
36342         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36343         recognize \r.
36344         * tests/test-argp-version-etc-1.sh: Likewise.
36345
36346         getopt: update client modules
36347         * modules/argp (Depends-on): Use getopt-gnu.
36348         * modules/git-merge-changelog (Depends-on): Likewise.
36349         * modules/long-options (Depends-on): Likewise.
36350         * modules/xstrtol (Depends-on): Likewise.
36351
36352 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36353
36354         * tests/test-version-etc.sh: Don't fail on different
36355         project/version.  Don't fail on CRLF differences.  Rewrite to use
36356         multiple -e instead of multiple sed forks, suggested by Eric Blake
36357         <ebb9@byu.net>.
36358         * tests/test-argp-version-etc-1.sh: Likewise.
36359
36360 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36361
36362         * tests/test-version-etc.sh: Don't fail on different
36363         project/version.
36364
36365 2009-08-12  Bruno Haible  <bruno@clisp.org>
36366
36367         Tests for modules 'getopt-posix', 'getopt-gnu'.
36368         * modules/getopt-posix-tests: New file.
36369         * tests/test-getopt.c: New file.
36370         * tests/test-getopt.h: New file.
36371         * tests/test-getopt_long.h: New file.
36372
36373         New modules 'getopt-posix', 'getopt-gnu'.
36374         * modules/getopt-gnu: New file, renamed from modules/getopt.
36375         * modules/getopt-posix: New file.
36376         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36377         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36378         (gl_GETOPT): Remove macro.
36379         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36380         Disable the test against BSD systems that declare optreset. Test
36381         against mingw bug. Test against lack of support of optional arguments
36382         on many platforms.
36383         * doc/glibc-headers/getopt.texi: Update module name and list of
36384         relevant platforms.
36385         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36386         'getopt-gnu' and more portability problems.
36387         * NEWS: Mention the changes.
36388
36389 2009-08-12  Bruno Haible  <bruno@clisp.org>
36390
36391         Ensure that optarg etc. get declared by <unistd.h>.
36392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36393         AC_USE_SYSTEM_EXTENSIONS.
36394         * modules/getopt (Depends-on): Add 'extensions'.
36395
36396 2009-08-12  Bruno Haible  <bruno@clisp.org>
36397
36398         Avoid test link errors.
36399         * modules/pipe-filter-ii-tests (Makefile.am): Define
36400         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36401         * modules/pipe-filter-gi-tests (Makefile.am): Define
36402         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36404
36405 2009-08-12  Bruno Haible  <bruno@clisp.org>
36406
36407         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36408         gl_GETOPT_SUBSTITUTE before.
36409         (gl_GETOPT): Use it.
36410         * m4/argp.m4 (gl_ARGP): Update.
36411         Reported by Sergey Poznyakoff.
36412
36413         * m4/getopt.m4: Reorder macros.
36414         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36415         (gl_GETOPT_SUBSTITUTE): Remove macro.
36416
36417 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36418
36419         Minor improvement in gitlog-to-changelog
36420
36421         * build-aux/gitlog-to-changelog: New option `--format' makes
36422         output format string configurable.
36423
36424 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36425
36426         Optimize exclude: use hash tables for non-wildcard patterns.
36427
36428         * lib/exclude.c: Include hash.h and mbuiter.h
36429         (struct exclude_pattern, exclude_segment): New data types.
36430         (struct exclude): Rewrite.
36431         (fnmatch_pattern_has_wildcards): New function.
36432         (new_exclude_segment, free_exclude_segment): New functions.
36433         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36434         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36435         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36436         * modules/exclude: Depend on hash and mbuiter.
36437
36438         * modules/exclude-tests: New file.
36439         * tests/test-exclude.c: New file.
36440         * tests/test-exclude1.sh: New file.
36441         * tests/test-exclude2.sh: New file.
36442         * tests/test-exclude3.sh: New file.
36443         * tests/test-exclude4.sh: New file.
36444         * tests/test-exclude5.sh: New file.
36445         * tests/test-exclude6.sh: New file.
36446         * tests/test-exclude7.sh: New file.
36447
36448 2009-08-12  Bruno Haible  <bruno@clisp.org>
36449
36450         Ensure that getopt() gets declared by <unistd.h>.
36451         * lib/unistd.in.h: Conditionally include getopt.h.
36452         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36453         Set GNULIB_UNISTD_H_GETOPT.
36454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36455         GNULIB_UNISTD_H_GETOPT.
36456         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36457
36458 2009-08-12  Bruno Haible  <bruno@clisp.org>
36459
36460         Clarify logic.
36461         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36462         gl_replace_getopt instead of GETOPT_H.
36463
36464 2009-08-12  Bruno Haible  <bruno@clisp.org>
36465
36466         * m4/getopt.m4: Add comments.
36467
36468 2009-08-12  Bruno Haible  <bruno@clisp.org>
36469
36470         Disable multithread support by default on Cygwin 1.5.x.
36471         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36472         set gl_use_threads=no if not specified otherwise.
36473
36474 2009-08-11  Bruno Haible  <bruno@clisp.org>
36475
36476         Avoid compilation error on NetBSD 5.0.
36477         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36478         * tests/test-stdio.c: Likewise.
36479         * tests/test-stdlib.c: Likewise.
36480         * tests/test-string.c: Likewise.
36481         * tests/test-unistd.c: Likewise.
36482         Reported by Greg Troxel <gdt@ir.bbn.com>
36483         at <https://savannah.gnu.org/support/?106973>.
36484
36485 2009-08-11  Bruno Haible  <bruno@clisp.org>
36486
36487         * modules/dup2-tests (Depends-on): Remove close.
36488
36489         Undo 2009-07-19 commit.
36490         * modules/acl-tests (Depends-on): Remove close.
36491         * modules/binary-io-tests (Depends-on): Likewise.
36492         * modules/closein-tests (Depends-on): Likewise.
36493         * modules/flock-tests (Depends-on): Likewise.
36494         * modules/fsync-tests (Depends-on): Likewise.
36495         * modules/lseek-tests (Depends-on): Likewise.
36496         * modules/pipe-tests (Depends-on): Likewise.
36497         * modules/posix_spawn-tests (Depends-on): Likewise.
36498         * modules/posix_spawnp-tests (Depends-on): Likewise.
36499         * modules/stat-time-tests (Depends-on): Likewise.
36500         * modules/yesno-tests (Depends-on): Likewise.
36501
36502 2009-08-10  Bruno Haible  <bruno@clisp.org>
36503
36504         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36505
36506 2009-08-10  Bruno Haible  <bruno@clisp.org>
36507
36508         Fix a gcc warning.
36509         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36510
36511 2009-08-10  Bruno Haible  <bruno@clisp.org>
36512
36513         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36514         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36515         not only the first time.
36516         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36517         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36518         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36519         is 1, not only the the first time.
36520
36521 2009-08-10  Bruno Haible  <bruno@clisp.org>
36522
36523         Make it possible to use module 'gethostname' without module 'close'.
36524         * lib/unistd.in.h (close): Evoke a link error only if
36525         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36527         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36528         * modules/unistd (Makefile.am): Substitute
36529         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36530         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36531         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36532         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36533         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36534         * modules/sys_ioctl (Makefile.am): Substitute
36535         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36536         * modules/socket (configure.ac): On native Windows, set
36537         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36538         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36539         Reported by Sam Steingold <sds@gnu.org>.
36540
36541 2009-08-10  Bruno Haible  <bruno@clisp.org>
36542
36543         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36544         * modules/ioctl (configure.ac): Likewise.
36545
36546 2009-08-10  Bruno Haible  <bruno@clisp.org>
36547
36548         Avoid collision between gnulib wrapper and libintl wrapper.
36549         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36550         already defined in intl/printf.c.
36551         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36552         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36553
36554 2009-08-09  Bruno Haible  <bruno@clisp.org>
36555
36556         Make <sys/select.h> really self-contained, also on Solaris 10.
36557         * lib/sys_select.in.h: Include <string.h>.
36558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36559         Solaris 10 problem.
36560         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36561         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36562         Reported by Jim Meyering.
36563
36564 2009-08-09  Bruno Haible  <bruno@clisp.org>
36565
36566         Avoid warnings from 'aclocal' that are due to a use of macro name
36567         AM_XGETTEXT_OPTION that is not defined in automake.
36568         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36569         automake.
36570         * modules/error (configure.ac): Likewise.
36571         * modules/propername (configure.ac): Likewise.
36572         * modules/vasprintf (configure.ac): Likewise.
36573         * modules/verror (configure.ac): Likewise.
36574         * modules/xprintf (configure.ac): Likewise.
36575         * modules/xvasprintf (configure.ac): Likewise.
36576
36577 2009-08-08  Bruno Haible  <bruno@clisp.org>
36578
36579         Avoid compilation error in C++ mode.
36580         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36581         Reported by Sam Steingold <sds@gnu.org>.
36582
36583 2009-08-08  Bruno Haible  <bruno@clisp.org>
36584
36585         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36586         for the various Unix platforms.
36587         * doc/posix-headers/limits.texi: Update platforms list regarding
36588         HOST_NAME_MAX.
36589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36590
36591 2009-08-07  Jim Meyering  <meyering@redhat.com>
36592
36593         selinux-at: fix typo in a comment
36594         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36595         Spotted by Paolo Bonzini.
36596
36597         selinux-at: remove redundant m4 code, add documentation
36598         * modules/selinux-at (configure.ac): Remove redundant code.
36599         LIB_SELINUX is already set via the dependent module, selinux-h.
36600         (Include): Add quotes around selinux-at.h.
36601         * lib/selinux-at.h: Add documentation.
36602         Reported by Bruno Haible in
36603         http://marc.info/?l=gnulib-bug&m=124958988300749
36604
36605 2009-08-07  Bruno Haible  <bruno@clisp.org>
36606
36607         Avoid link error on MacOS X 10.3 and 10.4.
36608         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36609         on non-ELF systems.
36610         * lib/argp-pv.c (argp_program_version): Likewise.
36611         Reported by Simon Josefsson.
36612
36613 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36614
36615         * tests/test-version-etc.sh: Use $EXEEXT.
36616
36617 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36618
36619         update-copyright: update documentation to point to maint.mk
36620         * build-aux/update-copyright: Here.
36621
36622 2009-08-06  Jim Meyering  <meyering@redhat.com>
36623
36624         maint.mk: support update-copyright-local
36625         * top/maint.mk (update-copyright-local): Define place-holder.
36626         (update-copyright): Depend on $(update-copyright-local).
36627
36628 2009-08-06  Jim Meyering  <meyering@redhat.com>
36629
36630         selinux-at: new module
36631         Initially written for coreutils, this module will soon be
36632         used by findutils, too.
36633         * MODULES.html.sh [Misc]: Add selinux-at.
36634         * lib/selinux-at.h: New file, from coreutils.
36635         * lib/selinux-at.c: Likewise.
36636         * modules/selinux-at: Likewise.
36637         (License): Change from LGPL to GPL, since it depends
36638         on the GPL'd openat module.
36639
36640         doc: update README
36641         * README: Remove references to cogito.
36642         Remove cvs-repo-updating instructions from 2007.
36643         Don't imply that CVS is better if you have limited disk space.
36644
36645 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36646
36647         update-copyright: support C-style comments
36648         * build-aux/update-copyright: Implement and document.
36649         * tests/test-update-copyright.sh: Test.
36650
36651 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36652
36653         update-copyright: support omitted "(C)"
36654         * build-aux/update-copyright: Implement and document.  Also,
36655         allow variable whitespace before "(C)".
36656         * tests/test-update-copyright.sh: Test.
36657
36658 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36659
36660         update-copyright: don't trip on non-FSF copyright statements
36661         * build-aux/update-copyright: Fix so that the first correctly
36662         formatted FSF copyright statement is recognized no matter what
36663         appears before it.  Update documentation.
36664         * tests/test-update-copyright.sh: Test that.
36665
36666 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36667
36668         update-copyright: clean up code a little
36669         * build-aux/update-copyright: Append "_re" to the name of any
36670         variable holding a regular expression.
36671         Replace "old" and "new" with "stmt" in variable names.
36672         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36673         handled correctly.
36674         Format code more consistently.
36675
36676 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36677
36678         update-copyright-tests: improve portability
36679         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36680         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36681
36682 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36683
36684         update-copyright: support @copyright{} and &copy;
36685         * build-aux/update-copyright: Implement and document.
36686         * tests/test-update-copyright.sh: Test.
36687
36688 2009-08-04  Jim Meyering  <meyering@redhat.com>
36689
36690         update-copyright-tests: correctly test EOL=\r\n handling
36691         * tests/test-update-copyright.sh: Put \r at the end of some lines
36692         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36693
36694         maint.mk: make update-copyright exclusion list more configurable
36695         * top/maint.mk (update-copyright): Default to excluding COPYING,
36696         but allow an override, in case someone does want to update that file.
36697
36698         maint.mk: don't update copyright date in COPYING
36699         * top/maint.mk (update-copyright): Exclude COPYING.
36700
36701         maint.mk: add a copyright-updating rule
36702         * top/maint.mk (update-copyright): New rule.
36703         Derived from coreutils/Makefile.am.
36704
36705         update-copyright: rename some variables
36706         * build-aux/update-copyright: Rename a few variables for clarity.
36707         Tweak syntax.  List Joel E. Denny as coauthor.
36708
36709 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36710
36711         update-copyright: fix bug for 2-digit last year and add tests
36712         * build-aux/update-copyright: Fix bug.
36713         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36714         specified.
36715         * modules/update-copyright-tests: New
36716         * tests/test-update-copyright.sh: New.
36717
36718 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36719
36720         update-copyright: handle leading tabs in line prefix
36721         * build-aux/update-copyright: Count leading tabs as 8 spaces
36722         when computing margin.  This helps with the formatting of
36723         ChangeLogs, for example.
36724         Fix documentation a little.
36725
36726 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36727
36728         update-copyright: support EOL=\r\n
36729         * build-aux/update-copyright: Implement that.
36730
36731 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36732
36733         update-copyright: automatically format copyright statements
36734         * build-aux/update-copyright: Implement that.
36735         Also, be a little more predictable and safer by always failing
36736         when the full copyright format is not perfectly recognized as an
36737         unbroken whole.  Discussed at
36738         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36739         Rewrite documentation.
36740
36741 2009-08-03  Bruno Haible  <bruno@clisp.org>
36742
36743         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36744
36745 2009-08-02  Bruno Haible  <bruno@clisp.org>
36746
36747         Tests for module 'uname'.
36748         * modules/uname-tests: New file.
36749         * tests/test-uname.c: New file.
36750
36751         New module 'uname'.
36752         * lib/uname.c: New file.
36753         * m4/uname.m4: New file.
36754         * modules/uname: New file.
36755         * doc/posix-functions/uname.texi: Mention the new module.
36756
36757 2009-08-02  Bruno Haible  <bruno@clisp.org>
36758
36759         Tests for module 'sys_utsname'.
36760         * modules/sys_utsname-tests: New file.
36761         * tests/test-sys_utsname.c: New file.
36762
36763         New module 'sys_utsname'.
36764         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36765         * m4/sys_utsname_h.m4: New file.
36766         * modules/sys_utsname: New file.
36767         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36768
36769 2009-08-02  Bruno Haible  <bruno@clisp.org>
36770
36771         Implicitly initialize the sockets library.
36772         * lib/gethostname.c: Include sockets.h.
36773         (rpl_gethostname): Invoke gl_sockets_startup.
36774         * lib/socket.c: Include sockets.h.
36775         (rpl_socket): Invoke gl_sockets_startup.
36776         * modules/gethostname (Depends-on): Add sockets.
36777         * modules/socket (Depends-on): Likewise.
36778         * tests/test-poll.c: Don't include sockets.h.
36779         (main): Don't invoke gl_sockets_startup.
36780         * tests/test-select.c: Don't include sockets.h.
36781         (main): Don't invoke gl_sockets_startup.
36782
36783 2009-08-02  Bruno Haible  <bruno@clisp.org>
36784
36785         Allow multiple calls to gl_sockets_startup.
36786         * lib/sockets.c (initialized_sockets_version): New variable.
36787         (gl_sockets_startup): Do nothing if already called for this or a higher
36788         version.
36789         (gl_sockets_cleanup): Reset initialized_sockets_version.
36790
36791 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36792
36793         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36794         different project/version.
36795
36796 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36797             Bruno Haible  <bruno@clisp.org>
36798
36799         Tests for module 'pipe-filter-gi'.
36800         * modules/pipe-filter-gi-tests: New file.
36801         * tests/test-pipe-filter-gi1.sh: New file.
36802         * tests/test-pipe-filter-gi1.c: New file.
36803         * tests/test-pipe-filter-gi2.sh: New file.
36804         * tests/test-pipe-filter-gi2-main.c: New file.
36805         * tests/test-pipe-filter-gi2-child.c: New file.
36806
36807         New module 'pipe-filter-gi'.
36808         * lib/pipe-filter-gi.c: New file.
36809         * modules/pipe-filter-gi: New file.
36810
36811 2009-08-02  Bruno Haible  <bruno@clisp.org>
36812             Paolo Bonzini  <bonzini@gnu.org>
36813
36814         Tests for module 'pipe-filter-ii'.
36815         * modules/pipe-filter-ii-tests: New file.
36816         * tests/test-pipe-filter-ii1.sh: New file.
36817         * tests/test-pipe-filter-ii1.c: New file.
36818         * tests/test-pipe-filter-ii2.sh: New file.
36819         * tests/test-pipe-filter-ii2-main.c: New file.
36820         * tests/test-pipe-filter-ii2-child.c: New file.
36821
36822         New module 'pipe-filter-ii'.
36823         * lib/pipe-filter.h: New file.
36824         * lib/pipe-filter-ii.c: New file.
36825         * lib/pipe-filter-aux.h: New file.
36826         * modules/pipe-filter-ii: New file.
36827
36828 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36829
36830         * lib/gc-libgcrypt.c: Change copyright to FSF.
36831         * lib/gc-gnulib.c: Likewise.
36832
36833 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36834
36835         * lib/gethostname.c: Include limits.h.
36836
36837 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36838             Bruno Haible  <bruno@clisp.org>
36839
36840         Ensure HOST_NAME_MAX as part of the gethostname module.
36841         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36842         define also HOST_NAME_MAX.
36843         * tests/test-gethostname.c: Include <limits.h>.
36844         (main): Check also HOST_NAME_MAX.
36845         * doc/posix-headers/limits.texi: Document the mingw problem.
36846
36847 2009-08-02  Bruno Haible  <bruno@clisp.org>
36848
36849         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36850         Add comments.
36851
36852 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36853
36854         * lib/gethostname.c: Add Windows wrapper.
36855         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36856         * modules/gethostname: Depend on sys_socket & errno, for also
36857         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36858         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36859
36860 2009-07-31  Jim Meyering  <meyering@redhat.com>
36861
36862         getloadavg: fix symbol name in comment
36863         * lib/getloadavg.c: Correct a typo I introduced when adding
36864         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36865         Matt Kraai spotted the problem.
36866
36867 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36868
36869         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36870         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36871         code also if ! defined N_NAME_POINTER.
36872         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36873         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36874         but the n_name member is a 12-byte array.
36875
36876 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36877
36878         update-copyright: generalize comment handling
36879         * build-aux/update-copyright: Handle copyright statements
36880         within more comment styles.
36881         Document usage.
36882         Report any file with an external copyright holder or parse failure.
36883
36884 2009-07-29  Jim Meyering  <meyering@redhat.com>
36885
36886         mktime: correct setting of REPLACE_MKTIME
36887         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36888
36889         update-copyright: new module
36890         * modules/update-copyright: New file.
36891         * build-aux/update-copyright: New file.
36892         * MODULES.html.sh (maint+release support): Add update-copyright.
36893
36894 2009-07-27  Bruno Haible  <bruno@clisp.org>
36895
36896         Fix compilation error when <ctime> is used and mktime is replaced.
36897         * lib/time.in.h (mktime): New declaration.
36898         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36899         REPLACE_MKTIME instead of defining mktime in config.h.
36900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36901         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36902         Reported by Ross McFarland <rwmcfa1@neces.com>.
36903
36904 2009-07-27  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36907         Reported by Matt Kraai <mkraai@beckman.com>.
36908
36909 2009-07-25  Jim Meyering  <meyering@redhat.com>
36910
36911         maint.mk: avoid warnings about missing files
36912         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36913         diagnostic when .prev-version does not exist.
36914         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36915         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36916         nonexistent cfg.mk.
36917         Suggestions from Simon Josefsson.
36918
36919 2009-07-25  Bruno Haible  <bruno@clisp.org>
36920
36921         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36922         defined as macros. Needed on QNX 6.4.1.
36923         Reported by Matt Kraai <mkraai@beckman.com>.
36924
36925 2009-07-23  Jim Meyering  <meyering@redhat.com>
36926
36927         maint.mk: invoke "make dist" with a working value of XZ_OPT
36928         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36929
36930 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36931
36932         Make fseeko.c compile on QNX.
36933         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36934
36935 2009-07-22  Peter Simons  <simons@cryp.to>
36936
36937         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36938         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36939         * lib/md4.h: Likewise.
36940         * lib/md5.h: Likewise.
36941         * lib/sha1.h: Likewise.
36942         * lib/sha256.h: Likewise.
36943         * lib/sha512.h: Likewise.
36944
36945         tests-sha1: don't assign literal string to 'char *' variable
36946         * tests/test-sha1.c (main): Declare locals with "const" to match
36947         attributes of the right hand side.
36948
36949 2009-07-21  Eric Blake  <ebb9@byu.net>
36950
36951         dup2: fix more mingw problems
36952         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36953         fd to itself.
36954         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36955         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36956         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36957         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36958         care of mingw bugs.
36959
36960 2009-07-21  Jim Meyering  <meyering@redhat.com>
36961
36962         vc-list-files: avoid failure when /bin/sh is dash
36963         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36964         On some Debian based systems, /bin/sh is a symlink to dash, and running
36965         this command would omit the "/" following each 'tests' prefix:
36966           dash -x build-aux/vc-list-files -C . tests
36967         That is because bash and dash work differently:
36968           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36969           bash ok
36970           dash odd
36971
36972 2009-07-21  Eric Blake  <ebb9@byu.net>
36973
36974         dup2-tests: test previous patch
36975         * modules/dup2-tests: New file.
36976         * tests/test-dup2.c: Likewise.
36977         * tests/test-open.c (main): Avoid unspecified behavior.
36978         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36979         test.
36980
36981         dup2: work around mingw and cygwin 1.5 bug
36982         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36984         * modules/unistd (Makefile.am): Substitute it.
36985         * lib/unistd.in.h (dup2): Declare the replacement.
36986         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36987         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36988         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36989         * modules/execute (Depends-on): Add dup2.
36990         * modules/fseterr (Depends-on): Likewise.
36991         * modules/pipe (Depends-on): Likewise.
36992         * modules/posix_spawn-internal (Depends-on): Likewise.
36993
36994 2009-07-21  Bruno Haible  <bruno@clisp.org>
36995
36996         * modules/.gitattributes: New file.
36997
36998 2009-07-20  Bruno Haible  <bruno@clisp.org>
36999
37000         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37001         (main): Use it.
37002
37003 2009-07-20  Eric Blake  <ebb9@byu.net>
37004
37005         test-pipe: make a bit more robust.
37006         * tests/test-pipe.c (myerr): Allow error messages regardless of
37007         what we do to stderr.
37008         (test_pipe): Rearrange to avoid deadlock.
37009         (child_main): Try a larger read, to ensure we avoided deadlock.
37010         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37011         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37012         if misused.
37013
37014 2009-07-19  Jim Meyering  <meyering@redhat.com>
37015
37016         fts: avoid false-positive cycle-detection
37017         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37018         for each new command line argument.
37019
37020 2009-07-19  Bruno Haible  <bruno@clisp.org>
37021
37022         Fix build error on mingw with the modules sys_select and unistd.
37023         * modules/acl-tests (Depends-on): Add close.
37024         * modules/binary-io-tests (Depends-on): Likewise.
37025         * modules/closein-tests (Depends-on): Likewise.
37026         * modules/flock-tests (Depends-on): Likewise.
37027         * modules/fsync-tests (Depends-on): Likewise.
37028         * modules/lseek-tests (Depends-on): Likewise.
37029         * modules/pipe-tests (Depends-on): Likewise.
37030         * modules/posix_spawn-tests (Depends-on): Likewise.
37031         * modules/posix_spawnp-tests (Depends-on): Likewise.
37032         * modules/stat-time-tests (Depends-on): Likewise.
37033         * modules/yesno-tests (Depends-on): Likewise.
37034
37035 2009-07-19  Bruno Haible  <bruno@clisp.org>
37036
37037         Unify conditionals.
37038         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37039         macros, not at the compiler macros.
37040         * lib/pipe.c: Likewise.
37041         * lib/execute.c: Likewise.
37042         * lib/spawni.c: Likewise.
37043
37044 2009-07-19  Bruno Haible  <bruno@clisp.org>
37045
37046         Fix handling of closed stdin/stdout/stderr on mingw.
37047         * lib/w32spawn.h: Include unistd.h.
37048         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37049         file descriptor with O_NOINHERIT flag.
37050         (fd_safer_noinherit): New function, based on fd-safer.c.
37051         (dup_safer_noinherit): New function, based on dup-safer.c.
37052         (undup_safer_noinherit): New function.
37053         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37054         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37055         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37056         instead of fd_safer.
37057         * tests/test-pipe.c: Include <windows.h>.
37058         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37059         result.
37060
37061         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37062         from main.
37063         (test_pipe): Pass an extra argument for disambiguation.
37064         (main): Invoke parent_main or child_main.
37065
37066         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37067         consistently.
37068
37069 2009-07-18  Eric Blake  <ebb9@byu.net>
37070
37071         test-pipe: fix mingw build
37072         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37073
37074 2009-07-18  Bruno Haible  <bruno@clisp.org>
37075
37076         * modules/pipe-tests (Makefile.am): Fix typo.
37077
37078 2009-07-18  Eric Blake  <ebb9@byu.net>
37079
37080         error: fix mingw build
37081         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37082         Reported by Bruno Haible.
37083
37084         error: avoid undefined use of stdout
37085         * lib/error.c (error, error_at_line): Check that fd 1 is open
37086         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37087         is handling faults and the close_stdout module wants to report the
37088         detection of closed stdout as an error.
37089
37090 2009-07-17  Eric Blake  <ebb9@byu.net>
37091
37092         pipe: be robust in face of closed fds
37093         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37094         should cause child to misbehave.
37095         * modules/pipe-tests: New module.
37096         * tests/test-pipe.c: New file.
37097         * tests/test-pipe.sh: New file.
37098         Reported by Akim Demaille.
37099
37100 2009-07-14  Bruno Haible  <bruno@clisp.org>
37101
37102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37103         Reported by anonymous kc.
37104
37105 2009-07-07  Jim Meyering  <meyering@redhat.com>
37106
37107         maint.mk: don't look for translatable strings in *.m4 or *.mk
37108         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37109         when searching for translatable strings.
37110
37111 2009-07-05  Jim Meyering  <meyering@redhat.com>
37112
37113         remove superfluous parentheses in STREQ definition
37114         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37115         * lib/getugroups.c (STREQ): Likewise.
37116         * lib/fnmatch.c (STREQ): Likewise.
37117         Spotted by Bruno Haible.
37118
37119 2009-07-04  Jim Meyering  <meyering@redhat.com>
37120
37121         argv-iter: new module
37122         * MODULES.html.sh: Add argv-iter.
37123         * lib/argv-iter.c, lib/argv-iter.h: New files.
37124         * modules/argv-iter: New file.
37125         * modules/argv-iter-tests: New file.
37126         * tests/test-argv-iter.c: Test it.
37127
37128 2009-07-04  Bruno Haible  <bruno@clisp.org>
37129
37130         Fix assertion.
37131         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37132         contains more exact copies of a given entry than file2, leave the extra
37133         copies unpaired rather than aborting.
37134         Reported by Eric Blake.
37135
37136 2009-07-02  Bruno Haible  <bruno@clisp.org>
37137
37138         Speedup git-merge-changelog for git cherry-pick.
37139         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37140         (entries_mapping_get): New function, extracted from compute_mapping.
37141         (entries_mapping_reverse_get): New function.
37142         (compute_mapping): Add a 'full' argument. Return the result in a
37143         'struct entries_mapping'.
37144         (main): Update. Access the mappings through entries_mapping_get.
37145         Reported by Eric Blake.
37146
37147 2009-07-02  Bruno Haible  <bruno@clisp.org>
37148
37149         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37150         best_i.
37151
37152 2009-07-02  Bruno Haible  <bruno@clisp.org>
37153
37154         Speed up approximate search for matching ChangeLog entries.
37155         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37156         argument. Call fstrcmp_bounded instead of fstrcmp.
37157         (compute_mapping, try_split_merged_entry, main): Update callers.
37158
37159 2009-07-02  Bruno Haible  <bruno@clisp.org>
37160
37161         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37162
37163 2009-06-30  Bruno Haible  <bruno@clisp.org>
37164
37165         Reduce the number of uc_is_cased calls.
37166         * lib/unicase.h (casing_suffix_context_t): Add
37167         'first_char_except_ignorable' field.
37168         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37169         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37170         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37171         Update initializer.
37172         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37173         case-ignorable characters.
37174         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37175         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37176         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37177         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37178         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37179
37180 2009-06-30  Bruno Haible  <bruno@clisp.org>
37181
37182         Tests for module 'unicase/ignorable'.
37183         * modules/unicase/ignorable-tests: New file.
37184         * tests/unicase/test-ignorable.c: New file, generated by
37185         gen-uni-tables.
37186
37187         Tests for module 'unicase/cased'.
37188         * modules/unicase/cased-tests: New file.
37189         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37190         * tests/unicase/test-predicate-part1.h: New file, derived from
37191         tests/unictype/test-predicate-part1.h.
37192         * tests/unicase/test-predicate-part2.h: New file, same as
37193         tests/unictype/test-predicate-part2.h.
37194
37195         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37196         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37197         (output_casing_properties): New function.
37198         (main): Call it.
37199         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37200         * lib/unicase/cased.c: Include unictype/bitmap.h.
37201         (uc_is_cased): Define through a bitmap lookup.
37202         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37203         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37204         (uc_is_case_ignorable): Define through a bitmap lookup.
37205         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37206         lib/unictype/bitmap.h.
37207         (Depends-on): Add inline. Clean up.
37208         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37209         lib/unictype/bitmap.h.
37210         (Depends-on): Add inline. Clean up.
37211         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37212         recognition.
37213         * tests/unicase/test-u16-tolower.c (main): Likewise.
37214         * tests/unicase/test-u32-tolower.c (main): Likewise.
37215
37216 2009-06-30  Bruno Haible  <bruno@clisp.org>
37217
37218         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37219         * lib/unicase/u16-casemap.c: Likewise.
37220         * lib/unicase/u32-casemap.c: Likewise.
37221
37222 2009-06-29  Bruno Haible  <bruno@clisp.org>
37223
37224         Define u32_casefold as a wrapper around u32_ct_casefold.
37225         * lib/unicase/u32-casefold.c: Update.
37226         * modules/unicase/u32-casefold (Depends-on): Add
37227         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37228         unicase/empty-suffix-context. Clean up.
37229
37230         Define u16_casefold as a wrapper around u16_ct_casefold.
37231         * lib/unicase/u16-casefold.c: Update.
37232         * modules/unicase/u16-casefold (Depends-on): Add
37233         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37234         unicase/empty-suffix-context. Clean up.
37235
37236         Define u8_casefold as a wrapper around u8_ct_casefold.
37237         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37238         * lib/unicase/u8-casefold.c: Update.
37239         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37240         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37241
37242         Define u32_totitle as a wrapper around u32_ct_totitle.
37243         * lib/unicase/u32-totitle.c: Update.
37244         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37245         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37246
37247         Define u16_totitle as a wrapper around u16_ct_totitle.
37248         * lib/unicase/u16-totitle.c: Update.
37249         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37250         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37251
37252         Define u8_totitle as a wrapper around u8_ct_totitle.
37253         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37254         functions.
37255         (FUNC): Delegate to U_CT_TOTITLE.
37256         * lib/unicase/u8-totitle.c: Update.
37257         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37258         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37259
37260         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37261         invocation.
37262         * modules/unicase/u32-tolower (Depends-on): Add
37263         unicase/empty-prefix-context, unicase/empty-suffix-context.
37264
37265         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37266         invocation.
37267         * modules/unicase/u16-tolower (Depends-on): Add
37268         unicase/empty-prefix-context, unicase/empty-suffix-context.
37269
37270         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37271         * modules/unicase/u8-tolower (Depends-on): Add
37272         unicase/empty-prefix-context, unicase/empty-suffix-context.
37273
37274         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37275         invocation.
37276         * modules/unicase/u32-toupper (Depends-on): Add
37277         unicase/empty-prefix-context, unicase/empty-suffix-context.
37278
37279         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37280         invocation.
37281         * modules/unicase/u16-toupper (Depends-on): Add
37282         unicase/empty-prefix-context, unicase/empty-suffix-context.
37283
37284         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37285         * modules/unicase/u8-toupper (Depends-on): Add
37286         unicase/empty-prefix-context, unicase/empty-suffix-context.
37287
37288         New module 'unicase/u32-ct-casefold'.
37289         * lib/unicase/u32-ct-casefold.c: New file.
37290         * modules/unicase/u32-ct-casefold: New file.
37291
37292         New module 'unicase/u16-ct-casefold'.
37293         * lib/unicase/u16-ct-casefold.c: New file.
37294         * modules/unicase/u16-ct-casefold: New file.
37295
37296         New module 'unicase/u8-ct-casefold'.
37297         * lib/unicase/u8-ct-casefold.c: New file.
37298         * lib/unicase/u-ct-casefold.h: New file, derived from
37299         lib/unicase/u-casefold.h.
37300         * modules/unicase/u8-ct-casefold: New file.
37301
37302         New module 'unicase/u32-ct-totitle'.
37303         * lib/unicase/u32-ct-totitle.c: New file.
37304         * modules/unicase/u32-ct-totitle: New file.
37305
37306         New module 'unicase/u16-ct-totitle'.
37307         * lib/unicase/u16-ct-totitle.c: New file.
37308         * modules/unicase/u16-ct-totitle: New file.
37309
37310         New module 'unicase/u8-ct-totitle'.
37311         * lib/unicase/u8-ct-totitle.c: New file.
37312         * lib/unicase/u-ct-totitle.h: New file, derived from
37313         lib/unicase/u-totitle.h.
37314         * modules/unicase/u8-ct-totitle: New file.
37315
37316         New module 'unicase/u32-ct-tolower'.
37317         * lib/unicase/u32-ct-tolower.c: New file.
37318         * modules/unicase/u32-ct-tolower: New file.
37319
37320         New module 'unicase/u16-ct-tolower'.
37321         * lib/unicase/u16-ct-tolower.c: New file.
37322         * modules/unicase/u16-ct-tolower: New file.
37323
37324         New module 'unicase/u8-ct-tolower'.
37325         * lib/unicase/u8-ct-tolower.c: New file.
37326         * modules/unicase/u8-ct-tolower: New file.
37327
37328         New module 'unicase/u32-ct-toupper'.
37329         * lib/unicase/u32-ct-toupper.c: New file.
37330         * modules/unicase/u32-ct-toupper: New file.
37331
37332         New module 'unicase/u16-ct-toupper'.
37333         * lib/unicase/u16-ct-toupper.c: New file.
37334         * modules/unicase/u16-ct-toupper: New file.
37335
37336         New module 'unicase/u8-ct-toupper'.
37337         * lib/unicase/u8-ct-toupper.c: New file.
37338         * modules/unicase/u8-ct-toupper: New file.
37339
37340         Add context arguments to u*_casemap functions.
37341         * lib/unicase/unicasemap.h: Include unicase.h.
37342         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37343         suffix_context arguments.
37344         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37345         functions.
37346         (FUNC): Add prefix_context and suffix_context arguments. Use
37347         uc_is_cased and uc_is_case_ignorable.
37348         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37349         * lib/unicase/u16-casemap.c: Likewise.
37350         * lib/unicase/u32-casemap.c: Likewise.
37351         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37352         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37353         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37354         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37355         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37356         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37357
37358         New module 'unicase/u32-suffix-context'.
37359         * lib/unicase/u32-suffix-context.c: New file.
37360         * modules/unicase/u32-suffix-context: New file.
37361
37362         New module 'unicase/u16-suffix-context'.
37363         * lib/unicase/u16-suffix-context.c: New file.
37364         * modules/unicase/u16-suffix-context: New file.
37365
37366         New module 'unicase/u8-suffix-context'.
37367         * lib/unicase/u8-suffix-context.c: New file.
37368         * lib/unicase/u-suffix-context.h: New file.
37369         * modules/unicase/u8-suffix-context: New file.
37370
37371         New module 'unicase/empty-suffix-context'.
37372         * lib/unicase/empty-suffix-context.c: New file.
37373         * modules/unicase/empty-suffix-context: New file.
37374
37375         New module 'unicase/u32-prefix-context'.
37376         * lib/unicase/u32-prefix-context.c: New file.
37377         * modules/unicase/u32-prefix-context: New file.
37378
37379         New module 'unicase/u16-prefix-context'.
37380         * lib/unicase/u16-prefix-context.c: New file.
37381         * modules/unicase/u16-prefix-context: New file.
37382
37383         New module 'unicase/u8-prefix-context'.
37384         * lib/unicase/u8-prefix-context.c: New file.
37385         * lib/unicase/u-prefix-context.h: New file.
37386         * lib/unicase/context.h: New file.
37387         * modules/unicase/u8-prefix-context: New file.
37388
37389         New module 'unicase/empty-prefix-context'.
37390         * lib/unicase/empty-prefix-context.c: New file.
37391         * modules/unicase/empty-prefix-context: New file.
37392
37393         New module 'unicase/ignorable'.
37394         * lib/unicase/ignorable.c: New file.
37395         * modules/unicase/ignorable: New file.
37396
37397         New module 'unicase/cased'.
37398         * lib/unicase/caseprop.h: New file.
37399         * lib/unicase/cased.c: New file.
37400         * modules/unicase/cased: New file.
37401
37402         New functions for case mapping of substrings.
37403         * lib/unicase.h (casing_prefix_context_t): New type.
37404         (unicase_empty_prefix_context): New variable.
37405         (u8_casing_prefix_context, u16_casing_prefix_context,
37406         u32_casing_prefix_context, u8_casing_prefixes_context,
37407         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37408         declarations.
37409         (casing_suffix_context_t): New type.
37410         (unicase_empty_suffix_context): New variable.
37411         (u8_casing_suffix_context, u16_casing_suffix_context,
37412         u32_casing_suffix_context, u8_casing_suffixes_context,
37413         u16_casing_suffixes_context, u32_casing_suffixes_context,
37414         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37415         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37416         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37417         declarations.
37418
37419 2009-06-28  Jim Meyering  <meyering@redhat.com>
37420
37421         boostrap: indent only with spaces
37422         * build-aux/bootstrap: Indent only with spaces, never TABs.
37423
37424         bootstrap: split long lines
37425         * build-aux/bootstrap: Keep line length < 80.
37426
37427         bootstrap: sync from coreutils
37428         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37429         just as autoreconf does.  Verify a list of prerequisite
37430         package-name,version-number pairs if defined in bootstrap.conf.
37431         Refer to README-prereq, if prerequisites are not satisfied.
37432
37433 2009-06-27  Eric Blake  <ebb9@byu.net>
37434
37435         tests: add test for bogus NULL definition
37436         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37437         * tests/test-stdlib.c: Likewise.
37438         * tests/test-string.c: Likewise.
37439         * tests/test-locale.c: Likewise.
37440         * tests/test-unistd.c: Likewise.
37441         * modules/stdio-tests (Depends-on): Add verify.
37442         * modules/stdlib-tests (Depends-on): Likewise.
37443         * modules/string-tests (Depends-on): Likewise.
37444         * modules/locale-tests (Depends-on): Likewise.
37445         * modules/unistd-tests (Depends-on): Likewise.
37446
37447 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37448
37449         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37450         self-explaining comment.
37451         * m4/selinux-selinux-h: Update serial.
37452         (gl_LIBSELINUX): New macro, adding a warning for missing development
37453         packages to code extracted from...
37454         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37455         Add warning for missing development packages here, too.
37456
37457 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37458
37459         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37460
37461 2009-06-25  Eric Blake  <ebb9@byu.net>
37462
37463         version-etc: fix regression
37464         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37465         gcc.
37466         (version_etc): Use it, to catch bugs with trailing NULL.
37467         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37468         (version_etc_va): Fix logic bug.
37469         * modules/version-etc-tests: Add test.
37470         * tests/test-version-etc.c: New file.
37471         * tests/test-version-etc.sh: Likewise.
37472
37473 2009-06-25  Sam Steingold  <sds@gnu.org>
37474
37475         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37476         mbtowc declaration.
37477
37478 2009-06-25  Eric Blake  <ebb9@byu.net>
37479
37480         fpurge: migrate into <stdio.h>
37481         * lib/fpurge.h: Delete...
37482         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37483         * lib/fpurge.c (fpurge): Change declaring header.
37484         * modules/fpurge (Files): Drop deleted file.
37485         (Depends-on): Add stdio.
37486         (configure.ac): Set witness.
37487         * modules/stdio (Makefile.am): Support fpurge macros.
37488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37489         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37490         * lib/fflush.c: Update client.
37491         * tests/test-fpurge.c: Likewise.
37492         * NEWS: Mention the change.
37493
37494 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37495
37496         * lib/argp-version-etc.c (program_authors): Add const
37497         qualifier.
37498         * lib/version-etc.c: Fix typos in the comments.
37499         * modules/argp-version-etc: Depends on version-etc.
37500
37501 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37502
37503         argp-version-etc: new module.
37504
37505         * lib/argp-version-etc.c: New file.
37506         * lib/argp-version-etc.h: New file.
37507         * modules/argp-version-etc: New file.
37508         * modules/argp-version-etc-tests: New file.
37509         * tests/test-argp-version-etc.c: New test.
37510         * tests/test-argp-version-etc-1.sh: New test.
37511
37512 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37513
37514         Provide additional interfaces and documentation for version-etc
37515         module.
37516
37517         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37518         interfaces.
37519         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37520         prototypes.
37521
37522 2009-06-24  Bruno Haible  <bruno@clisp.org>
37523
37524         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37525         HAVE_LIB${NAME} macro.
37526         Reported by Sam Steingold <sds@gnu.org>.
37527
37528 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37529
37530         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37531         needed.
37532
37533 2009-06-21  Bruno Haible  <bruno@clisp.org>
37534
37535         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37536         work.
37537         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37538         together with LIB${NAME}, LTLIB${NAME}.
37539         Reported by Sam Steingold <sds@gnu.org>.
37540
37541 2009-06-20  Jim Meyering  <meyering@redhat.com>
37542
37543         tests: make sc_require_test_exit_idiom more generic
37544         * top/maint.mk (Exit_witness_file): New overridable variable.
37545         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37546         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37547
37548 2009-06-19  Jim Meyering  <meyering@redhat.com>
37549
37550         hash: reverse order of src/dst parameters in an internal interface
37551         * lib/hash.c (transfer_entries): Reverse order of parameters to
37552         put DST before SRC.  Adjust callers.
37553
37554         tests: test-hash: avoid wholesale duplication
37555         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37556         Instead, use a loop and add a single conditional.
37557
37558         tests: test-hash: allow seed selection via a command line argument
37559         * tests/test-hash.c (get_seed): New function.
37560         (main): Use it.
37561
37562 2009-06-19  Eric Blake  <ebb9@byu.net>
37563
37564         hash: avoid memory leak on allocation failure
37565         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37566         failure.  Factor repeated algorithm...
37567         (transfer_entries): ...into new helper routine.
37568         (hash_delete): React to hash_rehash return value.
37569
37570         hash: reduce memory pressure in hash_rehash no-op case
37571         * lib/hash.c (next_prime): Avoid overflow.
37572         (hash_initialize): Factor bucket size computation...
37573         (compute_bucket_size): ...into new helper function.
37574         (hash_rehash): Use new function and open coding to reduce memory
37575         pressure, and avoid a memory leak in USE_OBSTACK code.
37576         Reported by Jim Meyering.
37577
37578 2009-06-18  Eric Blake  <ebb9@byu.net>
37579
37580         hash: make rotation more obvious
37581         * modules/hash (Depends-on): Add bitrotate and stdint.
37582         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37583         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37584         (SIZE_MAX): Rely on headers for definition.
37585         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37586         (raw_hasher): Use rotr_sz.
37587         Suggested by Jim Meyering.
37588
37589         hash: fix memory leak in last patch
37590         * lib/hash.c (hash_rehash): Avoid memory leak.
37591
37592         hash: avoid no-op rehashing
37593         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37594
37595         hash: provide default callback functions
37596         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37597         (hash_initialize): Use them as defaults.
37598         * tests/test-hash.c (main): Test this.
37599
37600         hash: minor optimization
37601         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37602         when possible.
37603         (hash_initialize): Document this promise.
37604         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37605         * tests/test-hash.c (hash_compare_strings): Test this.
37606
37607 2009-06-18  Bruno Haible  <bruno@clisp.org>
37608
37609         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37610         going to be replaced anyway.
37611
37612 2009-06-18  Bruno Haible  <bruno@clisp.org>
37613
37614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37615         in one place.
37616         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37617         be replaced anyway.
37618
37619 2009-06-18  Eric Blake  <ebb9@byu.net>
37620
37621         hash: check for resize before insertion
37622         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37623         threshold before insertion, so that a pathological hash_rehash
37624         that fills every bucket can still trigger another rehash.
37625
37626 2009-06-18  Jim Meyering  <meyering@redhat.com>
37627
37628         hash-tests: add a loop around the small tests
37629         * tests/test-hash.c (main): Repeat small tests with selected
37630         small initial table sizes.
37631
37632 2009-06-17  Eric Blake  <ebb9@byu.net>
37633
37634         hash: minor cleanups
37635         * lib/hash.h (hash_entry): Make opaque, by moving...
37636         * lib/hash.c (hash_entry): ...here.
37637         (hash_insert): Clarify restrictions on what can be inserted.
37638         (hash_get_next): Clarify when it is safe to remove an element
37639         during traversal.
37640         (check_tuning): Skip verification when tuning is known safe.
37641         (hash_initialize): Clarify restrictions on tuning.
37642
37643 2009-06-17  Jim Meyering  <jim@meyering.net>
37644         and Eric Blake  <ebb9@byu.net>
37645
37646         hash-tests: new module
37647         * modules/hash-tests: New file.
37648         * tests/test-hash.c: New file.
37649
37650 2009-06-17  Eric Blake  <ebb9@byu.net>
37651
37652         strstr-simple: document new module
37653         * MODULES.html.sh: Document new module.
37654
37655         strstr, strcasestr: replace on platforms with broken memchr
37656         * modules/strstr: Split into...
37657         * modules/strstr-simple: ...new module that does not care about
37658         performance, but does care about glibc bug.
37659         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37660         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37661         if platform memchr is broken, per Debian bug 521737.
37662         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37663         memchr.
37664         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37665         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37666         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37667         * modules/mountlist (Depends-on): Add strstr-simple.
37668         * modules/gen-uni-tables (Depends-on): Likewise.
37669         * modules/argz (Depends-on): Add strstr.
37670
37671 2009-06-17  Bruno Haible  <bruno@clisp.org>
37672
37673         * modules/posix_spawn-internal (Depends-on): Add errno.
37674
37675 2009-06-17  Bruno Haible  <bruno@clisp.org>
37676
37677         Define missing ESTALE on Interix 3.5.
37678         * lib/errno.in.h (ESTALE): Assign a value if missing.
37679         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37680         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37681         missing.
37682         * doc/posix-headers/errno.texi: Mention the Interix bug.
37683         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37684
37685 2009-06-15  Eric Blake  <ebb9@byu.net>
37686
37687         memchr, memchr2: add valgrind exception
37688         * lib/memchr.valgrind: New file.
37689         * lib/memchr2.valgrind: New file.
37690         * modules/memchr (Files): Distribute valgrind file.
37691         * modules/memchr2 (Files): Likewise.
37692
37693         docs: memchr is no longer obsolete
37694         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37695         * lib/string.in.h (memchr): Simplify logic.
37696
37697 2009-06-14  Jim Meyering  <meyering@redhat.com>
37698
37699         link-follow: fix the "checking..." message to not mention trailing slash
37700         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37701         never considered trailing slashes.
37702
37703 2009-06-14  Bruno Haible  <bruno@clisp.org>
37704
37705         * m4/memchr.m4: Mention also the bug on IA-64.
37706         * doc/posix-functions/memchr.texi: Likewise.
37707
37708 2009-06-12  Eric Blake  <ebb9@byu.net>
37709
37710         memchr: detect broken x86_64 and alpha implementations
37711         * modules/memchr-tests (Depends-on): Move mmap detection...
37712         * modules/memchr (Depends-on): ...here.
37713         (configure.ac): Set indicator.
37714         * lib/string.in.h (memchr): Declare replacement.
37715         * modules/string (Makefile.am): Trigger replacement.
37716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37717         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37718         bugs.
37719         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37720         * modules/getpagesize (License): Relax license.
37721
37722 2009-06-11  Bruno Haible  <bruno@clisp.org>
37723
37724         * lib/idpriv.h: Add more references.
37725
37726 2009-06-08  Bruno Haible  <bruno@clisp.org>
37727
37728         Tests for module 'idpriv-droptemp'.
37729         * modules/idpriv-droptemp-tests: New file.
37730         * tests/test-idpriv-droptemp.sh: New file.
37731         * tests/test-idpriv-droptemp.su.sh: New file.
37732         * tests/test-idpriv-droptemp.c: New file.
37733
37734         New module 'idpriv-droptemp'.
37735         * lib/idpriv-droptemp.c: New file.
37736         * modules/idpriv-droptemp: New file.
37737
37738 2009-06-08  Bruno Haible  <bruno@clisp.org>
37739
37740         Tests for module 'idpriv-drop'.
37741         * modules/idpriv-drop-tests: New file.
37742         * tests/test-idpriv-drop.sh: New file.
37743         * tests/test-idpriv-drop.su.sh: New file.
37744         * tests/test-idpriv-drop.c: New file.
37745
37746         New module 'idpriv-drop'.
37747         * lib/idpriv.h: New file.
37748         * lib-idpriv-drop.c: New file.
37749         * m4/idpriv.m4: New file.
37750         * modules/idpriv-drop: New file.
37751
37752 2009-06-08  Bruno Haible  <bruno@clisp.org>
37753
37754         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37755         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37756         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37757         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37758         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37759         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37760         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37761
37762 2009-06-08  Eric Blake  <ebb9@byu.net>
37763
37764         test-strstr: use memory fence, when possible
37765         * tests/test-strstr.c (main): Use memory fence, in order to be
37766         more likely to trigger Debian bug 521737.
37767         * modules/strstr-tests (Files): Pull in additional files.
37768
37769         memchr: no longer obsolete, for wider field testing
37770         * modules/memchr (Status, Notice): Delete, this module is no
37771         longer obsolete.
37772         * modules/vasnprintf (Depends-on): Add memchr.
37773
37774 2009-06-07  Jim Meyering  <meyering@redhat.com>
37775
37776         hash: declare some functions with the warn_unused_result attribute
37777         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37778
37779 2009-06-07  Bruno Haible  <bruno@clisp.org>
37780
37781         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37782         Reported by Eric Blake.
37783
37784 2009-06-06  Eric Blake  <ebb9@byu.net>
37785
37786         test-alignof: fix typo with long double
37787         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37788         compiler error.
37789
37790 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37791
37792         Escape non-texinfo { and }s.
37793         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37794         markup error.
37795
37796 2009-06-04  Jim Meyering  <meyering@redhat.com>
37797
37798         gitlog-to-changelog: don't infloop on an empty commit log
37799         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37800         Reported by Boris Petersen <transacid@centerim.org>.
37801
37802 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37803
37804         version-etc: extend for packagers
37805         Add three new configure options, intended for packagers:
37806           --with-packager="packager name"
37807           --with-packager-version="packager-specific version"
37808           --with-packager-bug-reports="packager bug reporting"
37809         An example with coreutils:
37810           $ ./configure \
37811             --with-packager=Gentoo \
37812             --with-packager-bug-report=http://bugs.gentoo.org/ \
37813             --with-packager-version="patchset 1.6"
37814           $ ./src/ls --version | head -n2
37815           ls (GNU coreutils) 7.1-dirty
37816           Packaged by Gentoo (patchset 1.6)
37817         Note that the bug reporting info via --help doesn't show up because
37818         coreutils uses its own custom emit_bug_reporting_address() implementation
37819         in src/system.h.  If it didn't, it'd look like:
37820           $ ./src/ls --help | tail -n4
37821           Report bugs to <bug-coreutils@gnu.org>.
37822           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37823           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37824           General help using GNU software: <http://www.gnu.org/gethelp/>.
37825         * lib/version-etc.c: Print new information, if provided.
37826         * m4/version-etc.m4: New file.
37827         * modules/version-etc (Files): Add m4/version-etc.m4.
37828         (configure.ac): Add gl_VERSION_ETC.
37829
37830 2009-05-31  Bruno Haible  <bruno@clisp.org>
37831
37832         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37833         and 'int64_t'.
37834         * modules/alignof-tests (Dependencies): Add stdint.
37835         Reported by Eric Blake.
37836
37837 2009-05-31  Bruno Haible  <bruno@clisp.org>
37838
37839         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37840         restriction due to compiler bugs.
37841         Reported by Eric Blake.
37842
37843 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37844             Bruno Haible  <bruno@clisp.org>
37845
37846         Fix test-alignof failure.
37847         * lib/alignof.h (alignof_slot): New macro.
37848         (alignof_type): New macro, with the same semantics as the previous
37849         'alignof'.
37850         (alignof): Alias to alignof_slot.
37851         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37852         check that the results are usable as constant expressions.
37853
37854 2009-05-31  Bruno Haible  <bruno@clisp.org>
37855
37856         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37857         * tests/test-memchr.c (main): Check that memchr does not read past the
37858         first occurrence of the byte.
37859         * tests/test-strstr.c (main): Update comment.
37860         Suggested by Eric Blake.
37861
37862 2009-05-30  Bruno Haible  <bruno@clisp.org>
37863
37864         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37865         detail how to use dumpbin.
37866         Reported by David Byron <dbyron@dbyron.com>.
37867
37868 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37869
37870         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37871
37872 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37873
37874         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37875
37876 2009-05-28  Bruno Haible  <bruno@clisp.org>
37877
37878         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37879         build-aux/ files.
37880
37881 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37882
37883         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37884
37885 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37886
37887         * gnulib-tool (sed_transform_main_lib_file)
37888         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37889         regexps.
37890
37891 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37892
37893         * tests/test-strstr.c: Add another self-test.
37894         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37895         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37896
37897 2009-05-23  Bruno Haible  <bruno@clisp.org>
37898
37899         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37900         change.
37901
37902 2009-05-21  Bruno Haible  <bruno@clisp.org>
37903
37904         Simplify use of mode_t varargs.
37905         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37906         uses 'mode_t' or 'int'.
37907         * lib/openat.c (openat): Likewise.
37908         * lib/open-safer.c (open_safer): Likewise.
37909         * m4/mode_t.m4: New file.
37910         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37911         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37912         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37913         * modules/open (Files): Add m4/mode_t.m4.
37914         * modules/openat (Files): Likewise.
37915         * modules/fcntl-safer (Files): Likewise.
37916         Suggested by Eric Blake.
37917
37918 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37919
37920         * doc/glibc-functions/fallocate.texi: New file.
37921         * doc/gnulib.texi: Include it.
37922
37923 2009-05-21  Eric Blake  <ebb9@byu.net>
37924             Bruno Haible  <bruno@clisp.org>
37925
37926         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37927         invocations.
37928         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37929
37930 2009-05-21  Eric Blake  <ebb9@byu.net>
37931             Bruno Haible  <bruno@clisp.org>
37932
37933         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37934         include_next. Fix of 2008-11-20 commit.
37935         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37936         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37937         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37938         NEXT_MATH_H.
37939         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37940         instead of NEXT_MATH_H.
37941
37942 2009-05-21  Bruno Haible  <bruno@clisp.org>
37943
37944         Avoid redefinition warnings for SIZE_MAX.
37945         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37946         Reported by Simon Josefsson.
37947
37948 2009-05-21  Bruno Haible  <bruno@clisp.org>
37949
37950         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37951         AC_CACHE_VAL.
37952
37953 2009-05-20  Bruno Haible  <bruno@clisp.org>
37954
37955         Make zeroptr.h work on mingw.
37956         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37957         mprotect.
37958         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37959         * modules/memchr2-tests (configure.ac): Likewise.
37960         * modules/memcmp-tests (configure.ac): Likewise.
37961         * modules/memmem-tests (configure.ac): Likewise.
37962         * modules/memrchr-tests (configure.ac): Likewise.
37963         Reported by Simon Josefsson.
37964
37965 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37966
37967         * tests/test-glob.c: Include string.h for strcmp prototype.
37968
37969 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37970
37971         * modules/getdelim (Depends-on): Add explicit stdint, although it
37972         was implicitly already pulled in via realloc-posix.
37973         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37974
37975 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37976
37977         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37978         G. Christensen" <tgc@jupiterrise.com>.
37979         * m4/sys_socket_h.m4: Check for sa_family_t.
37980         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37981         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37982         * tests/test-sys_socket.c: Check that sa_family_t works.
37983
37984 2009-05-18  Eric Blake  <ebb9@byu.net>
37985
37986         maint.mk: allow gnulib_dir in VPATH build
37987         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37988
37989 2009-05-15  Jim Meyering  <meyering@redhat.com>
37990
37991         maint.mk: Give gnulib_dir a default definition.
37992         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37993         Thus, most packages no longer need to specify this variable in cfg.mk
37994
37995 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37996
37997         rename.m4: fix typos that would make non-mingw cross-configure fail
37998         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37999
38000 2009-05-13  Eric Blake  <ebb9@byu.net>
38001
38002         mmap-anon: avoid out-of-order autoconf expansion
38003         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38004         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38005         * modules/memchr-tests (Depends-on): Add extensions.
38006         * modules/memchr2-tests (Depends-on): Add extensions.
38007         * modules/memcmp-tests (Depends-on): Add extensions.
38008         * modules/memmem-tests (Depends-on): Add extensions.
38009         * modules/memrchr-tests (Depends-on): Add extensions.
38010
38011 2009-05-13  Bruno Haible  <bruno@clisp.org>
38012
38013         Make some tests ISO C 99 compliant.
38014         * tests/zerosize-ptr.h: New file.
38015         * tests/test-memchr.c: Include zerosize-ptr.h.
38016         (main): Use a zero-size object pointer instead of NULL.
38017         * tests/test-memchr2.c: Include zerosize-ptr.h.
38018         (main): Use a zero-size object pointer instead of NULL.
38019         * tests/test-memcmp.c: Include zerosize-ptr.h.
38020         (main): Use a zero-size object pointer instead of NULL.
38021         * tests/test-memmem.c: Include zerosize-ptr.h.
38022         (main): Use a zero-size object pointer instead of NULL.
38023         * tests/test-memrchr.c: Include zerosize-ptr.h.
38024         (main): Use a zero-size object pointer instead of NULL.
38025         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38026         m4/mmap-anon.m4.
38027         (Depends-on): Add getpagesize.
38028         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38029         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38030         m4/mmap-anon.m4.
38031         (Depends-on): Add getpagesize.
38032         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38033         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38034         m4/mmap-anon.m4.
38035         (Depends-on): Add getpagesize.
38036         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38037         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38038         m4/mmap-anon.m4.
38039         (Depends-on): Add getpagesize.
38040         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38041         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38042         m4/mmap-anon.m4.
38043         (Depends-on): Add getpagesize.
38044         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38045
38046 2009-05-12  Bruno Haible  <bruno@clisp.org>
38047
38048         Tests for module 'alignof'.
38049         * modules/alignof-tests: New file.
38050         * tests/test-alignof.c: New file.
38051
38052 2009-05-12  Bruno Haible  <bruno@clisp.org>
38053
38054         Fix alignof macro.
38055         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38056         vendor compilers that are always correct.
38057
38058 2009-05-12  Bruno Haible  <bruno@clisp.org>
38059
38060         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38061         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38062         not whether its fully works.
38063
38064 2009-05-12  Bruno Haible  <bruno@clisp.org>
38065
38066         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38067
38068 2009-05-12  Jim Meyering  <meyering@redhat.com>
38069
38070         * top/maint.mk: Adjust backslash alignment.
38071
38072 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38073
38074         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38075
38076 2009-05-11  Eric Blake  <ebb9@byu.net>
38077
38078         argp: avoid undefined behavior
38079         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38080         macros.
38081
38082 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38083
38084         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38085         user.name to prevent git commit from complaining.
38086
38087 2009-05-10  Bruno Haible  <bruno@clisp.org>
38088
38089         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38090         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38091         it rewrites every file name only once.
38092         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38093
38094 2009-05-08  Bruno Haible  <bruno@clisp.org>
38095
38096         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38097         instead of 'max'.
38098
38099 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38100
38101         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38102         sockaddr_storage test.
38103
38104 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38105
38106         * modules/sys_socket (Makefile.am): Substitute
38107         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38108         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38109         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38110         * tests/test-sys_socket.c: Check sockaddr_storage.
38111
38112 2009-05-08  Bruno Haible  <bruno@clisp.org>
38113
38114         New module 'alignof'.
38115         * lib/alignof.h: New file.
38116         * modules/alignof: New file.
38117
38118 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38119             Bruno Haible  <bruno@clisp.org>
38120
38121         Fix test-file-has-acl on FreeBSD.
38122         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38123         mask is implicitly added.
38124         * tests/test-file-has-acl.c: Include <signal.h>.
38125         (main): Terminate the test after 5 seconds.
38126         * modules/acl-tests (configure.ac): Check for alarm function.
38127
38128 2009-05-04  Bruno Haible  <bruno@clisp.org>
38129
38130         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38131         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38132         * modules/errno (configure.ac): Drop AC_REQUIRE.
38133         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38134         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38135
38136 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38137
38138         * modules/glob-tests: New module.
38139         * tests/test-glob.c: Add.
38140
38141 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38142
38143         * modules/fnmatch-tests: New module.
38144         * tests/test-fnmatch.c: Add.
38145
38146 2009-05-04  Eric Blake  <ebb9@byu.net>
38147
38148         maint: make the new no-submodule-changes rule VPATH-safe
38149         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38150
38151 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38152             Bruno Haible  <bruno@clisp.org>
38153
38154         acl: Fix infinite loop on FreeBSD.
38155         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38156         of return value from acl_get_entry.
38157         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38158         Likewise.
38159
38160 2009-05-03  Bruno Haible  <bruno@clisp.org>
38161
38162         * lib/acl-internal.h (acl_entries): Clarify return value.
38163         * lib/acl_entries.c (acl_entries): Likewise.
38164
38165 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38166
38167         Bug fix in acl module.
38168         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38169
38170 2009-05-03  Bruno Haible  <bruno@clisp.org>
38171
38172         Create gperf-generated file in the source dir, not in the build dir.
38173         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38174         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38175         * modules/unicase/locale-language (unicase/locale-languages.h):
38176         Likewise.
38177         * modules/unicase/special-casing (unicase/special-casing-table.h):
38178         Likewise.
38179         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38180         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38181         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38182         Reported by Ralf Wildenhues.
38183
38184 2009-05-03  Bruno Haible  <bruno@clisp.org>
38185
38186         * modules/fnmatch (Description, configure.ac): Taken from
38187         fnmatch-posix.
38188         * modules/fnmatch-posix: Turn into a symbolic reference to the
38189         'fnmatch' module, and deprecate.
38190         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38191
38192 2009-05-03  Bruno Haible  <bruno@clisp.org>
38193
38194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38195         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38196         Reported by Ralf Wildenhues.
38197
38198 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38199
38200         * m4/fnmatch.m4: Fix fnmatch re-define.
38201
38202 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38203
38204         priv-set: new module and tests; adapt write-any-file
38205         * lib/priv-set.c: New file.
38206         * lib/priv-set.h: New file.
38207         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38208         * lib/write-any-file.c: Simplify by using priv-set module.
38209         * m4/priv-set.m4: New file.
38210         * modules/priv-set: New file.
38211         * modules/unlinkdir: Add dependency on priv-set module.
38212         * modules/write-any-file: Likewise.
38213
38214         Tests for module 'priv-set'.
38215         * modules/priv-set-tests: New file.
38216         * tests/test-priv-set.c: New file.
38217
38218 2009-05-03  Jim Meyering  <meyering@redhat.com>
38219             Bruno Haible  <bruno@clisp.org>
38220
38221         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38222         use the converted UTF-8 variant of the name instead.
38223
38224 2009-05-03  Jim Meyering  <meyering@redhat.com>
38225
38226         tests: tighten some getdate tests
38227         * tests/test-getdate.c (main): Tighten tests: require equality,
38228         not just greater than.  Set TZ envvar to UTC0.
38229
38230 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38231
38232         getdate: correctly interpret "next monday" when run on a Monday
38233         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38234         that e.g., "next tues" (when run on a tuesday) results in a date
38235         that is one week in the future, and not today's date.
38236         I.e., add a week when the wday is the same as the current one.
38237         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38238         and earlier by Martin Bernreuther and Jan Minář.
38239         * tests/test-getdate.c (main): Check that "next DAY" is always in
38240         the future and that "last DAY" is always in the past.
38241
38242 2009-05-02  Jim Meyering  <meyering@redhat.com>
38243
38244         build: ensure that a release build fails when a submodule is unclean
38245         * top/maint.mk (no-submodule-changes): New rule.
38246         (alpha beta major): Depend on it.
38247
38248 2009-05-02  Bruno Haible  <bruno@clisp.org>
38249
38250         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38251         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38252         shell variable gl_fnmatch_required to detect which variant is
38253         requested.
38254         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38255         gl_FUNC_FNMATCH_POSIX.
38256         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38257         exclude fnmatch-posix.
38258
38259 2009-05-02  Bruno Haible  <bruno@clisp.org>
38260
38261         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38262         * modules/mbsrtowcs (License): Change to LGPLv2+.
38263         * modules/strnlen1 (License): Likewise.
38264         Reported by Simon Josefsson.
38265
38266 2009-05-02  Bruno Haible  <bruno@clisp.org>
38267
38268         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38269         "cross".
38270         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38271         gnulib-tool was called with option --source-base=lib.
38272
38273 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38274
38275         Use automake *-local hooks without commands, for extensibility.
38276         * modules/localcharset (Makefile.am): Rename install-exec-local
38277         rule to install-exec-localcharset, and make it a prerequisite of
38278         install-exec-local.  Likewise, rename the uninstall-local rule to
38279         uninstall-localcharset, and make it a prerequisite of the former.
38280
38281 2009-05-01  Bruno Haible  <bruno@clisp.org>
38282
38283         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38284         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38285         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38287         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38288         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38289         m4/locale-zh.m4, m4/codeset.m4.
38290
38291         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38292         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38293         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38294         m4/locale-zh.m4.
38295
38296         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38297         REPLACE_WCRTOMB if mbstate_t must be replaced.
38298         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38299         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38300
38301 2009-05-01  Bruno Haible  <bruno@clisp.org>
38302
38303         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38304         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38305         dngettext, dcngettext, textdomain, bindtextdomain,
38306         bind_textdomain_codeset): Undefine before redefining.
38307
38308 2009-04-30  Bruno Haible  <bruno@clisp.org>
38309
38310         Fix bug introduced on 2009-04-25.
38311         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38312         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38313         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38314         is defined.
38315         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38316         is defined.
38317         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38318         is defined.
38319         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38320
38321 2009-04-28  Bruno Haible  <bruno@clisp.org>
38322
38323         Comment tweaks.
38324         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38325         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38326         * lib/unicase.h (u*_casexfrm): Likewise.
38327         Reported by Paolo Bonzini.
38328
38329 2009-04-28  Bruno Haible  <bruno@clisp.org>
38330
38331         Fix a compilation error.
38332         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38333         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38334         Reported by Jim Meyering.
38335
38336 2009-04-27  Bruno Haible  <bruno@clisp.org>
38337
38338         New module 'libunistring'.
38339         * modules/libunistring: New file.
38340         * m4/libunistring.m4: New file.
38341         * MODULES.html.sh (Unicode string functions): Add it.
38342
38343 2009-04-27  Eric Blake  <ebb9@byu.net>
38344
38345         maint.mk: allow package-specific header to provide <config.h>
38346         * top/maint.mk (sc_require_config_h): New variable.
38347         (sc_require_config_h, sc_require_config_h_first): Use it.
38348
38349 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38350
38351         * top/maint.mk (sc_avoid_if_before_free): Except
38352         useless-if-before-free script.
38353
38354 2009-04-27  Eric Blake  <ebb9@byu.net>
38355
38356         maintainer-makefile: depend on all required helper scripts
38357         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38358         useless-if-before-free.
38359         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38360         version, rather than assuming gnulib checkout is available.
38361         Reported by Simen Josefsson.
38362
38363 2009-04-26  Bruno Haible  <bruno@clisp.org>
38364
38365         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38366         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38367         "../" or "..".
38368
38369 2009-04-26  Bruno Haible  <bruno@clisp.org>
38370
38371         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38372         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38373         AC_LIB_HAVE_LINKFLAGS.
38374
38375 2009-04-26  Bruno Haible  <bruno@clisp.org>
38376
38377         Simplify calling convention of u*_conv_from_encoding.
38378         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38379         u32_conv_from_encoding): Expect a resultbuf argument and return the
38380         result directly as a pointer.
38381         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38382         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38383         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38384         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38385         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38386         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38387         Update.
38388         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38389         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38390         * lib/vasnprintf.c (VASNPRINTF): Update.
38391         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38392         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38393         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38394         * NEWS: Mention the change.
38395
38396 2009-04-26  Bruno Haible  <bruno@clisp.org>
38397
38398         Simplify calling convention of u*_conv_to_encoding.
38399         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38400         u32_conv_to_encoding): Expect a resultbuf argument and return the
38401         result directly as a pointer.
38402         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38403         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38404         freeing scaled_offsets if mem_iconveha failed.
38405         * lib/unicase/u-casexfrm.h (FUNC): Update.
38406         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38407         * lib/vasnprintf.c (VASNPRINTF): Update.
38408         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38409         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38410         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38411         * NEWS: Mention the change.
38412
38413 2009-04-26  Bruno Haible  <bruno@clisp.org>
38414
38415         Avoid test failures on AIX and OSF/1.
38416         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38417         malloc(0).
38418         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38419         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38420         Likewise.
38421         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38422         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38423         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38424         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38425         * doc/posix-functions/malloc.texi: Document the portability problem
38426         related to malloc(0).
38427
38428 2009-04-26  Bruno Haible  <bruno@clisp.org>
38429
38430         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38431         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38432         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38433
38434 2009-04-25  Bruno Haible  <bruno@clisp.org>
38435
38436         Avoid link error when creating a namespace clean library.
38437         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38438         as macro with arguments if already defined as an alias.
38439         * lib/signbitf.c (gl_signbitf): Don't undefine.
38440         * lib/signbitd.c (gl_signbitd): Don't undefine.
38441         * lib/signbitl.c (gl_signbitl): Don't undefine.
38442
38443 2009-04-25  Jim Meyering  <meyering@redhat.com>
38444
38445         vc-list-files: fix another quoting bug
38446         * build-aux/vc-list-files: Avoid sed backslash expansion
38447         of pathological directory names.
38448
38449 2009-04-25  Eric Blake  <ebb9@byu.net>
38450
38451         vc-list-files: fix shell quoting error
38452         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38453         timestamp.
38454
38455 2009-04-25  Jim Meyering  <meyering@redhat.com>
38456
38457         vc-list-files: restore lost functionality with subdir argument
38458         * build-aux/vc-list-files: When given a non-"." sub-directory
38459         argument, substitute the $dir/ prefix back onto each resulting name.
38460         Otherwise, coreutils' root_tests check would fail.
38461
38462 2009-04-24  Eric Blake  <ebb9@byu.net>
38463
38464         vc-list-files: ignore git symlinks
38465         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38466         than ls-files, to ignore git symlinks.
38467
38468         maint.mk: import improvements from m4
38469         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38470         (move_if_change): Delete unused macro.
38471         (news-date-check, vc-diff-check): Support VPATH builds.
38472         (announcement): Likewise.  Split --bootstrap-tools list...
38473         (boostrap-tools): ...into separate list, which can be overridden
38474         in cfg.mk.
38475         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38476         requiring dependency on useless-if-before-free module.
38477         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38478         Support VPATH builds.
38479
38480 2009-04-24  Jim Meyering  <meyering@redhat.com>
38481
38482         maint.mk: remove coreutils-specific rules and variables
38483         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38484         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38485         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38486
38487         maint.mk: remove obsolete rule
38488         * top/maint.mk (rel-check): Remove rule.
38489         (WGET, WGETFLAGS): Remove now-unused variables.
38490
38491 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38492
38493         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38494         consistency.
38495
38496         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38497         '$(PATH_SEPARATOR)' instead of ':'.
38498
38499 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38500
38501         * lib/getopt1.c (main): Use 'const' for static array.
38502
38503 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38504
38505         * top/maint.mk: Sync with coreutils.
38506         * NEWS: Explain incompatibilities.
38507
38508 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38509             Bruno Haible  <bruno@clisp.org>
38510
38511         Fix cross-compilation results.
38512         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38513         statement, as third argument of AC_TRY_RUN.
38514         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38515         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38516         Likewise.
38517         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38518         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38519         Likewise.
38520         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38521         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38522         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38523
38524 2009-04-20  Bruno Haible  <bruno@clisp.org>
38525
38526         Avoid test failure on mingw.
38527         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38528
38529 2009-04-20  Bruno Haible  <bruno@clisp.org>
38530
38531         Avoid compilation error on mingw.
38532         * modules/localename-tests (Depends-on): Add locale.
38533
38534 2009-04-19  Bruno Haible  <bruno@clisp.org>
38535
38536         Support for building a shared library on Windows platforms.
38537         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38538         (main): Test the presence of UNINORM_NFC here.
38539         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38540         (main): Test the presence of UNINORM_NFD here.
38541         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38542         (main): Test the presence of UNINORM_NFKC here.
38543         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38544         (main): Test the presence of UNINORM_NFKD here.
38545
38546 2009-04-19  Bruno Haible  <bruno@clisp.org>
38547
38548         Avoid a compiler warning.
38549         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38550         Change type of variable 'sequence'.
38551
38552 2009-04-19  Bruno Haible  <bruno@clisp.org>
38553
38554         * modules/configmake (Makefile.am): When the contents of configmake.h
38555         does not change, arrange to preserve its modification time.
38556
38557 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38558
38559         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38560         gettext domain.
38561
38562 2009-04-16  Jim Meyering  <meyering@redhat.com>
38563
38564         useless-if-before-free: improve conversion code
38565         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38566         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38567
38568 2009-04-14  Bruno Haible  <bruno@clisp.org>
38569
38570         * modules/fcntl (Depends-on): Add extensions.
38571         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38572
38573 2009-04-12  Ben Pfaff  <blp@gnu.org>
38574
38575         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38576         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38577
38578 2009-03-20  Ben Pfaff  <blp@gnu.org>
38579
38580         Make rename replace existing destinations on Windows.
38581         * m4/rename.m4: Add test for Mingw.
38582         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38583         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38584         * doc/posix-functions/rename.texi: Document.
38585
38586 2009-04-10  Bruno Haible  <bruno@clisp.org>
38587
38588         New include file "iconveh.h".
38589         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38590         * lib/striconveh.h: Include it.
38591         (enum iconv_ilseq_handler): Remove definition.
38592         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38593         striconveh.h.
38594         * lib/striconveha.c: Include striconveh.h.
38595         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38596         * modules/striconveh (Files): Add lib/iconveh.h.
38597         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38598         lib/striconveh.h.
38599
38600 2009-04-10  Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/uniconv.h: Update comment.
38603
38604 2009-04-10  Bruno Haible  <bruno@clisp.org>
38605
38606         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38607         always.
38608         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38609         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38610         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38611         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38612         "unistring-notinline.h", so that the function gets defined always.
38613         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38614         * lib/unistr/u8-uctomb.c: Likewise.
38615         * lib/unistr/u16-mbtouc.c: Likewise.
38616         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38617         * lib/unistr/u16-uctomb.c: Likewise.
38618         * lib/unistr/u32-mbtouc.c: Likewise.
38619         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38620         * lib/unistr/u32-uctomb.c: Likewise.
38621
38622 2009-04-10  Bruno Haible  <bruno@clisp.org>
38623
38624         Mark 'utime' obsolete.
38625         * modules/utime (Status, Notice): New sections.
38626         Suggested by Jim Meyering.
38627
38628         Fix cross-compile guess for utime test.
38629         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38630         autoconf.
38631         * doc/posix-functions/utime.texi: Give more precisions.
38632         Reported by Jan <ipif@ymail.com>.
38633
38634 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38635
38636         filevercmp: correct today's change
38637         * lib/filevercmp.c: Also handle coreutils' test inputs.
38638         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38639
38640         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38641         for reporting it.
38642         * lib/filevercmp.c: Special handle for "", "." and "..".
38643         * tests/test-filevercmp.c: Enlarge the set suite.
38644
38645 2009-04-07  Jim Meyering  <meyering@redhat.com>
38646
38647         useless-if-before-free: show how to remove braced useless free, too
38648         * build-aux/useless-if-before-free: still only in a comment, though.
38649
38650 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38651
38652         maint.mk: import changes to syntax-check macros from coreutils
38653         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38654         Use them in the relevant macros.
38655
38656 2009-04-06  Bruno Haible  <bruno@clisp.org>
38657
38658         Fix unportable use of bit-fields.
38659         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38660         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38661         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38662
38663 2009-04-06  Bruno Haible  <bruno@clisp.org>
38664
38665         Avoid test failures on AIX and OSF/1.
38666         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38667         that malloc(0) = NULL.
38668         * tests/unicase/test-u8-tolower.c (check): Likewise.
38669         * tests/unicase/test-u8-totitle.c (check): Likewise.
38670         * tests/unicase/test-u8-toupper.c (check): Likewise.
38671         * tests/unicase/test-u16-casefold.c (check): Likewise.
38672         * tests/unicase/test-u16-tolower.c (check): Likewise.
38673         * tests/unicase/test-u16-totitle.c (check): Likewise.
38674         * tests/unicase/test-u16-toupper.c (check): Likewise.
38675         * tests/unicase/test-u32-casefold.c (check): Likewise.
38676         * tests/unicase/test-u32-tolower.c (check): Likewise.
38677         * tests/unicase/test-u32-totitle.c (check): Likewise.
38678         * tests/unicase/test-u32-toupper.c (check): Likewise.
38679         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38680         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38681         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38682         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38683         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38684         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38685         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38686         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38687         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38688         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38689         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38690         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38691
38692 2009-04-05  Bruno Haible  <bruno@clisp.org>
38693
38694         Work around an autoconf limitation.
38695         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38696         comment line if it would be longer than 3 KB.
38697
38698 2009-04-05  Bruno Haible  <bruno@clisp.org>
38699
38700         Avoid test failure with libiconv-1.13.
38701         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38702         of the expected test results.
38703
38704 2009-04-05  Bruno Haible  <bruno@clisp.org>
38705
38706         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38707         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38708         that it should be installed.
38709
38710 2009-04-05  Bruno Haible  <bruno@clisp.org>
38711
38712         * gnulib-tool: New option --copy-file.
38713         (func_usage): Document it.
38714         (func_dest_tmpfilename): Moved out of func_import.
38715         (func_add_file, func_update_file): New functions, extracted from
38716         func_import.
38717         (func_import): Update.
38718
38719 2009-04-05  Karl Berry  <karl@gnu.org>
38720
38721         * README: prominently mention gnulib-tool.
38722         Rearrange sections so getting the code is near the top.
38723
38724 2009-04-05  Bruno Haible  <bruno@clisp.org>
38725
38726         * lib/unicase.h: Mention u*_cmp2.
38727         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38728         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38729         * lib/unicase/ulc-casecmp.c: Likewise.
38730         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38731         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38732         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38733         unistr/u8-cmp.
38734         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38735         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38736         unistr/u16-cmp.
38737         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38738         unistr/u32-cmp.
38739
38740         * lib/uninorm.h: Mention u*_cmp2.
38741         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38742         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38743         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38744         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38745         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38746         unistr/u8-cmp.
38747         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38748         unistr/u16-cmp.
38749         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38750         unistr/u32-cmp.
38751
38752         New module 'unistr/u32-cmp2'.
38753         * lib/unistr/u32-cmp2.c: New file.
38754         * modules/unistr/u32-cmp2: New file.
38755
38756         New module 'unistr/u16-cmp2'.
38757         * lib/unistr/u16-cmp2.c: New file.
38758         * modules/unistr/u16-cmp2: New file.
38759
38760         New module 'unistr/u8-cmp2'.
38761         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38762         * lib/unistr/u8-cmp2.c: New file.
38763         * lib/unistr/u-cmp2.h: New file.
38764         * modules/unistr/u8-cmp2: New file.
38765
38766 2009-04-05  Bruno Haible  <bruno@clisp.org>
38767
38768         * lib/unictype.h (uc_property_is_valid): New macro.
38769         * tests/unictype/test-pr_byname.c (main): Use it.
38770
38771         * lib/unistr.h: Doc fixes.
38772         * lib/uniconv.h: Doc fixes.
38773         * lib/unictype.h: Doc fixes.
38774
38775 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38776
38777         Port coreutils 7.2 to Solaris 8.
38778
38779         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38780         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38781         for Solaris 8.  This is a bit of a hack, as it means it's the
38782         caller's responsibility to add -lnsl if needed, but most likely it
38783         won't be needed since only getaddrinfo uses this and getaddrinfo
38784         isn't needed on Solaris 8.
38785
38786         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38787         problem to Solaris 8 encountered with coreutils 7.2, which
38788         resulted in a message "fnmatch.c:292: warning: passing argument 4
38789         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38790         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38791
38792 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38793
38794         * m4/ld-version-script.m4: Add FIXME comment.
38795
38796 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38797
38798         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38799         SOVERSION variable.
38800
38801 2009-04-02  Bruno Haible  <bruno@clisp.org>
38802
38803         * Makefile (info, html, dvi, pdf): Combine the rules.
38804         Suggested by Jim Meyering.
38805
38806 2009-04-01  Bruno Haible  <bruno@clisp.org>
38807
38808         * Makefile (info, html, dvi, pdf): New targets.
38809         Reported by Reuben Thomas <rrt@sc3d.org>.
38810
38811 2009-04-01  Bruno Haible  <bruno@clisp.org>
38812
38813         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38814         can be put into PATH.
38815         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38816
38817 2009-04-01  Bruno Haible  <bruno@clisp.org>
38818
38819         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38820
38821 2009-04-01  Bruno Haible  <bruno@clisp.org>
38822
38823         Rename module 'visibility'.
38824         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38825         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38826         * doc/gnulib.texi: Update.
38827         * MODULES.html.sh (Misc): Update.
38828         * NEWS: Mention the change.
38829
38830 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38831
38832         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38833         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38834         Eric Blake <ebb9@byu.net> for review.
38835         * MODULES.html.sh: Add lib-msvc-compat.
38836         * doc/gnulib.texi: Link to new section.
38837         * m4/ld-output-def.m4: New file.
38838         * doc/ld-output-def.texi: New file.
38839
38840 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38841
38842         Rename ld-version-script to lib-symbol-versions.  Suggested by
38843         Bruno Haible <bruno@clisp.org>.
38844         * modules/ld-version-script: Renamed to lib-symbol-versions.
38845         * doc/ld-version-script.texi: Fix module name.
38846         * MODULES.html.sh: Add lib-symbol-versions.
38847
38848 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38849
38850         * modules/u64-tests: New file.
38851         * tests/test-u64.c: New file.
38852
38853 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38854
38855         * MODULES.html.sh: Mention u64.
38856         * modules/u64: New module.
38857         * modules/crypto/sha512: Depend on u64 module instead of providing
38858         u64.h.
38859
38860 2009-03-27  Eric Blake  <ebb9@byu.net>
38861
38862         test-strerror: make debugging EAI_SYSTEM easier
38863         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38864         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38865         failure was EAI_SYSTEM.
38866
38867 2009-03-25  Bruno Haible  <bruno@clisp.org>
38868
38869         Fix a problem with --enable-relocatable on Solaris 7.
38870         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38871         since 2008-02-24.
38872
38873 2009-03-25  Eric Blake  <ebb9@byu.net>
38874
38875         test-sockets: avoid gcc warning
38876         * tests/test-sockets.c (main): Silence compiler warning.
38877
38878 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38879
38880         New modules nproc, pthread, contributed by Glen Lenker.
38881
38882         * MODULES.html.sh: Add pthread, nproc.
38883         * lib/nproc.c: New file.
38884         * lib/nproc.h: New file.
38885         * lib/pthread.in.h: New file.
38886         * m4/pthread.m4: New file.
38887         * modules/nproc: New file.
38888         * modules/pthread: New file.
38889
38890 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38891
38892         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38893         New variable.
38894
38895 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38896
38897         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38898         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38899         * tests/test-filevercmp.c: Add tests for backup suffixes.
38900
38901 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38902
38903         * modules/stdlib (Depends-on): Add stdint, needed when defining
38904         struct random_data on, for example, HP-UX 10.20.  Reported by
38905         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38906
38907 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38908
38909         * lib/readline.c (readline): Call fflush on stdout after printing
38910         prompt.
38911
38912 2009-03-20  Bruno Haible  <bruno@clisp.org>
38913
38914         Remove dependency from 'close' module to -lws2_32 on native Windows.
38915         * lib/close-hook.h: New file.
38916         * lib/close-hook.c: New file.
38917         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38918         w32sock.h.
38919         (_gl_close_fd_maybe_socket): Remove function.
38920         (rpl_close): Invoke execute_all_close_hooks instead of
38921         _gl_close_fd_maybe_socket.
38922         * lib/sockets.c: Include close-hook.h, w32sock.h.
38923         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38924         (close_sockets_hook): New variable.
38925         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38926         (gl_sockets_cleanup): Unregister it.
38927         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38928         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38929         * modules/close-hook: New file.
38930         * modules/close (Files): Remove lib/w32sock.h.
38931         (Depends-on): Add close-hook.
38932         (Link): Remove section.
38933         * modules/sockets (Files): Add lib/w32sock.h.
38934         (Depends-on): Add close-hook.
38935         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38936         invocation.
38937         * NEWS: Mention that LIB_CLOSE is gone.
38938
38939 2009-03-23  Eric Blake  <ebb9@byu.net>
38940
38941         signal-tests: test previous patch
38942         * tests/test-signal.c: New file.
38943         * modules/signal-tests: Likewise.
38944
38945         signal.h: always support 'volatile sig_atomic_t'
38946         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38947         (gl_SIGNAL_H_DEFAULTS): Add a default.
38948         * modules/signal (Makefile.am): Substitute if needed.
38949         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38950         users can blindly add volatile.
38951         * doc/posix-headers/signal.texi (signal.h): Document it.
38952         Reported by Matthew Woehlke.
38953
38954 2009-03-23  Jim Meyering  <meyering@redhat.com>
38955
38956         pathmax: PATH_MAX: use pathconf only when available
38957         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38958         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38959         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38960         This avoids a link failure in a PSP cross-compilation environment
38961         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38962
38963         * lib/vasnprintf.c (divide): Fix typo in comment.
38964
38965 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38966
38967         * gnulib-tool (func_filter_filelist): Fix comment.
38968
38969 2009-03-20  Bruno Haible  <bruno@clisp.org>
38970
38971         Make sockets.h self-contained.
38972         * lib/sockets.c: Include sockets.h first.
38973         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38974
38975 2009-03-19  Eric Blake  <ebb9@byu.net>
38976
38977         doc: mention more functions added in cygwin 1.7.0
38978         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38979         addition.
38980         * doc/posix-functions/log2f.texi: Likewise.
38981
38982 2009-03-19  Jim Meyering  <meyering@redhat.com>
38983
38984         fsusage: avoid syntax error due to statement-before-declaration
38985         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38986         after all declarations.  Reported by Matthew Woehlke in
38987         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38988
38989 2009-03-18  Eric Blake  <ebb9@byu.net>
38990
38991         build-aux/compile: sync from automake
38992         * build-aux/compile: New file, from automake.
38993         * config/srclist.txt: Mention build-aux/compile.
38994
38995 2009-03-17  Bruno Haible  <bruno@clisp.org>
38996
38997         * lib/git-merge-changelog.c: Fix typo in comment.
38998         Reported by Reuben Thomas <rrt@sc3d.org>.
38999
39000 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39001
39002         * m4/regex.m4: update and improve help for
39003         --without-included-regex.
39004
39005 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39006
39007         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39008         failure on missing include files.
39009
39010 2009-03-17  Eric Blake  <ebb9@byu.net>
39011
39012         doc: mention more functions added in cygwin 1.7.0
39013         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39014         addition.
39015         * doc/posix-functions/fwscanf.texi: Likewise.
39016         * doc/posix-functions/swprintf.texi: Likewise.
39017         * doc/posix-functions/swscanf.texi: Likewise.
39018         * doc/posix-functions/vfwprintf.texi: Likewise.
39019         * doc/posix-functions/vfwscanf.texi: Likewise.
39020         * doc/posix-functions/vswprintf.texi: Likewise.
39021         * doc/posix-functions/vswscanf.texi: Likewise.
39022         * doc/posix-functions/vwprintf.texi: Likewise.
39023         * doc/posix-functions/vwscanf.texi: Likewise.
39024         * doc/posix-functions/wcscasecmp.texi: Likewise.
39025         * doc/posix-functions/wcsdup.texi: Likewise.
39026         * doc/posix-functions/wcsftime.texi: Likewise.
39027         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39028         * doc/posix-functions/wprintf.texi: Likewise.
39029         * doc/posix-functions/wscanf.texi: Likewise.
39030         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39031
39032 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39033
39034         maint.mk: really add $(AM_MAKEFLAGS)
39035         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39036         was inadvertently omitted in the last commit.
39037         Spotted by Bruno Haible.
39038
39039         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39040         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39041         $(AM_MAKEFLAGS)' rather than plain `make'.
39042
39043         gnulib-tool: execute $MAKE not make
39044         * gnulib-tool: Default $MAKE to 'make'.
39045         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39046         than make.  Initialize $MAKE in the do-autobuild script.
39047
39048         gnulib-tool: use $MAKE not make in generated files
39049         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39050         make, in generated files.  Initialize $MAKE in the do-autobuild
39051         script.
39052
39053         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39054
39055         GNUmakefile: disable parallelism only for multiple, recursive targets
39056         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39057         additions in the Makefile.
39058         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39059         by Automake.
39060         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39061         are listed on the command line and at least one of them is
39062         listed in $(ALL_RECURSIVE_TARGETS).
39063
39064 2009-03-14  Bruno Haible  <bruno@clisp.org>
39065
39066         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39067         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39068         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39069         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39070         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39071         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39072         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39073         unistr/u8-uctomb.
39074         * modules/unistr/u8-strchr (Depends-on): Likewise.
39075         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39076         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39077         unistr/u16-uctomb.
39078         * modules/unistr/u16-strchr (Depends-on): Likewise.
39079         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39080
39081 2009-03-12  Bruno Haible  <bruno@clisp.org>
39082
39083         Work around select() bug on Interix 3.5.
39084         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39085         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39086         * m4/select.m4: New file.
39087         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39088         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39089         * modules/select (Files): Add m4/select.m4.
39090         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39091         * modules/nanosleep (Depends-on): Add select.
39092         * modules/poll (Depends-on): Likewise.
39093         * doc/posix-functions/select.texi: Mention the Interix bug.
39094         Reported by Markus Duft <mduft@gentoo.org>.
39095
39096         * lib/select.c: Renamed from lib/winsock-select.c.
39097         * modules/select (Files): Add lib/select.c, remove
39098         lib/winsock-select.c.
39099         (configure.ac): Update.
39100
39101 2009-03-12  Jim Meyering  <meyering@redhat.com>
39102
39103         avoid gcc warnings about unused macro definitions
39104         * lib/readtokens.c (STREQ): Remove unused definition.
39105         * lib/xmalloc.c (SIZE_MAX): Likewise.
39106         * lib/openat-die.c (N_): Likewise.
39107         * lib/mountlist.c (SIZE_MAX): Remove definition.
39108         Instead, include <stdint.h>.
39109         * lib/readutmp.c: Likewise.
39110         * modules/readutmp (Depends-on): Add stdint.
39111         * modules/mountlist (Depends-on): Add stdint.
39112         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39113
39114 2009-03-10  Bruno Haible  <bruno@clisp.org>
39115
39116         Tests for module 'mbmemcasecoll'.
39117         * modules/mbmemcasecoll-tests: New file.
39118         * tests/test-mbmemcasecoll1.sh: New file.
39119         * tests/test-mbmemcasecoll2.sh: New file.
39120         * tests/test-mbmemcasecoll3.sh: New file.
39121         * tests/test-mbmemcasecoll.c: New file.
39122
39123         New module 'mbmemcasecoll'.
39124         * lib/mbmemcasecoll.h: New file.
39125         * lib/mbmemcasecoll.c: New file.
39126         * modules/mbmemcasecoll: New file.
39127
39128         * tests/test-mbmemcasecmp.h: New file, extracted from
39129         tests/test-mbmemcasecmp.c.
39130         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39131         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39132         (main): Update.
39133         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39134
39135 2009-03-09  Bruno Haible  <bruno@clisp.org>
39136
39137         Tests for module 'mbmemcasecmp'.
39138         * modules/mbmemcasecmp-tests: New file.
39139         * tests/test-mbmemcasecmp1.sh: New file.
39140         * tests/test-mbmemcasecmp2.sh: New file.
39141         * tests/test-mbmemcasecmp3.sh: New file.
39142         * tests/test-mbmemcasecmp.c: New file.
39143
39144         New module 'mbmemcasecmp'.
39145         * lib/mbmemcasecmp.h: New file.
39146         * lib/mbmemcasecmp.c: New file.
39147         * modules/mbmemcasecmp: New file.
39148
39149 2009-03-09  Bruno Haible  <bruno@clisp.org>
39150
39151         Tests for module 'unicase/ulc-casecoll'.
39152         * modules/unicase/ulc-casecoll-tests: New file.
39153         * tests/unicase/test-ulc-casecoll1.sh: New file.
39154         * tests/unicase/test-ulc-casecoll2.sh: New file.
39155         * tests/unicase/test-ulc-casecoll.c: New file.
39156
39157         New module 'unicase/ulc-casecoll'.
39158         * lib/unicase.h (ulc_casecoll): New declaration.
39159         * lib/unicase/ulc-casecoll.c: New file.
39160         * modules/unicase/ulc-casecoll: New file.
39161
39162         New module 'unicase/ulc-casexfrm'.
39163         * lib/unicase.h (ulc_casexfrm): New declaration.
39164         * lib/unicase/ulc-casexfrm.c: New file.
39165         * modules/unicase/ulc-casexfrm: New file.
39166
39167 2009-03-09  Bruno Haible  <bruno@clisp.org>
39168
39169         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39170         invocations.
39171
39172         * m4/mbscasecmp.m4: Remove file.
39173         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39174         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39175
39176         * m4/mbscasestr.m4: Remove file.
39177         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39178         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39179
39180         * m4/mbschr.m4: Remove file.
39181         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39182         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39183
39184         * m4/mbscspn.m4: Remove file.
39185         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39186         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39187
39188         * m4/mbslen.m4: Remove file.
39189         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39190         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39191
39192         * m4/mbsncasecmp.m4: Remove file.
39193         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39194         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39195
39196         * m4/mbsnlen.m4: Remove file.
39197         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39198         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39199
39200         * m4/mbspbrk.m4: Remove file.
39201         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39202         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39203
39204         * m4/mbspcasecmp.m4: Remove file.
39205         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39206         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39207
39208         * m4/mbsrchr.m4: Remove file.
39209         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39210         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39211
39212         * m4/mbssep.m4: Remove file.
39213         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39214         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39215
39216         * m4/mbsspn.m4: Remove file.
39217         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39218         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39219
39220         * m4/mbsstr.m4: Remove file.
39221         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39222         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39223
39224         * m4/mbstok_r.m4: Remove file.
39225         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39226         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39227
39228         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39229
39230         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39231         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39232
39233         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39234
39235 2009-03-08  Bruno Haible  <bruno@clisp.org>
39236
39237         Tests for module 'unicase/ulc-casecmp'.
39238         * modules/unicase/ulc-casecmp-tests: New file.
39239         * tests/unicase/test-ulc-casecmp1.sh: New file.
39240         * tests/unicase/test-ulc-casecmp2.sh: New file.
39241         * tests/unicase/test-ulc-casecmp.c: New file.
39242
39243         New module 'unicase/ulc-casecmp'.
39244         * lib/unicase.h (ulc_casecmp): New declaration.
39245         * lib/unicase/ulc-casecmp.c: New file.
39246         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39247         'const SRC_UNIT *'.
39248         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39249         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39250         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39251         * modules/unicase/ulc-casecmp: New file.
39252
39253         Tests for module 'unicase/u32-is-cased'.
39254         * modules/unicase/u32-is-cased-tests: New file.
39255         * tests/unicase/test-u32-is-cased.c: New file.
39256
39257         Tests for module 'unicase/u16-is-cased'.
39258         * modules/unicase/u16-is-cased-tests: New file.
39259         * tests/unicase/test-u16-is-cased.c: New file.
39260
39261         Tests for module 'unicase/u8-is-cased'.
39262         * modules/unicase/u8-is-cased-tests: New file.
39263         * tests/unicase/test-u8-is-cased.c: New file.
39264         * tests/unicase/test-is-cased.h: New file.
39265
39266         New module 'unicase/u32-is-cased'.
39267         * lib/unicase/u32-is-cased.c: New file.
39268         * modules/unicase/u32-is-cased: New file.
39269
39270         New module 'unicase/u16-is-cased'.
39271         * lib/unicase/u16-is-cased.c: New file.
39272         * modules/unicase/u16-is-cased: New file.
39273
39274         New module 'unicase/u8-is-cased'.
39275         * lib/unicase/u8-is-cased.c: New file.
39276         * lib/unicase/u-is-cased.h: New file.
39277         * modules/unicase/u8-is-cased: New file.
39278
39279         Tests for module 'unicase/u32-is-casefolded'.
39280         * modules/unicase/u32-is-casefolded-tests: New file.
39281         * tests/unicase/test-u32-is-casefolded.c: New file.
39282
39283         Tests for module 'unicase/u16-is-casefolded'.
39284         * modules/unicase/u16-is-casefolded-tests: New file.
39285         * tests/unicase/test-u16-is-casefolded.c: New file.
39286
39287         Tests for module 'unicase/u8-is-casefolded'.
39288         * modules/unicase/u8-is-casefolded-tests: New file.
39289         * tests/unicase/test-u8-is-casefolded.c: New file.
39290         * tests/unicase/test-is-casefolded.h: New file.
39291
39292         New module 'unicase/u32-is-casefolded'.
39293         * lib/unicase/u32-is-casefolded.c: New file.
39294         * modules/unicase/u32-is-casefolded: New file.
39295
39296         New module 'unicase/u16-is-casefolded'.
39297         * lib/unicase/u16-is-casefolded.c: New file.
39298         * modules/unicase/u16-is-casefolded: New file.
39299
39300         New module 'unicase/u8-is-casefolded'.
39301         * lib/unicase/u8-is-casefolded.c: New file.
39302         * modules/unicase/u8-is-casefolded: New file.
39303
39304         Tests for module 'unicase/u32-is-titlecase'.
39305         * modules/unicase/u32-is-titlecase-tests: New file.
39306         * tests/unicase/test-u32-is-titlecase.c: New file.
39307
39308         Tests for module 'unicase/u16-is-titlecase'.
39309         * modules/unicase/u16-is-titlecase-tests: New file.
39310         * tests/unicase/test-u16-is-titlecase.c: New file.
39311
39312         Tests for module 'unicase/u8-is-titlecase'.
39313         * modules/unicase/u8-is-titlecase-tests: New file.
39314         * tests/unicase/test-u8-is-titlecase.c: New file.
39315         * tests/unicase/test-is-titlecase.h: New file.
39316
39317         New module 'unicase/u32-is-titlecase'.
39318         * lib/unicase/u32-is-titlecase.c: New file.
39319         * modules/unicase/u32-is-titlecase: New file.
39320
39321         New module 'unicase/u16-is-titlecase'.
39322         * lib/unicase/u16-is-titlecase.c: New file.
39323         * modules/unicase/u16-is-titlecase: New file.
39324
39325         New module 'unicase/u8-is-titlecase'.
39326         * lib/unicase/u8-is-titlecase.c: New file.
39327         * modules/unicase/u8-is-titlecase: New file.
39328
39329         Tests for module 'unicase/u32-is-lowercase'.
39330         * modules/unicase/u32-is-lowercase-tests: New file.
39331         * tests/unicase/test-u32-is-lowercase.c: New file.
39332
39333         Tests for module 'unicase/u16-is-lowercase'.
39334         * modules/unicase/u16-is-lowercase-tests: New file.
39335         * tests/unicase/test-u16-is-lowercase.c: New file.
39336
39337         Tests for module 'unicase/u8-is-lowercase'.
39338         * modules/unicase/u8-is-lowercase-tests: New file.
39339         * tests/unicase/test-u8-is-lowercase.c: New file.
39340         * tests/unicase/test-is-lowercase.h: New file.
39341
39342         New module 'unicase/u32-is-lowercase'.
39343         * lib/unicase/u32-is-lowercase.c: New file.
39344         * modules/unicase/u32-is-lowercase: New file.
39345
39346         New module 'unicase/u16-is-lowercase'.
39347         * lib/unicase/u16-is-lowercase.c: New file.
39348         * modules/unicase/u16-is-lowercase: New file.
39349
39350         New module 'unicase/u8-is-lowercase'.
39351         * lib/unicase/u8-is-lowercase.c: New file.
39352         * modules/unicase/u8-is-lowercase: New file.
39353
39354         Tests for module 'unicase/u32-is-uppercase'.
39355         * modules/unicase/u32-is-uppercase-tests: New file.
39356         * tests/unicase/test-u32-is-uppercase.c: New file.
39357
39358         Tests for module 'unicase/u16-is-uppercase'.
39359         * modules/unicase/u16-is-uppercase-tests: New file.
39360         * tests/unicase/test-u16-is-uppercase.c: New file.
39361
39362         Tests for module 'unicase/u8-is-uppercase'.
39363         * modules/unicase/u8-is-uppercase-tests: New file.
39364         * tests/unicase/test-u8-is-uppercase.c: New file.
39365         * tests/unicase/test-is-uppercase.h: New file.
39366
39367         New module 'unicase/u32-is-uppercase'.
39368         * lib/unicase/u32-is-uppercase.c: New file.
39369         * modules/unicase/u32-is-uppercase: New file.
39370
39371         New module 'unicase/u16-is-uppercase'.
39372         * lib/unicase/u16-is-uppercase.c: New file.
39373         * modules/unicase/u16-is-uppercase: New file.
39374
39375         New module 'unicase/u8-is-uppercase'.
39376         * lib/unicase/u8-is-uppercase.c: New file.
39377         * modules/unicase/u8-is-uppercase: New file.
39378
39379         New module 'unicase/u32-is-invariant'.
39380         * lib/unicase/u32-is-invariant.c: New file.
39381         * modules/unicase/u32-is-invariant: New file.
39382
39383         New module 'unicase/u16-is-invariant'.
39384         * lib/unicase/u16-is-invariant.c: New file.
39385         * modules/unicase/u16-is-invariant: New file.
39386
39387         New module 'unicase/u8-is-invariant'.
39388         * lib/unicase/u8-is-invariant.c: New file.
39389         * lib/unicase/invariant.h: New file.
39390         * lib/unicase/u-is-invariant.h: New file.
39391         * modules/unicase/u8-is-invariant: New file.
39392
39393         Tests for module 'unicase/u32-casecoll'.
39394         * modules/unicase/u32-casecoll-tests: New file.
39395         * tests/unicase/test-u32-casecoll.c: New file.
39396
39397         Tests for module 'unicase/u16-casecoll'.
39398         * modules/unicase/u16-casecoll-tests: New file.
39399         * tests/unicase/test-u16-casecoll.c: New file.
39400
39401         Tests for module 'unicase/u8-casecoll'.
39402         * modules/unicase/u8-casecoll-tests: New file.
39403         * tests/unicase/test-u8-casecoll.c: New file.
39404
39405         New module 'unicase/u32-casecoll'.
39406         * lib/unicase/u32-casecoll.c: New file.
39407         * modules/unicase/u32-casecoll: New file.
39408
39409         New module 'unicase/u16-casecoll'.
39410         * lib/unicase/u16-casecoll.c: New file.
39411         * modules/unicase/u16-casecoll: New file.
39412
39413         New module 'unicase/u8-casecoll'.
39414         * lib/unicase/u8-casecoll.c: New file.
39415         * lib/unicase/u-casecoll.h: New file.
39416         * modules/unicase/u8-casecoll: New file.
39417
39418         New module 'unicase/u32-casexfrm'.
39419         * lib/unicase/u32-casexfrm.c: New file.
39420         * modules/unicase/u32-casexfrm: New file.
39421
39422         New module 'unicase/u16-casexfrm'.
39423         * lib/unicase/u16-casexfrm.c: New file.
39424         * modules/unicase/u16-casexfrm: New file.
39425
39426         New module 'unicase/u8-casexfrm'.
39427         * lib/unicase/u8-casexfrm.c: New file.
39428         * lib/unicase/u-casexfrm.h: New file.
39429         * modules/unicase/u8-casexfrm: New file.
39430
39431         Tests for module 'unicase/u32-casecmp'.
39432         * modules/unicase/u32-casecmp-tests: New file.
39433         * tests/unicase/test-u32-casecmp.c: New file.
39434
39435         Tests for module 'unicase/u16-casecmp'.
39436         * modules/unicase/u16-casecmp-tests: New file.
39437         * tests/unicase/test-u16-casecmp.c: New file.
39438
39439         Tests for module 'unicase/u8-casecmp'.
39440         * modules/unicase/u8-casecmp-tests: New file.
39441         * tests/unicase/test-u8-casecmp.c: New file.
39442         * tests/unicase/test-casecmp.h: New file.
39443
39444         New module 'unicase/u32-casecmp'.
39445         * lib/unicase/u32-casecmp.c: New file.
39446         * modules/unicase/u32-casecmp: New file.
39447
39448         New module 'unicase/u16-casecmp'.
39449         * lib/unicase/u16-casecmp.c: New file.
39450         * modules/unicase/u16-casecmp: New file.
39451
39452         New module 'unicase/u8-casecmp'.
39453         * lib/unicase/u8-casecmp.c: New file.
39454         * lib/unicase/u-casecmp.h: New file.
39455         * modules/unicase/u8-casecmp: New file.
39456
39457         Tests for module 'unicase/u32-casefold'.
39458         * modules/unicase/u32-casefold-tests: New file.
39459         * tests/unicase/test-u32-casefold.c: New file.
39460
39461         Tests for module 'unicase/u16-casefold'.
39462         * modules/unicase/u16-casefold-tests: New file.
39463         * tests/unicase/test-u16-casefold.c: New file.
39464
39465         Tests for module 'unicase/u8-casefold'.
39466         * modules/unicase/u8-casefold-tests: New file.
39467         * tests/unicase/test-u8-casefold.c: New file.
39468
39469         New module 'unicase/u32-casefold'.
39470         * lib/unicase/u32-casefold.c: New file.
39471         * modules/unicase/u32-casefold: New file.
39472
39473         New module 'unicase/u16-casefold'.
39474         * lib/unicase/u16-casefold.c: New file.
39475         * modules/unicase/u16-casefold: New file.
39476
39477         New module 'unicase/u8-casefold'.
39478         * lib/unicase/u8-casefold.c: New file.
39479         * lib/unicase/u-casefold.h: New file.
39480         * modules/unicase/u8-casefold: New file.
39481
39482         New module 'unicase/tocasefold'.
39483         * lib/unicase/casefold.h: New file.
39484         * lib/unicase/tocasefold.c: New file.
39485         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39486         * modules/unicase/tocasefold: New file.
39487
39488         Tests for module 'unicase/u32-totitle'.
39489         * modules/unicase/u32-totitle-tests: New file.
39490         * tests/unicase/test-u32-totitle.c: New file.
39491
39492         Tests for module 'unicase/u16-totitle'.
39493         * modules/unicase/u16-totitle-tests: New file.
39494         * tests/unicase/test-u16-totitle.c: New file.
39495
39496         Tests for module 'unicase/u8-totitle'.
39497         * modules/unicase/u8-totitle-tests: New file.
39498         * tests/unicase/test-u8-totitle.c: New file.
39499
39500         New module 'unicase/u32-totitle'.
39501         * lib/unicase/u32-totitle.c: New file.
39502         * modules/unicase/u32-totitle: New file.
39503
39504         New module 'unicase/u16-totitle'.
39505         * lib/unicase/u16-totitle.c: New file.
39506         * modules/unicase/u16-totitle: New file.
39507
39508         New module 'unicase/u8-totitle'.
39509         * lib/unicase/u8-totitle.c: New file.
39510         * lib/unicase/u-totitle.h: New file.
39511         * modules/unicase/u8-totitle: New file.
39512
39513         Tests for module 'unicase/u32-tolower'.
39514         * modules/unicase/u32-tolower-tests: New file.
39515         * tests/unicase/test-u32-tolower.c: New file.
39516
39517         Tests for module 'unicase/u16-tolower'.
39518         * modules/unicase/u16-tolower-tests: New file.
39519         * tests/unicase/test-u16-tolower.c: New file.
39520
39521         Tests for module 'unicase/u8-tolower'.
39522         * modules/unicase/u8-tolower-tests: New file.
39523         * tests/unicase/test-u8-tolower.c: New file.
39524
39525         New module 'unicase/u32-tolower'.
39526         * lib/unicase/u32-tolower.c: New file.
39527         * modules/unicase/u32-tolower: New file.
39528
39529         New module 'unicase/u16-tolower'.
39530         * lib/unicase/u16-tolower.c: New file.
39531         * modules/unicase/u16-tolower: New file.
39532
39533         New module 'unicase/u8-tolower'.
39534         * lib/unicase/u8-tolower.c: New file.
39535         * modules/unicase/u8-tolower: New file.
39536
39537         Tests for module 'unicase/u32-toupper'.
39538         * modules/unicase/u32-toupper-tests: New file.
39539         * tests/unicase/test-u32-toupper.c: New file.
39540
39541         Tests for module 'unicase/u16-toupper'.
39542         * modules/unicase/u16-toupper-tests: New file.
39543         * tests/unicase/test-u16-toupper.c: New file.
39544
39545         Tests for module 'unicase/u8-toupper'.
39546         * modules/unicase/u8-toupper-tests: New file.
39547         * tests/unicase/test-u8-toupper.c: New file.
39548
39549         New module 'unicase/u32-toupper'.
39550         * lib/unicase/u32-toupper.c: New file.
39551         * modules/unicase/u32-toupper: New file.
39552
39553         New module 'unicase/u16-toupper'.
39554         * lib/unicase/u16-toupper.c: New file.
39555         * modules/unicase/u16-toupper: New file.
39556
39557         New module 'unicase/u8-toupper'.
39558         * lib/unicase/u8-toupper.c: New file.
39559         * modules/unicase/u8-toupper: New file.
39560
39561         New module 'unicase/u32-casemap'.
39562         * lib/unicase/u32-casemap.c: New file.
39563         * modules/unicase/u32-casemap: New file.
39564
39565         New module 'unicase/u16-casemap'.
39566         * lib/unicase/u16-casemap.c: New file.
39567         * modules/unicase/u16-casemap: New file.
39568
39569         New module 'unicase/u8-casemap'.
39570         * lib/unicase/unicasemap.h: New file.
39571         * lib/unicase/u8-casemap.c: New file.
39572         * lib/unicase/u-casemap.h: New file.
39573         * modules/unicase/u8-casemap: New file.
39574
39575         New module 'unicase/special-casing'.
39576         * lib/unicase/special-casing.h: New file.
39577         * lib/unicase/special-casing.c: New file.
39578         * lib/unicase/special-casing-table.gperf: New file, generated by
39579         gen-uni-tables.c.
39580         * modules/unicase/special-casing: New file.
39581
39582         Tests for module 'unicase/locale-language'.
39583         * modules/unicase/locale-language-tests: New file.
39584         * tests/unicase/test-locale-language.sh: New file.
39585         * tests/unicase/test-locale-language.c: New file.
39586
39587         New module 'unicase/locale-language'.
39588         * lib/unicase/locale-language.c: New file.
39589         * lib/unicase/locale-languages.gperf: New file.
39590         * modules/unicase/locale-language: New file.
39591
39592         Generate more tables for case conversion and case folding.
39593         * lib/gen-uni-tables.c (SCC_*): New enum items.
39594         (struct special_casing_rule): New type.
39595         (casing_rules, num_casing_rules, allocated_casing_rules): New
39596         variables.
39597         (add_casing_rule, fill_casing_rules): New functions.
39598         (struct casefold_rule): New type.
39599         (casefolding_rules, num_casefolding_rules,
39600         allocated_casefolding_rules): New variables.
39601         (fill_casefolding_rules): New function.
39602         (unicode_casefold): New variable.
39603         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39604         sort_casing_rules, output_casing_rules): New functions.
39605         (main): Accept to more arguments: SpecialCasing.txt and
39606         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39607         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39608         Output mapping for casefolding.
39609
39610         * lib/unicase.h: Include stdbool.h, uninorm.h.
39611         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39612         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39613         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39614         arguments.
39615         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39616         resultp arguments.
39617         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39618         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39619         resultp arguments.
39620         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39621         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39622         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39623         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39624         declarations.
39625         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39626
39627 2009-03-08  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39630         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39631         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39632         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39633
39634 2009-03-07  Bruno Haible  <bruno@clisp.org>
39635
39636         Adjust u*_normcmp, u*_normcoll API.
39637         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39638         u16_normcoll, u32_normcoll): Change failure conventions.
39639         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39640         errno and return -1.
39641         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39642
39643 2009-03-07  Bruno Haible  <bruno@clisp.org>
39644
39645         Tests for module 'uninorm/u32-normcoll'.
39646         * modules/uninorm/u32-normcoll-tests: New file.
39647         * tests/uninorm/test-u32-normcoll.c: New file.
39648
39649         Tests for module 'uninorm/u16-normcoll'.
39650         * modules/uninorm/u16-normcoll-tests: New file.
39651         * tests/uninorm/test-u16-normcoll.c: New file.
39652
39653         Tests for module 'uninorm/u8-normcoll'.
39654         * modules/uninorm/u8-normcoll-tests: New file.
39655         * tests/uninorm/test-u8-normcoll.c: New file.
39656
39657 2009-03-07  Bruno Haible  <bruno@clisp.org>
39658
39659         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39660         tests/uninorm/test-u32-normcmp.c.
39661         * tests/uninorm/test-u32-normcmp.c: Include it.
39662         (test_nonascii): New function, extracted from main. Add some more
39663         tests.
39664         (main): Invoke test_ascii and test_nonascii.
39665         * modules/uninorm/u32-normcmp-tests (Files): Add
39666         tests/uninorm/test-u32-normcmp.h.
39667         (Depends-on): Remove uninorm/u32-normcmp.
39668
39669         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39670         tests/uninorm/test-u16-normcmp.c.
39671         * tests/uninorm/test-u16-normcmp.c: Include it.
39672         (test_nonascii): New function, extracted from main. Add some more
39673         tests.
39674         (main): Invoke test_ascii and test_nonascii.
39675         * modules/uninorm/u16-normcmp-tests (Files): Add
39676         tests/uninorm/test-u16-normcmp.h.
39677         (Depends-on): Remove uninorm/u16-normcmp.
39678
39679         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39680         tests/uninorm/test-u8-normcmp.c.
39681         * tests/uninorm/test-u8-normcmp.c: Include it.
39682         (test_nonascii): New function, extracted from main. Add some more
39683         tests.
39684         (main): Invoke test_ascii and test_nonascii.
39685         * modules/uninorm/u8-normcmp-tests (Files): Add
39686         tests/uninorm/test-u8-normcmp.h.
39687         (Depends-on): Remove uninorm/u8-normcmp.
39688
39689 2009-03-07  Bruno Haible  <bruno@clisp.org>
39690
39691         New module 'uninorm/u32-normcoll'.
39692         * lib/uninorm/u32-normcoll.c: New file.
39693         * modules/uninorm/u32-normcoll: New file.
39694
39695         New module 'uninorm/u16-normcoll'.
39696         * lib/uninorm/u16-normcoll.c: New file.
39697         * modules/uninorm/u16-normcoll: New file.
39698
39699         New module 'uninorm/u8-normcoll'.
39700         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39701         declarations.
39702         * lib/uninorm/u8-normcoll.c: New file.
39703         * lib/uninorm/u-normcoll.h: New file.
39704         * modules/uninorm/u8-normcoll: New file.
39705
39706         New module 'uninorm/u32-normxfrm'.
39707         * lib/uninorm/u32-normxfrm.c: New file.
39708         * modules/uninorm/u32-normxfrm: New file.
39709
39710         New module 'uninorm/u16-normxfrm'.
39711         * lib/uninorm/u16-normxfrm.c: New file.
39712         * modules/uninorm/u16-normxfrm: New file.
39713
39714         New module 'uninorm/u8-normxfrm'.
39715         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39716         declarations.
39717         * lib/uninorm/u8-normxfrm.c: New file.
39718         * lib/uninorm/u-normxfrm.h: New file.
39719         * modules/uninorm/u8-normxfrm: New file.
39720
39721 2009-03-07  Bruno Haible  <bruno@clisp.org>
39722
39723         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39724         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39725         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39726
39727 2009-03-07  Bruno Haible  <bruno@clisp.org>
39728
39729         New module 'memxfrm'.
39730         * lib/memxfrm.h: New file.
39731         * lib/memxfrm.c: New file.
39732         * modules/memxfrm: New file.
39733
39734 2009-03-07  Bruno Haible  <bruno@clisp.org>
39735
39736         New module 'memcmp2'.
39737         * lib/memcmp2.h: New file.
39738         * lib/memcmp2.c: New file.
39739         * modules/memcmp2: New file.
39740
39741 2009-03-07  Bruno Haible  <bruno@clisp.org>
39742
39743         Tests for module 'uninorm/decomposing-form'.
39744         * modules/uninorm/decomposing-form-tests: New file.
39745         * tests/uninorm/test-decomposing-form.c: New file.
39746
39747         New module 'uninorm/decomposing-form'.
39748         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39749         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39750         Add 'decomposing_variant' field.
39751         * lib/uninorm/decomposing-form.c: New file.
39752         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39753         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39754         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39755         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39756         * modules/uninorm/decomposing-form: New file.
39757         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39758         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39759
39760 2009-03-07  Bruno Haible  <bruno@clisp.org>
39761
39762         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39763         strings.
39764
39765 2009-03-06  Bruno Haible  <bruno@clisp.org>
39766
39767         Tests for module 'uninorm/u32-normcmp'.
39768         * tests/uninorm/test-u32-normcmp.c: New file.
39769         * modules/uninorm/u32-normcmp-tests: New file.
39770
39771         Tests for module 'uninorm/u16-normcmp'.
39772         * tests/uninorm/test-u16-normcmp.c: New file.
39773         * modules/uninorm/u16-normcmp-tests: New file.
39774
39775         Tests for module 'uninorm/u8-normcmp'.
39776         * tests/uninorm/test-u8-normcmp.c: New file.
39777         * modules/uninorm/u8-normcmp-tests: New file.
39778
39779         New module 'uninorm/u32-normcmp'.
39780         * lib/uninorm/u32-normcmp.c: New file.
39781         * modules/uninorm/u32-normcmp: New file.
39782
39783         New module 'uninorm/u16-normcmp'.
39784         * lib/uninorm/u16-normcmp.c: New file.
39785         * modules/uninorm/u16-normcmp: New file.
39786
39787         New module 'uninorm/u8-normcmp'.
39788         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39789         declarations.
39790         * lib/uninorm/u8-normcmp.c: New file.
39791         * lib/uninorm/u-normcmp.h: New file.
39792         * modules/uninorm/u8-normcmp: New file.
39793
39794 2009-03-06  Bruno Haible  <bruno@clisp.org>
39795
39796         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39797         Reported by Eric Blake.
39798
39799 2009-03-06  Eric Blake  <ebb9@byu.net>
39800             Bruno Haible  <bruno@clisp.org>
39801
39802         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39803         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39804         condition.
39805         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39806         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39807         condition.
39808         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39809
39810 2009-03-06  Eric Blake  <ebb9@byu.net>
39811
39812         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39813         to avoid compiler warnings.
39814         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39815
39816 2009-03-05  Bruno Haible  <bruno@clisp.org>
39817
39818         * tests/test-ftell.c (main): Disable test beyond end of file on
39819         FreeMiNT.
39820         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39821
39822 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39823
39824         * lib/filevercmp.c: Move hidden files up in ordering.
39825         * tests/test-filevercmp.c: Add tests for hidden files.
39826
39827 2009-03-04  Bruno Haible  <bruno@clisp.org>
39828
39829         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39830         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39831         AM_CFLAGS.
39832         Reported by Simon Josefsson.
39833
39834 2009-03-03  Bruno Haible  <bruno@clisp.org>
39835
39836         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39837         Reported by Simon Josefsson.
39838
39839         * doc/ld-version-script.texi: Update node reference.
39840
39841 2009-03-03  Bruno Haible  <bruno@clisp.org>
39842
39843         * modules/visibility (License): Change to 'unlimited'.
39844         Suggested by Simon Josefsson.
39845
39846 2009-03-03  Jim Meyering  <meyering@redhat.com>
39847
39848         unlinkdir: cannot_unlink_dir may modify process state
39849         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39850         it's neither thread-safe nor appropriate for use in a library.
39851
39852 2009-03-03  Eric Blake  <ebb9@byu.net>
39853
39854         test-closein: silence test under Darwin
39855         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39856         care if it dies from EPIPE or EBADF.
39857
39858 2009-03-03  Bruno Haible  <bruno@clisp.org>
39859
39860         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39861         earlier.
39862         * doc/visibility.texi: Fix @node and @section.
39863
39864 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39865
39866         * doc/gnulib.texi: Link to sections for ld version script and
39867         visibility.
39868         * doc/visibility.texi: Add @node and @section.
39869         * modules/ld-version-script: New module.
39870         * m4/ld-version-script.m4: New file.
39871         * doc/ld-version-script.texi: New file.
39872
39873 2009-03-02  David Lutterkort  <lutter@redhat.com>
39874
39875         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39877
39878 2009-03-02  Bruno Haible  <bruno@clisp.org>
39879
39880         * doc/visibility.texi: Mention libtool's -export-symbols option.
39881
39882 2009-03-02  Jim Meyering  <meyering@redhat.com>
39883
39884         announce-gen: new option: --no-print-checksums
39885         * build-aux/announce-gen (usage): Describe it.
39886         (print_checksums): Print a newline here, not in the [*] footnote.
39887         (main): Honor it.
39888
39889 2009-03-01  Bruno Haible  <bruno@clisp.org>
39890
39891         Use socklen_t in the native Windows replacements prototypes.
39892         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39893         instead of 'int'.
39894         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39895         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39896         * modules/getsockopt (Depends-on): Add socklen.
39897         * modules/setsockopt (Depends-on): Add socklen.
39898
39899 2009-03-01  Bruno Haible  <bruno@clisp.org>
39900
39901         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39902         least 4.2.
39903
39904 2009-03-01  Eric Blake  <ebb9@byu.net>
39905             Bruno Haible  <bruno@clisp.org>
39906
39907         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39908         error messages.
39909         * lib/wait-process.c (wait_subprocess): Omit error message about
39910         deadly signal sent to the child of termsigp != NULL.
39911
39912 2009-03-01  Eric Blake  <ebb9@byu.net>
39913
39914         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39915
39916 2009-03-01  Bruno Haible  <bruno@clisp.org>
39917
39918         Avoid a gcc warning.
39919         * tests/test-sched.c (b): Make global.
39920         Reported by Eric Blake.
39921
39922 2009-01-19  Martin Lambers  <marlam@marlam.de>
39923
39924         Provide POSIX semantics for socket timeout options on W32.
39925         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39926         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39927         * modules/setsockopt: Depend on sys_time module for struct timeval.
39928         * modules/getsockopt: Depend on sys_time module for struct timeval.
39929
39930 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39931
39932         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39933         __USE_GNU, for consistency with netdb.in.h.
39934         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39935
39936 2009-03-01  Bruno Haible  <bruno@clisp.org>
39937
39938         More support for FreeMiNT.
39939         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39940         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39941
39942 2009-03-01  Bruno Haible  <bruno@clisp.org>
39943
39944         More support for FreeMiNT.
39945         * lib/fpurge.c (fpurge): Correct last commit.
39946         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39947
39948 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39949
39950         Fix unportable awk script in vc-list-files.
39951         * build-aux/vc-list-files: In the replacement awk script, use
39952         substr with a second argument of 1, not zero.
39953         Report by Simon Josefsson.
39954
39955 2009-02-28  Bruno Haible  <bruno@clisp.org>
39956
39957         More support for FreeMiNT.
39958         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39959         to FreeMiNT today.
39960         * lib/fwriting.c (fwriting): Likewise.
39961         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39962
39963 2009-02-28  Bruno Haible  <bruno@clisp.org>
39964
39965         * tests/test-freadseek.c (main): Disable test beyond end of file on
39966         FreeMiNT.
39967         * tests/test-ftello.c (main): Likewise.
39968         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39969
39970 2009-02-28  Bruno Haible  <bruno@clisp.org>
39971
39972         Add tentative support for FreeMiNT.
39973         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39974         * lib/fpurge.c (fpurge): Likewise.
39975         * lib/freadable.c (freadable): Likewise.
39976         * lib/freading.c (freading): Likewise.
39977         * lib/freadptr.c (freadptr): Likewise.
39978         * lib/freadseek.c (freadptrinc): Likewise.
39979         * lib/fseeko.c (rpl_fseeko): Likewise.
39980         * lib/fseterr.c (fseterr): Likewise.
39981         * lib/fwritable.c (fwritable): Likewise.
39982         * lib/fwriting.c (fwriting): Likewise.
39983         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39984         Hourihane.
39985         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39986
39987 2009-02-28  Bruno Haible  <bruno@clisp.org>
39988
39989         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39990         SIGCHLD.
39991         Reported by Jim Meyering.
39992
39993 2009-02-28  Bruno Haible  <bruno@clisp.org>
39994
39995         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39996         Mention the results of these tests on various platforms.
39997         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39998         order.
39999         * doc/posix-functions/printf.texi: Likewise.
40000         * doc/posix-functions/snprintf.texi: Likewise.
40001         * doc/posix-functions/sprintf.texi: Likewise.
40002         * doc/posix-functions/vfprintf.texi: Likewise.
40003         * doc/posix-functions/vprintf.texi: Likewise.
40004         * doc/posix-functions/vsnprintf.texi: Likewise.
40005         * doc/posix-functions/vsprintf.texi: Likewise.
40006         * doc/glibc-functions/obstack_printf.texi: Likewise.
40007         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40008
40009 2009-02-28  Bruno Haible  <bruno@clisp.org>
40010
40011         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40012         Reported by Loïc Minier <lool@dooz.org>.
40013
40014 2009-02-27  Bruno Haible  <bruno@clisp.org>
40015
40016         * gnulib-tool (func_import): Make the sed expression used to create the
40017         sed script for updating the .gitignore file POSIX compliant.
40018         Reported by Eric Blake.
40019
40020 2009-02-27  Bruno Haible  <bruno@clisp.org>
40021
40022         * gnulib-tool (sed): Don't alias as "sed --posix".
40023         Reported by Eric Blake.
40024
40025 2009-02-27  Bruno Haible  <bruno@clisp.org>
40026
40027         Avoid test link errors.
40028         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40029         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40030         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40031         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40033
40034 2009-02-27  Bruno Haible  <bruno@clisp.org>
40035
40036         Avoid spurious "(cached)" in configure output.
40037         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40038         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40039         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40040         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40041         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40042         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40043         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40044         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40045         Reported by Eric Blake.
40046
40047 2009-02-27  Eric Blake  <ebb9@byu.net>
40048
40049         printf: fix regression in previous patch
40050         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40051
40052 2009-02-27  Bruno Haible  <bruno@clisp.org>
40053
40054         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40055         value.
40056         * lib/stdint.in.h: Likewise.
40057         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40058
40059 2009-02-27  Eric Blake  <ebb9@byu.net>
40060
40061         doc: mention more functions added in cygwin 1.7.0
40062         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40063         addition.
40064         * doc/posix-functions/open_wmemstream.texi: Likewise.
40065         * doc/posix-functions/wcsnlen.texi: Likewise.
40066         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40067         * doc/posix-functions/wcstod.texi: Likewise.
40068         * doc/posix-functions/wcstof.texi: Likewise.
40069         * doc/posix-functions/wcstoimax.texi: Likewise.
40070         * doc/posix-functions/wcstok.texi: Likewise.
40071         * doc/posix-functions/wcstoumax.texi: Likewise.
40072
40073         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40074         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40075         * doc/posix-functions/fprintf.texi: Update.
40076         * doc/posix-functions/printf.texi: Update.
40077         * doc/posix-functions/snprintf.texi: Update.
40078         * doc/posix-functions/sprintf.texi: Update.
40079         * doc/posix-functions/vfprintf.texi: Update.
40080         * doc/posix-functions/vprintf.texi: Update.
40081         * doc/posix-functions/vsnprintf.texi: Update.
40082         * doc/posix-functions/vsprintf.texi: Update.
40083         * doc/glibc-functions/obstack_printf.texi: Update.
40084         * doc/glibc-functions/obstack_vprintf.texi: Update.
40085
40086 2009-02-26  Eric Blake  <ebb9@byu.net>
40087
40088         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40089         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40090         compilation bug by using runtime conversion.
40091         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40092         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40093         * modules/ceill-tests (Files): Use nan.h.
40094         * modules/floorl-tests (Files): Likewise.
40095         * modules/frexpl-tests (Files): Likewise.
40096         * modules/isnanl-tests (Files): Likewise.
40097         * modules/ldexpl-tests (Files): Likewise.
40098         * modules/roundl-tests (Files): Likewise.
40099         * modules/truncl-tests (Files): Likewise.
40100         * tests/test-ceill.c (main): Use a working NaN.
40101         * tests/test-floorl.c (main): Likewise.
40102         * tests/test-frexpl.c (main): Likewise.
40103         * tests/test-isnan.c (test_long_double): Likewise.
40104         * tests/test-isnanl.h (main): Likewise.
40105         * tests/test-ldexpl.h (main): Likewise.
40106         * tests/test-roundl.h (main): Likewise.
40107         * tests/test-truncl.h (main): Likewise.
40108         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40109
40110 2009-02-26  Eric Blake  <ebb9@byu.net>
40111             Bruno Haible  <bruno@clisp.org>
40112
40113         Work around a *printf bug with %ls on Solaris.
40114         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40115         precision is specified, sprintf stops converting the wide string
40116         argument when the number of bytes that have been produced by this
40117         conversion equals or exceeds the precision.
40118         * doc/posix-functions/fprintf.texi: Update.
40119         * doc/posix-functions/printf.texi: Update.
40120         * doc/posix-functions/snprintf.texi: Update.
40121         * doc/posix-functions/sprintf.texi: Update.
40122         * doc/posix-functions/vfprintf.texi: Update.
40123         * doc/posix-functions/vprintf.texi: Update.
40124         * doc/posix-functions/vsnprintf.texi: Update.
40125         * doc/posix-functions/vsprintf.texi: Update.
40126         * doc/glibc-functions/obstack_printf.texi: Update.
40127         * doc/glibc-functions/obstack_vprintf.texi: Update.
40128
40129 2009-02-26  Eric Blake  <ebb9@byu.net>
40130
40131         stdlib: favor compiler check of random.h
40132         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40133         to avoid an ObjC random.h installed by Swarm.
40134
40135 2009-02-26  Bruno Haible  <bruno@clisp.org>
40136
40137         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40138         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40139         Reported by Gary V. Vaughan <gary@gnu.org>.
40140
40141 2009-02-26  Bruno Haible  <bruno@clisp.org>
40142
40143         Fix *printf behaviour regarding the %ls directive.
40144         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40145         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40146         NEED_PRINTF_DIRECTIVE_LS.
40147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40148         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40149         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40150         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40151         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40152         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40153         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40156         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40158         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40159         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40161         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40162         * doc/posix-functions/fprintf.texi: Update.
40163         * doc/posix-functions/printf.texi: Update.
40164         * doc/posix-functions/snprintf.texi: Update.
40165         * doc/posix-functions/sprintf.texi: Update.
40166         * doc/posix-functions/vfprintf.texi: Update.
40167         * doc/posix-functions/vprintf.texi: Update.
40168         * doc/posix-functions/vsnprintf.texi: Update.
40169         * doc/posix-functions/vsprintf.texi: Update.
40170         * doc/glibc-functions/obstack_printf.texi: Update.
40171         * doc/glibc-functions/obstack_vprintf.texi: Update.
40172         Reported by Eric Blake.
40173
40174 2009-02-25  Bruno Haible  <bruno@clisp.org>
40175
40176         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40177         with known value.
40178         Reported by Gary V. Vaughan <gary@gnu.org>.
40179
40180 2009-02-25  Bruno Haible  <bruno@clisp.org>
40181
40182         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40183         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40184         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40185         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40186         Reported by Gary V. Vaughan <gary@gnu.org>.
40187
40188 2009-02-25  Bruno Haible  <bruno@clisp.org>
40189
40190         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40191         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40192         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40193         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40194         Reported by Gary V. Vaughan <gary@gnu.org>.
40195
40196 2009-02-25  Eric Blake  <ebb9@byu.net>
40197
40198         tests: skip fseek/ftell tests if ungetc is broken
40199         * m4/ungetc.m4: New file.
40200         * modules/fseek-tests: Split test, so ungetc dependency is
40201         separate from rest of test.
40202         * modules/fseeko-tests: Likewise.
40203         * modules/ftell-tests: Likewise.
40204         * modules/ftello-tests: Likewise.
40205         * tests/test-fseek.c (main): Isolate ungetc dependency.
40206         * tests/test-fseeko.c (main): Likewise.
40207         * tests/test-ftell.c (main): Likewise.
40208         * tests/test-ftello.c (main): Likewise.
40209         * tests/test-fseek2.sh: New file.
40210         * tests/test-fseeko2.sh: Likewise.
40211         * tests/test-ftell2.sh: Likewise.
40212         * tests/test-ftello2.sh: Likewise.
40213
40214 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40215
40216         test-getaddrinfo: fix usage of skip return code 77
40217         * tests/test-gettaddrinfo.c: Return skip code 77 only
40218         for first occurance of skip (4x77 is not 77)
40219
40220 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40221
40222         strtod: avoid C99 decl-after-statement
40223         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40224
40225 2009-02-24  Eric Blake  <ebb9@byu.net>
40226
40227         strtod: detect HP-UX 11.31 bug
40228         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40229         Reported by Gary V. Vaughan.
40230
40231 2009-02-23  Bruno Haible  <bruno@clisp.org>
40232
40233         Fix invalid read past end of memory block.
40234         * lib/vasnprintf.c (DCHAR_SET): Define.
40235         (local_wcslen): Define only when needed.
40236         (local_strnlen, local_wcsnlen): New functions.
40237         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40238         directives that involve a conversion ourselves.
40239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40240         wcsnlen, mbrtowc, wcrtomb.
40241         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40242         * tests/test-vasprintf-posix.c (test_function): Likewise.
40243         * tests/test-snprintf-posix.h (test_function): Likewise.
40244         * tests/test-sprintf-posix.h (test_function): Likewise.
40245         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40246
40247 2009-02-22  Bruno Haible  <bruno@clisp.org>
40248
40249         Implement new clarified decomposition of Hangul syllables.
40250         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40251         of type LTV, return only a pairwise decomposition.
40252         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40253         Likewise.
40254         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40255         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40256         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40257
40258 2009-02-22  Bruno Haible  <bruno@clisp.org>
40259
40260         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40261         zero-length results and shrink excess allocated memory.
40262         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40263         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40264         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40265         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40266         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40267         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40268         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40269         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40270         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40271         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40272         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40273         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40274
40275 2009-02-21  Bruno Haible  <bruno@clisp.org>
40276
40277         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40278         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40279         spaces after a period. Put a space between a macro name and its
40280         argument list. Trivial rewordings.
40281         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40282         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40283         (main): Return 0 explicitly.
40284
40285 2009-02-21  Bruno Haible  <bruno@clisp.org>
40286
40287         Tests for module 'uninorm/filter'.
40288         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40289         * modules/uninorm/filter-tests: New file.
40290
40291         New module 'uninorm/filter'.
40292         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40293         uninorm_filter_flush, uninorm_filter_free): New declarations.
40294         * lib/uninorm/uninorm-filter.c: New file.
40295         * modules/uninorm/filter: New file.
40296
40297 2009-02-21  Bruno Haible  <bruno@clisp.org>
40298
40299         Tests for module 'uninorm/nfkc'.
40300         * tests/uninorm/test-nfkc.c: New file.
40301         * tests/uninorm/test-u8-nfkc.c: New file.
40302         * tests/uninorm/test-u16-nfkc.c: New file.
40303         * tests/uninorm/test-u32-nfkc.c: New file.
40304         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40305         * tests/uninorm/test-u32-nfkc-big.c: New file.
40306         * modules/uninorm/nfkc-tests: New file.
40307
40308         New module 'uninorm/nfkc'.
40309         * lib/uninorm/nfkc.c: New file.
40310         * modules/uninorm/nfkc: New file.
40311
40312         Tests for module 'uninorm/nfkd'.
40313         * tests/uninorm/test-nfkd.c: New file.
40314         * tests/uninorm/test-u8-nfkd.c: New file.
40315         * tests/uninorm/test-u16-nfkd.c: New file.
40316         * tests/uninorm/test-u32-nfkd.c: New file.
40317         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40318         * tests/uninorm/test-u32-nfkd-big.c: New file.
40319         * modules/uninorm/nfkd-tests: New file.
40320
40321         New module 'uninorm/nfkd'.
40322         * lib/uninorm/nfkd.c: New file.
40323         * modules/uninorm/nfkd: New file.
40324
40325         Tests for module 'uninorm/nfc'.
40326         * tests/uninorm/test-nfc.c: New file.
40327         * tests/uninorm/test-u8-nfc.c: New file.
40328         * tests/uninorm/test-u16-nfc.c: New file.
40329         * tests/uninorm/test-u32-nfc.c: New file.
40330         * tests/uninorm/test-u32-nfc-big.sh: New file.
40331         * tests/uninorm/test-u32-nfc-big.c: New file.
40332         * modules/uninorm/nfc-tests: New file.
40333
40334         New module 'uninorm/nfc'.
40335         * lib/uninorm/nfc.c: New file.
40336         * modules/uninorm/nfc: New file.
40337
40338         Tests for module 'uninorm/nfd'.
40339         * tests/uninorm/test-nfd.c: New file.
40340         * tests/uninorm/test-u8-nfd.c: New file.
40341         * tests/uninorm/test-u16-nfd.c: New file.
40342         * tests/uninorm/test-u32-nfd.c: New file.
40343         * tests/uninorm/test-u32-nfd-big.sh: New file.
40344         * tests/uninorm/test-u32-nfd-big.c: New file.
40345         * tests/uninorm/test-u32-normalize-big.h: New file.
40346         * tests/uninorm/test-u32-normalize-big.c: New file.
40347         * tests/uninorm/NormalizationTest.txt: New file, created from
40348         Unicode 5.1.0 NormalizationTest.txt.
40349         * modules/uninorm/nfd-tests: New file.
40350
40351         New module 'uninorm/nfd'.
40352         * lib/uninorm/nfd.c: New file.
40353         * modules/uninorm/nfd: New file.
40354
40355         New module 'uninorm/u32-normalize'.
40356         * lib/uninorm/u32-normalize.c: New file.
40357         * modules/uninorm/u32-normalize: New file.
40358
40359         New module 'uninorm/u16-normalize'.
40360         * lib/uninorm/u16-normalize.c: New file.
40361         * modules/uninorm/u16-normalize: New file.
40362
40363         New module 'uninorm/u8-normalize'.
40364         * lib/uninorm/u8-normalize.c: New file.
40365         * lib/uninorm/normalize-internal.h: New file.
40366         * lib/uninorm/u-normalize-internal.h: New file.
40367         * modules/uninorm/u8-normalize: New file.
40368
40369         New module 'uninorm/decompose-internal'.
40370         * lib/uninorm/decompose-internal.c: New file.
40371         * modules/uninorm/decompose-internal: New file.
40372
40373         Tests for module 'uninorm/composition'.
40374         * tests/uninorm/test-composition.c: New file.
40375         * modules/uninorm/composition-tests: New file.
40376
40377         New module 'uninorm/composition'.
40378         * lib/uninorm/composition.c: New file.
40379         * lib/uninorm/composition-table.gperf: New file, generated by
40380         gen-uni-tables.
40381         * modules/uninorm/composition: New file.
40382
40383         Tests for module 'uninorm/compat-decomposition'.
40384         * tests/uninorm/test-compat-decomposition.c: New file.
40385         * modules/uninorm/compat-decomposition-tests: New file.
40386
40387         New module 'uninorm/compat-decomposition'.
40388         * lib/uninorm/decompose-internal.h: New file.
40389         * lib/uninorm/compat-decomposition.c: New file.
40390         * modules/uninorm/compat-decomposition: New file.
40391
40392         Tests for module 'uninorm/canonical-decomposition'.
40393         * tests/uninorm/test-canonical-decomposition.c: New file.
40394         * modules/uninorm/canonical-decomposition-tests: New file.
40395
40396         New module 'uninorm/canonical-decomposition'.
40397         * lib/uninorm/canonical-decomposition.c: New file.
40398         * modules/uninorm/canonical-decomposition: New file.
40399
40400         Tests for module 'uninorm/decomposition'.
40401         * tests/uninorm/test-decomposition.c: New file.
40402         * modules/uninorm/decomposition-tests: New file.
40403
40404         New module 'uninorm/decomposition'.
40405         * lib/uninorm/decomposition.c: New file.
40406         * modules/uninorm/decomposition: New file.
40407
40408         New module 'uninorm/decomposition-table'.
40409         * lib/uninorm/decomposition-table.h: New file.
40410         * lib/uninorm/decomposition-table.c: New file.
40411         * lib/uninorm/decomposition-table1.h: New file, generated by
40412         gen-uni-tables.
40413         * lib/uninorm/decomposition-table2.h: New file, generated by
40414         gen-uni-tables.
40415         * modules/uninorm/decomposition-table: New file.
40416
40417         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40418         (UC_DECOMP_*): New enumeration items.
40419         (get_decomposition): New function.
40420         (struct decomp_table): New type.
40421         (output_decomposition, output_decomposition_tables): New functions.
40422         (unicode_composition_exclusions): New variable.
40423         (fill_composition_exclusions, debug_output_composition_tables): New
40424         functions.
40425         (main): Accept one more argument. Invoke fill_composition_exclusions.
40426         Output decomposition and composition tables.
40427
40428         New module 'uninorm/base'.
40429         * lib/uninorm.h: New file.
40430         * lib/unictype.h: Update comment.
40431         * modules/uninorm/base: New file.
40432
40433 2009-02-21  David Lutterkort  <lutter@redhat.com>
40434
40435         Tests for module 'safe-alloc'.
40436         * tests/test-safe-alloc.c: New file.
40437         * modules/safe-alloc-tests: New file.
40438
40439         New module 'safe-alloc'.
40440         * lib/safe-alloc.h: New file.
40441         * lib/safe-alloc.c: New file.
40442         * m4/safe-alloc.m4: New file.
40443         * modules/safe-alloc: New file.
40444         * doc/safe-alloc.texi: New file.
40445         * doc/gnulib.texi: Include it.
40446         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40447         safe-alloc.
40448
40449 2009-02-18  Bruno Haible  <bruno@clisp.org>
40450
40451         Fix link error on non-glibc systems.
40452         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40453         variable.
40454         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40455
40456 2009-02-18  Jim Meyering  <meyering@redhat.com>
40457
40458         fts: avoid used-uninitialized error due to recent change
40459         * lib/fts.c (fts_read): Guard uses of the new member,
40460         parent->fts_n_dirs_remaining, since it's not relevant for
40461         the parent of a directory specified on the command-line.
40462
40463 2009-02-17  James Youngman  <jay@gnu.org>
40464             Bruno Haible  <bruno@clisp.org>
40465
40466         * m4/include_next.m4: Reformulate comment.
40467
40468 2009-02-16  Jim Meyering  <meyering@redhat.com>
40469
40470         fts: add #if guards so that the fts_lgpl module still builds
40471         * lib/fts.c: Guard just-added hash-table-using parts with
40472         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40473         Reported by Simon Josefsson.
40474
40475 2009-02-15  Bruno Haible  <bruno@clisp.org>
40476
40477         * modules/array-mergesort-tests: New file.
40478         * tests/test-array-mergesort.c: New file.
40479
40480         New module 'array-mergesort'.
40481         * modules/array-mergesort: New file.
40482         * lib/array-mergesort.h: New file.
40483
40484 2009-02-15  Bruno Haible  <bruno@clisp.org>
40485
40486         Fix 2009-02-07 commit.
40487         * lib/gen-uni-tables.c (output_predicate, output_category,
40488         output_combclass, output_bidi_category, output_decimal_digit,
40489         output_digit, output_numeric, output_mirror, output_scripts,
40490         output_ident_category, output_simple_mapping): Fix format directives.
40491         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40492
40493 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40494
40495         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40496         fixes are available from IBM.
40497
40498 2009-02-13  Jim Meyering  <meyering@redhat.com>
40499
40500         fts: arrange not to stat non-directories in more cases
40501         This makes GNU find (when it doesn't need to stat each file)
40502         *much* more efficient at traversing reiserfs file systems.
40503         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40504         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40505         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40506         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40507         (leaf_optimization_applies): New function.
40508         (LCO_hash, LCO_compare): New helper functions.
40509         (link_count_optimize_ok): New function.
40510         (fts_stat): Initialize new member (if dir).
40511         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40512         we've just stat'ed a directory.  Skip the stat call when possible.
40513         ---
40514         Note this AFS-related exchange:
40515         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40516         and note find's pioctl call in find/fstype.c.
40517         But that is necessary only if you want to enable the
40518         optimization for AFS, and for now, I don't.
40519
40520         fts: move a function definition "up" (no semantic change)
40521         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40522         "up" to precede upcoming use of a related function.
40523
40524 2009-02-11  Jim Meyering  <meyering@redhat.com>
40525
40526         fts: correct internal computation of nlinks (optimization-related)
40527         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40528         whether the current entry is a directory, so don't test it.
40529
40530 2009-02-10  Bruno Haible  <bruno@clisp.org>
40531
40532         Tests for module 'uniwbrk/ulc-wordbreaks'.
40533         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40534         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40535         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40536
40537         Tests for module 'uniwbrk/u32-wordbreaks'.
40538         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40539         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40540
40541         Tests for module 'uniwbrk/u16-wordbreaks'.
40542         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40543         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40544
40545         Tests for module 'uniwbrk/u8-wordbreaks'.
40546         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40547         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40548
40549 2009-02-10  Bruno Haible  <bruno@clisp.org>
40550
40551         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40552         property.
40553         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40554         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40555         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40556
40557 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40558
40559         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40560         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40561
40562 2009-02-10  Bruno Haible  <bruno@clisp.org>
40563
40564         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40565         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40566         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40567         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40568         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40569         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40570
40571 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40572
40573         * lib/sockets.h (gl_fd_to_handle): New function.
40574
40575         * tests/test-sockets.c: Call gl_fd_to_handle.
40576
40577 2009-02-09  Bruno Haible  <bruno@clisp.org>
40578
40579         * doc/havelib.texi: Document the conventions on bi-arch systems.
40580
40581 2009-02-08  Bruno Haible  <bruno@clisp.org>
40582
40583         Document the AC_LIB_LINKFLAGS macro.
40584         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40585         * doc/gnulib.texi: Include it.
40586
40587 2009-02-08  Bruno Haible  <bruno@clisp.org>
40588
40589         Fix wrong order of sections, compared to TOC.
40590         * doc/gnulib.texi: Include relocatable-maint.texi after the
40591         "Regular expressions" node, not before.
40592
40593 2009-02-08  Bruno Haible  <bruno@clisp.org>
40594
40595         Tests for module 'unicase/totitle'.
40596         * modules/unicase/totitle-tests: New file.
40597
40598         Tests for module 'unicase/tolower'.
40599         * modules/unicase/tolower-tests: New file.
40600
40601         Tests for module 'unicase/toupper'.
40602         * modules/unicase/toupper-tests: New file.
40603         * tests/unicase/test-mapping-part1.h: New file.
40604         * tests/unicase/test-mapping-part2.h: New file.
40605
40606         New module 'unicase/totitle'.
40607         * modules/unicase/totitle: New file.
40608         * lib/unicase/totitle.c: New file.
40609
40610         New module 'unicase/tolower'.
40611         * modules/unicase/tolower: New file.
40612         * lib/unicase/tolower.c: New file.
40613
40614         New module 'unicase/toupper'.
40615         * modules/unicase/toupper: New file.
40616         * lib/unicase/toupper.c: New file.
40617         * lib/unicase/simple-mapping.h: New file.
40618
40619         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40620         (mapping_table): New structure.
40621         (output_simple_mapping): New function.
40622         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40623         * modules/gen-uni-tables (Description): Update.
40624         * lib/unicase/toupper.h: New file, automatically generated by
40625         gen-uni-tables.
40626         * lib/unicase/tolower.h: New file, automatically generated by
40627         gen-uni-tables.
40628         * lib/unicase/totitle.h: New file, automatically generated by
40629         gen-uni-tables.
40630         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40631         gen-uni-tables.
40632         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40633         gen-uni-tables.
40634         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40635         gen-uni-tables.
40636
40637         New module 'unicase/base'.
40638         * modules/unicase/base: New file.
40639         * lib/unicase.h: New file.
40640
40641 2009-02-08  Bruno Haible  <bruno@clisp.org>
40642
40643         New module 'uniwbrk/ulc-wordbreaks'.
40644         * modules/uniwbrk/ulc-wordbreaks: New file.
40645         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40646
40647         New module 'uniwbrk/u32-wordbreaks'.
40648         * modules/uniwbrk/u32-wordbreaks: New file.
40649         * lib/uniwbrk/u32-wordbreaks.c: New file.
40650
40651         New module 'uniwbrk/u16-wordbreaks'.
40652         * modules/uniwbrk/u16-wordbreaks: New file.
40653         * lib/uniwbrk/u16-wordbreaks.c: New file.
40654
40655         New module 'uniwbrk/u8-wordbreaks'.
40656         * modules/uniwbrk/u8-wordbreaks: New file.
40657         * lib/uniwbrk/u8-wordbreaks.c: New file.
40658         * lib/uniwbrk/u-wordbreaks.h: New file.
40659
40660         New module 'uniwbrk/table'.
40661         * modules/uniwbrk/table: New file.
40662         * lib/uniwbrk/wbrktable.h: New file.
40663         * lib/uniwbrk/wbrktable.c: New file.
40664
40665         New module 'uniwbrk/wordbreak-property'.
40666         * modules/uniwbrk/wordbreak-property: New file.
40667         * lib/uniwbrk/wordbreak-property.c: New file.
40668
40669         * lib/gen-uni-tables.c (WBP_*): New enum items.
40670         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40671         (unicode_org_wbp): New variable.
40672         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40673         New functions.
40674         (wbp_table): New structure.
40675         (output_wbp, output_wbrk_tables): New functions.
40676         (main): Accept additional argument. Invoke fill_org_wbp,
40677         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40678         output_wbrk_tables.
40679         * modules/gen-uni-tables (Description): Update.
40680         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40681         gen-uni-tables.
40682
40683         New module 'uniwbrk/base'.
40684         * modules/uniwbrk/base: New file.
40685         * lib/uniwbrk.h: New file.
40686
40687 2009-02-08  Bruno Haible  <bruno@clisp.org>
40688
40689         Update to Unicode 5.1.0.
40690         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40691         U+2185..U+2188.
40692         (is_property_default_ignorable_code_point): Don't include characters
40693         of category Cc or Cs and not-a-characters.
40694         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40695         U+0D79, U+109E, U+109F, U+A60C.
40696         * lib/unictype/bidi_of.h: Regenerated.
40697         * lib/unictype/blocks.h: Regenerated.
40698         * lib/unictype/categ_C.h: Regenerated.
40699         * lib/unictype/categ_Cf.h: Regenerated.
40700         * lib/unictype/categ_Cn.h: Regenerated.
40701         * lib/unictype/categ_L.h: Regenerated.
40702         * lib/unictype/categ_Ll.h: Regenerated.
40703         * lib/unictype/categ_Lm.h: Regenerated.
40704         * lib/unictype/categ_Lo.h: Regenerated.
40705         * lib/unictype/categ_Lu.h: Regenerated.
40706         * lib/unictype/categ_M.h: Regenerated.
40707         * lib/unictype/categ_Mc.h: Regenerated.
40708         * lib/unictype/categ_Me.h: Regenerated.
40709         * lib/unictype/categ_Mn.h: Regenerated.
40710         * lib/unictype/categ_N.h: Regenerated.
40711         * lib/unictype/categ_Nd.h: Regenerated.
40712         * lib/unictype/categ_Nl.h: Regenerated.
40713         * lib/unictype/categ_No.h: Regenerated.
40714         * lib/unictype/categ_P.h: Regenerated.
40715         * lib/unictype/categ_Pd.h: Regenerated.
40716         * lib/unictype/categ_Pe.h: Regenerated.
40717         * lib/unictype/categ_Pf.h: Regenerated.
40718         * lib/unictype/categ_Pi.h: Regenerated.
40719         * lib/unictype/categ_Po.h: Regenerated.
40720         * lib/unictype/categ_Ps.h: Regenerated.
40721         * lib/unictype/categ_S.h: Regenerated.
40722         * lib/unictype/categ_Sk.h: Regenerated.
40723         * lib/unictype/categ_Sm.h: Regenerated.
40724         * lib/unictype/categ_So.h: Regenerated.
40725         * lib/unictype/categ_of.h: Regenerated.
40726         * lib/unictype/combining.h: Regenerated.
40727         * lib/unictype/ctype_alnum.h: Regenerated.
40728         * lib/unictype/ctype_alpha.h: Regenerated.
40729         * lib/unictype/ctype_graph.h: Regenerated.
40730         * lib/unictype/ctype_lower.h: Regenerated.
40731         * lib/unictype/ctype_print.h: Regenerated.
40732         * lib/unictype/ctype_punct.h: Regenerated.
40733         * lib/unictype/ctype_upper.h: Regenerated.
40734         * lib/unictype/decdigit.h: Regenerated.
40735         * lib/unictype/digit.h: Regenerated.
40736         * lib/unictype/mirror.h: Regenerated.
40737         * lib/unictype/numeric.h: Regenerated.
40738         * lib/unictype/pr_alphabetic.h: Regenerated.
40739         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40740         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40741         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40742         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40743         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40744         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40745         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40746         * lib/unictype/pr_combining.h: Regenerated.
40747         * lib/unictype/pr_dash.h: Regenerated.
40748         * lib/unictype/pr_decimal_digit.h: Regenerated.
40749         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40750         * lib/unictype/pr_deprecated.h: Regenerated.
40751         * lib/unictype/pr_diacritic.h: Regenerated.
40752         * lib/unictype/pr_extender.h: Regenerated.
40753         * lib/unictype/pr_format_control.h: Regenerated.
40754         * lib/unictype/pr_grapheme_base.h: Regenerated.
40755         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40756         * lib/unictype/pr_grapheme_link.h: Regenerated.
40757         * lib/unictype/pr_id_continue.h: Regenerated.
40758         * lib/unictype/pr_id_start.h: Regenerated.
40759         * lib/unictype/pr_ideographic.h: Regenerated.
40760         * lib/unictype/pr_ignorable_control.h: Regenerated.
40761         * lib/unictype/pr_lowercase.h: Regenerated.
40762         * lib/unictype/pr_math.h: Regenerated.
40763         * lib/unictype/pr_numeric.h: Regenerated.
40764         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40765         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40766         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40767         * lib/unictype/pr_other_id_continue.h: Regenerated.
40768         * lib/unictype/pr_other_lowercase.h: Regenerated.
40769         * lib/unictype/pr_other_math.h: Regenerated.
40770         * lib/unictype/pr_punctuation.h: Regenerated.
40771         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40772         * lib/unictype/pr_soft_dotted.h: Regenerated.
40773         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40774         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40775         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40776         * lib/unictype/pr_uppercase.h: Regenerated.
40777         * lib/unictype/pr_xid_continue.h: Regenerated.
40778         * lib/unictype/pr_xid_start.h: Regenerated.
40779         * lib/unictype/pr_zero_width.h: Regenerated.
40780         * lib/unictype/scripts.h: Regenerated.
40781         * lib/unictype/scripts_byname.gperf: Regenerated.
40782         * lib/unictype/sy_java_ident.h: Regenerated.
40783         * lib/unilbrk/lbrkprop1.h: Regenerated.
40784         * lib/unilbrk/lbrkprop2.h: Regenerated.
40785         * tests/unictype/test-categ_C.c: Regenerated.
40786         * tests/unictype/test-categ_Cf.c: Regenerated.
40787         * tests/unictype/test-categ_Cn.c: Regenerated.
40788         * tests/unictype/test-categ_L.c: Regenerated.
40789         * tests/unictype/test-categ_Ll.c: Regenerated.
40790         * tests/unictype/test-categ_Lm.c: Regenerated.
40791         * tests/unictype/test-categ_Lo.c: Regenerated.
40792         * tests/unictype/test-categ_Lu.c: Regenerated.
40793         * tests/unictype/test-categ_M.c: Regenerated.
40794         * tests/unictype/test-categ_Mc.c: Regenerated.
40795         * tests/unictype/test-categ_Me.c: Regenerated.
40796         * tests/unictype/test-categ_Mn.c: Regenerated.
40797         * tests/unictype/test-categ_N.c: Regenerated.
40798         * tests/unictype/test-categ_Nd.c: Regenerated.
40799         * tests/unictype/test-categ_Nl.c: Regenerated.
40800         * tests/unictype/test-categ_No.c: Regenerated.
40801         * tests/unictype/test-categ_P.c: Regenerated.
40802         * tests/unictype/test-categ_Pd.c: Regenerated.
40803         * tests/unictype/test-categ_Pe.c: Regenerated.
40804         * tests/unictype/test-categ_Pf.c: Regenerated.
40805         * tests/unictype/test-categ_Pi.c: Regenerated.
40806         * tests/unictype/test-categ_Po.c: Regenerated.
40807         * tests/unictype/test-categ_Ps.c: Regenerated.
40808         * tests/unictype/test-categ_S.c: Regenerated.
40809         * tests/unictype/test-categ_Sk.c: Regenerated.
40810         * tests/unictype/test-categ_Sm.c: Regenerated.
40811         * tests/unictype/test-categ_So.c: Regenerated.
40812         * tests/unictype/test-ctype_alnum.c: Regenerated.
40813         * tests/unictype/test-ctype_alpha.c: Regenerated.
40814         * tests/unictype/test-ctype_graph.c: Regenerated.
40815         * tests/unictype/test-ctype_lower.c: Regenerated.
40816         * tests/unictype/test-ctype_print.c: Regenerated.
40817         * tests/unictype/test-ctype_punct.c: Regenerated.
40818         * tests/unictype/test-ctype_upper.c: Regenerated.
40819         * tests/unictype/test-decdigit.h: Regenerated.
40820         * tests/unictype/test-digit.h: Regenerated.
40821         * tests/unictype/test-numeric.h: Regenerated.
40822         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40823         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40824         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40825         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40826         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40827         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40828         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40829         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40830         * tests/unictype/test-pr_combining.c: Regenerated.
40831         * tests/unictype/test-pr_dash.c: Regenerated.
40832         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40833         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40834         * tests/unictype/test-pr_deprecated.c: Regenerated.
40835         * tests/unictype/test-pr_diacritic.c: Regenerated.
40836         * tests/unictype/test-pr_extender.c: Regenerated.
40837         * tests/unictype/test-pr_format_control.c: Regenerated.
40838         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40839         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40840         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40841         * tests/unictype/test-pr_id_continue.c: Regenerated.
40842         * tests/unictype/test-pr_id_start.c: Regenerated.
40843         * tests/unictype/test-pr_ideographic.c: Regenerated.
40844         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40845         * tests/unictype/test-pr_lowercase.c: Regenerated.
40846         * tests/unictype/test-pr_math.c: Regenerated.
40847         * tests/unictype/test-pr_numeric.c: Regenerated.
40848         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40849         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40850         Regenerated.
40851         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40852         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40853         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40854         * tests/unictype/test-pr_other_math.c: Regenerated.
40855         * tests/unictype/test-pr_punctuation.c: Regenerated.
40856         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40857         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40858         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40859         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40860         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40861         * tests/unictype/test-pr_uppercase.c: Regenerated.
40862         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40863         * tests/unictype/test-pr_xid_start.c: Regenerated.
40864         * tests/unictype/test-pr_zero_width.c: Regenerated.
40865
40866         Update to Unicode 5.1.0.
40867         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40868         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40869         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40870         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40871         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40872         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40873         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40874         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40875         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40876         (nonspacing_table_ind): Update.
40877         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40878
40879         Update to Unicode 5.1.0.
40880         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40881         code transform.
40882         * lib/uniname/uniname.c (unicode_character_name,
40883         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40884         * lib/uniname/uninames.h: Regenerated.
40885         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40886
40887 2009-02-07  Bruno Haible  <bruno@clisp.org>
40888
40889         Merge gen-ctype and gen-lbrk into a single program.
40890         * lib/gen-uni-tables.c: New file, incorporating
40891         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40892         Add directory prefixes to the names of the generated files.
40893         * lib/unictype/gen-ctype.c: Remove file.
40894         * lib/unilbrk/gen-lbrk.c: Remove file.
40895         * modules/gen-uni-tables: New file.
40896         * modules/unictype/gen-ctype: Remove file.
40897         * modules/unilbrk/gen-lbrk: Remove file.
40898
40899 2009-02-07  Bruno Haible  <bruno@clisp.org>
40900
40901         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40902
40903         New module 'unistr/u32-strcoll'.
40904         * modules/unistr/u32-strcoll: New file.
40905         * lib/unistr/u32-strcoll.c: New file.
40906
40907         New module 'unistr/u16-strcoll'.
40908         * modules/unistr/u16-strcoll: New file.
40909         * lib/unistr/u16-strcoll.c: New file.
40910
40911         New module 'unistr/u8-strcoll'.
40912         * modules/unistr/u8-strcoll: New file.
40913         * lib/unistr/u8-strcoll.c: New file.
40914         * lib/unistr/u-strcoll.h: New file.
40915
40916 2009-02-07  Bruno Haible  <bruno@clisp.org>
40917
40918         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40919         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40920         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40921         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40922         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40923         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40924
40925 2009-02-07  Bruno Haible  <bruno@clisp.org>
40926
40927         Make 64-bit clean.
40928         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40929         output_combclass, output_bidi_category, output_decimal_digit,
40930         output_digit, output_numeric, output_mirror, output_scripts,
40931         output_ident_category): Use proper width specifier in format strings.
40932
40933 2009-02-07  Bruno Haible  <bruno@clisp.org>
40934
40935         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40936         failure behaviour.
40937
40938 2009-02-07  Jim Meyering  <meyering@redhat.com>
40939
40940         regex: avoid compilation failure with upcoming gcc-4.4
40941         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40942         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40943         "... error: integer overflow in preprocessor expression".
40944
40945 2009-02-05  Ben Pfaff  <blp@gnu.org>
40946
40947         Fix link errors on Windows when close module is used.
40948         * modules/close: Add $(LIB_CLOSE) to Link section.
40949         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40950         $(LIB_CLOSE) on Windows.
40951
40952 2009-02-05  Jim Meyering  <meyering@redhat.com>
40953
40954         still avoid unused-parameter warnings, but do it cleanly
40955         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40956         (get_fs_usage): Cast to void instead.
40957         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40958         (dev_from_mount_options, read_file_system_list): Cast to void.
40959         Prompted by Bruno Haible.
40960
40961 2009-02-04  Jim Meyering  <meyering@redhat.com>
40962
40963         fsusage.c: correct copyright year
40964         * lib/fsusage.c: Reflect year in which the change is pushed into
40965
40966         avoid misc. warnings
40967         * lib/fsusage.c (UNUSED_PARAM): Define.
40968         (get_fs_usage): Mark parameter "disk" as unused.
40969         * lib/getugroups.c (getgrent): Use "void" in prototype.
40970         * lib/mountlist.c: Mark unused parameters.
40971         (read_file_system_list): Declare a local with "const".
40972         * lib/nanosleep.c (getnow): Declare static.
40973         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40974
40975         dirfd: set errno upon failure
40976         * lib/dirfd.c: Include <errno.h>.
40977         Set errno to ENOTSUP when returning -1.
40978         * modules/dirfd (Depends-on): Add errno.
40979         Suggested by John Kodis <kodis@comcast.net>.
40980
40981 2009-02-01  Bruno Haible  <bruno@clisp.org>
40982
40983         Don't assume sizeof (long) >= sizeof (void *).
40984         * lib/memcmp.c: Include stdint.h.
40985         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40986         srcp2 to 'const byte *'.
40987         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40988         types to uintptr_t.
40989         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40990         * modules/memcmp (Depends-on): Add stdint.
40991         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40992
40993 2009-01-30  Eric Blake  <ebb9@byu.net>
40994
40995         fix more require-before-expand issues
40996         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40997         expand, AC_PROG_AWK.
40998         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40999
41000 2009-01-28  Eric Blake  <ebb9@byu.net>
41001
41002         version-etc: use consistent URL formatting
41003         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41004         Improve formatting.  Use fputs for string without %.
41005
41006 2009-01-28  Jim Meyering  <meyering@redhat.com>
41007
41008         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41009         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41010         "underquoted definition of NAME" from autoconf-2.59.
41011
41012 2009-01-28  Bruno Haible  <bruno@clisp.org>
41013
41014         * doc/gnulib.texi: Add "Obsolete modules" to index.
41015
41016 2009-01-28  Jim Meyering  <meyering@redhat.com>
41017
41018         useless-if-before-free: recognize more variants
41019         * build-aux/useless-if-before-free: Also recognize e.g.,
41020         if (NULL != p) free (p);
41021
41022 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41023
41024         test-getaddrinfo: skip (don't fail) this test when there's no network
41025         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41026         on the presumption that it means you lack network access.
41027
41028 2009-01-26  Jim Meyering  <meyering@redhat.com>
41029
41030         fflush: avoid warnings on modern systems
41031         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41032         pos and result, into scopes where they're used.
41033
41034 2009-01-26  Eric Blake  <ebb9@byu.net>
41035
41036         Silence warning reintroduced by recent extensions patch.
41037         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41038         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41039         autoconf.
41040
41041         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41042         * m4/00gnulib.m4: New file.
41043         * gnulib-tool (func_get_filelist): Always use it.
41044         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41045         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41046
41047 2009-01-25  Bruno Haible  <bruno@clisp.org>
41048
41049         Make test-quotearg work on MacOS X and AIX.
41050         * tests/test-quotearg.sh: New file.
41051         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41052         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41053         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41054         include <libintl.h>.
41055         (fake_locale): Remove variable.
41056         (gettext, dgettext, dcgettext): Remove functions.
41057         (main): Instead of setting a fake locale, set a real locale. Call
41058         textdomain and bindtextdomain.
41059         * modules/quotearg-tests (Files): Add the new files.
41060         (Depends-on): Add gettext, setenv, unsetenv.
41061         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41062         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41063         Augment TESTS_ENVIRONMENT.
41064
41065 2009-01-25  Bruno Haible  <bruno@clisp.org>
41066
41067         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41068         fr_FR.ISO8859-1 locale on MacOS X.
41069         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41070         ja_JP.eucJP locale on MacOS X.
41071         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41072         zh_CN.GB18030 locale on MacOS X.
41073
41074 2009-01-25  Bruno Haible  <bruno@clisp.org>
41075
41076         Avoid link errors on MacOS X 10.3.
41077         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41078         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41079
41080 2009-01-25  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41083         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41084         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41085         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41086         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41087         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41088         posix_spawnattr_init, posix_spawnattr_setsigmask,
41089         posix_spawnattr_setflags, posix_spawnattr_destroy.
41090
41091         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41092         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41093         * modules/execute (Files): Remove m4/posix_spawn.m4.
41094         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41095         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41096         posix_spawnattr_init, posix_spawnattr_setsigmask,
41097         posix_spawnattr_setflags, posix_spawnattr_destroy.
41098
41099 2009-01-25  Bruno Haible  <bruno@clisp.org>
41100
41101         * lib/glthread/threadlib.c: Include <stdlib.h>.
41102
41103 2009-01-25  Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/glthread/threadlib.c (dummy): New declaration.
41106
41107 2009-01-25  Bruno Haible  <bruno@clisp.org>
41108
41109         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41110         multibyte characters also for the GB18030 encoding. Don't crash when
41111         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41112
41113 2009-01-25  Bruno Haible  <bruno@clisp.org>
41114
41115         Avoid redefining 'struct random_data' on OSF/1 5.1.
41116         * lib/stdlib.in.h: Include <random.h> if it exists.
41117         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41118         HAVE_RANDOM_H. Include <random.h> when testing whether
41119         'struct random_data' exists.
41120         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41121
41122 2009-01-25  Bruno Haible  <bruno@clisp.org>
41123
41124         Don't install charset.alias on MacOS X >= 10.3.
41125         * lib/localcharset.c (DARWIN7): New macro.
41126         (get_charset_aliases): Hardcode the result for Darwin7.
41127         * modules/localcharset (install-exec-local): Don't install
41128         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41129
41130 2009-01-25  Bruno Haible  <bruno@clisp.org>
41131
41132         Don't install charset.alias on mingw and Cygwin.
41133         * modules/localcharset (install-exec-local): Don't install
41134         charset.alias on mingw and Cygwin, if the file does not yet exist.
41135         The result for these platforms is hardcoded in localcharset.c.
41136
41137 2009-01-25  Bruno Haible  <bruno@clisp.org>
41138
41139         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41140         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41141         before requiring AC_USE_SYSTEM_EXTENSIONS.
41142
41143 2009-01-25  Jim Meyering  <meyering@redhat.com>
41144
41145         c-strtod: avoid warnings
41146         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41147         "assignment discards qualifiers from pointer target type" warnings.
41148
41149 2009-01-24  Bruno Haible  <bruno@clisp.org>
41150
41151         Add support for non-UTF-8 locales on MacOS X.
41152         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41153         canonical encodings. For Darwin 7 and newer, don't map traditional
41154         encodings to UTF-8.
41155         Reported by Vincent Lefevre <vincent@vinc17.org>
41156         at <http://savannah.gnu.org/bugs/?25235>.
41157
41158 2009-01-24  Bruno Haible  <bruno@clisp.org>
41159
41160         * doc/gnulib.texi (Obsolete modules): New section.
41161         Reported by Mike Frysinger <vapier@gentoo.org>.
41162
41163 2009-01-24  Bruno Haible  <bruno@clisp.org>
41164
41165         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41166         (%.dvi): New rule.
41167
41168 2009-01-24  Bruno Haible  <bruno@clisp.org>
41169
41170         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41171         Reported by Eric Blake.
41172
41173 2009-01-24  Bruno Haible  <bruno@clisp.org>
41174
41175         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41176         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41177         Reported by Gary V. Vaughan <gary@gnu.org>.
41178
41179 2009-01-24  Bruno Haible  <bruno@clisp.org>
41180
41181         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41182
41183 2009-01-23  Bruno Haible  <bruno@clisp.org>
41184
41185         Make c-strtod, c-strtold usable in libraries.
41186         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41187         (C_STRTOD): Call strdup instead of xstrdup.
41188         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41189         * modules/c-strtold (Depends-on): Likewise.
41190         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41191         * NEWS: Mention the change.
41192         Reported by Michael Gold <mgold@ncf.ca>.
41193
41194 2009-01-23  Jim Meyering  <meyering@redhat.com>
41195
41196         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41197         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41198         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41199
41200 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41201
41202         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41203         GNU CoreUtils.
41204         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41205         * modules/version-etc (Description): Update.
41206
41207 2009-01-22  Bruno Haible  <bruno@clisp.org>
41208
41209         Cache the C locale object.
41210         * lib/c-strtod.c (c_locale_cache): New variable.
41211         (c_locale): New function.
41212         (C_STRTOD): Use it, and don't call freelocale.
41213         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41214         Suggested by Paolo Bonzini.
41215
41216 2009-01-21  Bruno Haible  <bruno@clisp.org>
41217
41218         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41219         conditions other than overflow.
41220
41221 2009-01-21  Bruno Haible  <bruno@clisp.org>
41222
41223         * lib/c-strtod.c: Include errno.h.
41224         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41225         value from STRTOD_L and STRTOD.
41226
41227 2009-01-21  Bruno Haible  <bruno@clisp.org>
41228         and Jim Meyering  <meyering@redhat.com>
41229
41230         nanosleep: skip configure test (fail it) for apple universal builds
41231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41232         universal builds, assume that nanosleep does not work.
41233         * modules/nanosleep (Depends-on): Add multiarch.
41234
41235         mktime: skip configure test (fail it) for apple universal builds
41236         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41237         universal builds, assume that mktime does not work.
41238         * modules/mktime (Depends-on): Add multiarch.
41239
41240 2009-01-21  Eric Blake  <ebb9@byu.net>
41241
41242         multiarch: avoid expand-before-require warning
41243         * modules/multiarch (configure.ac): Require, rather than expand,
41244         gl_MULTIARCH.
41245         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41246         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41247         enforce that all clients require it.  Partial reversion of
41248         2008-12-29 patch.
41249
41250         error: avoid expand-before-require warning
41251         * modules/errno (configure.ac): Require, rather than expand,
41252         gl_HEADER_ERRNO_H.
41253         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41254         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41255         enforce that all clients require it.
41256
41257         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41258         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41259         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41260         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41261
41262 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41263
41264         Revert:
41265         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41266
41267         regex: do not depend on obsolete modules.
41268         * modules/regex: Remove memcmp and memmove.
41269
41270 2009-01-20  Bruno Haible  <bruno@clisp.org>
41271
41272         Make the 'link' module link on Windows NT 4.
41273         * lib/link.c (_WIN32_WINNT): Don't define.
41274         (CreateHardLinkFuncType): New type.
41275         (CreateHardLinkFunc, initialized): New variables.
41276         (initialize): New function.
41277         (link): Invoke CreateHardLink indirectly through the function pointer.
41278
41279 2009-01-20  Bruno Haible  <bruno@clisp.org>
41280
41281         Fix compilation failure on mingw.
41282         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41283
41284 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41285
41286         * doc/c-strtod.texi: Mention a couple of restrictions.
41287
41288 2009-01-20  Jim Meyering  <meyering@redhat.com>
41289
41290         gettimeofday: move more declarations out of functions
41291         * lib/gettimeofday.c: Move extern declarations of tzset and
41292         gmtime out of containing functions.  Prompted by Bruno Haible.
41293
41294 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41295
41296         regex: do not depend on obsolete modules.
41297         * modules/regex: Remove memcmp and memmove.
41298
41299 2009-01-19  Bruno Haible  <bruno@clisp.org>
41300
41301         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41302         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41303         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41304         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41305         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41306
41307 2009-01-19  Bruno Haible  <bruno@clisp.org>
41308
41309         * tests/test-link.c: Include <errno.h>.
41310         (main): Exit with code 77 when a hard link cannot be created due to
41311         the file system.
41312         * tests/test-link.sh: Skip test when a hard link cannot be created due
41313         to the file system.
41314         Suggested by Eric Blake.
41315
41316 2009-01-19  Martin Lambers  <marlam@marlam.de>
41317
41318         * modules/link-tests: New file.
41319         * tests/test-link.sh: New file.
41320         * tests/test-link.c: New file.
41321
41322 2009-01-19  Eric Blake  <ebb9@byu.net>
41323
41324         doc: mention another function added in cygwin 1.7.0
41325         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41326         Another new function in cygwin 1.7.
41327
41328 2009-01-19  Bruno Haible  <bruno@clisp.org>
41329
41330         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41331         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41332         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41333         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41334         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41335         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41336         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41337         * m4/md4.m4 (gl_MD4): Likewise.
41338         * m4/md5.m4 (gl_MD5): Likewise.
41339         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41340         * m4/sha1.m4 (gl_SHA1): Likewise.
41341         * m4/sha256.m4 (gl_SHA256): Likewise.
41342         * m4/sha512.m4 (gl_SHA512): Likewise.
41343
41344 2009-01-19  Bruno Haible  <bruno@clisp.org>
41345
41346         * modules/uniname/uniname-tests (Depends-on): Add progname.
41347         * tests/uniname/test-uninames.c: Include progname.h.
41348         (main): Call set_program_name.
41349
41350         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41351         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41352         (main): Call set_program_name.
41353
41354         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41355         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41356         (main): Call set_program_name.
41357
41358         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41359         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41360         (main): Call set_program_name.
41361
41362         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41363         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41364         (main): Call set_program_name.
41365
41366         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41367         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41368         (main): Call set_program_name.
41369
41370         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41371         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41372         (main): Call set_program_name.
41373
41374         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41375         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41376         (main): Call set_program_name.
41377
41378         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41379         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41380         (main): Call set_program_name.
41381
41382 2009-01-19  Eric Blake  <ebb9@byu.net>
41383
41384         test-unistd: test previous patch
41385         * tests/test-unistd.c: Test *_FILENO macros.
41386
41387         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41388         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41389         Guarantee a definition.
41390         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41391         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41392         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41393         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41394         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41395         Likewise.
41396         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41397         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41398         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41399         Likewise.
41400         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41401         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41402         (STDERR_FILENO): Likewise.
41403         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41404         (STDERR_FILENO): Likewise.
41405         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41406         (STDERR_FILENO): Likewise.
41407         Reported by Elbert Pol.
41408
41409 2009-01-19  Eric Blake  <ebb9@byu.net>
41410
41411         doc: mention more functions added in cygwin 1.7.0
41412         * doc/posix-functions/abort.texi (abort): Update wording related
41413         to cygwin.
41414         * doc/posix-functions/daylight.texi (daylight): Likewise.
41415         * doc/posix-functions/optarg.texi (optarg): Likewise.
41416         * doc/posix-functions/optarg.texi (opterr): Likewise.
41417         * doc/posix-functions/optarg.texi (optind): Likewise.
41418         * doc/posix-functions/optarg.texi (optopt): Likewise.
41419         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41420         worked in 1.5.x, and was withdrawn in 1.7.
41421         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41422         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41423         cygwin versions.
41424         * doc/posix-functions/perror.texi (perror): Likewise.
41425         * doc/posix-functions/printf.texi (printf): Likewise.
41426         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41427         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41428         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41429         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41430         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41431         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41432         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41433         Likewise.
41434         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41435         Likewise.
41436         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41437         this function.
41438         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41439         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41440         Likewise.
41441         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41442         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41443         * doc/posix-functions/confstr.texi (confstr): Likewise.
41444         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41445         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41446         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41447         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41448         * doc/posix-functions/fputws.texi (fputws): Likewise.
41449         * doc/posix-functions/fwide.texi (fwide): Likewise.
41450         * doc/posix-functions/getwc.texi (getwc): Likewise.
41451         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41452         * doc/posix-functions/putwc.texi (putwc): Likewise.
41453         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41454         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41455         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41456         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41457         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41458         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41459         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41460         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41461         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41462         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41463         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41464
41465 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41466
41467         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41468         * lib/ioctl.c: Include <sys/ioctl.h>.
41469
41470 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41471
41472         * modules/getdate-tests (Depends-on): Add progname.
41473         * tests/test-getdate.c: Use progname module, to avoid link errors
41474         on non-glibc systems.
41475
41476 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41477
41478         * modules/filenamecat-tests (Depends-on): Add progname.
41479         * modules/fstrcmp-tests (Depends-on): Likewise.
41480
41481         * tests/test-filenamecat.c: Use progname module, to avoid link
41482         errors on non-glibc systems.
41483         * tests/test-fstrcmp.c: Likewise.
41484
41485 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41486
41487         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41488         * lib/gettimeofday.c: Move extern declaration out of function.
41489
41490 2009-01-18  Bruno Haible  <bruno@clisp.org>
41491
41492         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41493         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41494         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41495
41496 2009-01-18  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/strftime.c (MEMPCPY): Remove unused macro.
41499         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41500
41501 2009-01-18  Martin Lambers  <marlam@marlam.de>
41502
41503         New module 'link'.
41504         * lib/unistd.in.h (link): New declaration.
41505         * lib/link.c: New file.
41506         * m4/link.m4: New file.
41507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41508         HAVE_LINK.
41509         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41510         * modules/link: New file.
41511         * doc/posix-functions/link.texi: Mention the new module.
41512
41513 2009-01-18  Bruno Haible  <bruno@clisp.org>
41514
41515         * tests/test-avltree_list.c (main): Call set_program_name.
41516         * tests/test-avltree_oset.c (main): Likewise.
41517         * tests/test-obstack-printf.c: Include progname.h.
41518         (main): Call set_program_name.
41519         * tests/test-quotearg.c: Include progname.h.
41520         (main): Call set_program_name.
41521         * tests/test-xmemdup0.c: Include progname.h.
41522         (main): Call set_program_name.
41523
41524 2009-01-18  Bruno Haible  <bruno@clisp.org>
41525
41526         New module 'alphasort'.
41527         * lib/dirent.in.h (alphasort): New declaration.
41528         * lib/alphasort.c: New file, from glibc with modifications.
41529         * m4/alphasort.m4: New file.
41530         * modules/alphasort: New file.
41531         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41532         HAVE_ALPHASORT.
41533         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41534         HAVE_ALPHASORT.
41535         * doc/posix-functions/alphasort.texi: Mention the new module and the
41536         portability problems.
41537
41538 2009-01-18  Bruno Haible  <bruno@clisp.org>
41539
41540         New module 'scandir'.
41541         * lib/dirent.in.h (scandir): New declaration.
41542         * lib/scandir.c: New file, from glibc with modifications.
41543         * m4/scandir.m4: New file.
41544         * modules/scandir: New file.
41545         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41546         HAVE_SCANDIR.
41547         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41548         HAVE_SCANDIR.
41549         * doc/posix-functions/scandir.texi: Mention the new module and the
41550         portability problems.
41551
41552 2009-01-17  Bruno Haible  <bruno@clisp.org>
41553
41554         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41555         Update documentation.
41556         (func_remove_suffix): Escape all dots in the suffix. Update
41557         documentation.
41558         (func_filter_filelist): Update documentation.
41559         Reported by Ralf Wildenhues.
41560
41561 2009-01-17  Bruno Haible  <bruno@clisp.org>
41562
41563         * modules/dprintf-posix-tests: New file.
41564         * tests/test-dprintf-posix.sh: New file.
41565         * tests/test-dprintf-posix.c: New file.
41566
41567         New modules 'dprintf', 'dprintf-posix'.
41568         * lib/stdio.in.h (dprintf): New declaration.
41569         * lib/dprintf.c: New file.
41570         * m4/dprintf.m4: New file.
41571         * m4/dprintf-posix.m4: New file.
41572         * modules/dprintf: New file.
41573         * modules/dprintf-posix: New file.
41574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41575         HAVE_DPRINTF, REPLACE_DPRINTF.
41576         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41577         HAVE_DPRINTF, REPLACE_DPRINTF.
41578         * doc/posix-functions/dprintf.texi: Mention the new modules.
41579
41580 2009-01-17  Bruno Haible  <bruno@clisp.org>
41581
41582         * modules/vdprintf-posix-tests: New file.
41583         * tests/test-vdprintf-posix.sh: New file.
41584         * tests/test-vdprintf-posix.c: New file.
41585
41586         New modules 'vdprintf', 'vdprintf-posix'.
41587         * lib/stdio.in.h (vdprintf): New declaration.
41588         * lib/vdprintf.c: New file.
41589         * m4/vdprintf.m4: New file.
41590         * m4/vdprintf-posix.m4: New file.
41591         * modules/vdprintf: New file.
41592         * modules/vdprintf-posix: New file.
41593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41594         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41595         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41596         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41597         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41598
41599 2009-01-17  Bruno Haible  <bruno@clisp.org>
41600
41601         Fix replacement of fopen on mingw.
41602         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41603         mingw.
41604
41605 2009-01-17  Bruno Haible  <bruno@clisp.org>
41606
41607         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41608         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41609
41610 2009-01-17  Bruno Haible  <bruno@clisp.org>
41611
41612         Avoid test-fflush2.sh failure on mingw.
41613         * tests/test-fflush2.c: Include binary-io.h.
41614         (main): Put standard input into binary mode.
41615         * modules/fflush-tests (Depends-on): Add binary-io.
41616
41617 2009-01-17  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/wchar.in.h: In another particular situation, include only the
41620         system's <wchar.h> file.
41621         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41622         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41623         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41624
41625 2009-01-17  Bruno Haible  <bruno@clisp.org>
41626
41627         Support for stripping executables in --enable-relocatable.
41628         * build-aux/install-reloc: Expect one more argument, or an environment
41629         variable RELOC_STRIP_PROG. If set, strip the destination program and
41630         its wrapper.
41631         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41632         RELOC_STRIP_PROG.
41633         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41634         to set RELOCATABLE_STRIP.
41635         * NEWS: Mention the new Makefile requirement.
41636
41637 2009-01-17  Bruno Haible  <bruno@clisp.org>
41638
41639         * build-aux/install-reloc: Remove debugging information left over by
41640         C compiler on MacOS X.
41641
41642 2009-01-17  Bruno Haible  <bruno@clisp.org>
41643
41644         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41645         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41646         _NSGetExecutablePath.
41647
41648 2009-01-16  Jim Meyering  <meyering@redhat.com>
41649
41650         strerror: avoid warnings about discarding "const"
41651         * lib/strerror.c (rpl_strerror): Instead of returning a const
41652         string from each and every "case", use a variable, and add a single
41653         cast after the switch.
41654
41655 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41656
41657         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41658
41659 2009-01-16  Bruno Haible  <bruno@clisp.org>
41660
41661         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41662         array initializer syntax that also works in C++ mode.
41663         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41664
41665 2009-01-16  Jim Meyering  <meyering@redhat.com>
41666
41667         poll: suppress a warning
41668         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41669         to ignore "...unsigned expression < 0 is always false" warnings.
41670
41671 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41672
41673         poll: remove declarations of unused variables
41674         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41675         sockbuf and optlen.
41676
41677 2009-01-15  Bruno Haible  <bruno@clisp.org>
41678
41679         Make fflush-after-ungetc POSIX compliant on BSD systems.
41680         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41681         (clear_ungetc_buffer): Implement also for other systems.
41682         (rpl_fflush): On glibc systems, invoke
41683         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41684         clear_ungetc_buffer after fetching the stream's position, not before.
41685
41686 2009-01-15  Bruno Haible  <bruno@clisp.org>
41687
41688         Make fflush-after-ungetc POSIX compliant on glibc systems.
41689         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41690         after ungetc.
41691         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41692         (rpl_fflush): On glibc systems, simply call the system's fflush
41693         function after clearing the ungetc buffer.
41694         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41695         Instead, lseek only to the end of file, then use the system's fseeko
41696         for the rest. On glibc systems, reset the EOF indicator bit.
41697
41698 2009-01-15  Jim Meyering  <meyering@redhat.com>
41699
41700         openmp.m4: revert quote-adding change, for portability to older autoconf
41701         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41702         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41703         Simon Josefsson noticed the problem when using autoconf-2.61.
41704
41705 2009-01-15  Bruno Haible  <bruno@clisp.org>
41706
41707         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41708         * tests/test-fflush2.c (ASSERT): Always fail.
41709         (main): Add two tests for fflush() after ungetc(), taking into account
41710         the Austin Group's clarification.
41711         Suggested by Eric Blake.
41712
41713 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41714
41715         mktime.m4: remove K&R-style function prototypes
41716         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41717         for the Sun C++ compiler.
41718
41719 2009-01-14  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41722         while including <wchar.h>.
41723         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41724         the system's <wchar.h> file.
41725         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41726
41727 2009-01-14  Bruno Haible  <bruno@clisp.org>
41728
41729         * m4/csharp.m4: Don't mention gettext on the serial number line.
41730         * m4/csharpexec.m4: Likewise.
41731         * m4/eaccess.m4: Likewise.
41732         * m4/javaexec.m4: Likewise.
41733         * m4/sig_atomic_t.m4: Likewise.
41734         * m4/tmpdir.m4: Likewise.
41735         * m4/intldir.m4: Bump gettext version.
41736         * m4/lib-ld.m4: Likewise.
41737
41738 2009-01-14  Bruno Haible  <bruno@clisp.org>
41739
41740         * lib/progname.c (set_program_name): Add more comments.
41741         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41742
41743 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41744
41745         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41746         were sys/stat.h does not define it.
41747
41748 2009-01-14  Jim Meyering  <meyering@redhat.com>
41749
41750         many *.m4 files: improve m4 quoting
41751         99% of this change was performed by running the following commands:
41752         git ls-files | grep '\.m4$' | xargs perl -pi \
41753           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41754           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41755           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41756           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41757         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41758         The remainder were to add Copyright dates, increment serial numbers,
41759         undo some changes in comments, exclude m4/intl.m4, and add quotes
41760         around the "1" in ",1" where the unusual spacing prohibited the
41761         above regexps from doing the job.  For more details, see
41762         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41763         * m4/acl.m4: Modified.
41764         * m4/afs.m4: Likewise.
41765         * m4/alloca.m4: Likewise.
41766         * m4/argp.m4: Likewise.
41767         * m4/argz.m4: Likewise.
41768         * m4/atexit.m4: Likewise.
41769         * m4/bison-i18n.m4: Likewise.
41770         * m4/bison.m4: Likewise.
41771         * m4/byteswap.m4: Likewise.
41772         * m4/c-stack.m4: Likewise.
41773         * m4/c-strtod.m4: Likewise.
41774         * m4/calloc.m4: Likewise.
41775         * m4/canonicalize-lgpl.m4: Likewise.
41776         * m4/chown.m4: Likewise.
41777         * m4/clock_time.m4: Likewise.
41778         * m4/codeset.m4: Likewise.
41779         * m4/copy-file.m4: Likewise.
41780         * m4/csharp.m4: Likewise.
41781         * m4/csharpcomp.m4: Likewise.
41782         * m4/csharpexec.m4: Likewise.
41783         * m4/d-ino.m4: Likewise.
41784         * m4/d-type.m4: Likewise.
41785         * m4/dirfd.m4: Likewise.
41786         * m4/double-slash-root.m4: Likewise.
41787         * m4/eaccess.m4: Likewise.
41788         * m4/eealloc.m4: Likewise.
41789         * m4/environ.m4: Likewise.
41790         * m4/errno_h.m4: Likewise.
41791         * m4/euidaccess.m4: Likewise.
41792         * m4/execute.m4: Likewise.
41793         * m4/fatal-signal.m4: Likewise.
41794         * m4/fchdir.m4: Likewise.
41795         * m4/fcntl_h.m4: Likewise.
41796         * m4/fileblocks.m4: Likewise.
41797         * m4/filenamecat.m4: Likewise.
41798         * m4/findprog.m4: Likewise.
41799         * m4/flexmember.m4: Likewise.
41800         * m4/fnmatch.m4: Likewise.
41801         * m4/fopen.m4: Likewise.
41802         * m4/fpending.m4: Likewise.
41803         * m4/fprintf-posix.m4: Likewise.
41804         * m4/free.m4: Likewise.
41805         * m4/frexp.m4: Likewise.
41806         * m4/frexpl.m4: Likewise.
41807         * m4/fsusage.m4: Likewise.
41808         * m4/ftruncate.m4: Likewise.
41809         * m4/gc-camellia.m4: Likewise.
41810         * m4/gc-random.m4: Likewise.
41811         * m4/gc.m4: Likewise.
41812         * m4/getaddrinfo.m4: Likewise.
41813         * m4/getcwd-abort-bug.m4: Likewise.
41814         * m4/getcwd-path-max.m4: Likewise.
41815         * m4/getdate.m4: Likewise.
41816         * m4/getdomainname.m4: Likewise.
41817         * m4/getgroups.m4: Likewise.
41818         * m4/gethostname.m4: Likewise.
41819         * m4/gethrxtime.m4: Likewise.
41820         * m4/getline.m4: Likewise.
41821         * m4/getloadavg.m4: Likewise.
41822         * m4/getndelim2.m4: Likewise.
41823         * m4/getpass.m4: Likewise.
41824         * m4/gettext.m4: Likewise.
41825         * m4/gettime.m4: Likewise.
41826         * m4/gettimeofday.m4: Likewise.
41827         * m4/gnulib-common.m4: Likewise.
41828         * m4/group-member.m4: Likewise.
41829         * m4/host-os.m4: Likewise.
41830         * m4/iconv.m4: Likewise.
41831         * m4/iconv_open.m4: Likewise.
41832         * m4/inet_ntop.m4: Likewise.
41833         * m4/inet_pton.m4: Likewise.
41834         * m4/inline.m4: Likewise.
41835         * m4/intldir.m4: Likewise.
41836         * m4/intlmacosx.m4: Likewise.
41837         * m4/intmax.m4: Likewise.
41838         * m4/intmax_t.m4: Likewise.
41839         * m4/inttypes.m4: Likewise.
41840         * m4/inttypes_h.m4: Likewise.
41841         * m4/inttypes-pri.m4: Likewise.
41842         * m4/isapipe.m4: Likewise.
41843         * m4/isnand.m4: Likewise.
41844         * m4/isnanf.m4: Likewise.
41845         * m4/isnanl.m4: Likewise.
41846         * m4/javacomp.m4: Likewise.
41847         * m4/javaexec.m4: Likewise.
41848         * m4/jm-winsz1.m4: Likewise.
41849         * m4/jm-winsz2.m4: Likewise.
41850         * m4/lchown.m4: Likewise.
41851         * m4/lcmessage.m4: Likewise.
41852         * m4/ldexpl.m4: Likewise.
41853         * m4/lib-ld.m4: Likewise.
41854         * m4/lib-link.m4: Likewise.
41855         * m4/libsigsegv.m4: Likewise.
41856         * m4/link-follow.m4: Likewise.
41857         * m4/localcharset.m4: Likewise.
41858         * m4/locale-fr.m4: Likewise.
41859         * m4/locale-ja.m4: Likewise.
41860         * m4/locale-tr.m4: Likewise.
41861         * m4/locale-zh.m4: Likewise.
41862         * m4/lock.m4: Likewise.
41863         * m4/longlong.m4: Likewise.
41864         * m4/ls-mntd-fs.m4: Likewise.
41865         * m4/lstat.m4: Likewise.
41866         * m4/malloc.m4: Likewise.
41867         * m4/mathl.m4: Likewise.
41868         * m4/mbrtowc.m4: Likewise.
41869         * m4/mbstate_t.m4: Likewise.
41870         * m4/mbswidth.m4: Likewise.
41871         * m4/memchr.m4: Likewise.
41872         * m4/memcmp.m4: Likewise.
41873         * m4/memcpy.m4: Likewise.
41874         * m4/memmem.m4: Likewise.
41875         * m4/memmove.m4: Likewise.
41876         * m4/mempcpy.m4: Likewise.
41877         * m4/memrchr.m4: Likewise.
41878         * m4/memset.m4: Likewise.
41879         * m4/minmax.m4: Likewise.
41880         * m4/mkdir-slash.m4: Likewise.
41881         * m4/mkdtemp.m4: Likewise.
41882         * m4/mktime.m4: Likewise.
41883         * m4/mmap-anon.m4: Likewise.
41884         * m4/mountlist.m4: Likewise.
41885         * m4/nanosleep.m4: Likewise.
41886         * m4/nls.m4: Likewise.
41887         * m4/nocrash.m4: Likewise.
41888         * m4/open.m4: Likewise.
41889         * m4/openat.m4: Likewise.
41890         * m4/openmp.m4: Likewise.
41891         * m4/pathmax.m4: Likewise.
41892         * m4/perl.m4: Likewise.
41893         * m4/physmem.m4: Likewise.
41894         * m4/pipe.m4: Likewise.
41895         * m4/po.m4: Likewise.
41896         * m4/poll.m4: Likewise.
41897         * m4/posixtm.m4: Likewise.
41898         * m4/posixver.m4: Likewise.
41899         * m4/printf-frexp.m4: Likewise.
41900         * m4/printf-frexpl.m4: Likewise.
41901         * m4/printf-posix.m4: Likewise.
41902         * m4/printf-posix-rpl.m4: Likewise.
41903         * m4/printf.m4: Likewise.
41904         * m4/progtest.m4: Likewise.
41905         * m4/putenv.m4: Likewise.
41906         * m4/readline.m4: Likewise.
41907         * m4/readlink.m4: Likewise.
41908         * m4/readutmp.m4: Likewise.
41909         * m4/realloc.m4: Likewise.
41910         * m4/regex.m4: Likewise.
41911         * m4/relocatable.m4: Likewise.
41912         * m4/relocatable-lib.m4: Likewise.
41913         * m4/rename-dest-slash.m4: Likewise.
41914         * m4/rename.m4: Likewise.
41915         * m4/rmdir-errno.m4: Likewise.
41916         * m4/rmdir.m4: Likewise.
41917         * m4/roundf.m4: Likewise.
41918         * m4/roundl.m4: Likewise.
41919         * m4/rpmatch.m4: Likewise.
41920         * m4/save-cwd.m4: Likewise.
41921         * m4/selinux-selinux-h.m4: Likewise.
41922         * m4/setenv.m4: Likewise.
41923         * m4/settime.m4: Likewise.
41924         * m4/sig2str.m4: Likewise.
41925         * m4/sig_atomic_t.m4: Likewise.
41926         * m4/signalblocking.m4: Likewise.
41927         * m4/signbit.m4: Likewise.
41928         * m4/sigpipe.m4: Likewise.
41929         * m4/sockets.m4: Likewise.
41930         * m4/sockpfaf.m4: Likewise.
41931         * m4/st_dm_mode.m4: Likewise.
41932         * m4/stat-time.m4: Likewise.
41933         * m4/stdbool.m4: Likewise.
41934         * m4/stdint.m4: Likewise.
41935         * m4/stdint_h.m4: Likewise.
41936         * m4/stpcpy.m4: Likewise.
41937         * m4/stpncpy.m4: Likewise.
41938         * m4/strcase.m4: Likewise.
41939         * m4/strchrnul.m4: Likewise.
41940         * m4/strcspn.m4: Likewise.
41941         * m4/strdup.m4: Likewise.
41942         * m4/strftime.m4: Likewise.
41943         * m4/strndup.m4: Likewise.
41944         * m4/strnlen.m4: Likewise.
41945         * m4/strpbrk.m4: Likewise.
41946         * m4/strptime.m4: Likewise.
41947         * m4/strsep.m4: Likewise.
41948         * m4/strtod.m4: Likewise.
41949         * m4/strtoimax.m4: Likewise.
41950         * m4/strtok_r.m4: Likewise.
41951         * m4/strtol.m4: Likewise.
41952         * m4/strtoll.m4: Likewise.
41953         * m4/strtoul.m4: Likewise.
41954         * m4/strtoull.m4: Likewise.
41955         * m4/strtoumax.m4: Likewise.
41956         * m4/strverscmp.m4: Likewise.
41957         * m4/threadlib.m4: Likewise.
41958         * m4/timegm.m4: Likewise.
41959         * m4/tm_gmtoff.m4: Likewise.
41960         * m4/tmpdir.m4: Likewise.
41961         * m4/tmpfile.m4: Likewise.
41962         * m4/tzset.m4: Likewise.
41963         * m4/uintmax_t.m4: Likewise.
41964         * m4/unlinkdir.m4: Likewise.
41965         * m4/unlocked-io.m4: Likewise.
41966         * m4/uptime.m4: Likewise.
41967         * m4/userspec.m4: Likewise.
41968         * m4/utimbuf.m4: Likewise.
41969         * m4/utime.m4: Likewise.
41970         * m4/utimes-null.m4: Likewise.
41971         * m4/utimes.m4: Likewise.
41972         * m4/vararrays.m4: Likewise.
41973         * m4/vasnprintf.m4: Likewise.
41974         * m4/vfprintf-posix.m4: Likewise.
41975         * m4/vprintf-posix.m4: Likewise.
41976         * m4/wait-process.m4: Likewise.
41977         * m4/wchar_t.m4: Likewise.
41978         * m4/wint_t.m4: Likewise.
41979         * m4/write-any-file.m4: Likewise.
41980         * m4/yield.m4: Likewise.
41981
41982 2009-01-13  Bruno Haible  <bruno@clisp.org>
41983
41984         Avoid test-copy-file.sh failures when ACL support insufficient.
41985         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41986         TESTS_ENVIRONMENT.
41987         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41988         Reported by Jim Meyering.
41989
41990 2009-01-13  Bruno Haible  <bruno@clisp.org>
41991
41992         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41993         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41994         * modules/unistdio/u8-printf-parse (Files): Likewise.
41995         * modules/unistdio/u32-printf-parse (Files): Likewise.
41996         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41997
41998 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41999
42000         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42001         and m4/inttypes_h.m4 too.
42002
42003 2009-01-12  Eric Blake  <ebb9@byu.net>
42004
42005         tests: IRIX 6.2 cc can't compile -0.0 into .data
42006         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42007         rather than at compile-time.
42008         * tests/test-floorl.c (minus_zero): Likewise.
42009         * tests/test-frexpl.c (minus_zero): Likewise.
42010         * tests/test-isnan.c (minus_zerol): Likewise.
42011         * tests/test-isnanl.h (minus_zero): Likewise.
42012         * tests/test-ldexpl.c (minus_zero): Likewise.
42013         * tests/test-roundl.c (minus_zero): Likewise.
42014         * tests/test-signbit.c (minus_zerol): Likewise.
42015         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42016         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42017         * tests/test-truncl.c (minus_zero): Likewise.
42018         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42019         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42020         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42021
42022 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42023
42024         regex: fix glibc bug 9697
42025         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42026         handling.
42027
42028 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42029
42030         regex: fix glibc bug 697
42031         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42032         being NULL also if there are no backreferences.
42033
42034 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42035
42036         regex: merge glibc changes
42037         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42038         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42039         re_string_skip_chars, re_string_reconstruct): Likewise.
42040         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42041
42042 2009-01-07  Jim Meyering  <meyering@redhat.com>
42043
42044         poll: filter through cppi
42045         * lib/poll.c: Indent cpp directives to reflect nesting.
42046
42047 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42048
42049         poll: don't return uninitialized
42050         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42051
42052 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42053
42054         avoid compile failure on AIX 6.1
42055         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42056         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42057
42058 2009-01-04  Jim Meyering  <meyering@redhat.com>
42059
42060         remove duplicate inclusion of <stdio.h>
42061         * tests/test-fprintf-posix.c: Likewise.
42062         * tests/test-printf-posix.c: Likewise.
42063         * tests/test-snprintf-posix.c: Likewise.
42064         * tests/test-sprintf-posix.c: Likewise.
42065         * tests/test-vasprintf-posix.c: Likewise.
42066         * tests/test-vfprintf-posix.c: Likewise.
42067         * tests/test-vprintf-posix.c: Likewise.
42068         * tests/test-vsnprintf-posix.c: Likewise.
42069         * tests/test-vsprintf-posix.c: Likewise.
42070
42071 2009-01-03  Jim Meyering  <meyering@redhat.com>
42072
42073         gnulib-tool: fix sed-based filtering
42074         * gnulib-tool (func_filter_filelist): Remove extra backslash
42075         in sed_fff_filter definition.
42076
42077 2009-01-02  Jim Meyering  <meyering@redhat.com>
42078
42079         strftime: avoid compilation failure on Solaris 2.6
42080         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42081         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42082         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42083         be available.  Reported by Tom G. Christensen.  Details in
42084         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42085
42086 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42087             Bruno Haible  <bruno@clisp.org>
42088
42089         Speed up gnulib-tool by doing more string processing through shell
42090         built-ins.
42091         * gnulib-tool (fast_func_append): New variable.
42092         (func_remove_prefix, func_remove_suffix): New functions.
42093         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42094         (func_filter_filelist): New function.
42095         (func_get_dependencies): Use func_remove_suffix instead of sed.
42096         (func_get_automake_snippet): Use func_filter_filelist instead of a
42097         subshell and sed invocation.
42098
42099 2009-01-01  Bruno Haible  <bruno@clisp.org>
42100
42101         Fix a security bug.
42102         * gnulib-tool (func_import, import, update): Don't allow the characters
42103         '"', '$', '`', '\' in macro arguments that become part of commands that
42104         are evaluated.
42105
42106 2009-01-01  Bruno Haible  <bruno@clisp.org>
42107
42108         * gnulib-tool (func_reset_sigpipe): Add more comments.
42109
42110 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42111
42112         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42113         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42114         already know the answer.
42115
42116 2009-01-01  Jim Meyering  <meyering@redhat.com>
42117
42118         * lib/version-etc.c (version_etc_va): Update copyright year.
42119
42120 2008-12-30  Bruno Haible  <bruno@clisp.org>
42121
42122         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42123         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42124         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42125
42126 2008-12-29  Eric Blake  <ebb9@byu.net>
42127
42128         multiarch: avoid autoconf AC_REQUIRE bug
42129         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42130         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42131         2.63 and older.
42132         Reported by Bruno Haible, and analyzed in
42133         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42134
42135 2008-12-29  Bruno Haible  <bruno@clisp.org>
42136
42137         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42138         files in subdirectories correctly.
42139         Reported by Ralf Wildenhues.
42140
42141 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42142
42143         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42144         rather than 'join FILE -', for Solaris join.
42145
42146 2008-12-29  Bruno Haible  <bruno@clisp.org>
42147
42148         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42149         quoting.
42150         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42151         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42152         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42153         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42154         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42155         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42156         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42157         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42158         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42159         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42160         * m4/nls.m4 (AM_NLS): Likewise.
42161         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42162         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42163         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42164         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42165         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42166         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42167         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42168         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42169         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42170         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42171         * m4/xsize.m4 (gl_XSIZE): Likewise.
42172         Suggested by Jim Meyering.
42173
42174 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42175
42176         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42177         * lib/parse-duration.c: use a switch instead of cascading if's.
42178
42179 2008-12-29  Eric Blake  <ebb9@byu.net>
42180
42181         wchar.h: supply WEOF on Irix 5.3
42182         * lib/wchar.in.h (wint_t): Also supply WEOF.
42183         * lib/wctype.in.h (wint_t): Likewise.
42184         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42185         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42186         Reported by Tom G. Christensen.
42187
42188 2008-12-26  Bruno Haible  <bruno@clisp.org>
42189
42190         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42191         i486, i586, i686.
42192
42193 2008-12-26  Bruno Haible  <bruno@clisp.org>
42194
42195         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42196
42197 2008-12-26  Bruno Haible  <bruno@clisp.org>
42198
42199         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42200         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42201         not __STDC_CONSTANT_MACROS.
42202         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42203
42204 2008-12-25  Bruno Haible  <bruno@clisp.org>
42205
42206         Add support for universal builds to vasnprintf.
42207         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42208         universal builds, guess no.
42209         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42210         * modules/vasprintf-posix (Depends-on): Likewise.
42211         * modules/fprintf-posix (Depends-on): Likewise.
42212         * modules/vfprintf-posix (Depends-on): Likewise.
42213         * modules/snprintf-posix (Depends-on): Likewise.
42214         * modules/vsnprintf-posix (Depends-on): Likewise.
42215         * modules/sprintf-posix (Depends-on): Likewise.
42216         * modules/vsprintf-posix (Depends-on): Likewise.
42217         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42218         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42219         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42220         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42221         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42222         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42223         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42224
42225         Add support for universal builds to <inttypes.h>.
42226         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42227         _SCNu64_PREFIX): In Apple
42228         universal builds, define directly, using _LP64.
42229         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42230         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42231         * modules/inttypes (Depends-on): Add multiarch.
42232         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42233
42234         Add support for universal builds to <stdint.h>.
42235         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42236         universal builds, define directly, using _LP64.
42237         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42238         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42239         and size_t.
42240         * modules/stdint (Depends-on): Add multiarch.
42241         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42242
42243         New module 'multiarch'.
42244         * modules/multiarch: New file.
42245         * m4/multiarch.m4: New file.
42246
42247 2008-12-25  Bruno Haible  <bruno@clisp.org>
42248
42249         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42250
42251 2008-12-25  Bruno Haible  <bruno@clisp.org>
42252
42253         * modules/btowc (License): Relicense under LGPLv2+.
42254         * modules/mbsinit (License): Likewise.
42255         * modules/mbrtowc (License): Likewise.
42256         * modules/wcrtomb (License): Likewise.
42257         * modules/streq (License): Likewise.
42258         Reported by David Lutterkort <lutter@redhat.com>.
42259
42260 2008-12-23  Bruno Haible  <bruno@clisp.org>
42261
42262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42263
42264 2008-12-23  Bruno Haible  <bruno@clisp.org>
42265
42266         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42267         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42268         GETADDRINFO_LIB, not in LIBS.
42269         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42270         * modules/canon-host (Link): Likewise.
42271         * NEWS: Mention the change.
42272         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42273         GETADDRINFO_LIB.
42274
42275 2008-12-22  Bruno Haible  <bruno@clisp.org>
42276
42277         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42278         * doc/posix-functions/iswalpha_l.texi: Likewise.
42279         * doc/posix-functions/iswblank_l.texi: Likewise.
42280         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42281         * doc/posix-functions/iswctype_l.texi: Likewise.
42282         * doc/posix-functions/iswdigit_l.texi: Likewise.
42283         * doc/posix-functions/iswgraph_l.texi: Likewise.
42284         * doc/posix-functions/iswlower_l.texi: Likewise.
42285         * doc/posix-functions/iswprint_l.texi: Likewise.
42286         * doc/posix-functions/iswpunct_l.texi: Likewise.
42287         * doc/posix-functions/iswspace_l.texi: Likewise.
42288         * doc/posix-functions/iswupper_l.texi: Likewise.
42289         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42290         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42291         * doc/posix-functions/open_wmemstream.texi: Likewise.
42292         * doc/posix-functions/swscanf.texi: Likewise.
42293         * doc/posix-functions/towctrans_l.texi: Likewise.
42294         * doc/posix-functions/towlower.texi: Likewise.
42295         * doc/posix-functions/towlower_l.texi: Likewise.
42296         * doc/posix-functions/towupper.texi: Likewise.
42297         * doc/posix-functions/towupper_l.texi: Likewise.
42298         * doc/posix-functions/vfwprintf.texi: Likewise.
42299         * doc/posix-functions/vfwscanf.texi: Likewise.
42300         * doc/posix-functions/vswscanf.texi: Likewise.
42301         * doc/posix-functions/vwprintf.texi: Likewise.
42302         * doc/posix-functions/vwscanf.texi: Likewise.
42303         * doc/posix-functions/wcpcpy.texi: Likewise.
42304         * doc/posix-functions/wcpncpy.texi: Likewise.
42305         * doc/posix-functions/wcscasecmp.texi: Likewise.
42306         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42307         * doc/posix-functions/wcscoll_l.texi: Likewise.
42308         * doc/posix-functions/wcsdup.texi: Likewise.
42309         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42310         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42311         * doc/posix-functions/wcsnlen.texi: Likewise.
42312         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42313         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42314         * doc/posix-functions/wctrans_l.texi: Likewise.
42315         * doc/posix-functions/wctype_l.texi: Likewise.
42316         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42317         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42318         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42319         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42320         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42321         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42322         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42323         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42324         * doc/glibc-functions/wcschrnul.texi: Likewise.
42325         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42326         * doc/glibc-functions/wcstod_l.texi: Likewise.
42327         * doc/glibc-functions/wcstof_l.texi: Likewise.
42328         * doc/glibc-functions/wcstol_l.texi: Likewise.
42329         * doc/glibc-functions/wcstold_l.texi: Likewise.
42330         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42331         * doc/glibc-functions/wcstoq.texi: Likewise.
42332         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42333         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42334         * doc/glibc-functions/wcstouq.texi: Likewise.
42335         * doc/glibc-functions/wmempcpy.texi: Likewise.
42336
42337 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42338             Eric Blake  <ebb9@byu.net>
42339             Paolo Bonzini  <bonzini@gnu.org>
42340             Bruno Haible  <bruno@clisp.org>
42341
42342         Make c-stack work on Haiku.
42343         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42344         (c_stack_action): Use SA_ONSTACK flag.
42345
42346 2008-12-22  Bruno Haible  <bruno@clisp.org>
42347
42348         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42349
42350 2008-12-22  Bruno Haible  <bruno@clisp.org>
42351
42352         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42353         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42354         being overridden.
42355         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42356         New macros.
42357         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42359         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42360         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42361
42362 2008-12-22  Bruno Haible  <bruno@clisp.org>
42363
42364         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42365         from test code.
42366
42367 2008-12-22  Eric Blake  <ebb9@byu.net>
42368
42369         Avoid gcc warnings on cygwin.
42370         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42371         Avoid unused variable.
42372         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42373         Likewise.
42374
42375 2008-12-22  Bruno Haible  <bruno@clisp.org>
42376
42377         Remove HAVE_MBRTOWC conditionals.
42378         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42379         (mbscasecmp): Assume mbrtowc function.
42380         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42381         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42382         * lib/mbschr.c: Include mbuiter.h unconditionally.
42383         (mbschr): Assume mbrtowc function.
42384         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42385         (mbscspn): Assume mbrtowc function.
42386         * lib/mbslen.c: Include mbuiter.h unconditionally.
42387         (mbslen): Assume mbrtowc function.
42388         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42389         (mbsncasecmp): Assume mbrtowc function.
42390         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42391         (mbsnlen): Assume mbrtowc function.
42392         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42393         (mbspbrk): Assume mbrtowc function.
42394         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42395         (mbspcasecmp): Assume mbrtowc function.
42396         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42397         (mbsrchr): Assume mbrtowc function.
42398         * lib/mbssep.c: Include mbuiter.h unconditionally.
42399         (mbssep): Assume mbrtowc function.
42400         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42401         (mbsspn): Assume mbrtowc function.
42402         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42403         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42404         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42405         (mbstok_r): Assume mbrtowc function.
42406         * lib/propername.c: Include mbuiter.h unconditionally.
42407         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42408         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42409         (trim2): Assume mbrtowc function.
42410         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42411         (mbsnwidth): Assume mbrtowc function.
42412         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42413         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42414         fallback definitions.
42415         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42416
42417 2008-12-22  Bruno Haible  <bruno@clisp.org>
42418
42419         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42420
42421 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42422
42423         * modules/regex: Request emulations for the mb*/wc* functions we need.
42424         * m4/regex.m4: Don't look for those functions here.
42425         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42426
42427 2008-12-22  Bruno Haible  <bruno@clisp.org>
42428
42429         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42430
42431 2008-12-21  Bruno Haible  <bruno@clisp.org>
42432
42433         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42434         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42435         (Include): Remove conditionalization.
42436         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42437         (Include): Remove conditionalization.
42438         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42439         (Include): Remove conditionalization.
42440         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42441         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42442         * NEWS: Mention the change.
42443         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42444         via Sergey Poznyakoff <gray@gnu.org.ua>.
42445
42446 2008-12-21  Bruno Haible  <bruno@clisp.org>
42447
42448         * MODULES.html.sh (Extended multibyte and wide character utilities
42449         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42450         wcrtomb, wcsrtombs.
42451         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42452         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42453         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42454         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42455
42456 2008-12-21  Bruno Haible  <bruno@clisp.org>
42457
42458         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42459
42460 2008-12-21  Bruno Haible  <bruno@clisp.org>
42461
42462         * modules/wcsnrtombs-tests: New file.
42463         * tests/test-wcsnrtombs1.sh: New file.
42464         * tests/test-wcsnrtombs2.sh: New file.
42465         * tests/test-wcsnrtombs3.sh: New file.
42466         * tests/test-wcsnrtombs4.sh: New file.
42467         * tests/test-wcsnrtombs.c: New file.
42468
42469         New module 'wcsnrtombs'.
42470         * lib/wchar.in.h (wcsnrtombs): New declaration.
42471         * lib/wcsnrtombs.c: New file.
42472         * lib/wcsrtombs-state.c: New file.
42473         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42474         (internal_state): Remove variable.
42475         * m4/wcsnrtombs.m4: New file.
42476         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42477         compilation units.
42478         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42479         HAVE_WCSNRTOMBS.
42480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42481         HAVE_WCSNRTOMBS.
42482         * modules/wcsnrtombs: New file.
42483         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42484         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42485
42486 2008-12-21  Bruno Haible  <bruno@clisp.org>
42487
42488         * modules/wcsrtombs-tests: New file.
42489         * tests/test-wcsrtombs1.sh: New file.
42490         * tests/test-wcsrtombs2.sh: New file.
42491         * tests/test-wcsrtombs3.sh: New file.
42492         * tests/test-wcsrtombs4.sh: New file.
42493         * tests/test-wcsrtombs.c: New file.
42494
42495         New module 'wcsrtombs'.
42496         * lib/wchar.in.h (wcsrtombs): New declaration.
42497         * lib/wcsrtombs.c: New file.
42498         * m4/wcsrtombs.m4: New file.
42499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42500         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42502         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42503         * modules/wcsrtombs: New file.
42504         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42505         bugs.
42506
42507 2008-12-21  Bruno Haible  <bruno@clisp.org>
42508
42509         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42510         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42511         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42512         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42513         if not correct.
42514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42515         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42516         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42517         m4/locale-zh.m4, m4/codeset.m4.
42518         * doc/posix-functions/wcrtomb.texi: Document the bug.
42519
42520 2008-12-21  Bruno Haible  <bruno@clisp.org>
42521
42522         Work around a btowc() bug on IRIX 6.5.
42523         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42524         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42525         REPLACE_WTOBC if not.
42526         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42527         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42528         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42529
42530 2008-12-21  Bruno Haible  <bruno@clisp.org>
42531
42532         * modules/wcrtomb-tests: New file.
42533         * tests/test-wcrtomb.sh: New file.
42534         * tests/test-wcrtomb.c: New file.
42535
42536         New module 'wcrtomb'.
42537         * lib/wchar.in.h (wcrtomb): New declaration.
42538         * lib/wcrtomb.c: New file.
42539         * m4/wcrtomb.m4: New file.
42540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42541         HAVE_WCRTOMB.
42542         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42543         HAVE_WCRTOMB.
42544         * modules/wcrtomb: New file.
42545         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42546
42547 2008-12-21  Bruno Haible  <bruno@clisp.org>
42548
42549         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42550         * modules/mbsrtowcs (Files): Likewise.
42551         * modules/wctob (Files): Likewise.
42552         * modules/c-strcase-tests (Files): Likewise.
42553         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42554         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42555         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42556         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42557         * modules/vasnprintf-posix-tests (Files): Likewise.
42558
42559 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42560
42561         gitlog-to-changelog: pass all command-line arguments to git-log
42562         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42563         it is sometimes convenient to filter the commits in various ways.
42564         gitlog-to-changelog only allows --since to specify a start date,
42565         but git-log itself supports many other filtering mechanisms.
42566         At the moment, I want to filter by branch name.  Rather than
42567         adding a --branch option to gitlog-to-changelog, it seems more
42568         flexible to simply pass all options directly to git-log and let
42569         git do the work.  Notice that this effectively makes --since a
42570         redundant option for gitlog-to-changelog, but removing it would
42571         require current usage to change since calls would then require
42572         an additional '--'.
42573
42574 2008-12-21  Bruno Haible  <bruno@clisp.org>
42575
42576         * modules/mbsnrtowcs-tests: New file.
42577         * tests/test-mbsnrtowcs1.sh: New file.
42578         * tests/test-mbsnrtowcs2.sh: New file.
42579         * tests/test-mbsnrtowcs3.sh: New file.
42580         * tests/test-mbsnrtowcs4.sh: New file.
42581         * tests/test-mbsnrtowcs.c: New file.
42582
42583         New module 'mbsnrtowcs'.
42584         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42585         * lib/mbsnrtowcs.c: New file.
42586         * lib/mbsrtowcs-state.c: New file.
42587         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42588         (internal_state): Remove variable.
42589         * m4/mbsnrtowcs.m4: New file.
42590         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42591         compilation units.
42592         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42593         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42594         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42595         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42596         * modules/mbsnrtowcs: New file.
42597         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42598         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42599         portability problem.
42600
42601 2008-12-21  Bruno Haible  <bruno@clisp.org>
42602
42603         Work around mbsrtowcs bug.
42604         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42605         (gl_FUNC_MBSRTOWCS): Invoke it.
42606         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42607         m4/locale-zh.m4.
42608         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42609
42610 2008-12-21  Bruno Haible  <bruno@clisp.org>
42611
42612         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42613
42614 2008-12-21  Bruno Haible  <bruno@clisp.org>
42615
42616         Update doc for AIX.
42617         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42618         16-bit wchar_t type.
42619         * doc/posix-functions/btowc.texi: Likewise.
42620         * doc/posix-functions/fgetwc.texi: Likewise.
42621         * doc/posix-functions/fgetws.texi: Likewise.
42622         * doc/posix-functions/fputwc.texi: Likewise.
42623         * doc/posix-functions/fputws.texi: Likewise.
42624         * doc/posix-functions/fwide.texi: Likewise.
42625         * doc/posix-functions/fwprintf.texi: Likewise.
42626         * doc/posix-functions/fwscanf.texi: Likewise.
42627         * doc/posix-functions/getwchar.texi: Likewise.
42628         * doc/posix-functions/getwc.texi: Likewise.
42629         * doc/posix-functions/iswalnum.texi: Likewise.
42630         * doc/posix-functions/iswalpha.texi: Likewise.
42631         * doc/posix-functions/iswblank.texi: Likewise.
42632         * doc/posix-functions/iswcntrl.texi: Likewise.
42633         * doc/posix-functions/iswctype.texi: Likewise.
42634         * doc/posix-functions/iswdigit.texi: Likewise.
42635         * doc/posix-functions/iswgraph.texi: Likewise.
42636         * doc/posix-functions/iswlower.texi: Likewise.
42637         * doc/posix-functions/iswprint.texi: Likewise.
42638         * doc/posix-functions/iswpunct.texi: Likewise.
42639         * doc/posix-functions/iswspace.texi: Likewise.
42640         * doc/posix-functions/iswupper.texi: Likewise.
42641         * doc/posix-functions/iswxdigit.texi: Likewise.
42642         * doc/posix-functions/mbrtowc.texi: Likewise.
42643         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42644         * doc/posix-functions/mbstowcs.texi: Likewise.
42645         * doc/posix-functions/mbtowc.texi: Likewise.
42646         * doc/posix-functions/putwchar.texi: Likewise.
42647         * doc/posix-functions/putwc.texi: Likewise.
42648         * doc/posix-functions/swprintf.texi: Likewise.
42649         * doc/posix-functions/tolower.texi: Likewise.
42650         * doc/posix-functions/toupper.texi: Likewise.
42651         * doc/posix-functions/towctrans.texi: Likewise.
42652         * doc/posix-functions/ungetwc.texi: Likewise.
42653         * doc/posix-functions/vswprintf.texi: Likewise.
42654         * doc/posix-functions/wcrtomb.texi: Likewise.
42655         * doc/posix-functions/wcscat.texi: Likewise.
42656         * doc/posix-functions/wcschr.texi: Likewise.
42657         * doc/posix-functions/wcscmp.texi: Likewise.
42658         * doc/posix-functions/wcscoll.texi: Likewise.
42659         * doc/posix-functions/wcscpy.texi: Likewise.
42660         * doc/posix-functions/wcscspn.texi: Likewise.
42661         * doc/posix-functions/wcsftime.texi: Likewise.
42662         * doc/posix-functions/wcslen.texi: Likewise.
42663         * doc/posix-functions/wcsncat.texi: Likewise.
42664         * doc/posix-functions/wcsncmp.texi: Likewise.
42665         * doc/posix-functions/wcsncpy.texi: Likewise.
42666         * doc/posix-functions/wcspbrk.texi: Likewise.
42667         * doc/posix-functions/wcsrchr.texi: Likewise.
42668         * doc/posix-functions/wcsrtombs.texi: Likewise.
42669         * doc/posix-functions/wcsspn.texi: Likewise.
42670         * doc/posix-functions/wcsstr.texi: Likewise.
42671         * doc/posix-functions/wcstod.texi: Likewise.
42672         * doc/posix-functions/wcstof.texi: Likewise.
42673         * doc/posix-functions/wcstoimax.texi: Likewise.
42674         * doc/posix-functions/wcstok.texi: Likewise.
42675         * doc/posix-functions/wcstold.texi: Likewise.
42676         * doc/posix-functions/wcstoll.texi: Likewise.
42677         * doc/posix-functions/wcstol.texi: Likewise.
42678         * doc/posix-functions/wcstombs.texi: Likewise.
42679         * doc/posix-functions/wcstoull.texi: Likewise.
42680         * doc/posix-functions/wcstoul.texi: Likewise.
42681         * doc/posix-functions/wcstoumax.texi: Likewise.
42682         * doc/posix-functions/wcswidth.texi: Likewise.
42683         * doc/posix-functions/wcsxfrm.texi: Likewise.
42684         * doc/posix-functions/wctob.texi: Likewise.
42685         * doc/posix-functions/wctomb.texi: Likewise.
42686         * doc/posix-functions/wctrans.texi: Likewise.
42687         * doc/posix-functions/wctype.texi: Likewise.
42688         * doc/posix-functions/wcwidth.texi: Likewise.
42689         * doc/posix-functions/wmemchr.texi: Likewise.
42690         * doc/posix-functions/wmemcmp.texi: Likewise.
42691         * doc/posix-functions/wmemcpy.texi: Likewise.
42692         * doc/posix-functions/wmemmove.texi: Likewise.
42693         * doc/posix-functions/wmemset.texi: Likewise.
42694         * doc/posix-functions/wprintf.texi: Likewise.
42695         * doc/posix-functions/wscanf.texi: Likewise.
42696
42697 2008-12-21  Bruno Haible  <bruno@clisp.org>
42698
42699         Update doc for HP-UX 11.11.
42700         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42701         in HP-UX version 11.00, not in all versions of HP-UX 11.
42702         * doc/posix-functions/fwide.texi: Likewise.
42703         * doc/posix-functions/fwprintf.texi: Likewise.
42704         * doc/posix-functions/fwscanf.texi: Likewise.
42705         * doc/posix-functions/inet_ntop.texi: Likewise.
42706         * doc/posix-functions/inet_pton.texi: Likewise.
42707         * doc/posix-functions/mbrlen.texi: Likewise.
42708         * doc/posix-functions/mbrtowc.texi: Likewise.
42709         * doc/posix-functions/mbsinit.texi: Likewise.
42710         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42711         * doc/posix-functions/swprintf.texi: Likewise.
42712         * doc/posix-functions/swscanf.texi: Likewise.
42713         * doc/posix-functions/towctrans.texi: Likewise.
42714         * doc/posix-functions/vfwprintf.texi: Likewise.
42715         * doc/posix-functions/vswprintf.texi: Likewise.
42716         * doc/posix-functions/vwprintf.texi: Likewise.
42717         * doc/posix-functions/wcrtomb.texi: Likewise.
42718         * doc/posix-functions/wcsrtombs.texi: Likewise.
42719         * doc/posix-functions/wcsstr.texi: Likewise.
42720         * doc/posix-functions/wctob.texi: Likewise.
42721         * doc/posix-functions/wctrans.texi: Likewise.
42722         * doc/posix-functions/wmemchr.texi: Likewise.
42723         * doc/posix-functions/wmemcmp.texi: Likewise.
42724         * doc/posix-functions/wmemcpy.texi: Likewise.
42725         * doc/posix-functions/wmemmove.texi: Likewise.
42726         * doc/posix-functions/wmemset.texi: Likewise.
42727         * doc/posix-functions/wprintf.texi: Likewise.
42728         * doc/posix-functions/wscanf.texi: Likewise.
42729
42730 2008-12-21  Bruno Haible  <bruno@clisp.org>
42731
42732         Work around a portability problem.
42733         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42734         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42735
42736 2008-12-20  Bruno Haible  <bruno@clisp.org>
42737
42738         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42739         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42740         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42741         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42742         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42743
42744         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42745         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42746         set.
42747         (GNULIB_defined_mbstate_t): New macro.
42748         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42749         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42750         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42751         reuses the system's mbrtowc function but works around the bugs.
42752         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42753         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42754         macros.
42755         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42756         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42757         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42758         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42759         REPLACE_MBSINIT if mbsinit needs to be overridden.
42760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42761         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42762         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42763         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42764         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42765         m4/locale-zh.m4.
42766         (Depends): Add mbsinit.
42767         * modules/mbsinit (Depends): Add mbrtowc.
42768         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42769
42770 2008-12-20  Bruno Haible  <bruno@clisp.org>
42771
42772         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42773         so that there are no conversion errors on AIX.
42774         * tests/test-mbsrtowcs.c (main): LIkewise.
42775
42776 2008-12-20  Bruno Haible  <bruno@clisp.org>
42777
42778         Work around wctob bug on Solaris <= 9.
42779         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42780         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42781         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42782         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42783         * modules/wctob (Files): Add m4/locale-fr.m4.
42784         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42785
42786 2008-12-20  Bruno Haible  <bruno@clisp.org>
42787
42788         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42789         /dev/null.
42790         * tests/test-select-in.sh: Likewise.
42791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42792
42793 2008-12-20  Bruno Haible  <bruno@clisp.org>
42794
42795         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42796         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42797         Cygwin 1.5.x.
42798
42799 2008-12-20  Bruno Haible  <bruno@clisp.org>
42800
42801         Ensure mbstate_t is defined on HP-UX 11.11.
42802         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42803         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42804         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42805         AC_USE_SYSTEM_EXTENSIONS.
42806         * modules/fnmatch (Depends-on): Add extensions.
42807         * modules/mbrlen (Depends-on): Likewise.
42808         * modules/mbrtowc (Depends-on): Likewise.
42809         * modules/mbsinit (Depends-on): Likewise.
42810         * modules/mbsrtowcs (Depends-on): Likewise.
42811         * modules/mbswidth (Depends-on): Likewise.
42812         * modules/quotearg (Depends-on): Likewise.
42813         * modules/strftime (Depends-on): Likewise.
42814
42815 2008-12-20  Bruno Haible  <bruno@clisp.org>
42816
42817         Ensure wctob is declared on IRIX 6.5.
42818         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42819         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42820         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42822         of HAVE_WCTOB.
42823         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42824         HAVE_WCTOB.
42825         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42826
42827 2008-12-19  Bruno Haible  <bruno@clisp.org>
42828
42829         * modules/mbsrtowcs-tests: New file.
42830         * tests/test-mbsrtowcs1.sh: New file.
42831         * tests/test-mbsrtowcs2.sh: New file.
42832         * tests/test-mbsrtowcs3.sh: New file.
42833         * tests/test-mbsrtowcs4.sh: New file.
42834         * tests/test-mbsrtowcs.c: New file.
42835
42836         New module 'mbsrtowcs'.
42837         * lib/wchar.in.h (mbsrtowcs): New declaration.
42838         * lib/mbsrtowcs.c: New file.
42839         * m4/mbsrtowcs.m4: New file.
42840         * modules/mbsrtowcs: New file.
42841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42842         HAVE_MBSRTOWCS.
42843         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42844         HAVE_MBSRTOWCS.
42845         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42846
42847 2008-12-19  Bruno Haible  <bruno@clisp.org>
42848
42849         New module 'mbrlen'.
42850         * lib/wchar.in.h (mbrlen): New declaration.
42851         * lib/mbrlen.c: New file.
42852         * m4/mbrlen.m4: New file.
42853         * modules/mbrlen: New file.
42854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42855         HAVE_MBRLEN.
42856         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42857         HAVE_MBRLEN.
42858         * doc/posix-functions/mbrlen.texi: Document the new module.
42859
42860 2008-12-19  Bruno Haible  <bruno@clisp.org>
42861
42862         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42863         * modules/mbrtowc (Depends-on): Add verify.
42864         Suggested by Paul Eggert.
42865
42866 2008-12-18  Bruno Haible  <bruno@clisp.org>
42867
42868         * modules/mbsinit-tests: New file.
42869         * tests/test-mbsinit.sh: New file.
42870         * tests/test-mbsinit.c: New file.
42871
42872 2008-12-18  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/mbrtowc-tests: New file.
42875         * tests/test-mbrtowc1.sh: New file.
42876         * tests/test-mbrtowc2.sh: New file.
42877         * tests/test-mbrtowc3.sh: New file.
42878         * tests/test-mbrtowc4.sh: New file.
42879         * tests/test-mbrtowc.c: New file.
42880
42881         New module 'mbrtowc'.
42882         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42883         mbsinit and mbrtowc.
42884         (mbrtowc): New declaration.
42885         * lib/mbrtowc.c: New file.
42886         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42887         * modules/mbrtowc: New file.
42888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42889         HAVE_MBRTOWC.
42890         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42891         HAVE_MBRTOWC.
42892         * doc/posix-functions/mbrtowc.texi: Document the new module.
42893
42894 2008-12-18  Bruno Haible  <bruno@clisp.org>
42895
42896         New module 'wctob'.
42897         * lib/wchar.in.h (wctob): New declaration.
42898         * lib/wctob.c: New file.
42899         * m4/wctob.m4: New file.
42900         * modules/wctob: New file.
42901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42902         HAVE_WCTOB.
42903         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42904         * doc/posix-functions/wctob.texi: Document the new module.
42905
42906 2008-12-18  Bruno Haible  <bruno@clisp.org>
42907
42908         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42909         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42910
42911 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42912
42913         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42914         G. Christensen" <tgc@jupiterrise.com>.
42915
42916         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42917         G. Christensen" <tgc@jupiterrise.com>.
42918
42919         * lib/flock.c: Need to include string.h.  Reported by "Tom
42920         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42921         <ebb9@byu.net>.
42922
42923 2008-12-18  Bruno Haible  <bruno@clisp.org>
42924
42925         * m4/locale-ja.m4: New file, from GNU gettext.
42926
42927 2008-12-17  Bruno Haible  <bruno@clisp.org>
42928
42929         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42930         Suggested by Eric Blake.
42931
42932 2008-12-17  Bruno Haible  <bruno@clisp.org>
42933
42934         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42935
42936 2008-12-17  Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42939         * modules/mbsinit (Depends-on): Add verify.
42940         Suggested by Paul Eggert.
42941
42942 2008-12-17  Bruno Haible  <bruno@clisp.org>
42943
42944         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42945         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42946         gl_FUNC_MBRTOWC.
42947         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42948         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42949         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42950         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42951         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42952         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42953         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42954         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42955         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42956         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42957         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42958         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42959         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42960         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42961         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42962         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42963         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42964         * modules/trim (configure.ac): Likewise.
42965
42966 2008-12-17  Bruno Haible  <bruno@clisp.org>
42967
42968         * modules/btowc-tests: New file.
42969         * tests/test-btowc1.sh: New file.
42970         * tests/test-btowc2.sh: New file.
42971         * tests/test-btowc.c: New file.
42972
42973         New module 'btowc'.
42974         * lib/wchar.in.h (btowc): New declaration.
42975         * lib/btowc.c: New file.
42976         * m4/btowc.m4: New file.
42977         * modules/btowc: New file.
42978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42979         HAVE_BTOWC.
42980         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42981         * doc/posix-functions/btowc.texi: Document the new module.
42982
42983 2008-12-17  Bruno Haible  <bruno@clisp.org>
42984
42985         New module 'mbsinit'.
42986         * lib/wchar.in.h (mbsinit): New declaration.
42987         * lib/mbsinit.c: New file.
42988         * m4/mbsinit.m4: New file.
42989         * modules/mbsinit: New file.
42990         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42991         HAVE_MBSINIT.
42992         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42993         HAVE_MBSINIT.
42994         * doc/posix-functions/mbsinit.texi: Document the new module.
42995
42996 2008-12-16  Bruno Haible  <bruno@clisp.org>
42997
42998         * lib/unistd.in.h: Add comment.
42999         * tests/test-environ.c: Don't include <stdlib.h>.
43000
43001 2008-12-16  Bruno Haible  <bruno@clisp.org>
43002
43003         * lib/parse-duration.h (parse_duration): Document return value
43004         convention.
43005         * lib/parse-duration.c: Include specification header first. Add
43006         comments.
43007         (_): Remove macro.
43008         (parse_year_month_day, parse_hour_minute_second): Move side effects
43009         outside of strchr call.
43010         (parse_non_iso8601): Move side effects outside of isspace call.
43011         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43012         call.
43013
43014 2008-12-16  Bruno Haible  <bruno@clisp.org>
43015
43016         * tests/test-parse-duration.sh: Produce no output when the test
43017         succeeds.
43018
43019 2008-12-16  Bruno Haible  <bruno@clisp.org>
43020
43021         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43022         expressions.
43023
43024 2008-12-15  Bruno Haible  <bruno@clisp.org>
43025
43026         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43027         * doc/glibc-functions/flistxattr.texi: Likewise.
43028         * doc/glibc-functions/fopencookie.texi: Likewise.
43029         * doc/glibc-functions/fremovexattr.texi: Likewise.
43030         * doc/glibc-functions/fsetxattr.texi: Likewise.
43031         * doc/glibc-functions/getxattr.texi: Likewise.
43032         * doc/glibc-functions/lgetxattr.texi: Likewise.
43033         * doc/glibc-functions/listxattr.texi: Likewise.
43034         * doc/glibc-functions/llistxattr.texi: Likewise.
43035         * doc/glibc-functions/lremovexattr.texi: Likewise.
43036         * doc/glibc-functions/lsetxattr.texi: Likewise.
43037         * doc/glibc-functions/removexattr.texi: Likewise.
43038         * doc/glibc-functions/setxattr.texi: Likewise.
43039         * doc/posix-functions/open_memstream.texi: Likewise.
43040
43041 2008-12-15  Eric Blake  <ebb9@byu.net>
43042
43043         Update doc for cygwin 1.7.
43044         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43045         functions.
43046         * doc/posix-functions/fchmodat.texi: Likewise.
43047         * doc/posix-functions/fchownat.texi: Likewise.
43048         * doc/posix-functions/fdopendir.texi: Likewise.
43049         * doc/posix-functions/fmemopen.texi: Likewise.
43050         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43051         * doc/posix-functions/fstatat.texi: Likewise.
43052         * doc/posix-functions/futimens.texi: Likewise.
43053         * doc/posix-functions/gai_strerror.texi: Likewise.
43054         * doc/posix-functions/getaddrinfo.texi: Likewise.
43055         * doc/posix-functions/getnameinfo.texi: Likewise.
43056         * doc/posix-functions/if_freenameindex.texi: Likewise.
43057         * doc/posix-functions/if_indextoname.texi: Likewise.
43058         * doc/posix-functions/if_nameindex.texi: Likewise.
43059         * doc/posix-functions/if_nametoindex.texi: Likewise.
43060         * doc/posix-functions/insque.texi: Likewise.
43061         * doc/posix-functions/linkat.texi: Likewise.
43062         * doc/posix-functions/llrint.texi: Likewise.
43063         * doc/posix-functions/llrintf.texi: Likewise.
43064         * doc/posix-functions/llrintl.texi: Likewise.
43065         * doc/posix-functions/lockf.texi: Likewise.
43066         * doc/posix-functions/lrintl.texi: Likewise.
43067         * doc/posix-functions/mkdirat.texi: Likewise.
43068         * doc/posix-functions/mkfifoat.texi: Likewise.
43069         * doc/posix-functions/mknodat.texi: Likewise.
43070         * doc/posix-functions/mq_close.texi: Likewise.
43071         * doc/posix-functions/mq_getattr.texi: Likewise.
43072         * doc/posix-functions/mq_notify.texi: Likewise.
43073         * doc/posix-functions/mq_open.texi: Likewise.
43074         * doc/posix-functions/mq_receive.texi: Likewise.
43075         * doc/posix-functions/mq_send.texi: Likewise.
43076         * doc/posix-functions/mq_setattr.texi: Likewise.
43077         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43078         * doc/posix-functions/mq_timedsend.texi: Likewise.
43079         * doc/posix-functions/mq_unlink.texi: Likewise.
43080         * doc/posix-functions/open_memstream.texi: Likewise.
43081         * doc/posix-functions/openat.texi: Likewise.
43082         * doc/posix-functions/posix_fadvise.texi: Likewise.
43083         * doc/posix-functions/posix_fallocate.texi: Likewise.
43084         * doc/posix-functions/posix_madvise.texi: Likewise.
43085         * doc/posix-functions/posix_memalign.texi: Likewise.
43086         * doc/posix-functions/posix_openpt.texi: Likewise.
43087         * doc/posix-functions/readlinkat.texi: Likewise.
43088         * doc/posix-functions/remque.texi: Likewise.
43089         * doc/posix-functions/renameat.texi: Likewise.
43090         * doc/posix-functions/rintl.texi: Likewise.
43091         * doc/posix-functions/sem_unlink.texi: Likewise.
43092         * doc/posix-functions/shm_open.texi: Likewise.
43093         * doc/posix-functions/shm_unlink.texi: Likewise.
43094         * doc/posix-functions/signgam.texi: Likewise.
43095         * doc/posix-functions/sigset.texi: Likewise.
43096         * doc/posix-functions/stpcpy.texi: Likewise.
43097         * doc/posix-functions/stpncpy.texi: Likewise.
43098         * doc/posix-functions/strerror.texi: Likewise.
43099         * doc/posix-functions/strtod.texi: Likewise.
43100         * doc/posix-functions/symlinkat.texi: Likewise.
43101         * doc/posix-functions/unlinkat.texi: Likewise.
43102         * doc/posix-functions/utimensat.texi: Likewise.
43103         * doc/glibc-functions/bindresvport.texi: Likewise.
43104         * doc/glibc-functions/dn_expand.texi: Likewise.
43105         * doc/glibc-functions/exp10.texi: Likewise.
43106         * doc/glibc-functions/exp10f.texi: Likewise.
43107         * doc/glibc-functions/fgetxattr.texi: Likewise.
43108         * doc/glibc-functions/flistxattr.texi: Likewise.
43109         * doc/glibc-functions/fopencookie.texi: Likewise.
43110         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43111         * doc/glibc-functions/fremovexattr.texi: Likewise.
43112         * doc/glibc-functions/fsetxattr.texi: Likewise.
43113         * doc/glibc-functions/getifaddrs.texi: Likewise.
43114         * doc/glibc-functions/getxattr.texi: Likewise.
43115         * doc/glibc-functions/lgetxattr.texi: Likewise.
43116         * doc/glibc-functions/listxattr.texi: Likewise.
43117         * doc/glibc-functions/llistxattr.texi: Likewise.
43118         * doc/glibc-functions/lremovexattr.texi: Likewise.
43119         * doc/glibc-functions/lsetxattr.texi: Likewise.
43120         * doc/glibc-functions/pow10.texi: Likewise.
43121         * doc/glibc-functions/pow10f.texi: Likewise.
43122         * doc/glibc-functions/rcmd_af.texi: Likewise.
43123         * doc/glibc-functions/removexattr.texi: Likewise.
43124         * doc/glibc-functions/res_init.texi: Likewise.
43125         * doc/glibc-functions/res_mkquery.texi: Likewise.
43126         * doc/glibc-functions/res_query.texi: Likewise.
43127         * doc/glibc-functions/res_querydomain.texi: Likewise.
43128         * doc/glibc-functions/res_send.texi: Likewise.
43129         * doc/glibc-functions/rresvport_af.texi: Likewise.
43130         * doc/glibc-functions/setxattr.texi: Likewise.
43131         * doc/glibc-functions/strcasestr.texi: Likewise.
43132
43133 2008-12-15  Bruno Haible  <bruno@clisp.org>
43134
43135         Fix compilation error on OSF/1 4.0.
43136         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43137         <sys/time.h>, simply delegate to the system header.
43138         Reported by Daniel Richard G. <oss@teragram.com>.
43139
43140 2008-12-15  Bruno Haible  <bruno@clisp.org>
43141
43142         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43143         * doc/posix-functions/fchmodat.texi: Likewise.
43144         * doc/posix-functions/fchownat.texi: Likewise.
43145         * doc/posix-functions/fdopendir.texi: Likewise.
43146         * doc/posix-functions/fstatat.texi: Likewise.
43147         * doc/posix-functions/mkdirat.texi: Likewise.
43148         * doc/posix-functions/unlinkat.texi: Likewise.
43149
43150 2008-12-14  Bruno Haible  <bruno@clisp.org>
43151
43152         Update doc for POSIX:2008.
43153         * doc/posix-functions/faccessat.texi: New file.
43154         * doc/posix-functions/fchmodat.texi: New file.
43155         * doc/posix-functions/fchownat.texi: New file.
43156         * doc/posix-functions/fdopendir.texi: New file.
43157         * doc/posix-functions/fstatat.texi: New file.
43158         * doc/posix-functions/futimens.texi: New file.
43159         * doc/posix-functions/linkat.texi: New file.
43160         * doc/posix-functions/mkdirat.texi: New file.
43161         * doc/posix-functions/mkfifoat.texi: New file.
43162         * doc/posix-functions/mknodat.texi: New file.
43163         * doc/posix-functions/open_wmemstream.texi: New file.
43164         * doc/posix-functions/openat.texi: New file.
43165         * doc/posix-functions/psiginfo.texi: New file.
43166         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43167         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43168         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43169         * doc/posix-functions/readlinkat.texi: New file.
43170         * doc/posix-functions/renameat.texi: New file.
43171         * doc/posix-functions/strerror_l.texi: New file.
43172         * doc/posix-functions/symlinkat.texi: New file.
43173         * doc/posix-functions/unlinkat.texi: New file.
43174         * doc/posix-functions/utimensat.texi: New file.
43175         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43176
43177 2008-12-14  Bruno Haible  <bruno@clisp.org>
43178
43179         Update doc for POSIX:2008.
43180         * doc/posix-functions/alphasort.texi: Renamed from
43181         doc/glibc-functions/alphasort.texi.
43182         * doc/posix-functions/dirfd.texi: Renamed from
43183         doc/glibc-functions/dirfd.texi.
43184         * doc/posix-functions/dprintf.texi: Renamed from
43185         doc/glibc-functions/dprintf.texi.
43186         * doc/posix-functions/duplocale.texi: Renamed from
43187         doc/glibc-functions/duplocale.texi.
43188         * doc/posix-functions/fexecve.texi: Renamed from
43189         doc/glibc-functions/fexecve.texi.
43190         * doc/posix-functions/fmemopen.texi: Renamed from
43191         doc/glibc-functions/fmemopen.texi.
43192         * doc/posix-functions/freelocale.texi: Renamed from
43193         doc/glibc-functions/freelocale.texi.
43194         * doc/posix-functions/getdate_err.texi: Renamed from
43195         doc/glibc-functions/getdate_err.texi.
43196         * doc/posix-functions/isalnum_l.texi: Renamed from
43197         doc/glibc-functions/isalnum_l.texi.
43198         * doc/posix-functions/isalpha_l.texi: Renamed from
43199         doc/glibc-functions/isalpha_l.texi.
43200         * doc/posix-functions/isblank_l.texi: Renamed from
43201         doc/glibc-functions/isblank_l.texi.
43202         * doc/posix-functions/iscntrl_l.texi: Renamed from
43203         doc/glibc-functions/iscntrl_l.texi.
43204         * doc/posix-functions/isdigit_l.texi: Renamed from
43205         doc/glibc-functions/isdigit_l.texi.
43206         * doc/posix-functions/isgraph_l.texi: Renamed from
43207         doc/glibc-functions/isgraph_l.texi.
43208         * doc/posix-functions/islower_l.texi: Renamed from
43209         doc/glibc-functions/islower_l.texi.
43210         * doc/posix-functions/isprint_l.texi: Renamed from
43211         doc/glibc-functions/isprint_l.texi.
43212         * doc/posix-functions/ispunct_l.texi: Renamed from
43213         doc/glibc-functions/ispunct_l.texi.
43214         * doc/posix-functions/isspace_l.texi: Renamed from
43215         doc/glibc-functions/isspace_l.texi.
43216         * doc/posix-functions/isupper_l.texi: Renamed from
43217         doc/glibc-functions/isupper_l.texi.
43218         * doc/posix-functions/iswalnum_l.texi: Renamed from
43219         doc/glibc-functions/iswalnum_l.texi.
43220         * doc/posix-functions/iswalpha_l.texi: Renamed from
43221         doc/glibc-functions/iswalpha_l.texi.
43222         * doc/posix-functions/iswblank_l.texi: Renamed from
43223         doc/glibc-functions/iswblank_l.texi.
43224         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43225         doc/glibc-functions/iswcntrl_l.texi.
43226         * doc/posix-functions/iswctype_l.texi: Renamed from
43227         doc/glibc-functions/iswctype_l.texi.
43228         * doc/posix-functions/iswdigit_l.texi: Renamed from
43229         doc/glibc-functions/iswdigit_l.texi.
43230         * doc/posix-functions/iswgraph_l.texi: Renamed from
43231         doc/glibc-functions/iswgraph_l.texi.
43232         * doc/posix-functions/iswlower_l.texi: Renamed from
43233         doc/glibc-functions/iswlower_l.texi.
43234         * doc/posix-functions/iswprint_l.texi: Renamed from
43235         doc/glibc-functions/iswprint_l.texi.
43236         * doc/posix-functions/iswpunct_l.texi: Renamed from
43237         doc/glibc-functions/iswpunct_l.texi.
43238         * doc/posix-functions/iswspace_l.texi: Renamed from
43239         doc/glibc-functions/iswspace_l.texi.
43240         * doc/posix-functions/iswupper_l.texi: Renamed from
43241         doc/glibc-functions/iswupper_l.texi.
43242         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43243         doc/glibc-functions/iswxdigit_l.texi.
43244         * doc/posix-functions/isxdigit_l.texi: Renamed from
43245         doc/glibc-functions/isxdigit_l.texi.
43246         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43247         doc/glibc-functions/mbsnrtowcs.texi.
43248         * doc/posix-functions/mkdtemp.texi: Renamed from
43249         doc/glibc-functions/mkdtemp.texi.
43250         * doc/posix-functions/newlocale.texi: Renamed from
43251         doc/glibc-functions/newlocale.texi.
43252         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43253         doc/glibc-functions/nl_langinfo_l.texi.
43254         * doc/posix-functions/open_memstream.texi: Renamed from
43255         doc/glibc-functions/open_memstream.texi.
43256         * doc/posix-functions/opterr.texi: Renamed from
43257         doc/glibc-functions/opterr.texi.
43258         * doc/posix-functions/optind.texi: Renamed from
43259         doc/glibc-functions/optind.texi.
43260         * doc/posix-functions/optopt.texi: Renamed from
43261         doc/glibc-functions/optopt.texi.
43262         * doc/posix-functions/psignal.texi: Renamed from
43263         doc/glibc-functions/psignal.texi.
43264         * doc/posix-functions/scandir.texi: Renamed from
43265         doc/glibc-functions/scandir.texi.
43266         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43267         doc/glibc-functions/sched_get_priority_min.texi.
43268         * doc/posix-functions/signgam.texi: Renamed from
43269         doc/glibc-functions/signgam.texi.
43270         * doc/posix-functions/stpcpy.texi: Renamed from
43271         doc/glibc-functions/stpcpy.texi.
43272         * doc/posix-functions/stpncpy.texi: Renamed from
43273         doc/glibc-functions/stpncpy.texi.
43274         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43275         doc/glibc-functions/strcasecmp_l.texi.
43276         * doc/posix-functions/strcoll_l.texi: Renamed from
43277         doc/glibc-functions/strcoll_l.texi.
43278         * doc/posix-functions/strfmon_l.texi: Renamed from
43279         doc/glibc-functions/strfmon_l.texi.
43280         * doc/posix-functions/strftime_l.texi: Renamed from
43281         doc/glibc-functions/strftime_l.texi.
43282         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43283         doc/glibc-functions/strncasecmp_l.texi.
43284         * doc/posix-functions/strndup.texi: Renamed from
43285         doc/glibc-functions/strndup.texi.
43286         * doc/posix-functions/strnlen.texi: Renamed from
43287         doc/glibc-functions/strnlen.texi.
43288         * doc/posix-functions/strsignal.texi: Renamed from
43289         doc/glibc-functions/strsignal.texi.
43290         * doc/posix-functions/strxfrm_l.texi: Renamed from
43291         doc/glibc-functions/strxfrm_l.texi.
43292         * doc/posix-functions/timer_gettime.texi: Renamed from
43293         doc/glibc-functions/timer_gettime.texi.
43294         * doc/posix-functions/tolower_l.texi: Renamed from
43295         doc/glibc-functions/tolower_l.texi.
43296         * doc/posix-functions/toupper_l.texi: Renamed from
43297         doc/glibc-functions/toupper_l.texi.
43298         * doc/posix-functions/towctrans_l.texi: Renamed from
43299         doc/glibc-functions/towctrans_l.texi.
43300         * doc/posix-functions/towlower_l.texi: Renamed from
43301         doc/glibc-functions/towlower_l.texi.
43302         * doc/posix-functions/towupper_l.texi: Renamed from
43303         doc/glibc-functions/towupper_l.texi.
43304         * doc/posix-functions/uselocale.texi: Renamed from
43305         doc/glibc-functions/uselocale.texi.
43306         * doc/posix-functions/vdprintf.texi: Renamed from
43307         doc/glibc-functions/vdprintf.texi.
43308         * doc/posix-functions/wcpcpy.texi:
43309         Renamed from doc/glibc-functions/wcpcpy.texi.
43310         * doc/posix-functions/wcpncpy.texi: Renamed from
43311         doc/glibc-functions/wcpncpy.texi.
43312         * doc/posix-functions/wcscasecmp.texi: Renamed from
43313         doc/glibc-functions/wcscasecmp.texi.
43314         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43315         doc/glibc-functions/wcscasecmp_l.texi.
43316         * doc/posix-functions/wcscoll_l.texi: Renamed from
43317         doc/glibc-functions/wcscoll_l.texi.
43318         * doc/posix-functions/wcsdup.texi: Renamed from
43319         doc/glibc-functions/wcsdup.texi.
43320         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43321         doc/glibc-functions/wcsncasecmp.texi.
43322         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43323         doc/glibc-functions/wcsncasecmp_l.texi.
43324         * doc/posix-functions/wcsnlen.texi: Renamed from
43325         doc/glibc-functions/wcsnlen.texi.
43326         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43327         doc/glibc-functions/wcsnrtombs.texi.
43328         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43329         doc/glibc-functions/wcsxfrm_l.texi.
43330         * doc/posix-functions/wctrans_l.texi: Renamed from
43331         doc/glibc-functions/wctrans_l.texi.
43332         * doc/posix-functions/wctype_l.texi: Renamed from
43333         doc/glibc-functions/wctype_l.texi.
43334         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43335         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43336         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43337         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43338         these subsections.
43339         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43340         Remove sections.
43341
43342 2008-12-14  Bruno Haible  <bruno@clisp.org>
43343
43344         Update doc for POSIX:2008.
43345         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43346
43347 2008-12-14  Bruno Haible  <bruno@clisp.org>
43348
43349         Update doc for POSIX:2008.
43350         * doc/pastposix-functions/bcmp.texi: Renamed from
43351         doc/posix-functions/bcmp.texi.
43352         * doc/pastposix-functions/bcopy.texi: Renamed from
43353         doc/posix-functions/bcopy.texi.
43354         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43355         doc/posix-functions/bsd_signal.texi.
43356         * doc/pastposix-functions/bzero.texi: Renamed from
43357         doc/posix-functions/bzero.texi.
43358         * doc/pastposix-functions/ecvt.texi: Renamed from
43359         doc/posix-functions/ecvt.texi.
43360         * doc/pastposix-functions/fcvt.texi: Renamed from
43361         doc/posix-functions/fcvt.texi.
43362         * doc/pastposix-functions/ftime.texi: Renamed from
43363         doc/posix-functions/ftime.texi.
43364         * doc/pastposix-functions/gcvt.texi: Renamed from
43365         doc/posix-functions/gcvt.texi.
43366         * doc/pastposix-functions/getcontext.texi: Renamed from
43367         doc/posix-functions/getcontext.texi.
43368         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43369         doc/posix-functions/gethostbyaddr.texi.
43370         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43371         doc/posix-functions/gethostbyname.texi.
43372         * doc/pastposix-functions/getwd.texi: Renamed from
43373         doc/posix-functions/getwd.texi.
43374         * doc/pastposix-functions/h_errno.texi: Renamed from
43375         doc/posix-functions/h_errno.texi.
43376         * doc/pastposix-functions/index.texi: Renamed from
43377         doc/posix-functions/index.texi.
43378         * doc/pastposix-functions/makecontext.texi: Renamed from
43379         doc/posix-functions/makecontext.texi.
43380         * doc/pastposix-functions/mktemp.texi: Renamed from
43381         doc/posix-functions/mktemp.texi.
43382         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43383         doc/posix-functions/pthread_attr_getstackaddr.texi.
43384         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43385         doc/posix-functions/pthread_attr_setstackaddr.texi.
43386         * doc/pastposix-functions/rindex.texi: Renamed from
43387         doc/posix-functions/rindex.texi.
43388         * doc/pastposix-functions/scalb.texi: Renamed from
43389         doc/posix-functions/scalb.texi.
43390         * doc/pastposix-functions/setcontext.texi: Renamed from
43391         doc/posix-functions/setcontext.texi.
43392         * doc/pastposix-functions/swapcontext.texi: Renamed from
43393         doc/posix-functions/swapcontext.texi.
43394         * doc/pastposix-functions/ualarm.texi: Renamed from
43395         doc/posix-functions/ualarm.texi.
43396         * doc/pastposix-functions/usleep.texi: Renamed from
43397         doc/posix-functions/usleep.texi.
43398         * doc/pastposix-functions/vfork.texi: Renamed from
43399         doc/posix-functions/vfork.texi.
43400         * doc/pastposix-functions/wcswcs.texi: Renamed from
43401         doc/posix-functions/wcswcs.texi.
43402         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43403         (Function Substitutes): Update.
43404
43405 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43406
43407         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43408         m4/strerror.m4.
43409
43410 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43411             Bruno Haible  <bruno@clisp.org>
43412
43413         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43414
43415 2008-12-13  Bruno Haible  <bruno@clisp.org>
43416
43417         * modules/strtoull (Depends-on): Remove unistd.
43418
43419 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43420
43421         * modules/strtoull (Depends-on): Add stdlib.
43422
43423 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43424
43425         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43426
43427 2008-12-10  Jim Meyering  <meyering@redhat.com>
43428
43429         gl_ASSERT: don't say assertions are disabled when they're not
43430         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43431         "checking whether to enable assertions... no", when they are in
43432         fact enabled.  This is solely a bug in the output of configure.
43433         In spite of saying "no", NDEBUG was not defined in that case.
43434         Also, as noted by Eric Blake, leave assertions enabled upon
43435         --enable-assert=INVALID.
43436
43437 2008-12-10  Bruno Haible  <bruno@clisp.org>
43438
43439         Change MODULES.html to refer to POSIX:2008 where possible.
43440         * MODULES.html.sh (POSIX2008_URL): New variable.
43441         (posix_headers): Remove sys/timeb, ucontext.
43442         (posix2001_headers): New variable.
43443         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43444         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43445         index, makecontext, mktemp, pthread_attr_getstackaddr,
43446         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43447         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43448         (posix2001_functions): New variable.
43449         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43450         otherwise.
43451
43452 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43453
43454         add missing include to parse-duration.c
43455         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43456         * modules/parse-duration (Depends-on): Add xalloc.
43457
43458         fix sed script reading maint.mk
43459         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43460         (syntax-check-rules): Use it.
43461
43462 2008-12-09  Bruno Haible  <bruno@clisp.org>
43463
43464         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43465         MacOS X 10.4/PowerPC.
43466         Reported by Simon Josefsson.
43467
43468 2008-12-08  Jim Meyering  <meyering@redhat.com>
43469
43470         work around mingw's lack of some S_IF definitions
43471         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43472         Reported by Simon Josefsson.
43473
43474 2008-12-08  Bruno Haible  <bruno@clisp.org>
43475
43476         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43477         applied to variables. Needed on MacOS X 10.4/PowerPC.
43478         Reported by Simon Josefsson.
43479
43480 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43481         and Eric Blake  <ebb9@byu.net>
43482
43483         assert: honor --enable-assert
43484         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43485         order to honor --enable-assert, rather than treating it as a
43486         synonym for --disable-assert.
43487
43488 2008-12-08  Jim Meyering  <meyering@redhat.com>
43489
43490         * lib/posixtm.c: Remove now-useless declaration of mktime.
43491
43492         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43493
43494 2008-12-07  Bruno Haible  <bruno@clisp.org>
43495
43496         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43497         test_once): Mark functions as static.
43498         * tests/test-tls.c (test_tls): Likewise.
43499
43500 2008-12-07  Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43503         iconv_register_autodetect.
43504
43505 2008-12-07  Jim Meyering  <meyering@redhat.com>
43506
43507         posixtm.c: avoid a warning
43508         * lib/posixtm.c (posixtime): Don't initialize tm0.
43509         It's no longer needed to placate gcc4's -Wuninitialized,
43510         and the attempt to placate would elicit a new warning.
43511
43512         unicodeio.c: mark unused parameters
43513         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43514         (fallback_failure_callback): Likewise.
43515
43516 2008-12-07  Bruno Haible  <bruno@clisp.org>
43517
43518         * gnulib-tool (func_create_testdir): When building the tests
43519         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43520         Reported by Simon Josefsson.
43521
43522 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43523
43524         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43525
43526 2008-12-06  Bruno Haible  <bruno@clisp.org>
43527
43528         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43529         Suggested by Eric Blake.
43530
43531 2008-12-06  Bruno Haible  <bruno@clisp.org>
43532
43533         Fix a c-stack test failure on MacOS X.
43534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43535         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43536         handler for SIGBUS as well.
43537         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43538         install a signal handler for SIGBUS as well.
43539         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43540
43541 2008-12-06  Bruno Haible  <bruno@clisp.org>
43542
43543         Advocacy documentation.
43544         * doc/gnulib-intro.texi (Benefits): New section.
43545         * doc/gnulib.texi: Update.
43546
43547 2008-12-06  Bruno Haible  <bruno@clisp.org>
43548
43549         Document the 'manywarnings' module.
43550         * doc/manywarnings.texi: New file.
43551         * doc/gnulib.texi: Include it.
43552
43553 2008-12-05  Eric Blake  <ebb9@byu.net>
43554
43555         tests: silence some gcc warnings
43556         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43557         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43558         type mismatches.
43559
43560 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43561             Bruno Haible  <bruno@clisp.org>
43562
43563         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43564
43565 2008-11-29  Jim Meyering  <meyering@redhat.com>
43566
43567         unicodeio.c: mark unused parameters
43568         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43569         (fallback_failure_callback): Likewise.
43570
43571         fts: fix a thinko
43572         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43573         (set_stat_type): Return S_IF*-valued "type" directly.
43574         Prompted by James Youngman's spotting a related bug.
43575         Confirmed by further testing through find.
43576
43577         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43578         * lib/fts.c (D_TYPE): Define.
43579         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43580         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43581         (s_ifmt_shift_bits): New function.
43582         (set_stat_type): New function.
43583         (fts_build): When not calling fts_stat, call set_stat_type
43584         to propagate dirent.d_type info to fts_read caller.
43585         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43586         fts_statp->st_mode type information may be valid.
43587
43588 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43589
43590         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43591         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43592         <sds@gnu.org>.
43593
43594 2008-11-20  Bruno Haible  <bruno@clisp.org>
43595
43596         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43597         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43598         INCLUDE_NEXT.
43599         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43600         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43601         * modules/math (Makefile.am): Substitute
43602         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43603         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43604
43605 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43606             Bruno Haible  <bruno@clisp.org>
43607
43608         * lib/stdint.in.h: Define all type macros so that their expansion is
43609         a single typedef'ed token. Fixes a compilation failure in Boost which
43610         does "using ::int8_t;".
43611
43612 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43613
43614         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43615         gl_MANYWARN_ALL_GCC.
43616         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43617         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43618         * modules/manywarnings: New file.
43619         * MODULES.html.sh: Mention manywarnings module.
43620
43621 2008-11-18  Bruno Haible  <bruno@clisp.org>
43622
43623         * doc/gnulib-tool.texi (Unit tests): New section.
43624
43625 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43626
43627         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43628         paths like 'lib/po/foo.po'.
43629
43630 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43631
43632         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43633         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43634
43635 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43636
43637         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43638         parameter works.
43639
43640 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43641
43642         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43643
43644 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43645
43646         * modules/parse-duration-tests: New file.
43647         * tests/test-parse-duration.sh: New file.
43648         * tests/test-parse-duration.c: New file.
43649
43650         New module 'parse-duration'.
43651         * lib/parse-duration.h: New file.
43652         * lib/parse-duration.c: New file.
43653         * modules/parse-duration: New file.
43654
43655 2008-11-17  Bruno Haible  <bruno@clisp.org>
43656
43657         * tests/test-select-out.sh: Comment out the first pipe test.
43658         Reported by Simon Josefsson.
43659
43660 2008-11-17  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43663         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43664         gl_HOSTENT.
43665
43666 2008-11-17  Bruno Haible  <bruno@clisp.org>
43667
43668         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43669         -lnetwork and -lnet. Needed for Haiku and BeOS.
43670
43671 2008-11-16  Bruno Haible  <bruno@clisp.org>
43672
43673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43674
43675 2008-11-16  Bruno Haible  <bruno@clisp.org>
43676
43677         Avoid test failure on Haiku.
43678         * tests/test-fsync.c: Include <errno.h>.
43679         (main): Don't require that fsync (0) fails.
43680
43681 2008-11-15  Bruno Haible  <bruno@clisp.org>
43682
43683         New module 'hostent'.
43684         * modules/hostent: New file.
43685         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43686
43687 2008-11-15  Bruno Haible  <bruno@clisp.org>
43688
43689         New module 'servent'.
43690         * modules/servent: New file.
43691         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43692
43693 2008-11-15  Bruno Haible  <bruno@clisp.org>
43694
43695         Avoid generating same test program with two different rules.
43696         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43697         test-frexp to test-frexp-nolibm.
43698         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43699         test-frexpl to test-frexpl-nolibm.
43700
43701 2008-11-15  Bruno Haible  <bruno@clisp.org>
43702
43703         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43704         $(FREXPL_LIBM).
43705
43706 2008-11-15  Bruno Haible  <bruno@clisp.org>
43707
43708         * lib/netdb.in.h: Activate the definitions also when the system's
43709         <netdb.h> has 'struct addrinfo'.
43710         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43711         EAI_OVERFLOW or AI_NUMERICSERV.
43712         * doc/posix-headers/netdb.texi: Document the problem.
43713
43714 2008-11-15  Bruno Haible  <bruno@clisp.org>
43715
43716         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43717
43718         Make the 'sched' module work on platforms where <sched.h> exists but
43719         is incomplete (such as Haiku).
43720         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43721         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43722         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43723         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43724         HAVE_STRUCT_SCHED_PARAM.
43725         * modules/sched (Depends-on): Add include_next.
43726         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43727         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43728         * doc/posix-headers/sched.texi: Document the issue.
43729
43730 2008-11-13  Jim Meyering  <meyering@redhat.com>
43731
43732         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43733         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43734         test would fail due to the difference in the Report bugs to ...
43735         line.  The expected address is empty, "<>", while the actual
43736         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43737
43738 2008-11-12  Bruno Haible  <bruno@clisp.org>
43739
43740         lstat: don't compile lstat.c on systems lacking lstat
43741         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43742         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43743         Reported by Daniel P. Berrange via Jim Meyering.
43744
43745 2008-11-12  Jim Meyering  <meyering@redhat.com>
43746
43747         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43748
43749 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43750
43751         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43752         instead.
43753
43754 2008-11-12  Bruno Haible  <bruno@clisp.org>
43755
43756         * lib/unicodeio.c: Include unistr.h.
43757         (utf8_wctomb): Remove function.
43758         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43759
43760 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43761
43762         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43763         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43764         <bruno@clisp.org>.
43765         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43766
43767 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43768
43769         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43770         * doc/gnulib.texi: Add section for warnings.
43771
43772 2008-11-11  Bruno Haible  <bruno@clisp.org>
43773
43774         * lib/sockets.h: Add a comment.
43775
43776 2008-11-11  Karl Berry  <karl@gnu.org>
43777
43778         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43779
43780 2008-11-11  Eric Blake  <ebb9@byu.net>
43781
43782         fdl.texi: avoid git symlinks
43783         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43784
43785 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43786
43787         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43788
43789 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43790
43791         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43792         (gl_WARN_ADD): Substitute $2 if literal.
43793
43794 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43795
43796         * m4/warning.m4: Remove.
43797
43798 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43799
43800         * m4/warnings.m4: Almost complete rewrite. :-)
43801
43802 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43803
43804         * modules/warnings: New module.
43805         * m4/warnings.m4: New file.
43806         * MODULES.html.sh: Mention warnings module.
43807         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43808         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43809
43810 2008-11-10  Eric Blake  <ebb9@byu.net>
43811
43812         fdl.texi: make a symlink to the latest version
43813         * doc/standards.texi: Revert today's earlier change.
43814         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43815         * doc/fdl.texi: ...and replace this with a symlink to the newer
43816         fdl-1.3.texi.
43817
43818 2008-11-10  Bruno Haible  <bruno@clisp.org>
43819
43820         * tests/test-select-fd.c (main): Accept the result file name as fourth
43821         argument.
43822         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43823         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43824
43825 2008-11-10  Bruno Haible  <bruno@clisp.org>
43826
43827         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43828         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43829         as autoconf-substituted macros.
43830         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43831         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43832         gl_NETDB_H_DEFAULTS. Set these variables.
43833         * modules/netdb (Makefile.am): Substitute these variables.
43834
43835 2008-11-10  Eric Blake  <ebb9@byu.net>
43836
43837         standards.texi: include correct file for FDL 1.3
43838         * doc/standards.texi (GNU Free Documentation License): Change
43839         include file to pull in FDL 1.3, not 1.2.
43840
43841         fdl.texi: revert accidental change to license
43842         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43843
43844 2008-11-10  Bruno Haible  <bruno@clisp.org>
43845
43846         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43847         cross-compiling guesses also when the native compile gives no result.
43848
43849 2008-11-10  Bruno Haible  <bruno@clisp.org>
43850
43851         * lib/spawni.c (__spawni): Force variable into the stack.
43852
43853 2008-11-10  Bruno Haible  <bruno@clisp.org>
43854
43855         Add support for Haiku.
43856         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43857         glibc and BeOS, but also on Haiku.
43858         * lib/fpurge.c (fpurge): Likewise.
43859         * lib/freadable.c (freadable): Likewise.
43860         * lib/freadahead.c (freadahead): Likewise.
43861         * lib/freading.c (freading): Likewise.
43862         * lib/freadptr.c (freadptr): Likewise.
43863         * lib/freadseek.c (freadptrinc): Likewise.
43864         * lib/fseeko.c (rpl_fseeko): Likewise.
43865         * lib/fseterr.c (fseterr): Likewise.
43866         * lib/fwritable.c (fwritable): Likewise.
43867         * lib/fwriting.c (fwriting): Likewise.
43868         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43869
43870 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43871
43872         * lib/config.charset: Treat Haiku like BeOS.
43873
43874 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43875
43876         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43877         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43878
43879 2008-11-08  Bruno Haible  <bruno@clisp.org>
43880
43881         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43882         AC_CACHE_CHECK.
43883
43884 2008-11-08  Bruno Haible  <bruno@clisp.org>
43885
43886         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43887
43888 2008-11-08  Bruno Haible  <bruno@clisp.org>
43889
43890         * tests/test-select-fd.c: New file.
43891         * tests/test-select-in.sh: New file.
43892         * tests/test-select-out.sh: New file.
43893         * tests/test-select-stdin.c: New file.
43894         * modules/select-tests (Files): Add the new files.
43895         (Depends-on): Add gettimeofday.
43896         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43897         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43898         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43899
43900 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43901             Bruno Haible  <bruno@clisp.org>
43902
43903         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43904
43905 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43906
43907         * build-aux/pmccabe2html: Added support for C++ source files.
43908
43909 2008-11-05  Ben Pfaff  <blp@gnu.org>
43910
43911         Fix lib/close.c build on Windows.
43912         * modules/close (Files): Add lib/w32sock.h.
43913
43914 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43915
43916         Accept Bison's NEWS format.
43917         * build-aux/announce-gen (print_news_deltas): Tweak
43918         $re_prefix.
43919
43920 2008-11-04  Bruno Haible  <bruno@clisp.org>
43921
43922         * modules/random_r (Maintainer): Add glibc.
43923
43924 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43925
43926         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43927         by karl@freefriends.org (Karl Berry).
43928         * doc/alloca.texi: Likewise.
43929         * doc/c-ctype.texi: Likewise.
43930         * doc/c-strcase.texi: Likewise.
43931         * doc/c-strcaseeq.texi: Likewise.
43932         * doc/c-strcasestr.texi: Likewise.
43933         * doc/c-strstr.texi: Likewise.
43934         * doc/c-strtod.texi: Likewise.
43935         * doc/c-strtold.texi: Likewise.
43936         * doc/ctime.texi: Likewise.
43937         * doc/error.texi: Likewise.
43938         * doc/fdl.texi: Likewise.
43939         * doc/gcd.texi: Likewise.
43940         * doc/getdate.texi: Likewise.
43941         * doc/gnulib-intro.texi: Likewise.
43942         * doc/gnulib-tool.texi: Likewise.
43943         * doc/gnulib.texi: Likewise.
43944         * doc/inet_ntoa.texi: Likewise.
43945         * doc/maintain.texi: Likewise.
43946         * doc/make-stds.texi: Likewise.
43947         * doc/quote.texi: Likewise.
43948         * doc/regexprops-generic.texi: Likewise.
43949         * doc/standards.texi: Likewise.
43950         * doc/verify.texi: Likewise.
43951         * doc/visibility.texi: Likewise.
43952         * doc/gnulib.texi (GNU Free Documentation License): Include
43953         fdl-1.3.texi instead of fdl.texi.
43954
43955 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43956
43957         * doc/fdl-1.3.texi: New file, from
43958         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43959         * modules/fdl-1.3: Add.
43960         * MODULES.html.sh: Add fdl-1.3.
43961
43962 2008-11-03  Bruno Haible  <bruno@clisp.org>
43963
43964         Make determination of absolute name of header file work with AIX xlc.
43965         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43966         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43967         preprocessing.
43968         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43969         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43970
43971 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43972
43973         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43974         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43975         <ludo@gnu.org>.
43976
43977 2008-11-02  Bruno Haible  <bruno@clisp.org>
43978
43979         Mark 'strpbrk' obsolete.
43980         * modules/strpbrk (Status, Notice): New sections.
43981         * modules/strtok_r (Depends-on): Add strpbrk.
43982
43983 2008-11-02  Bruno Haible  <bruno@clisp.org>
43984
43985         Mark 'strdup' obsolete.
43986         * modules/strdup (Status, Notice): New sections.
43987         * modules/findprog (Depends-on): Add strdup.
43988         * modules/getaddrinfo (Depends-on): Likewise.
43989         * modules/localename (Depends-on): Likewise.
43990         * modules/relocatable-lib (Depends-on): Likewise.
43991         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43992         * modules/relocatable-prog (Depends-on): Likewise.
43993         * modules/trim (Depends-on): Likewise.
43994         * modules/unictype/gen-ctype (Depends-on): Likewise.
43995         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43996
43997 2008-11-02  Bruno Haible  <bruno@clisp.org>
43998
43999         Mark 'strcspn' obsolete.
44000         * modules/strcspn (Status, Notice): New sections.
44001
44002 2008-11-02  Bruno Haible  <bruno@clisp.org>
44003
44004         Mark 'rmdir' obsolete.
44005         * modules/rmdir (Status, Notice): New sections.
44006         * modules/clean-temp (Depends-on): Add rmdir.
44007         * modules/openat (Depends-on): Likewise.
44008
44009 2008-11-02  Bruno Haible  <bruno@clisp.org>
44010
44011         Mark 'raise' obsolete.
44012         * modules/raise (Status, Notice): New sections.
44013         (Include): Specify <signal.h>.
44014         * modules/stdio (Depends-on): Add raise.
44015         * modules/write (Depends-on): Likewise.
44016
44017 2008-11-02  Bruno Haible  <bruno@clisp.org>
44018
44019         Mark 'memset' obsolete.
44020         * modules/memset (Status, Notice): New sections.
44021
44022 2008-11-02  Bruno Haible  <bruno@clisp.org>
44023
44024         Mark 'memmove' obsolete.
44025         * modules/memmove (Status, Notice): New sections.
44026         * modules/argp (Depends-on): Add memmove.
44027         * modules/argz (Depends-on): Likewise.
44028         * modules/canonicalize (Depends-on): Likewise.
44029         * modules/canonicalize-lgpl (Depends-on): Likewise.
44030         * modules/fts (Depends-on): Likewise.
44031         * modules/getcwd (Depends-on): Likewise.
44032         * modules/human (Depends-on): Likewise.
44033         * modules/regex (Depends-on): Likewise.
44034         * modules/striconveh (Depends-on): Likewise.
44035         * modules/trim (Depends-on): Likewise.
44036         * modules/unistr/u8-move (Depends-on): Likewise.
44037         * modules/unistr/u16-move (Depends-on): Likewise.
44038         * modules/unistr/u32-move (Depends-on): Likewise.
44039
44040 2008-11-02  Bruno Haible  <bruno@clisp.org>
44041
44042         Mark 'memcpy' obsolete.
44043         * modules/memcpy (Status, Notice): New sections.
44044
44045 2008-11-02  Bruno Haible  <bruno@clisp.org>
44046
44047         Mark 'memcmp' obsolete.
44048         * modules/memcmp (Status, Notice): New sections.
44049         * modules/argmatch (Depends-on): Add memchr.
44050         * modules/backupfile (Depends-on): Likewise.
44051         * modules/c-strcasestr (Depends-on): Likewise.
44052         * modules/crypto/des (Depends-on): Likewise.
44053         * modules/csharpcomp (Depends-on): Likewise.
44054         * modules/fnmatch (Depends-on): Likewise.
44055         * modules/git-merge-changelog (Depends-on): Likewise.
44056         * modules/isnand (Depends-on): Likewise.
44057         * modules/isnand-nolibm (Depends-on): Likewise.
44058         * modules/isnanf (Depends-on): Likewise.
44059         * modules/isnanf-nolibm (Depends-on): Likewise.
44060         * modules/isnanl (Depends-on): Likewise.
44061         * modules/isnanl-nolibm (Depends-on): Likewise.
44062         * modules/mbchar (Depends-on): Likewise.
44063         * modules/memcoll (Depends-on): Likewise.
44064         * modules/quotearg (Depends-on): Likewise.
44065         * modules/regex (Depends-on): Likewise.
44066         * modules/relocatable-prog (Depends-on): Likewise.
44067         * modules/same (Depends-on): Likewise.
44068         * modules/signbit (Depends-on): Likewise.
44069         * modules/strcasestr-simple (Depends-on): Likewise.
44070         * modules/unictype/gen-ctype (Depends-on): Likewise.
44071         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44072         * modules/uniname/uniname (Depends-on): Likewise.
44073         * modules/unistr/u8-cmp (Depends-on): Likewise.
44074
44075 2008-11-02  Bruno Haible  <bruno@clisp.org>
44076
44077         Mark 'memchr' obsolete.
44078         * modules/memchr (Status, Notice): New sections.
44079         * modules/argp (Depends-on): Add memchr.
44080         * modules/base64 (Depends-on): Likewise.
44081         * modules/c-strcasestr (Depends-on): Likewise.
44082         * modules/chdir-long (Depends-on): Likewise.
44083         * modules/fnmatch (Depends-on): Likewise.
44084         * modules/getsubopt (Depends-on): Likewise.
44085         * modules/git-merge-changelog (Depends-on): Likewise.
44086         * modules/glob (Depends-on): Likewise.
44087         * modules/strcasestr-simple (Depends-on): Likewise.
44088         * modules/strnlen (Depends-on): Likewise.
44089
44090 2008-11-02  Bruno Haible  <bruno@clisp.org>
44091
44092         Mark 'atexit' obsolete.
44093         * modules/atexit (Status, Notice): New sections.
44094         * modules/chdir-long (Depends-on): Add atexit.
44095         * modules/wait-process (Depends-on): Likewise.
44096
44097 2008-11-02  Bruno Haible  <bruno@clisp.org>
44098
44099         * gnulib-tool: New option --with-obsolete.
44100         (func_usage): Document it.
44101         (func_modules_transitive_closure): Drop obsolete dependencies if
44102         incobsolete is not true.
44103         (func_import): Read and save the incobsolete variable to the cache.
44104
44105 2008-11-02  Bruno Haible  <bruno@clisp.org>
44106
44107         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44108         * gnulib-tool: New option --extract-status.
44109         (func_usage): Document it.
44110         (sed_extract_prog): Recognize it.
44111         (func_get_status): New function.
44112
44113 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44114
44115         * modules/sockets (License): Change from LGPL to LGPLv2+.
44116
44117 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44118
44119         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44120
44121 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44122
44123         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44124         Mention times and sys_times.
44125         * modules/sys_times, modules/sys_times-tests: New modules.
44126         * modules/times, modules/times-tests: Likewise
44127         * m4/sys_times_h.m4: New file.
44128         * lib/sys_times.in.h: Likewise
44129         * lib/times.c: Likewise.
44130         * tests/test-sys_times.c: Likewise.
44131         * tests/test-times.c: Likewise.
44132         * doc/posix-headers/sys_times.texi: Update.
44133         * doc/posix-functions/times.texi: Update.
44134
44135 2008-10-28  Jim Meyering  <meyering@redhat.com>
44136
44137         * modules/tempname (Depends-on): Add lstat.
44138
44139         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44140
44141 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44142
44143         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44144         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44145         using idiom used elsewhere in gnulib.
44146
44147 2008-10-27  Jim Meyering  <meyering@redhat.com>
44148
44149         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44150
44151 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44152
44153         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44154         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44155         programs.
44156         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44157
44158 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44159
44160         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44161
44162 2008-10-27  Bruno Haible  <bruno@clisp.org>
44163
44164         * tests/test-lstat.c: Include <stdio.h>.
44165
44166 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44167
44168         * modules/lstat-tests: New module.
44169         * tests/test-lstat.c: New file.
44170
44171 2008-10-26  Jim Meyering  <meyering@redhat.com>
44172
44173         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44174
44175 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44176             Bruno Haible  <bruno@clisp.org>
44177
44178         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44179         * modules/configmake (Include): Add a note that the include must come
44180         after all system headers.
44181         * lib/javaversion.c: Include configmake.h after all other includes.
44182
44183 2008-10-26  Bruno Haible  <bruno@clisp.org>
44184
44185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44186         HAVE_STRUCT_RANDOM_DATA to 1.
44187         (gl_STDLIB_H): Simplify.
44188
44189 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44190
44191         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44192         substitute HAVE_STRUCT_RANDOM_DATA.
44193         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44194         random_data.
44195         * modules/stdlib (Makefile.am): Substitute
44196         HAVE_STRUCT_RANDOM_DATA.
44197
44198 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44199
44200         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44201         * doc/gnulib-intro.texi (Copyright): Likewise.
44202
44203 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44204
44205         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44206         findings.
44207
44208 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44209             Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/unistd.in.h: Include <winsock2.h>.
44212         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44213         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44214         Provide dummy declarations.
44215         (gethostname): Override.
44216         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44217         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44218         gl_PREREQ_SYS_H_WINSOCK2.
44219         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44220         * doc/posix-functions/gethostname.texi: More details.
44221
44222 2008-10-25  Bruno Haible  <bruno@clisp.org>
44223
44224         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44225         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44226         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44227
44228         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44229         here ...
44230         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44231         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44232         gl_UNISTD_H_DEFAULTS.
44233
44234 2008-10-25  Eric Blake  <ebb9@byu.net>
44235
44236         signbit: avoid spurious compiler failure
44237         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44238         declarations inside function.
44239
44240 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44241             Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44244         * modules/random_r (Depends-on): Add stdint.
44245
44246 2008-10-24  Bruno Haible  <bruno@clisp.org>
44247
44248         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44249         Eggert.
44250         * modules/strerror (License): Likewise.
44251
44252 2008-10-24  Jim Meyering  <meyering@redhat.com>
44253
44254         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44255         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44256
44257 2008-10-24  Eric Blake  <ebb9@byu.net>
44258
44259         getgroups: fix compilation when getgroups is available
44260         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44261         but with <config.h> override of getgroups disabled.
44262
44263 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44264
44265         * doc/gnulib.texi (Header files): Add note about C++ problems.
44266         Explained by Bruno Haible <bruno@clisp.org>.
44267
44268 2008-10-23  Bruno Haible  <bruno@clisp.org>
44269
44270         Define a dummy SA_NODEFER macro on Interix.
44271         * lib/signal.in.h (SA_NODEFER): Define fallback.
44272         Reported by Aleksey Cheusov <cheusov@tut.by> via
44273         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44274
44275 2008-10-23  Bruno Haible  <bruno@clisp.org>
44276
44277         * modules/freadahead (License): Change to LGPLv2+.
44278         Suggested by Simon Josefsson.
44279
44280 2008-10-23  Jim Meyering  <meyering@redhat.com>
44281
44282         random_r: new module
44283         * modules/random_r: New file.
44284         * m4/random_r.m4: New file.
44285         * lib/random_r.c: New file, from glibc.
44286         * modules/random_r-tests: New file.
44287         * tests/test-random_r.c: New file.
44288         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44289          Declare.
44290         (RAND_MAX): Define.
44291         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44292         * modules/stdlib: Substitute them, too.
44293         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44294         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44295         * doc/glibc-functions/random_r.texi: Likewise.
44296         * doc/glibc-functions/setstate_r.texi: Likewise.
44297         * doc/glibc-functions/srandom_r.texi: Likewise.
44298         * config/srclist.txt: Mention it.
44299
44300 2008-10-23  David Lutterkort  <lutter@redhat.com>
44301
44302         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44303         link requirement
44304
44305 2008-10-23  Jim Meyering  <meyering@redhat.com>
44306
44307         selinux-h: mark parameters of stub functions as intentionally unused
44308         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44309         * lib/se-context.in.h: Likewise.
44310
44311 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44312
44313         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44314
44315 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44316
44317         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44318
44319 2008-10-22  Eric Blake  <ebb9@byu.net>
44320
44321         glthread/thread: avoid compiler warning
44322         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44323         Add unreachable abort to silence compiler.
44324
44325 2008-10-22  Eric Blake  <ebb9@byu.net>
44326
44327         netdb: also supply struct addrinfo for cygwin 1.5.x
44328         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44329         older cygwin.
44330         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44331         cygwin.
44332         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44333
44334 2008-10-22  Bruno Haible  <bruno@clisp.org>
44335
44336         * users.txt: Update entry about pspp.
44337
44338 2008-10-21  Bruno Haible  <bruno@clisp.org>
44339
44340         Simplification.
44341         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44342         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44343
44344         Simplification.
44345         * lib/ioctl.c (ioctl): Don't undefine.
44346         * lib/socket.c (socket): Don't undefine.
44347
44348         Remove unused module indicator macros.
44349         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44350         GNULIB_$1 as a C macro.
44351
44352         * doc/posix-functions/close.texi: Undo last change.
44353         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44354         Windows platforms.
44355
44356 2008-10-21  Bruno Haible  <bruno@clisp.org>
44357
44358         Add gethostname() declaration to <unistd.h>.
44359         * lib/unistd.in.h (gethostname): New declaration.
44360         * lib/gethostname.c: Include <unistd.h>.
44361         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44362         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44364         and HAVE_GETHOSTNAME.
44365         * modules/gethostname (Depends-on): Add unistd.
44366         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44367         (Include): Specify <unistd.h>.
44368         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44369         HAVE_GETHOSTNAME.
44370         * tests/test-gethostname.c: Include <unistd.h> first.
44371
44372 2008-10-21  Bruno Haible  <bruno@clisp.org>
44373
44374         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44375         * modules/select-tests (Depends-on): Likewise.
44376         Reported by Simon Josefsson.
44377
44378 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44379
44380         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44381         * lib/accept.c: New file, based on winsock.c.
44382         * lib/bind.c: New file, based on winsock.c.
44383         * lib/connect.c: New file, based on winsock.c.
44384         * lib/getpeername.c: New file, based on winsock.c.
44385         * lib/getsockname.c: New file, based on winsock.c.
44386         * lib/getsockopt.c: New file, based on winsock.c.
44387         * lib/ioctl.c: New file, based on winsock.c.
44388         * lib/listen.c: New file, based on winsock.c.
44389         * lib/recv.c: New file, based on winsock.c.
44390         * lib/recvfrom.c: New file, based on winsock.c.
44391         * lib/send.c: New file, based on winsock.c.
44392         * lib/sendto.c: New file, based on winsock.c.
44393         * lib/setsockopt.c: New file, based on winsock.c.
44394         * lib/shutdown.c: New file, based on winsock.c.
44395         * lib/socket.c: New file, based on winsock.c.
44396         * lib/w32sock.h: New file, based on winsock.c.
44397         * lib/winsock.c: Remove file.
44398         * modules/accept: Likewise.
44399         * modules/bind: Likewise.
44400         * modules/connect: Likewise.
44401         * modules/getpeername: Likewise.
44402         * modules/getsockname: Likewise.
44403         * modules/getsockopt: Likewise.
44404         * modules/ioctl: Likewise.
44405         * modules/listen: Likewise.
44406         * modules/recv: Likewise.
44407         * modules/recvfrom: Likewise.
44408         * modules/send: Likewise.
44409         * modules/sendto: Likewise.
44410         * modules/setsockopt: Likewise.
44411         * modules/shutdown: Likewise.
44412         * modules/socket: Use socket.c instead of winsock.c.
44413         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44414         * doc/posix-functions/accept.texi: Doc fix.
44415         * doc/posix-functions/bind.texi: Doc fix.
44416         * doc/posix-functions/close.texi: Doc fix.
44417         * doc/posix-functions/connect.texi: Doc fix.
44418         * doc/posix-functions/getpeername.texi: Doc fix.
44419         * doc/posix-functions/getsockname.texi: Doc fix.
44420         * doc/posix-functions/getsockopt.texi: Doc fix.
44421         * doc/posix-functions/ioctl.texi: Doc fix.
44422         * doc/posix-functions/listen.texi: Doc fix.
44423         * doc/posix-functions/recv.texi: Doc fix.
44424         * doc/posix-functions/recvfrom.texi: Doc fix.
44425         * doc/posix-functions/send.texi: Doc fix.
44426         * doc/posix-functions/sendto.texi: Doc fix.
44427         * doc/posix-functions/setsockopt.texi: Doc fix.
44428         * doc/posix-functions/shutdown.texi: Doc fix.
44429         * doc/posix-functions/socket.texi: Doc fix.
44430
44431 2008-10-20  Bruno Haible  <bruno@clisp.org>
44432
44433         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44434         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44435         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44436         as an alias for SIGABRT.
44437         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44438         (sigaction): Map it to SIGABRT.
44439         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44440
44441 2008-10-20  Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/fts.c: Don't include lstat.h.
44444         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44445
44446         Move the lstat() declaration to <sys/stat.h>.
44447         * lib/lstat.h: Remove file.
44448         * lib/sys_stat.in.h: Add special invocation convention.
44449         (lstat): New declaration.
44450         * lib/lstat.c (orig_lstat): New function.
44451         (rpl_lstat): Use orig_lstat instead of lstat.
44452         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44453         AC_C_INLINE. Set REPLACE_LSTAT.
44454         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44455         and REPLACE_LSTAT.
44456         * modules/lstat (Files): Remove lib/lstat.h.
44457         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44458         (Include): Specify <sys/stat.h> instead of lstat.h.
44459         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44460         REPLACE_LSTAT.
44461         * NEWS: Mention the change.
44462
44463 2008-10-20  Bruno Haible  <bruno@clisp.org>
44464
44465         * modules/posix_spawn-tests: New file.
44466         * tests/test-posix_spawn3.c: New file.
44467
44468 2008-10-20  Bruno Haible  <bruno@clisp.org>
44469
44470         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44471         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44472         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44473         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44474         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44475
44476 2008-10-20  Bruno Haible  <bruno@clisp.org>
44477
44478         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44479         of posix_spawn on AIX 5.3.
44480
44481 2008-10-20  Bruno Haible  <bruno@clisp.org>
44482
44483         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44484
44485 2008-10-20  Bruno Haible  <bruno@clisp.org>
44486
44487         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44488         of AC_LANG_PROGRAM.
44489
44490 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44491
44492         * lib/netdb.in.h: Don't define GNU specific constants until they
44493         are supported or needed.  Reported by Bruno Haible
44494         <bruno@clisp.org>.
44495
44496 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44497
44498         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44499
44500 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44501
44502         * lib/getaddrinfo.h: Remove file.
44503         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44504         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44505         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44506         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44507         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44508         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44509         * tests/test-getaddrinfo.c: Likewise.
44510         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44511         * NEWS: Mention change.
44512
44513 2008-10-19  Bruno Haible  <bruno@clisp.org>
44514
44515         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44516
44517 2008-10-19  Bruno Haible  <bruno@clisp.org>
44518
44519         * lib/wait-process.c: Include simply <sys/wait.h>.
44520         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44521         WIFSTOPPED): Remove fallback definitions.
44522         * modules/wait-process (Depends-on): Add sys_wait.
44523
44524         New module 'sys_wait'.
44525         * modules/sys_wait: New file.
44526         * lib/sys_wait.in.h: New file, partially copied from
44527         lib/wait-process.c.
44528         * m4/sys_wait_h.m4: New file.
44529         * doc/posix-headers/sys_wait.texi: Mention the new module.
44530
44531 2008-10-19  Bruno Haible  <bruno@clisp.org>
44532
44533         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44534
44535 2008-10-19  Bruno Haible  <bruno@clisp.org>
44536
44537         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44538         * lib/wait-process.c (WAIT_T): Remove type.
44539         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44540         (wait_subprocess): Update.
44541
44542 2008-10-19  Bruno Haible  <bruno@clisp.org>
44543
44544         New module 'atoll'.
44545         * modules/atoll: New file.
44546         * lib/stdlib.in.h (atoll): New declaration.
44547         * lib/atoll.c: New file, from glibc with modifications.
44548         * m4/atoll.m4: New file.
44549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44550         HAVE_ATOLL.
44551         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44552         * doc/posix-functions/atoll.texi: Mention the new module.
44553
44554 2008-10-19  Bruno Haible  <bruno@clisp.org>
44555
44556         Add strtoull() declaration to <stdlib.h>.
44557         * lib/stdlib.in.h (strtoull): New declaration.
44558         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44559         Set HAVE_STRTOULL.
44560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44561         HAVE_STRTOULL.
44562         * modules/strtoull (Depends-on): Add stdlib.
44563         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44564         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44565         HAVE_STRTOULL.
44566
44567 2008-10-19  Bruno Haible  <bruno@clisp.org>
44568
44569         Add strtoll() declaration to <stdlib.h>.
44570         * lib/stdlib.in.h (strtoll): New declaration.
44571         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44572         Set HAVE_STRTOLL.
44573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44574         HAVE_STRTOLL.
44575         * modules/strtoll (Depends-on): Add stdlib.
44576         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44577         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44578
44579 2008-10-19  Bruno Haible  <bruno@clisp.org>
44580
44581         * modules/bcopy (Depends-on): Add strings.
44582         (Include): Specify <strings.h>.
44583
44584 2008-10-19  Bruno Haible  <bruno@clisp.org>
44585
44586         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44587
44588 2008-10-19  Bruno Haible  <bruno@clisp.org>
44589
44590         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44591         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44592         mingw.
44593
44594 2008-10-19  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/atanl.c: Don't include isnanl.h.
44597         * lib/cosl.c: Likewise.
44598         * lib/ldexpl.c: Likewise.
44599         * lib/logl.c: Likewise.
44600         * lib/sinl.c: Likewise.
44601         * lib/sqrtl.c: Likewise.
44602         * lib/tanl.c: Likewise.
44603
44604         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44605         * lib/isnanf.h: Remove file.
44606         * lib/isnand.h: Remove file.
44607         * lib/isnanl.h: Remove file.
44608         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44609         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44610         macros.
44611         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44612         HAVE_ISNANF, don't define it as a C macro.
44613         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44614         HAVE_ISNAND, don't define it as a C macro.
44615         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44616         HAVE_ISNANL, don't define it as a C macro.
44617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44618         HAVE_ISNAN[FDL].
44619         * modules/isnanf (Files): Remove lib/isnanf.h.
44620         (Depends-on): Add math.
44621         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44622         (Include): Specify <math.h> instead of isnanf.h.
44623         * modules/isnand (Files): Remove lib/isnand.h.
44624         (Depends-on): Add math.
44625         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44626         (Include): Specify <math.h> instead of isnand.h.
44627         * modules/isnanl (Files): Remove lib/isnanl.h.
44628         (Depends-on): Add math.
44629         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44630         (Include): Specify <math.h> instead of isnanl.h.
44631         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44632         HAVE_ISNAN[FDL].
44633         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44634         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44635         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44636         * NEWS: Mention the change.
44637
44638 2008-10-18  Bruno Haible  <bruno@clisp.org>
44639
44640         Add getusershell(), setusershell(), endusershell() declarations to
44641         <unistd.h>.
44642         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44643         declarations.
44644         * lib/getusershell.c: Include unistd.h.
44645         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44646         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44647         HAVE_GETUSERSHELL.
44648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44649         and HAVE_GETUSERSHELL.
44650         * modules/getusershell (Depends-on): Add unistd, extensions.
44651         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44652         (Include): Specify <unistd.h>.
44653         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44654         HAVE_GETUSERSHELL.
44655
44656 2008-10-18  Bruno Haible  <bruno@clisp.org>
44657
44658         Add a getloadavg() declaration to <stdlib.h>.
44659         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44660         getloadavg declaration.
44661         (getloadavg): New declaration.
44662         * lib/getloadavg.c: Include <stdlib.h> first.
44663         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44664         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44665         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44667         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44668         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44669         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44670         (Include): Specify <stdlib.h>.
44671         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44672         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44673
44674 2008-10-18  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/dirchownmod.c: Don't include lchmod.h.
44677
44678         Move the lchmod() declaration to <sys/stat.h>.
44679         * lib/lchmod.h: Remove file.
44680         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44681         (lchmod): New declaration, moved here from lib/lchown.h.
44682         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44683         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44684         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44685         and HAVE_LCHMOD.
44686         * modules/lchmod (Files): Remove lib/lchmod.h.
44687         (Depends-on): Add sys_stat, extensions.
44688         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44689         (Include): Specify <sys/stat.h> instead of lchmod.h.
44690         * modules/sys_stat (Depends-on): Add link-warning.
44691         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44692         definition of GL_LINK_WARNING.
44693         * NEWS: Mention the change.
44694
44695 2008-10-18  Bruno Haible  <bruno@clisp.org>
44696
44697         * lib/fchdir.c: Don't include dirfd.h.
44698         * lib/fts.c: Likewise.
44699         * lib/getcwd.c: Likewise.
44700         * lib/glob.c: Likewise.
44701
44702         Move the dirfd() declaration to <dirent.h>.
44703         * lib/dirfd.h: Remove file.
44704         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44705         (dirfd): New declaration.
44706         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44707         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44708         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44709         HAVE_DECL_DIRFD.
44710         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44711         HAVE_DECL_DIRFD.
44712         * modules/dirfd (Files): Remove lib/dirfd.h.
44713         (Depends-on): Add dirent, extensions.
44714         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44715         (Include): Specify <dirent.h> instead of dirfd.h.
44716         * modules/dirent (Depends-on): Add link-warning.
44717         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44718         definition of GL_LINK_WARNING.
44719         * NEWS: Mention the change.
44720
44721 2008-10-18  Bruno Haible  <bruno@clisp.org>
44722
44723         Move the euidaccess() declaration to <unistd.h>.
44724         * lib/euidaccess.h: Remove file.
44725         * lib/unistd.in.h (euidaccess): New declaration.
44726         * lib/euidaccess.c: Don't include euidaccess.h.
44727         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44728         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44730         and HAVE_EUIDACCESS.
44731         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44732         (Depends-on): Add unistd.
44733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44734         (Include): Specify <unistd.h> instead of euidaccess.h.
44735         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44736         HAVE_EUIDACCESS.
44737         * NEWS: Mention the change.
44738
44739 2008-10-18  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44742
44743         Move the getdomainname() declaration to <unistd.h>.
44744         * lib/getdomainname.h: Remove file.
44745         * lib/unistd.in.h (getdomainname): New declaration.
44746         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44747         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44748         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44749         HAVE_GETDOMAINNAME.
44750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44751         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44752         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44753         (Depends-on): Add unistd, extensions.
44754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44755         (Includes): Specify <unistd.h> instead of getdomainname.h.
44756         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44757         HAVE_GETDOMAINNAME.
44758         * NEWS: Mention the change.
44759
44760 2008-10-18  Bruno Haible  <bruno@clisp.org>
44761
44762         * modules/dirent: New file.
44763         * m4/dirent_h.m4: New file.
44764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44765         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44766         * modules/fchdir (Files): Remove lib/dirent.in.h.
44767         (Depends-on): Add dirent.
44768         (Makefile.am): Move rules to modules/dirent.
44769         * doc/posix-headers/dirent.texi: Mention the new module.
44770
44771 2008-10-18  Bruno Haible  <bruno@clisp.org>
44772
44773         Avoid -Wunused-parameter warnings in public gnulib header files.
44774         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44775         macro.
44776         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44777
44778 2008-10-18  Bruno Haible  <bruno@clisp.org>
44779
44780         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44781         * doc/glibc-functions/error.texi: Mention the module 'error'.
44782         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44783         * doc/glibc-functions/getdomainname.texi: Mention the module
44784         'getdomainname'.
44785         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44786         * doc/glibc-functions/getpagesize.texi: Mention the module
44787         'getpagesize'.
44788         * doc/glibc-functions/getusershell.texi: Mention the module
44789         'getusershell'.
44790         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44791         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44792         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44793         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44794         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44795         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44796         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44797         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44798         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44799         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44800         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44801         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44802         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44803         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44804
44805 2008-10-17  Bruno Haible  <bruno@clisp.org>
44806
44807         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44808         HP-UX and IRIX, use -0.0L.
44809         * tests/test-ceill.c (minus_zero): Likewise.
44810         * tests/test-floorl.c (minus_zero): Likewise.
44811         * tests/test-frexpl.c (minus_zero): Likewise.
44812         * tests/test-isnan.c (minus_zerol): Likewise.
44813         * tests/test-isnanl.h (minus_zero): Likewise.
44814         * tests/test-ldexpl.c (minus_zero): Likewise.
44815         * tests/test-roundl.c (minus_zero): Likewise.
44816         * tests/test-signbit.c (minus_zerol): Likewise.
44817         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44818         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44819         * tests/test-truncl.c (minus_zero): Likewise.
44820         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44821         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44822         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44823         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44824
44825 2008-10-17  Bruno Haible  <bruno@clisp.org>
44826
44827         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44828         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44829         that it gets activated only for gcc >= 3.0.
44830         * lib/dirent.in.h: Likewise.
44831         * lib/errno.in.h: Likewise.
44832         * lib/fcntl.in.h: Likewise.
44833         * lib/float.in.h: Likewise.
44834         * lib/iconv.in.h: Likewise.
44835         * lib/inttypes.in.h: Likewise.
44836         * lib/locale.in.h: Likewise.
44837         * lib/math.in.h: Likewise.
44838         * lib/netdb.in.h: Likewise.
44839         * lib/netinet_in.in.h: Likewise.
44840         * lib/search.in.h: Likewise.
44841         * lib/signal.in.h: Likewise.
44842         * lib/spawn.in.h: Likewise.
44843         * lib/stdarg.in.h: Likewise.
44844         * lib/stdint.in.h: Likewise.
44845         * lib/stdio.in.h: Likewise.
44846         * lib/stdlib.in.h: Likewise.
44847         * lib/string.in.h: Likewise.
44848         * lib/strings.in.h: Likewise.
44849         * lib/sys_file.in.h: Likewise.
44850         * lib/sys_ioctl.in.h: Likewise.
44851         * lib/sys_select.in.h: Likewise.
44852         * lib/sys_socket.in.h: Likewise.
44853         * lib/sys_stat.in.h: Likewise.
44854         * lib/sys_time.in.h: Likewise.
44855         * lib/sysexits.in.h: Likewise.
44856         * lib/time.in.h: Likewise.
44857         * lib/unistd.in.h: Likewise.
44858         * lib/wchar.in.h: Likewise.
44859         * lib/wctype.in.h: Likewise.
44860         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44861
44862 2008-10-17  Jim Meyering  <meyering@redhat.com>
44863
44864         ignore-value: don't depend on inline module
44865         * modules/ignore-value (Depends-on): Remove 'inline'.
44866         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44867         Suggestion from Bruno Haible.
44868
44869 2008-10-17  Bruno Haible  <bruno@clisp.org>
44870
44871         New implementation of condition variables for Win32.
44872         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44873         (gl_linked_waitqueue_t): New type.
44874         (gl_cond_t): Use it.
44875         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44876         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44877         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44878         (glthread_cond_init_func, glthread_cond_wait_func,
44879         glthread_cond_timedwait_func, glthread_cond_signal_func,
44880         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44881         Reimplemented on the basis of gl_linked_waitqueue_t.
44882         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44883         gl_waitqueue_t.
44884         (gl_rwlock_t): Update.
44885         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44886
44887 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44888
44889         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44890         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44891
44892 2008-10-17  Jim Meyering  <meyering@redhat.com>
44893
44894         ignore-value: new module
44895         * modules/ignore-value: New file.
44896         * lib/ignore-value.h: New file.
44897         * MODULES.html.sh (Compiler warning management): New section,
44898         just for this module.  More to come.
44899
44900 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44901
44902         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44903         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44904         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44905
44906 2008-10-16  Jim Meyering  <meyering@redhat.com>
44907
44908         openat-die.c: avoid 'no previous prototype' warning
44909         * lib/openat-die.c: Include "openat.h".
44910         Reported by Reuben Thomas <rrt@sc3d.org>.
44911
44912 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44913
44914         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44915         * lib/netdb.in.h: Fix typo.
44916         Reported by Bruno Haible  <bruno@clisp.org>
44917
44918         * lib/netdb.in.h: Include sys/socket.h for platforms without
44919         netdb.h, to get structures like hostent on MinGW.
44920         * modules/netdb (Depends-on): Add sys_socket.
44921
44922 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44923
44924         * modules/netdb, modules/netdb-tests: New file.
44925         * m4/netdb_h.m4: New file.
44926         * lib/netdb.in.h: Add, currently just an empty file pending
44927         definitions.
44928         * tests/test-netdb.c: New file.
44929         * doc/posix-headers/netdb.texi: Mention that we replace it if
44930         needed.
44931         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44932         netdb.
44933
44934 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44935
44936         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44937         with code.
44938
44939 2008-10-13  Bruno Haible  <bruno@clisp.org>
44940
44941         * lib/glthread/cond.c (glthread_cond_wait_func,
44942         glthread_cond_timedwait_func): Add a comment.
44943
44944 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44945
44946         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44947         * tests/test-select.c: Likewise,
44948
44949 2008-10-13  Bruno Haible  <bruno@clisp.org>
44950
44951         * lib/glthread/cond.c (glthread_cond_wait_func,
44952         glthread_cond_timedwait_func): Fix variable name.
44953         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44954
44955 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44956
44957         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44958         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44959         struct sockaddr.sa_len.
44960         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44961
44962 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44963
44964         * build-aux/pmccabe2html: Add css and css_url parameters.
44965
44966 2008-10-12  Bruno Haible  <bruno@clisp.org>
44967
44968         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44969         calling aclx_get.
44970         Reported by Rainer Tammer <tammer@tammer.net>.
44971
44972 2008-10-12  Bruno Haible  <bruno@clisp.org>
44973
44974         Use msvcrt aware primitives for creation/termination of Win32 threads.
44975         * lib/glthread/thread.c: Include <process.h>.
44976         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44977         (wrapper_func): Update signature.
44978         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44979
44980 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44981             Bruno Haible  <bruno@clisp.org>
44982
44983         Provide a Win32 implementation of the 'cond' module.
44984         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44985         * lib/glthread/cond.c (glthread_cond_init_func,
44986         glthread_cond_wait_func, glthread_cond_timedwait_func,
44987         glthread_cond_signal_func, glthread_cond_broadcast_func,
44988         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44989         * modules/cond (Dependencies): Add gettimeofday.
44990
44991 2008-10-11  Bruno Haible  <bruno@clisp.org>
44992
44993         Make sleep work on older versions of mingw.
44994         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44995         only whether it exists.
44996         * doc/posix-functions/sleep.texi: Mention the problem with older
44997         versions of mingw.
44998
44999 2008-10-11  Bruno Haible  <bruno@clisp.org>
45000
45001         New module 'shutdown'.
45002         * modules/shutdown: New file.
45003         * lib/sys_socket.in.h (shutdown): New declaration.
45004         * lib/winsock.c (shutdown): New function.
45005         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45006         GNULIB_SHUTDOWN.
45007         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45008         * doc/posix-functions/shutdown.texi: Document the new module.
45009
45010 2008-10-11  Jim Meyering  <meyering@redhat.com>
45011
45012         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45013
45014 2008-10-11  Bruno Haible  <bruno@clisp.org>
45015
45016         New module 'fclose'.
45017         * modules/fclose: New file.
45018         * lib/stdio.in.h (fclose): New declaration.
45019         * lib/fclose.c: New file.
45020         * m4/fclose.m4: New file.
45021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45022         REPLACE_FCLOSE.
45023         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45024         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45025         REPLACE_FCLOSE.
45026         * modules/close (Depends-on): fclose.
45027         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45028
45029 2008-10-11  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45032         set errno and don't call _close.
45033
45034 2008-10-10  Bruno Haible  <bruno@clisp.org>
45035
45036         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45037         ACL, not afterwards. Fixes test failure on Cygwin.
45038
45039 2008-10-09  Ben Pfaff  <blp@gnu.org>
45040
45041         * build-aux/announce-gen: Fix gnulib version related part of usage
45042         message.  Die with a useful error message if no tarballs are
45043         found.
45044
45045 2008-10-10  Jim Meyering  <meyering@redhat.com>
45046
45047         bootstrap: use git's --depth=N option only if it's supported
45048         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45049         recognize the --depth option.  Reported by Pádraig Brady.
45050
45051 2008-10-09  Bruno Haible  <bruno@clisp.org>
45052
45053         New module 'ioctl'.
45054         * modules/ioctl: New file.
45055         * lib/sys_socket.in.h (ioctl): Remove declaration.
45056         * lib/winsock.c: Include <sys/ioctl.h>.
45057         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45058         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45059         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45060         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45061         * doc/posix-functions/ioctl.texi: Mention the new module.
45062
45063 2008-10-09  Bruno Haible  <bruno@clisp.org>
45064
45065         New module 'sys_ioctl'.
45066         * lib/sys_ioctl.in.h: New file.
45067         * m4/sys_ioctl_h.m4: New file.
45068         * modules/sys_ioctl: New file.
45069         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45070
45071 2008-10-09  Bruno Haible  <bruno@clisp.org>
45072
45073         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45074         * lib/winsock.c: Include <stdarg.h>.
45075         (rpl_ioctl): Change to second argument 'int' and then varargs.
45076
45077 2008-10-09  Bruno Haible  <bruno@clisp.org>
45078
45079         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45080         when the sys_socket module is present and the system has <winsock2.h>.
45081
45082 2008-10-09  Bruno Haible  <bruno@clisp.org>
45083
45084         * doc/posix-functions/close.texi: Mention module 'close' instead of
45085         module 'sys_socket'.
45086
45087 2008-10-09  Bruno Haible  <bruno@clisp.org>
45088
45089         * doc/glibc-headers/sys_ioctl.texi: New file.
45090         * doc/gnulib.texi: Include it.
45091
45092 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45093             Bruno Haible  <bruno@clisp.org>
45094
45095         Combine the two replacements of 'close'.
45096         * lib/sys_socket.in.h (close): Define to a reminder to include
45097         <unistd.h>.
45098         (_gl_close_fd_maybe_socket): New declaration.
45099         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45100         * lib/winsock.c (close): Remove undefinition.
45101         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45102         needed for the gnulib module 'close'.
45103         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45104         define to an error symbol or to a warning, if suitable.
45105         * lib/close.c: Include <sys/socket.h>.
45106         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45107         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45108         UNISTD_H_HAVE_WINSOCK2_H.
45109         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45111         UNISTD_H_HAVE_WINSOCK2_H.
45112         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45113         (configure.ac): Set a module indicator.
45114         (Makefile.am): Substitute GNULIB_CLOSE.
45115         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45116         * modules/poll-tests (Depends-on): Add close.
45117         * modules/select-tests (Depends-on): Likewise.
45118
45119 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45120             Bruno Haible  <bruno@clisp.org>
45121
45122         New module 'close'.
45123         * modules/close: New file.
45124         * lib/unistd.in.h (close): Move declaration out of the
45125         FCHDIR_REPLACEMENT scope.
45126         (_gl_unregister_fd): New declaration.
45127         * lib/close.c: New file.
45128         * lib/fchdir.c (rpl_close): Remove function.
45129         * m4/close.m4: New file.
45130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45131         close.
45132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45133         REPLACE_CLOSE.
45134         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45135         REPLACE_CLOSE.
45136         * modules/fchdir (Depends-on): Add close.
45137
45138 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45139             Bruno Haible  <bruno@clisp.org>
45140
45141         * lib/fcntl.in.h (open): Simplify conditionals.
45142         (_gl_register_fd): New declaration.
45143         * lib/fchdir.c (rpl_open): Remove function.
45144         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45145         also.
45146         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45148         open.
45149
45150 2008-10-09  Jim Meyering  <meyering@redhat.com>
45151
45152         GNUmakefile: use the more name-space-friendly "_version"
45153         * top/GNUmakefile (_dummy): Update.
45154         (_version): Rename from "version".
45155
45156 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45157             Bruno Haible  <bruno@clisp.org>
45158
45159         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45160         rpl_close.
45161         (_gl_register_fd): New function, extracted from rpl_open.
45162         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45163         (rpl_open, rpl_opendir): Use _gl_register_fd.
45164
45165 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45166
45167         Fix organization of 'open' replacement.
45168         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45169         (gl_FUNC_OPEN): Use it.
45170         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45171
45172 2008-10-08  Bruno Haible  <bruno@clisp.org>
45173
45174         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45175
45176 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45177
45178         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45179         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45180         listen).
45181
45182 2008-10-08  Eric Blake  <ebb9@byu.net>
45183
45184         GNUmakefile: add 'make version' target
45185         * top/GNUmakefile (_curr-ver): Split version update rules...
45186         (version): ...into a target.
45187
45188 2008-10-07  Bruno Haible  <bruno@clisp.org>
45189
45190         Use a more portable replacement expression for -0.0L.
45191         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45192         instead of -0.0L. Fix m4 quotation.
45193
45194         * tests/test-signbit.c: Include <float.h>.
45195         (minus_zero): New variable.
45196         (test_signbitl): Use minus_zero instead of -zero.
45197         * modules/signbit-tests (Depends-on): Add float.
45198
45199         * tests/test-ceill.c: Include <float.h>.
45200         (zero): Remove variable.
45201         (minus_zero): New variable.
45202         (main): Use minus_zero instead of -zero.
45203         * modules/ceill-tests (Depends-on): Add float.
45204
45205         * tests/test-floorl.c: Include <float.h>.
45206         (zero): Remove variable.
45207         (minus_zero): New variable.
45208         (main): Use minus_zero instead of -zero.
45209         * modules/floorl-tests (Depends-on): Add float.
45210
45211         * tests/test-roundl.c: Include <float.h>.
45212         (zero): Remove variable.
45213         (minus_zero): New variable.
45214         (main): Use minus_zero instead of -zero.
45215         * modules/roundl-tests (Depends-on): Add float.
45216
45217         * tests/test-truncl.c: Include <float.h>.
45218         (zero): Remove variable.
45219         (minus_zero): New variable.
45220         (main): Use minus_zero instead of -zero.
45221         * modules/truncl-tests (Depends-on): Add float.
45222
45223         * tests/test-frexpl.c (zero): Remove variable.
45224         (minus_zero): New variable.
45225         (main): Use minus_zero instead of -zero.
45226         * modules/frexpl-tests (Depends-on): Add float.
45227
45228         * tests/test-isnan.c (zerol): Remove variable.
45229         (minus_zerol): New variable.
45230         (test_long_double): Use minus_zerol instead of -zerol.
45231         * modules/isnan-tests (Depends-on): Add float.
45232
45233         * tests/test-isnanl.h (zero): Remove variable.
45234         (minus_zero): New variable.
45235         (main): Use minus_zero instead of -zero.
45236         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45237         * modules/isnanl-tests (Depends-on): Add float.
45238
45239         * tests/test-ldexpl.c (zero): Remove variable.
45240         (minus_zero): New variable.
45241         (main): Use minus_zero instead of -zero.
45242         * modules/ldexpl-tests (Depends-on): Add float.
45243
45244         * tests/test-snprintf-posix.h (zerol): Remove variable.
45245         (minus_zerol): New variable.
45246         (test_function): Use minus_zerol instead of -zerol.
45247         * modules/snprintf-posix-tests (Depends-on): Add float.
45248         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45249
45250         * tests/test-sprintf-posix.h (zerol): Remove variable.
45251         (minus_zerol): New variable.
45252         (test_function): Use minus_zerol instead of -zerol.
45253         * modules/sprintf-posix-tests (Depends-on): Add float.
45254         * modules/vsprintf-posix-tests (Depends-on): Add float.
45255
45256         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45257         (minus_zerol): New variable.
45258         (test_function): Use minus_zerol instead of -zerol.
45259         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45260
45261         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45262         (minus_zerol): New variable.
45263         (test_function): Use minus_zerol instead of -zerol.
45264         * modules/vasprintf-posix-tests (Depends-on): Add float.
45265
45266 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45267
45268         * MODULES.html.sh (Support for building documentation): Mention
45269         pmccabe2html.  Sort entries.
45270
45271         Add pmccabe2html module, from gnupdf.
45272         * build-aux/pmccabe.css: New file.
45273         * build-aux/pmccabe2html: New file.
45274         * m4/pmccabe2html.m4: New file.
45275         * modules/pmccabe2html: New file.
45276
45277 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45278
45279         flock: new module
45280         * MODULES.html.sh: Add to list of modules.
45281         * lib/flock.c: flock implementation for Windows and Unix systems
45282         which have fcntl.
45283         * doc/glibc-functions/flock.texi: Update documentation.
45284         * lib/sys_file.in.h: <sys/file.h> header file.
45285         * m4/flock.m4: M4 macros.
45286         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45287         * modules/flock: flock module.
45288         * modules/flock-tests: flock tests module.
45289         * modules/sys_file: sys/file.h module.
45290         * tests/test-flock.c: test suite for flock.
45291
45292 2008-10-06  Jim Meyering  <meyering@redhat.com>
45293
45294         bootstrap: check for LT_INIT more portably still ;-)
45295         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45296         Spotted by Bruno Haible.
45297
45298 2008-10-06  Eric Blake  <ebb9@byu.net>
45299
45300         test-signbit: avoid tripping Irix cc bug on -0.0L
45301         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45302         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45303         entire testsuite consistent and avoids an Irix 6.2 bug.
45304
45305 2008-10-05  Bruno Haible  <bruno@clisp.org>
45306             Jim Meyering  <jim@meyering.net>
45307
45308         Add an option for ignoring EPIPE during close_stdout.
45309         * lib/closeout.h: Include <stdbool.h>.
45310         (close_stdout_set_ignore_EPIPE): New declaration.
45311         * lib/closeout.c: Include <stdbool.h>.
45312         (ignore_EPIPE): New variable.
45313         (close_stdout_set_ignore_EPIPE): New function.
45314         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45315         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45316         failure.
45317         * modules/closeout (Depends-on): Add stdbool.
45318
45319 2008-10-05  Bruno Haible  <bruno@clisp.org>
45320
45321         * modules/accept: New file.
45322         * modules/bind: New file.
45323         * modules/connect: New file.
45324         * modules/getpeername: New file.
45325         * modules/getsockname: New file.
45326         * modules/getsockopt: New file.
45327         * modules/listen: New file.
45328         * modules/recv: New file.
45329         * modules/recvfrom: New file.
45330         * modules/send: New file.
45331         * modules/sendto: New file.
45332         * modules/setsockopt: New file.
45333         * modules/socket: New file.
45334         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45335         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45336         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45337         the particular module is requested. Add a link warning when the
45338         particular module is not requested.
45339         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45340         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45341         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45342         the particular module is requested.
45343         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45344         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45345         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45346         * modules/sys_socket (Depends-on): Add link-warning.
45347         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45348         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45349         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45350         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45351         GL_LINK_WARNING.
45352         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45353         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45354         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45355         * doc/posix-functions/getpeername.texi: Mention the new module
45356         'getpeername'.
45357         * doc/posix-functions/getsockname.texi: Mention the new module
45358         'getsockname'.
45359         * doc/posix-functions/getsockopt.texi: Mention the new module
45360         'getsockopt'.
45361         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45362         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45363         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45364         * doc/posix-functions/send.texi: Mention the new module 'send'.
45365         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45366         * doc/posix-functions/setsockopt.texi: Mention the new module
45367         'setsockopt'.
45368         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45369         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45370         listen, connect, accept.
45371         * modules/select-tests (Depends-on): Likewise.
45372
45373 2008-10-05  Bruno Haible  <bruno@clisp.org>
45374
45375         * lib/winsock.c (strerror): Remove unused #undef.
45376         (rpl_close): Remove unused local variable.
45377
45378         * modules/sys_socket (Depends-on); Add errno.
45379
45380 2008-10-05  Bruno Haible  <bruno@clisp.org>
45381
45382         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45383         (select): Add a link warning when the 'select' module is not used.
45384         * modules/sys_select (Depends-on): Add link-warning.
45385         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45386         Suggested by Paolo Bonzini.
45387
45388 2008-10-05  Jim Meyering  <meyering@redhat.com>
45389
45390         bootstrap: check for LT_INIT more portably
45391         * build-aux/bootstrap: Avoid using grep -E, since it's not
45392         portable enough.  Suggestion from Bruno Haible.
45393
45394 2008-10-05  Bruno Haible  <bruno@clisp.org>
45395
45396         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45397         as being fixed by gnulib.
45398
45399 2008-10-05  Bruno Haible  <bruno@clisp.org>
45400
45401         * modules/select-tests: New file, mostly copied from
45402         modules/sys_select-tests.
45403         * tests/test-select.c: New file, mostly copied from
45404         tests/test-sys_select.c.
45405         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45406         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45407         (Makefile.am): Remove test_sys_select_LDADD.
45408
45409         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45410         to an undefined symbol, for an error message.
45411         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45412         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45413         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45414         winsock-select.c here.
45415         * modules/sys_select (Files): Remove lib/winsock-select.c.
45416         (Depends-on): Remove alloca.
45417         (Makefile.am): Substitute GNULIB_SELECT.
45418         * modules/select: New file.
45419         * doc/posix-functions/select.texi: Update.
45420
45421 2008-10-05  Bruno Haible  <bruno@clisp.org>
45422
45423         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45424         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45425         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45426         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45427         getdtablesize.
45428         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45429         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45430
45431 2008-10-05  Bruno Haible  <bruno@clisp.org>
45432
45433         * modules/getdtablesize-tests: New file.
45434         * tests/test-getdtablesize.c: New file.
45435
45436         New module 'getdtablesize'.
45437         * lib/unistd.in.h (getdtablesize): New declaration.
45438         * lib/getdtablesize.c: New file.
45439         * m4/getdtablesize.m4: New file.
45440         * modules/getdtablesize: New file.
45441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45442         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45443         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45444         HAVE_GETDTABLESIZE.
45445         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45446
45447 2008-10-05  Bruno Haible  <bruno@clisp.org>
45448
45449         * modules/sched (Makefile.am): Fix typo.
45450         Reported by Simon Josefsson.
45451
45452 2008-10-05  Jim Meyering  <meyering@redhat.com>
45453
45454         bootstrap: check for LT_INIT, too
45455         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45456         are deprecated.  Suggestion from Ralf Wildenhues.
45457
45458 2008-10-05  Bruno Haible  <bruno@clisp.org>
45459
45460         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45461         overriding them by ours.
45462         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45463
45464 2008-10-05  Jim Meyering  <meyering@redhat.com>
45465
45466         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45467         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45468         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45469
45470 2008-10-04  Bruno Haible  <bruno@clisp.org>
45471
45472         * modules/dup2 (License): Change to LGPLv2+.
45473         * modules/sleep (License): Likewise.
45474         * modules/perror (License): Likewise.
45475         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45476         Blake.
45477         * modules/signal (License): Likewise.
45478         * modules/sigprocmask (License): Likewise.
45479         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45480         Meyering.
45481
45482 2008-10-04  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45485         Reported by Rainer Tammer <tammer@tammer.net>.
45486
45487 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45488             Bruno Haible  <bruno@clisp.org>
45489
45490         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45491         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45492         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45493
45494 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45495
45496         filevercmp: new module
45497         * lib/filevercmp.h: New function filevercmp comparing version strings.
45498         * lib/filevercmp.c: Implementation of filevercmp function.
45499         * modules/filevercmp: Module metadata.
45500         * tests/test-filevercmp.c: Unit test for new module.
45501         * modules/filevercmp-tests: Unit test metadata.
45502         * MODULES.html.sh: Add filevercmp module.
45503
45504 2008-10-03  Bruno Haible  <bruno@clisp.org>
45505
45506         * lib/c-ctype.h: Add comment.
45507         Reported by Jim Meyering.
45508
45509 2008-10-02  Bruno Haible  <bruno@clisp.org>
45510
45511         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45512
45513 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45514
45515         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45516         name of bootstrap.conf accordingly.
45517
45518 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45519
45520         * build-aux/bootstrap: Install git-merge-changelog configuration
45521         items into .gitconfig if needed.
45522
45523 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45524
45525         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45526         git repository, and initialize/update it accordingly.
45527
45528 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45529
45530         * modules/fsync-tests: New file.
45531         * tests/test-fsync.c: New file.
45532
45533         New module 'fsync'.
45534         * lib/fsync.c: New file.
45535         * m4/fsync.m4: New file.
45536         * modules/fsync: New file.
45537         * lib/unistd.in.h (fsync): New declaration.
45538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45539         GNULIB_FSYNC and HAVE_FSYNC.
45540         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45541         * MODULES.html.sh (posix_functions): Add fsync.
45542         * doc/posix-functions/fsync.texi: Mention the new module.
45543
45544 2008-10-02  Jim Meyering  <meyering@redhat.com>
45545
45546         fts.c: sync with similar code from coreutils' remove.c
45547         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45548         Guard also with "#if defined __linux__", since for now at least,
45549         this code is Linux-kernel-specific.
45550
45551 2008-10-02  Jim Meyering  <meyering@redhat.com>
45552
45553         fts: bug fixes
45554         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45555         Include <sys/vfs.h>, not <sys/statfs.h>.
45556
45557         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45558         Include <sys/vfs.h>, not <sys/statfs.h>.
45559
45560 2008-10-01  Bruno Haible  <bruno@clisp.org>
45561
45562         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45563         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45564         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45565         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45566         * doc/posix-functions/posix_spawnp.texi: Likewise.
45567         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45568         whether posix_spawn actually works.
45569         * m4/pipe.m4 (gl_PIPE): Likewise.
45570         * modules/execute (Files): Add m4/posix_spawn.m4.
45571         * modules/pipe (Files): Add m4/posix_spawn.m4.
45572         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45573
45574 2008-10-01  Jim Meyering  <meyering@redhat.com>
45575
45576         remove trailing spaces
45577         * NEWS: Likewise.
45578         * lib/poll.c (poll): Likewise.
45579         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45580         * lib/winsock.c (rpl_close): Likewise.
45581         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45582         * modules/yield: Likewise.
45583         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45584         * tests/test-sys_select.c (connect_to_socket): Likewise.
45585
45586         fts.c: adjust a new interface to be more generally useful
45587         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45588         (fts_build): Adjust caller.
45589
45590 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45591
45592         * modules/cond-tests: New file.
45593         * tests/test-cond.c: New file.
45594
45595 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45596             Bruno Haible  <bruno@clisp.org>
45597
45598         * modules/cond (Dependencies): Add errno, time.
45599         * lib/glthread/cond.h: Include <time.h>.
45600         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45601         across platforms.
45602
45603 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45604             Bruno Haible  <bruno@clisp.org>
45605
45606         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45607
45608 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45609             Bruno Haible  <bruno@clisp.org>
45610
45611         * modules/tls-tests (Depends-on): Add thread, yield.
45612         (configure.ac): Remove all checks.
45613         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45614         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45615         gl_thread_self): Remove definitions. Include glthread/thread.h and
45616         glthread/yield.h instead.
45617         (test_tls): Pass an additional NULL argument to gl_thread_join.
45618
45619 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45620             Bruno Haible  <bruno@clisp.org>
45621
45622         * modules/lock-tests (Depends-on): Add thread, yield.
45623         (configure.ac): Remove all checks.
45624         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45625         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45626         gl_thread_self): Remove definitions. Include glthread/thread.h and
45627         glthread/yield.h instead.
45628         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45629         additional NULL argument to gl_thread_join.
45630
45631 2008-09-30  Bruno Haible  <bruno@clisp.org>
45632
45633         Fix the Win32 implementation of the 'thread' module.
45634         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45635         pointer type.
45636         (gl_thread_self): Invoke gl_thread_self_func.
45637         (gl_thread_self_func): New declaration.
45638         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45639         (do_init_self_key, init_self_key): New functions.
45640         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45641         Remove some fields.
45642         (running_threads, running_lock): Remove variables.
45643         (get_current_thread_handle): New function.
45644         (gl_thread_self_func, wrapper_func, glthread_create_func,
45645         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45646         simplified.
45647
45648 2008-09-30  Bruno Haible  <bruno@clisp.org>
45649
45650         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45651         files.
45652
45653 2008-09-30  Jim Meyering  <meyering@redhat.com>
45654
45655         fts.m4: correct the test for statfs.f_type
45656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45657         when checking for statfs.f_type.
45658
45659 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45660
45661         tests: avoid some compiler warnings
45662         * tests/test-memchr.c (main): Pass NULL indirectly.
45663         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45664
45665 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45666
45667         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45668         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45669         exactly specified dayshifts.
45670         (dayshift): New rule.
45671         (rel): Add dayshift.
45672         (relative_time_table) [tomorrow, yesterday, today, now]:
45673         Use tDAY_SHIFT in place of tDAY_UNIT.
45674         * tests/test-getdate.c: Add tests for now-disallowed countable
45675         dayshifts, e.g., "4 yesterday ago".
45676
45677 2008-09-29  Bruno Haible  <bruno@clisp.org>
45678
45679         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45680         * tests/test-posix_spawn1.in.sh: Renamed from
45681         tests/test-posix_spawn.in.sh.
45682         * tests/test-posix_spawn2.c: New file.
45683         * tests/test-posix_spawn2.in.sh: New file.
45684         * modules/posix_spawnp-tests (Files): Update.
45685         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45686
45687 2008-09-29  Bruno Haible  <bruno@clisp.org>
45688
45689         Propagate effects of putenv/setenv/unsetenv to child processes.
45690         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45691         * lib/pipe.c (create_pipe): Likewise.
45692
45693 2008-09-29  Bruno Haible  <bruno@clisp.org>
45694
45695         Enable use of shell scripts as executables in mingw.
45696         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45697         run the program as a shell script.
45698         * lib/pipe.c (create_pipe): Likewise.
45699         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45700         resulting array.
45701
45702 2008-09-29  Eric Blake  <ebb9@byu.net>
45703
45704         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45705
45706 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45707
45708         * doc/posix-functions/accept.texi: Update mingw problems.
45709         * doc/posix-functions/bind.texi: Update mingw problems.
45710         * doc/posix-functions/close.texi: Update mingw problems.
45711         * doc/posix-functions/connect.texi: Update mingw problems.
45712         * doc/posix-functions/getpeername.texi: Update mingw problems.
45713         * doc/posix-functions/getsockname.texi: Update mingw problems.
45714         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45715         * doc/posix-functions/ioctl.texi: Update mingw problems.
45716         * doc/posix-functions/listen.texi: Update mingw problems.
45717         * doc/posix-functions/recv.texi: Update mingw problems.
45718         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45719         * doc/posix-functions/select.texi: Update mingw problems.
45720         * doc/posix-functions/send.texi: Update mingw problems.
45721         * doc/posix-functions/sendto.texi: Update mingw problems.
45722         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45723         * doc/posix-functions/socket.texi: Update mingw problems.
45724
45725 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45726             Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/sys_select.in.h: Include sys/time.h.
45729         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45730         * modules/sys_select: Depend on sys_time.
45731         * tests/test-sys_select.c: Test that sys/select.h defines struct
45732         timeval fully.
45733
45734 2008-09-29  Bruno Haible  <bruno@clisp.org>
45735
45736         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45737         * lib/sys_select.in.h: Likewise.
45738
45739 2008-09-29  Bruno Haible  <bruno@clisp.org>
45740
45741         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45742
45743 2008-09-29  Bruno Haible  <bruno@clisp.org>
45744
45745         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45746         Set LIBSOCKET instead of augmenting LIBS.
45747         * modules/sockets (Link): New section.
45748         * modules/sockets-tests (test_sockets_LDADD): New variable.
45749         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45750         * modules/poll-tests (test_poll_LDADD): New variable.
45751         * NEWS: Document the change.
45752
45753 2008-09-29  Bruno Haible  <bruno@clisp.org>
45754
45755         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45756         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45757         ARPA_INET_H directly.
45758         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45759
45760 2008-09-28  Bruno Haible  <bruno@clisp.org>
45761
45762         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45763         from gl_HEADER_SYS_SOCKET.
45764         (gl_HEADER_SYS_SOCKET): Invoke it.
45765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45766
45767 2008-09-28  Bruno Haible  <bruno@clisp.org>
45768
45769         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45770         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45771         Needed on OSF/1 4.0.
45772
45773 2008-09-28  Bruno Haible  <bruno@clisp.org>
45774
45775         Override open more carefully.
45776         * lib/open.c (orig_open): New function.
45777         (rpl_open): Use orig_open instead of open.
45778         * lib/fcntl.in.h: Add special invocation convention.
45779         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45780         (gl_FUNC_OPEN): Invoke it.
45781
45782         Override freopen more carefully.
45783         * lib/freopen.c (orig_freopen): New function.
45784         (rpl_freopen): Use orig_freopen instead of freopen.
45785         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45786         (gl_FUNC_FREOPEN): Invoke it.
45787
45788         Override fopen more carefully.
45789         * lib/fopen.c (orig_fopen): New function.
45790         (rpl_fopen): Use orig_fopen instead of fopen.
45791         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45792         (gl_FUNC_FOPEN): Invoke it.
45793         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45794
45795 2008-09-28  Bruno Haible  <bruno@clisp.org>
45796
45797         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45798         SIGPIPE.
45799
45800 2008-09-28  Bruno Haible  <bruno@clisp.org>
45801
45802         * tests/test-sigaction.c (handler, main): Disable the check whether
45803         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45804         glibc systems with LinuxThreads.
45805
45806 2008-09-28  Bruno Haible  <bruno@clisp.org>
45807
45808         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45809
45810         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45811         with AIX xlc.
45812         * lib/fcntl.in.h (open): Likewise.
45813         Reported by Rainer Tammer <tammer@tammer.net>.
45814
45815 2008-09-28  Bruno Haible  <bruno@clisp.org>
45816
45817         * modules/posix_spawnp-tests: New file.
45818         * tests/test-posix_spawn.c: New file.
45819         * tests/test-posix_spawn.in.sh: New file.
45820
45821         New module 'posix_spawnp'.
45822         * modules/posix_spawnp: New file.
45823         * lib/spawnp.c: New file, from GNU libc with modifications.
45824         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45825
45826         New module 'posix_spawn'.
45827         * modules/posix_spawn: New file.
45828         * lib/spawn.c: New file, from GNU libc with modifications.
45829         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45830
45831         New module 'posix_spawnattr_destroy'.
45832         * modules/posix_spawnattr_destroy: New file.
45833         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45834         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45835         module.
45836
45837         New module 'posix_spawnattr_setsigmask'.
45838         * modules/posix_spawnattr_setsigmask: New file.
45839         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45840         modifications.
45841         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45842         new module.
45843
45844         New module 'posix_spawnattr_getsigmask'.
45845         * modules/posix_spawnattr_getsigmask: New file.
45846         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45847         modifications.
45848         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45849         new module.
45850
45851         New module 'posix_spawnattr_setsigdefault'.
45852         * modules/posix_spawnattr_setsigdefault: New file.
45853         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45854         modifications.
45855         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45856         new module.
45857
45858         New module 'posix_spawnattr_getsigdefault'.
45859         * modules/posix_spawnattr_getsigdefault: New file.
45860         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45861         modifications.
45862         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45863         new module.
45864
45865         New module 'posix_spawnattr_setschedpolicy'.
45866         * modules/posix_spawnattr_setschedpolicy: New file.
45867         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45868         modifications.
45869         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45870         new module.
45871
45872         New module 'posix_spawnattr_getschedpolicy'.
45873         * modules/posix_spawnattr_getschedpolicy: New file.
45874         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45875         modifications.
45876         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45877         new module.
45878
45879         New module 'posix_spawnattr_setschedparam'.
45880         * modules/posix_spawnattr_setschedparam: New file.
45881         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45882         modifications.
45883         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45884         new module.
45885
45886         New module 'posix_spawnattr_getschedparam'.
45887         * modules/posix_spawnattr_getschedparam: New file.
45888         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45889         modifications.
45890         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45891         new module.
45892
45893         New module 'posix_spawnattr_setpgroup'.
45894         * modules/posix_spawnattr_setpgroup: New file.
45895         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45896         modifications.
45897         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45898         module.
45899
45900         New module 'posix_spawnattr_getpgroup'.
45901         * modules/posix_spawnattr_getpgroup: New file.
45902         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45903         modifications.
45904         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45905         module.
45906
45907         New module 'posix_spawnattr_setflags'.
45908         * modules/posix_spawnattr_setflags: New file.
45909         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45910         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45911         module.
45912
45913         New module 'posix_spawnattr_getflags'.
45914         * modules/posix_spawnattr_getflags: New file.
45915         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45916         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45917         module.
45918
45919         New module 'posix_spawnattr_init'.
45920         * modules/posix_spawnattr_init: New file.
45921         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45922         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45923         module.
45924
45925         New module 'posix_spawn_file_actions_destroy'.
45926         * modules/posix_spawn_file_actions_destroy: New file.
45927         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45928         modifications.
45929         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45930         the new module.
45931
45932         New module 'posix_spawn_file_actions_addopen'.
45933         * modules/posix_spawn_file_actions_addopen: New file.
45934         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45935         modifications.
45936         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45937         the new module.
45938
45939         New module 'posix_spawn_file_actions_adddup2'.
45940         * modules/posix_spawn_file_actions_adddup2: New file.
45941         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45942         modifications.
45943         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45944         the new module.
45945
45946         New module 'posix_spawn_file_actions_addclose'.
45947         * modules/posix_spawn_file_actions_addclose: New file.
45948         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45949         modifications.
45950         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45951         the new module.
45952
45953         New module 'posix_spawn_file_actions_init'.
45954         * modules/posix_spawn_file_actions_init: New file.
45955         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45956         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45957         new module.
45958
45959         New module 'posix_spawn-internal'.
45960         * modules/posix_spawn-internal: New file.
45961         * lib/spawn_int.h: New file, from GNU libc with modifications.
45962         * lib/spawni.c: New file, from GNU libc with modifications.
45963         * m4/posix_spawn.m4: New file.
45964
45965         New module 'spawn'.
45966         * modules/spawn: New file.
45967         * lib/spawn.in.h: New file, from GNU libc with modifications.
45968         * m4/spawn_h.m4: New file.
45969         * doc/posix-headers/spawn.texi: Mention the new module.
45970
45971 2008-09-28  Bruno Haible  <bruno@clisp.org>
45972
45973         * modules/sched-tests: New file.
45974         * tests/test-sched.c: New file.
45975
45976         New module 'sched'.
45977         * modules/sched: New file.
45978         * lib/sched.in.h: New file.
45979         * m4/sched_h.m4: New file.
45980         * doc/posix-headers/sched.texi: Mention the new module.
45981
45982 2008-09-27  Eric Blake  <ebb9@byu.net>
45983
45984         Fix previous patch, and tweak references to $0.
45985         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45986         (func_version, func_gnulib_dir): Don't call this program
45987         gnulib-tool.
45988         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45989         with using $0 in function.
45990         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45991         (func_fatal_error): Reuse the name the user invoked us with.
45992
45993 2008-09-27  Bruno Haible  <bruno@clisp.org>
45994
45995         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45996         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45997         (gl_ICONV_H): Not here.
45998         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45999         instead of assigning ICONV_H directly.
46000
46001         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46003         WCHAR_H directly.
46004
46005 2008-09-27  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46008         * modules/arpa_inet (Depends-on): Add link-warning.
46009         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46010         * modules/unistd (Makefile.am): Likewise.
46011
46012 2008-09-26  Bruno Haible  <bruno@clisp.org>
46013
46014         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46015         variables.
46016         (func_version): Essentially copied from gnulib-tool.
46017         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46018         func_readlink): Copied from gnulib-tool.
46019
46020 2008-09-26  Bruno Haible  <bruno@clisp.org>
46021
46022         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46023         invoking git-version-gen.
46024
46025 2008-09-26  Bruno Haible  <bruno@clisp.org>
46026
46027         * posix-modules: Update to directory names changed on 2008-01-19.
46028         Remove commas in output before splitting into words. No more need to
46029         avoid 'ftruncate' since 2007-02-19.
46030
46031 2008-09-26  Bruno Haible  <bruno@clisp.org>
46032
46033         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46034
46035 2008-09-26  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46038         * modules/fwriteerror (Depends-on): Add errno.
46039
46040 2008-09-26  Bruno Haible  <bruno@clisp.org>
46041
46042         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46043         * tests/test-vc-list-files-cvs.sh: Likewise.
46044
46045 2008-09-26  Bruno Haible  <bruno@clisp.org>
46046
46047         * doc/posix-headers/sys_resource.texi: Reorder items.
46048
46049 2008-09-26  Jim Meyering  <meyering@redhat.com>
46050
46051         fts: tweak inode comparison function
46052         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46053         inode numbers, as documented.
46054
46055         fts: sort dirent entries on inode number before traversing
46056         This avoids a quadratic, seek-related performance penalty when
46057         operating on a directory containing many entries (measurable at 10k;
46058         3.5 hours at 2 million entries with a cold cache) on certain types
46059         of file systems, including ext3 and ext4, but not tmpfs.
46060         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46061         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46062         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46063         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46064         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46065         (fts_build): Set the stat.st_ino member from D_INO.
46066         If it is likely to be useful, sort dirent entries on inode number.
46067
46068         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46069         and the struct statfs.f_type member.
46070         * modules/fts (Depends-on): Add d-ino.
46071
46072 2008-09-26  Bruno Haible  <bruno@clisp.org>
46073
46074         * modules/sigpipe-die (Depends-on): Add sigpipe.
46075
46076         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46077         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46078         and GNULIB_STDIO_H_SIGPIPE are set.
46079         * lib/stdio-write.c: New file.
46080         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46081         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46082         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46083         REPLACE_STDIO_WRITE_FUNCS.
46084         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46085         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46086         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46087         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46088         * modules/stdio (Files): Add lib/stdio-write.c.
46089         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46090         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46091         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46092         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46093         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46094         REPLACE_FPRINTF_POSIX.
46095         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46096         REPLACE_PRINTF_POSIX.
46097         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46098         REPLACE_VFPRINTF_POSIX.
46099         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46100         REPLACE_VPRINTF_POSIX.
46101         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46102         SIGPIPE issue.
46103         * doc/posix-functions/fputc.texi: Likewise.
46104         * doc/posix-functions/fputs.texi: Likewise.
46105         * doc/posix-functions/fwrite.texi: Likewise.
46106         * doc/posix-functions/printf.texi: Likewise.
46107         * doc/posix-functions/putc.texi: Likewise.
46108         * doc/posix-functions/putchar.texi: Likewise.
46109         * doc/posix-functions/puts.texi: Likewise.
46110         * doc/posix-functions/vfprintf.texi: Likewise.
46111         * doc/posix-functions/vprintf.texi: Likewise.
46112
46113         * modules/safe-write (Depends-on): Add write.
46114
46115         * modules/sigpipe-tests: New file.
46116         * tests/test-sigpipe.c: New file.
46117         * tests/test-sigpipe.sh: New file.
46118
46119         * modules/write: New file.
46120         * lib/unistd.in.h: Include <sys/types.h>.
46121         (write): New declaration.
46122         * lib/write.c: New file.
46123         * m4/write.m4: New file.
46124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46125         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46126         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46127         GNULIB_WRITE, REPLACE_WRITE.
46128         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46129         and the SIGPIPE issue.
46130
46131         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46132         (raise): New declaration.
46133         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46134         (ext_signal): New function.
46135         (rpl_raise): New function.
46136         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46137         GNULIB_SIGNAL_H_SIGPIPE.
46138         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46139         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46140
46141         * modules/sigpipe: New file.
46142         * m4/sigpipe.m4: New file.
46143
46144 2008-09-25  Derek Price  <derek@ximbiot.com>
46145             Bruno Haible  <bruno@clisp.org>
46146
46147         * gnulib-tool (func_import): Report all license incompatibilities, not
46148         just the first one.
46149
46150 2008-09-25  Bruno Haible  <bruno@clisp.org>
46151
46152         * gnulib-tool (func_import): When computing the edits, consider not
46153         only the Makefile.ams that exist but also those that will be generated.
46154
46155 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46156
46157         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46158         fixes gnulib-tool --test warning about duplicate dependency.
46159
46160 2008-09-25  Bruno Haible  <bruno@clisp.org>
46161
46162         * gnulib-tool: Don't ask the user to perform edits in the generated
46163         Makefile.ams.
46164         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46165         apply to the Makefile.am being generated.
46166         (func_emit_tests_Makefile_am): Execute edits that apply to the
46167         Makefile.am being generated.
46168         (func_import): Setup list of Makefile.am edits before emitting the
46169         Makefile.ams, not at the end.
46170         (func_create_testdir): Update.
46171         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46172
46173 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46174
46175         * gnulib-tool (func_import): Store the --tests-base option in the
46176         comment in gnulib-cache.m4.
46177
46178 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46179
46180         * NEWS: Document increased portability that sys_select now provides.
46181
46182         * lib/sys_select.in.h: Install select wrapper.
46183         * lib/sys_socket.in.h: Use more descriptive name when there is no
46184         select wrapper.
46185         * lib/winsock-select.c: New.
46186         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46187         Require gl_HEADER_SYS_SOCKET.
46188         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46189         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46190         * tests/test-sys_select.c: Add functional tests.
46191
46192 2008-09-24  Eric Blake  <ebb9@byu.net>
46193
46194         open, fopen: close fd leak in last patch
46195         * lib/open.c (rpl_open): Close fd before returning error.
46196         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46197         * doc/posix-functions/open.texi (open): Document that Irix also
46198         has the bug.
46199         * doc/posix-functions/fopen.texi (fopen): Likewise.
46200         Reported by Paolo Bonzini.
46201
46202 2008-09-24  Bruno Haible  <bruno@clisp.org>
46203
46204         Ensure that a filename ending in a slash cannot be used to access a
46205         non-directory.
46206         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46207         to check whether it's really a directory.
46208         * lib/fopen.c: Include fcntl.h, unistd.h.
46209         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46210         and fdopen().
46211         * modules/fopen (Depends-on): Add unistd.
46212         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46213         * tests/test-fopen.c (main): Likewise.
46214         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46215         * doc/posix-functions/fopen.texi: Likewise.
46216         Reported by Eric Blake.
46217
46218 2008-09-23  Eric Blake  <ebb9@byu.net>
46219
46220         c-stack: avoid compiler optimizations when provoking overflow
46221         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46222         recursion harder to optimize, to ensure a stack overflow occurs.
46223         * tests/test-c-stack.c (recurse): Likewise.
46224         Borrowed from libsigsegv.
46225
46226         c-stack: work around Irix sigaltstack bug
46227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46228         whether sigaltstack uses wrong end of stack_t (copied in part from
46229         libsigsegv).
46230         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46231         Irix bug, without requiring an over-allocation.
46232         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46233         bug.
46234
46235         fopen: document mingw bug on directories
46236         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46237         not allowing a stream visiting a directory, even though reading
46238         from such a stream is not portable.
46239
46240 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46241
46242         * lib/poll.c: Rewrite.
46243         * modules/poll: Depend on alloca.
46244
46245 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46246
46247         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46248         instead define prototypes for a full set of wrappers.  Ensure
46249         that Cygwin does not use the compatibility code, which is only
46250         for MinGW.
46251         * lib/winsock.c: New.
46252         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46253         * modules/sys_socket: Add lib/winsock.c.
46254
46255         * modules/poll-tests: Add errno and perror.
46256         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46257
46258 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46259
46260         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46261
46262 2008-09-23  Bruno Haible  <bruno@clisp.org>
46263
46264         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46265         * doc/glibc-functions/*: Likewise.
46266
46267 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46268
46269         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46270         success.
46271
46272 2008-09-22  Eric Blake  <ebb9@byu.net>
46273             Bruno Haible  <bruno@clisp.org>
46274
46275         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46276         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46277         supply %A but mishandle pseudo-NaN.
46278         Reported by Simon Josefsson.
46279
46280 2008-09-21  Bruno Haible  <bruno@clisp.org>
46281
46282         * tests/test-lock.c (main): Tweak skip message.
46283         * tests/test-tls.c (main): Likewise.
46284
46285 2008-09-21  Bruno Haible  <bruno@clisp.org>
46286
46287         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46288         whether 'struct sigaction' has sa_sigaction here...
46289         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46290         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46291
46292 2008-09-21  Bruno Haible  <bruno@clisp.org>
46293
46294         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46295         section.
46296         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46297         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46298         the new section.
46299         (Support for obsolete systems lacking POSIX:2001): New section.
46300         (String handling <string.h>): Move strdup to the new section.
46301         Suggested by Simon Josefsson and Paolo Bonzini.
46302
46303 2008-09-21  Bruno Haible  <bruno@clisp.org>
46304
46305         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46306         exponents in %e and %g results on 'long double'. Needed for mingw's
46307         improved *printf functions.
46308         * tests/test-vasprintf-posix.c (test_function): Likewise.
46309         * tests/test-snprintf-posix.h (test_function): Likewise.
46310         * tests/test-sprintf-posix.h (test_function): Likewise.
46311         Reported by Eric Blake.
46312
46313 2008-09-21  Bruno Haible  <bruno@clisp.org>
46314
46315         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46316         * tests/test-sprintf-posix.h (test_function): Likewise.
46317
46318 2008-09-21  Bruno Haible  <bruno@clisp.org>
46319
46320         * modules/getpass (Depends-on): Add strdup-posix.
46321
46322         New module 'strdup-posix'.
46323         * modules/strdup-posix: New file.
46324         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46325         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46327         REPLACE_STRDUP.
46328         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46329         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46331         strdup-posix.
46332
46333         * modules/strdup (Depends-on): Remove malloc-posix.
46334
46335 2008-09-20  Bruno Haible  <bruno@clisp.org>
46336
46337         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46338         Wildenhues.
46339
46340 2008-09-20  Bruno Haible  <bruno@clisp.org>
46341
46342         Ensure that wint_t gets defined on IRIX 5.3.
46343         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46344         * lib/wctype.in.h (wint_t): Likewise.
46345         (__wctype_wint_t): Remove type.
46346         (isw*): Use wint_t instead of __wctype_wint_t.
46347         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46348         * modules/wchar (Files): Add m4/wint_t.m4.
46349         (Makefile.am): Substitute HAVE_WINT_T.
46350         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46351         * tests/test-wctype.c: Check that wint_t is defined.
46352         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46353         * doc/posix-headers/wctype.texi: Likewise.
46354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46355
46356 2008-09-18  Bruno Haible  <bruno@clisp.org>
46357
46358         * gnulib-tool (func_exit): Update comment.
46359
46360 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46361
46362         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46363         assumes strdup exists and does not depend on strdup to return
46364         ENOMEM on out of memory conditions.
46365
46366 2008-09-18  Bruno Haible  <bruno@clisp.org>
46367
46368         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46369         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46370         digits for the exponent.
46371
46372 2008-09-18  Jim Meyering  <meyering@redhat.com>
46373             Bruno Haible  <bruno@clisp.org>
46374
46375         * lib/vasnprintf.c (decimal_point_char): Define also if
46376         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46377
46378 2008-09-16  Bruno Haible  <bruno@clisp.org>
46379         and Eric Blake  <ebb9@byu.net>
46380
46381         vasnprintf: support Irix 5.3
46382         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46383         that mishandle long double infinity.
46384         Reported by Tom G. Christensen.
46385
46386 2008-09-16  Bruno Haible  <bruno@clisp.org>
46387
46388         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46389         Solaris 9.
46390         * doc/glibc-functions/alphasort.texi: Likewise.
46391         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46392
46393 2008-09-16  Jim Meyering  <meyering@redhat.com>
46394
46395         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46396         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46397         a umask modification leak out of a subshell.  Otherwise, the
46398         opensolaris /bin/sh would be accepted and thus cause unwarranted
46399         failures in the coreutils test suite.
46400
46401 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46402
46403         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46404         to succeed.
46405
46406 2008-09-16  Jim Meyering  <meyering@redhat.com>
46407
46408         avoid spurious test failure when library is built without ACL support
46409         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46410         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46411         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46412         * tests/test-copy-acl.sh: Likewise.
46413
46414 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46415
46416         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46417         based on character occurrence counts.
46418
46419 2008-09-15  Eric Blake  <ebb9@byu.net>
46420
46421         tests: avoid some compiler warnings
46422         * tests/test-memchr.c (main): Pass NULL indirectly.
46423         * tests/test-closein.c (main): Avoid unused variable.
46424
46425 2008-09-15  Bruno Haible  <bruno@clisp.org>
46426
46427         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46428         are missing on OpenBSD 4.0 individually.
46429         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46430
46431 2008-09-15  Bruno Haible  <bruno@clisp.org>
46432
46433         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46434         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46435         * doc/posix-functions/perror.texi: Likewise.
46436         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46437         is missing.
46438         Reported by Eric Blake.
46439
46440         * lib/errno.in.h: Use replacement values >= 2000.
46441         Reported by Eric Blake.
46442
46443 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46444
46445         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46446         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46447         limit.
46448         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46449         compareseq was aborted.
46450
46451 2008-09-14  Bruno Haible  <bruno@clisp.org>
46452
46453         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46454         yvec_edit_count.
46455         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46456         (fstrcmp_bounded): Simplify result computation accordingly.
46457
46458 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46459
46460         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46461         (fstrcmp): Define in terms of fstrcmp_bounded.
46462         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46463         lower_bound argument.
46464         Return quickly if the result is certainly < lower_bound.
46465         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46466
46467 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46468
46469         * lib/diffseq.h (EARLY_ABORT): New macro.
46470         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46471         evaluates to true.
46472
46473 2008-09-14  Bruno Haible  <bruno@clisp.org>
46474
46475         * modules/perror-tests: New file.
46476         * tests/test-perror.sh: New file.
46477         * tests/test-perror.c: New file.
46478
46479         New module 'perror'.
46480         * lib/stdio.in.h (perror): New declaration.
46481         * lib/perror.c: New file.
46482         * m4/perror.m4: New file.
46483         * modules/perror: New file.
46484         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46485         * doc/posix-functions/perror.texi: Mention the perror module.
46486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46487         REPLACE_PERROR.
46488         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46489         REPLACE_PERROR.
46490
46491 2008-09-14  Bruno Haible  <bruno@clisp.org>
46492
46493         * modules/stdio (Makefile.am): Reorder to match the order in
46494         lib/stdio.in.h.
46495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46496
46497 2008-09-13  Bruno Haible  <bruno@clisp.org>
46498
46499         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46500
46501 2008-09-13  Bruno Haible  <bruno@clisp.org>
46502
46503         Extend strerror to cover the added errno values.
46504         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46505         (rpl_strerror): Provide error messages for the added errno values and
46506         for the WSA* values.
46507         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46508         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46509         strerror.
46510         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46511         * modules/strerror (Depends-on): Add errno.
46512         * doc/posix-functions/strerror.texi: Document the change.
46513         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46514         and EOVERFLOW.
46515
46516 2008-09-13  Bruno Haible  <bruno@clisp.org>
46517
46518         * modules/EOVERFLOW: Remove file.
46519         * m4/eoverflow.m4: Remove file.
46520         * modules/EOVERFLOW-tests: Remove file.
46521         * tests/test-EOVERFLOW.c: Remove file.
46522         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46523         * modules/ftell (Depends-on): Likewise.
46524         * modules/getdelim (Depends-on): Likewise.
46525         * modules/getugroups (Depends-on): Likewise.
46526         * modules/poll (Depends-on): Likewise.
46527         * modules/snprintf (Depends-on): Likewise.
46528         * modules/sprintf-posix (Depends-on): Likewise.
46529         * modules/vasnprintf (Depends-on): Likewise.
46530         * modules/vasprintf (Depends-on): Likewise.
46531         * modules/vfprintf-posix (Depends-on): Likewise.
46532         * modules/vsnprintf (Depends-on): Likewise.
46533         * modules/vsprintf-posix (Depends-on): Likewise.
46534         * modules/xvasprintf (Depends-on): Likewise.
46535         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46536         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46537         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46538         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46539         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46540         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46541         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46542         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46543         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46544         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46545         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46546         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46547         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46548         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46549         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46550         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46551         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46552         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46553         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46554         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46555         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46556         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46557         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46558         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46559         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46560         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46561         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46562         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46563         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46564         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46565         * MODULES.html.sh: Remove EOVERFLOW.
46566         * NEWS: Mention the change.
46567
46568 2008-09-13  Bruno Haible  <bruno@clisp.org>
46569
46570         * modules/errno-tests: New file.
46571         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46572
46573         * lib/errno.in.h: New file.
46574         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46575         * modules/errno: New file.
46576         * doc/posix-headers/errno.texi: Update documentation.
46577         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46578
46579 2008-09-13  Bruno Haible  <bruno@clisp.org>
46580
46581         * tests/test-poll.c: Use #if for native Windows, rather than testing
46582         __MSVCRT__.
46583
46584 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46585             Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/glob.c: Don't include <pwd.h> on native Windows.
46588         (WINDOWS32): New macro.
46589         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46590
46591 2008-09-13  Bruno Haible  <bruno@clisp.org>
46592
46593         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46594         (ETIMEDOUT): Remove macro.
46595         (glthread_cond_timedwait_multithreaded): New declaration.
46596         (glthread_cond_timedwait): Use it.
46597         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46598         (glthread_cond_timedwait_multithreaded): New function.
46599
46600 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46601
46602         * modules/poll-tests: Do not check for io.h.
46603         * tests/test-poll.c: Check for __MSVCRT__ instead.
46604
46605 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46606
46607         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46608         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46609         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46610
46611 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46612
46613         * modules/poll-tests: New.
46614         * tests/test-poll.c: New.
46615
46616 2008-09-12  Eric Blake  <ebb9@byu.net>
46617
46618         frexp: test for NetBSD failure on -0.0
46619         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46620         not all, bugs from NetBSD 3.0 have been fixed.
46621         * doc/posix-functions/frexp.texi (frexp): Document bug.
46622         Reported by Thomas Klausner.
46623
46624         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46625         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46626         literal -0.0.
46627         Reported by Jonathan C. Patschke <jp@centtech.com>.
46628
46629 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46630
46631         * lib/glthread/cond.h: Use dummy implementation also if
46632         USE_WIN32_THREADS.
46633
46634 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46635
46636         * modules/fnmatch-posix (License): Change to LGPLv2+.
46637         * modules/fnmatch-gnu (License): Likewise.
46638
46639 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46640
46641         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46642
46643 2008-09-11  Jim Meyering  <meyering@redhat.com>
46644
46645         * users.txt: Add gtk-vnc.
46646
46647 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46648
46649         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46650         rotate amounts.
46651
46652         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46653         required for 16-bit and 8-bit rotates.
46654         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46655         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46656         UINT8_MAX instead of hard-coded constants.
46657         Suggested by Paul Eggert.
46658
46659 2008-09-07  Bruno Haible  <bruno@clisp.org>
46660
46661         * tests/test-striconveh.c (main): Check behaviour when converting from
46662         UTF-7.
46663
46664         Make striconveh work better with stateful encodings.
46665         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46666         that iconv does not increment the inptr when returning -1/EINVAL.
46667
46668 2008-09-07  Bruno Haible  <bruno@clisp.org>
46669
46670         * build-aux/config.rpath: Update according to libtool-2.2.6.
46671         * build-aux/config.libpath: Likewise.
46672
46673 2008-09-06  Bruno Haible  <bruno@clisp.org>
46674
46675         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46676         * lib/freadptr.c (freadptr): Likewise.
46677         * lib/freadseek.c (freadptrinc): Likewise.
46678         Reported by Simon Josefsson.
46679
46680 2008-09-06  Bruno Haible  <bruno@clisp.org>
46681
46682         * modules/freadptr (License): Change to LGPLv2+.
46683         * modules/freadseek (License): Likewise.
46684         Suggested by Eric Blake.
46685
46686         * modules/memchr2 (License): Change to LGPLv2+.
46687         Approved by Eric Blake.
46688
46689 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46690             Bruno Haible  <bruno@clisp.org>
46691
46692         Make gnulib-tool work with native 'sed' on AIX.
46693         * gnulib-tool (sed_noop): New variable.
46694         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46695         func_add_or_update, func_create_testdir): Use it to initialize sed
46696         script variables.
46697         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46698
46699 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46700             Bruno Haible  <bruno@clisp.org>
46701
46702         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46703         also works after #include directives.
46704
46705 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46706
46707         getdate.y: reject an out-of-range timezone value
46708         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46709         the range [-24...+24].  When specified with only one or two digits,
46710         * tests/test-getdate.c: Tests for the fix.
46711         * doc/getdate.texi: Document this change.
46712
46713 2008-09-03  Bruno Haible  <bruno@clisp.org>
46714
46715         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46716
46717 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46718
46719         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46720         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46721         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46722         Blake <ebb9@byu.net>.
46723
46724         * tests/test-bitrotate.c: Add more test vectors.
46725
46726 2008-09-02  Eric Blake  <ebb9@byu.net>
46727
46728         vasnprintf-posix: handle large precision via %.*d
46729         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46730         when handling it ourselves.
46731         * tests/test-vasnprintf-posix.c (test_function): Add test.
46732         * tests/test-snprintf-posix.h (test_function): Likewise.
46733         * tests/test-sprintf-posix.h (test_function): Likewise.
46734         * tests/test-vasprintf-posix.c (test_function): Likewise.
46735         Reported by Alain Guibert.
46736
46737 2008-09-01  Eric Blake  <ebb9@byu.net>
46738
46739         c-stack: make configure-time check more robust
46740         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46741         successful sigaction call.
46742         Reported by Tom G. Christensen.
46743
46744 2008-09-01  Bruno Haible  <bruno@clisp.org>
46745
46746         New module 'findprog-lgpl'.
46747         * modules/findprog-lgpl: New file.
46748         * lib/findprog-lgpl.c: New file.
46749         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46750         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46751         to decide whether to use strdup or xstrdup, concatenated_filename or
46752         xconcatenated_filename.
46753
46754 2008-09-01  Bruno Haible  <bruno@clisp.org>
46755
46756         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46757         'xconcat-filename' (GPL).
46758         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46759         (License): Change to LGPLv2+.
46760         * modules/xconcat-filename: New file.
46761         * lib/concat-filename.h (concatenated_filename): Change specification.
46762         (xconcatenated_filename): New declaration.
46763         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46764         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46765         memory situations.
46766         * lib/xconcat-filename.c: New file.
46767         * NEWS: Mention the change.
46768         * lib/findprog.c: Include concat-filename.h, not filename.h.
46769         (find_in_path): Use xconcatenated_filename instead of
46770         concatenated_filename.
46771         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46772         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46773         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46774         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46775         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46776         instead of concatenated_filename.
46777         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46778         (execute_java_class): Use xconcatenated_filename instead of
46779         concatenated_filename.
46780         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46781         * modules/javacomp (Depends-on): Likewise.
46782         * modules/javaexec (Depends-on): Likewise.
46783
46784 2008-09-01  Bruno Haible  <bruno@clisp.org>
46785
46786         Split module 'filename' into 'filename' and 'concat-filename'.
46787         * modules/filename: Keep only lib/filename.h.
46788         (License): Change to LGPLv2+.
46789         * modules/concat-filename: New file, extracted from modules/filename.
46790         * lib/filename.h (concatenated_filename): Remove declaration.
46791         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46792         * lib/concat-filename.c: Include concat-filename.h.
46793         * NEWS: Mention the change.
46794
46795 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46796
46797         * lib/bitrotate.h (rotl8, rotr8): Add.
46798
46799         * modules/bitrotate (configure.ac): Need
46800         AC_REQUIRE([AC_C_INLINE]).
46801         (Description): Mention stdint.h.  Reported by Bruno Haible
46802         <bruno@clisp.org>.
46803
46804         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46805         Paolo Bonzini <bonzini@gnu.org>.
46806
46807 2008-08-31  Bruno Haible  <bruno@clisp.org>
46808
46809         Assume Solaris specific bi-arch conventions on Solaris systems.
46810         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46811         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46812         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46813         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46814         like acl_libdirstem.
46815         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46816         acl_libdirstem.
46817         * NEWS: Mention the change.
46818         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46819
46820 2008-08-31  Jim Meyering  <meyering@redhat.com>
46821
46822         * lib/strftime.h: Add comments describing the two added arguments.
46823
46824         remove duplicate #include directives
46825         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46826         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46827
46828 2008-08-31  Bruno Haible  <bruno@clisp.org>
46829
46830         New module 'sigpipe-die'.
46831         * modules/sigpipe-die: New file.
46832         * lib/sigpipe-die.h: New file.
46833         * lib/sigpipe-die.c: New file.
46834         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46835
46836 2008-08-31  Bruno Haible  <bruno@clisp.org>
46837
46838         Don't override previously installed signal handlers.
46839         * lib/fatal-signal.c (saved_sigactions): New variable.
46840         (uninstall_handlers): Reset the signal to the saved handler, not
46841         to SIG_DFL (except when ignored).
46842         (install_handlers): Save the previous handlers.
46843
46844 2008-08-30  Bruno Haible  <bruno@clisp.org>
46845
46846         * gnulib-tool (func_reset_sigpipe): New function.
46847         (func_get_automake_snippet, func_modules_transitive_closure,
46848         func_import): Invoke it before a join command that reads from stdin,
46849         to avoid "echo: write error: Broken pipe" error messages on stderr.
46850         Reported by Sam Steingold <sds@gnu.org>.
46851
46852 2008-08-30  Bruno Haible  <bruno@clisp.org>
46853
46854         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46855         Code copied from m4/open.m4.
46856         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46857         access and the filename ends in a slash. Code copied from lib/open.c.
46858         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46859         * tests/test-fopen.c (main): Check against bug with trailing slash.
46860
46861 2008-08-29  Bruno Haible  <bruno@clisp.org>
46862
46863         Avoid some "gcc -pedantic" warnings.
46864         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46865         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46866         * lib/dirent.in.h: Likewise.
46867         * lib/fcntl.in.h: Likewise.
46868         * lib/float.in.h: Likewise.
46869         * lib/iconv.in.h: Likewise.
46870         * lib/inttypes.in.h: Likewise.
46871         * lib/locale.in.h: Likewise.
46872         * lib/math.in.h: Likewise.
46873         * lib/netinet_in.in.h: Likewise.
46874         * lib/search.in.h: Likewise.
46875         * lib/signal.in.h: Likewise.
46876         * lib/stdarg.in.h: Likewise.
46877         * lib/stdint.in.h: Likewise.
46878         * lib/stdio.in.h: Likewise.
46879         * lib/stdlib.in.h: Likewise.
46880         * lib/string.in.h: Likewise.
46881         * lib/strings.in.h: Likewise.
46882         * lib/sys_select.in.h: Likewise.
46883         * lib/sys_socket.in.h: Likewise.
46884         * lib/sys_stat.in.h: Likewise.
46885         * lib/sys_time.in.h: Likewise.
46886         * lib/sysexits.in.h: Likewise.
46887         * lib/time.in.h: Likewise.
46888         * lib/unistd.in.h: Likewise.
46889         * lib/wchar.in.h: Likewise.
46890         * lib/wctype.in.h: Likewise.
46891         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46892         * modules/fchdir (Makefile.am): Likewise.
46893         * modules/fcntl (Makefile.am): Likewise.
46894         * modules/float (Makefile.am): Likewise.
46895         * modules/iconv_open (Makefile.am): Likewise.
46896         * modules/inttypes (Makefile.am): Likewise.
46897         * modules/locale (Makefile.am): Likewise.
46898         * modules/math (Makefile.am): Likewise.
46899         * modules/netinet_in (Makefile.am): Likewise.
46900         * modules/search (Makefile.am): Likewise.
46901         * modules/signal (Makefile.am): Likewise.
46902         * modules/stdarg (Makefile.am): Likewise.
46903         * modules/stdint (Makefile.am): Likewise.
46904         * modules/stdio (Makefile.am): Likewise.
46905         * modules/stdlib (Makefile.am): Likewise.
46906         * modules/string (Makefile.am): Likewise.
46907         * modules/strings (Makefile.am): Likewise.
46908         * modules/sys_select (Makefile.am): Likewise.
46909         * modules/sys_socket (Makefile.am): Likewise.
46910         * modules/sys_stat (Makefile.am): Likewise.
46911         * modules/sys_time (Makefile.am): Likewise.
46912         * modules/sysexits (Makefile.am): Likewise.
46913         * modules/time (Makefile.am): Likewise.
46914         * modules/unistd (Makefile.am): Likewise.
46915         * modules/wchar (Makefile.am): Likewise.
46916         * modules/wctype (Makefile.am): Likewise.
46917         Reported by Reuben Thomas <rrt@sc3d.org>.
46918
46919 2008-08-29  Bruno Haible  <bruno@clisp.org>
46920
46921         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46922         any more.
46923
46924 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46925
46926         * MODULES.html.sh (Misc): Add bitrotate.
46927
46928         * modules/bitrotate: New file.
46929
46930         * lib/bitrotate.h: New file.
46931
46932         * modules/bitrotate-tests: New file.
46933
46934         * tests/test-bitrotate.c: New file.
46935
46936         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46937         on the bitrotate module.
46938
46939         * lib/arctwo.c: Use new bitrotate module.
46940
46941 2008-08-29  Jim Meyering  <meyering@redhat.com>
46942
46943         bootstrap: merge changes from coreutils
46944         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46945         of copied files.  Remove a kludge, now that this is fixed.
46946         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46947         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46948         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46949
46950 2008-08-29  Bruno Haible  <bruno@clisp.org>
46951
46952         * MODULES.html.sh: Remove --cvs-urls option.
46953
46954 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46955
46956         maint.mk: adjust to file name change
46957         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46958
46959 2008-08-28  Jim Meyering  <meyering@redhat.com>
46960
46961         * modules/getndelim2 (License): Relicense to LGPLv2+.
46962         Approved by Richard Stallman for the version of 1995, and by
46963         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46964
46965 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46966
46967         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46968         dummy if one is not available.  Do not touch them if
46969         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46970         (getc_maybe_unlocked): New.
46971         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46972
46973 2008-08-26  Eric Blake  <ebb9@byu.net>
46974
46975         doc/INSTALL: resync from autoconf
46976         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46977         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46978         moving...
46979         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46980         * INSTALL: Regenerate.
46981         * INSTALL.ISO: New file.
46982         * INSTALL.UTF-8: Likewise.
46983
46984 2008-08-26  Jim Meyering  <meyering@redhat.com>
46985
46986         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46987         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46988         these definitions conditional, so that they may be overridden, too.
46989
46990 2008-08-26  Bruno Haible  <bruno@clisp.org>
46991
46992         Generate INSTALL file variants with prettier quotes.
46993         * doc/Makefile (INSTALL_PRELUDE): New macro.
46994         (INSTALL): Use it.
46995         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46996
46997 2008-08-26  Bruno Haible  <bruno@clisp.org>
46998
46999         Run makeinfo in an English locale.
47000         * doc/Makefile (MAKEINFO): New variable.
47001
47002 2008-08-26  Bruno Haible  <bruno@clisp.org>
47003
47004         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47005         Suggested by Eric Blake.
47006
47007 2008-08-25  Bruno Haible  <bruno@clisp.org>
47008
47009         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47010
47011 2008-08-25  Eric Blake  <ebb9@byu.net>
47012
47013         c-stack: test that stack overflow can be caught
47014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47015         that platform allows handling stack overflow; at least OS/2 EMX
47016         has sigaltstack, but crashes before transferring control to
47017         handler on stack overflow.
47018         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47019         check for HAVE_STACK_OVERFLOW_HANDLING.
47020         Reported by Elbert Pol.
47021
47022 2008-08-25  Bruno Haible  <bruno@clisp.org>
47023
47024         * doc/posix-functions/strftime.texi: Fix description of strftime
47025         module.
47026
47027 2008-08-24  Bruno Haible  <bruno@clisp.org>
47028
47029         * tests/uniwidth/test-uc_width2.c: New file.
47030         * tests/uniwidth/test-uc_width2.sh: New file.
47031         * modules/uniwidth/width-tests (Files): Add the new files.
47032         (TESTS): Add uniwidth/test-uc_width2.sh.
47033         (TESTS_ENVIRONMENT): New variable.
47034         (check_PROGRAMS): Add test-uc_width2.
47035         (test_uc_width2_SOURCES): New variable.
47036
47037         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47038         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47039         not 0x00AB.
47040         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47041
47042 2008-08-22  Eric Blake  <ebb9@byu.net>
47043
47044         test-lock, test-tls: mention why a test is skipped
47045         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47046         skipped.
47047         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47048
47049         count-one-bits: relax license
47050         * modules/count-one-bits (License): Relicense to LGPLv2+.
47051         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47052
47053 2008-08-22  Andreas Schwab  <schwab@suse.de>
47054
47055         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47056         Remove spurious space in assignment.
47057
47058 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47059
47060         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47061         Paul Eggert <eggert@CS.UCLA.EDU>.
47062
47063 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47064
47065         * modules/gettext: Add m4/threadlib.m4.
47066
47067 2008-08-19  Eric Blake  <ebb9@byu.net>
47068
47069         test-c-stack: fix compilation failure on FreeBSD 5.0
47070         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47071         headers before <sys/resource.h>.
47072         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47073         the bug.
47074         Reported by Nelson H. F. Beebe.
47075
47076         strverscmp: migrate from "strverscmp.h" to <string.h>
47077         * modules/string (Makefile.am): Add new hooks.
47078         * modules/strverscmp (Files): Remove strverscmp.h.
47079         (Depends-on): Add string.
47080         (configure.ac): Add indicator.
47081         (Include): Mention new header.
47082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47083         defaults.
47084         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47085         results.
47086         * lib/strverscmp.h: Delete.
47087         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47088         * tests/test-strverscmp.c (includes): Adjust client.
47089         * lib/check-version.c (includes): Likewise.
47090         * NEWS: Document the change.
47091
47092         strverscmp: add unit test
47093         * modules/strverscmp-tests: New file.
47094         * tests/test-strverscmp.c: Likewise.
47095
47096 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47097
47098         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47099         regarding Windows crypto stuff, from Mono.
47100
47101 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47102
47103         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47104         if present, for intel RND.  Return error on failures.
47105
47106 2008-08-18  Ben Pfaff  <blp@gnu.org>
47107
47108         gitlog-to-changelog: give better diagnostic for failed pipe-open
47109         * build-aux/gitlog-to-changelog: Improve error message: suggest
47110         that the version of Git may be too old.
47111
47112 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47113
47114         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47115         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47116
47117 2008-08-18  Bruno Haible  <bruno@clisp.org>
47118
47119         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47120         pthread_in_use().
47121
47122 2008-08-18  Bruno Haible  <bruno@clisp.org>
47123
47124         * lib/glthread/threadlib.c: Include <pthread.h>.
47125
47126 2008-08-18  Bruno Haible  <bruno@clisp.org>
47127
47128         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47129         glthread_recursive_lock_* macros.
47130         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47131         Fix syntax error.
47132
47133 2008-08-18  Bruno Haible  <bruno@clisp.org>
47134
47135         * lib/glthread/thread.c: Avoid forcing a context switch right after
47136         thread creation.
47137
47138 2008-08-17  Bruno Haible  <bruno@clisp.org>
47139
47140         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47141         * lib/glthread/thread.h: Provide Win32 specific implementation.
47142         * modules/thread (Files): Add lib/glthread/thread.c.
47143         (Depends-on): Add lock.
47144         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47145
47146 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47147
47148         New module 'yield'.
47149         * modules/yield: New file.
47150         * lib/glthread/yield.h: New file.
47151         * m4/yield.m4: New file.
47152         * MODULES.html.sh (Multithreading): Add yield.
47153
47154 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47155
47156         New module 'thread'.
47157         * modules/thread: New file.
47158         * lib/glthread/thread.h: New file.
47159         * m4/thread.m4: New file.
47160         * MODULES.html.sh (Multithreading): Add thread.
47161
47162 2008-08-17  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/glthread/lock.h: Include <stdlib.h> always.
47165         * lib/glthread/tls.h: Likewise.
47166         * lib/glthread/cond.h: Likewise.
47167
47168 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47169
47170         New module 'cond'.
47171         * modules/cond: New file.
47172         * lib/glthread/cond.h: New file.
47173         * lib/glthread/cond.c: New file.
47174         * m4/cond.m4: New file.
47175         * MODULES.html.sh (Multithreading): Add cond.
47176
47177 2008-08-16  Eric Blake  <ebb9@byu.net>
47178
47179         c-stack: fix regression on Irix 5.3 from 2008-06-21
47180         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47181         sa_sigaction...
47182         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47183         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47184         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47185         * modules/signal (Makefile.am): Use the value.
47186         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47187         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47188         * doc/posix-headers/signal.texi (signal.h): Document this
47189         portability issue.
47190         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47191         Reported by Tom G. Christensen.
47192
47193 2008-08-17  Bruno Haible  <bruno@clisp.org>
47194
47195         New module 'threadlib'.
47196         * modules/threadlib: New file.
47197         * lib/glthread/threadlib.c: New file, extracted from
47198         lib/glthread/lock.c.
47199         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47200         functions.
47201         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47202         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47203         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47204         macros.
47205         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47206         (gl_DISABLE_THREADS): Remove macro.
47207         * modules/lock (Files): Remove build-aux/config.rpath.
47208         (Depends-on): Remove havelib. Add threadlib.
47209         (configure.ac-early): Remove section.
47210         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47211         * modules/tls (Depends-on): Remove lock. Add threadlib.
47212         (Link): New section, copied from threadlib.
47213         * MODULES.html.sh (Multithreading): Add threadlib.
47214
47215 2008-08-14  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47218         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47219         glthread_rwlock_unlock, glthread_rwlock_destroy,
47220         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47221         glthread_recursive_lock_destroy): Define as macros always.
47222         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47223         glthread_lock_lock.
47224         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47225         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47226         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47227         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47228         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47229         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47230         (glthread_recursive_lock_lock_func): Renamed from
47231         glthread_recursive_lock_lock.
47232         (glthread_recursive_lock_unlock_func): Renamed from
47233         glthread_recursive_lock_unlock.
47234         (glthread_recursive_lock_destroy_func): Renamed from
47235         glthread_recursive_lock_destroy.
47236
47237 2008-08-14  Bruno Haible  <bruno@clisp.org>
47238
47239         * lib/glthread/lock.h: Renamed from lib/lock.h.
47240         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47241         * lib/glthread/tls.h: Renamed from lib/tls.h.
47242         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47243         * lib/fstrcmp.c: Update includes.
47244         * lib/strsignal.c: Update includes.
47245         * modules/lock (Files, Makefile.am): Update.
47246         (Include): Change to "glthread/lock.h".
47247         * modules/tls (Files, Makefile.am): Update.
47248         (Include): Change to "glthread/tls.h".
47249         * tests/test-lock.c: Update includes.
47250         * tests/test-tls.c: Update includes.
47251         * NEWS: Mention the renamed header files.
47252
47253 2008-08-11  Jim Meyering  <meyering@redhat.com>
47254
47255         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47256
47257 2008-08-11  Eric Blake  <ebb9@byu.net>
47258
47259         test-c-stack: avoid C99-ism
47260         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47261         before statement.
47262         Reported by Alain Guibert.
47263
47264 2008-08-10  Jim Meyering  <meyering@redhat.com>
47265
47266         ensure that return value of uinttostr et al are not ignored
47267         * lib/inttostr.h (__GNUC_PREREQ): Define.
47268         (__attribute_warn_unused_result__): Define.
47269         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47270
47271 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47272
47273         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47274         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47275
47276 2008-08-07  Jim Meyering  <meyering@redhat.com>
47277
47278         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47279
47280         * modules/mkstemp (License): Relicense under LGPLv2+.
47281         * modules/tempname (License): Likewise.
47282
47283 2008-08-06  Bruno Haible  <bruno@clisp.org>
47284
47285         * lib/poll.c (poll): Further micro-optimization.
47286
47287 2008-08-06  Jim Meyering  <meyering@redhat.com>
47288
47289         inet_pton.c: use locale-independent tolower
47290         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47291         (inet_pton6): Use c_tolower rather than tolower.
47292         * modules/inet_pton (Depends-on): Add c-ctype.
47293
47294 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47295
47296         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47297         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47298
47299 2008-08-06  Jim Meyering  <meyering@redhat.com>
47300
47301         * modules/inet_pton (License): Relicense under LGPLv2+.
47302
47303 2008-08-03  Bruno Haible  <bruno@clisp.org>
47304
47305         Additional non-aborting API for lock and tls.
47306         * lib/lock.h: Include <errno.h>.
47307         (glthread_lock_init): New macro/function.
47308         (gl_lock_init): Define as wrapper around glthread_lock_init.
47309         (glthread_lock_lock): New macro/function.
47310         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47311         (glthread_lock_unlock): New macro/function.
47312         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47313         (glthread_lock_destroy): New macro/function.
47314         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47315         (glthread_rwlock_init): New macro/function.
47316         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47317         (glthread_rwlock_rdlock): New macro/function.
47318         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47319         (glthread_rwlock_wrlock): New macro/function.
47320         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47321         (glthread_rwlock_unlock): New macro/function.
47322         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47323         (glthread_rwlock_destroy): New macro/function.
47324         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47325         (glthread_recursive_lock_init): New macro/function.
47326         (gl_recursive_lock_init): Define as wrapper around
47327         glthread_recursive_lock_init.
47328         (glthread_recursive_lock_lock): New macro/function.
47329         (gl_recursive_lock_lock): Define as wrapper around
47330         glthread_recursive_lock_lock.
47331         (glthread_recursive_lock_unlock): New macro/function.
47332         (gl_recursive_lock_unlock): Define as wrapper around
47333         glthread_recursive_lock_unlock.
47334         (glthread_recursive_lock_destroy): New macro/function.
47335         (gl_recursive_lock_destroy): Define as wrapper around
47336         glthread_recursive_lock_destroy.
47337         (glthread_once): New macro/function.
47338         (gl_once): Define as wrapper around glthread_once.
47339         Update function declarations.
47340         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47341         glthread_rwlock_init. Return error code.
47342         (glthread_rwlock_rdlock_multithreaded): Renamed from
47343         glthread_rwlock_rdlock. Return error code.
47344         (glthread_rwlock_wrlock_multithreaded): Renamed from
47345         glthread_rwlock_wrlock. Return error code.
47346         (glthread_rwlock_unlock_multithreaded): Renamed from
47347         glthread_rwlock_unlock. Return error code.
47348         (glthread_rwlock_destroy_multithreaded): Renamed from
47349         glthread_rwlock_destroy. Return error code.
47350         (glthread_recursive_lock_init_multithreaded): Renamed from
47351         glthread_recursive_lock_init. Return error code.
47352         (glthread_recursive_lock_lock_multithreaded): Renamed from
47353         glthread_recursive_lock_lock. Return error code.
47354         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47355         glthread_recursive_lock_unlock. Return error code.
47356         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47357         glthread_recursive_lock_destroy. Return error code.
47358         (glthread_once_call): Make static.
47359         (glthread_once_multithreaded): Renamed from glthread_once.
47360         * lib/tls.h: Include <errno.h>.
47361         (glthread_tls_key_init): New macro/function.
47362         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47363         (glthread_tls_set): New macro/function.
47364         (gl_tls_set): Define as wrapper around glthread_tls_set.
47365         (glthread_tls_key_destroy): New macro/function.
47366         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47367         Update function declarations.
47368         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47369         glthread_tls_get.
47370         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47371
47372 2008-08-04  Eric Blake  <ebb9@byu.net>
47373
47374         gnumakefile: use space, not TAB, outside of targets
47375         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47376
47377 2008-08-02  Jim Meyering  <meyering@redhat.com>
47378
47379         getdate.y: avoid locale-dependent date parsing failure
47380         In Turkish locales, getdate would fail to recognize keywords
47381         containing a lowercase "i".  The solution is not to rely on
47382         locale-sensitive case-conversion.
47383         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47384         (lookup_word): Use c_toupper in place of toupper.
47385         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47386         Reported by Vefa Bicakci <bicave@superonline.com> in
47387         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47388         * modules/getdate (Depends-on): Add c-ctype.
47389
47390 2008-08-02  Bruno Haible  <bruno@clisp.org>
47391
47392         * gnulib-tool (func_import): When updating or creating a .gitignore
47393         file, prepend each added line with a slash, and ignore leading slashes
47394         from the existing lines.
47395         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47396
47397 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47398
47399         Portability fix for GNU make 3.79.1.
47400         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47401         versions do not understand.
47402
47403 2008-08-01  Bruno Haible  <bruno@clisp.org>
47404
47405         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47406         * tests/test-isnanf.h (zero): New variable.
47407         (main): Avoid literal -0.0f.
47408         * tests/test-isnand.h (zero): New variable.
47409         (main): Avoid literal -0.0.
47410         * tests/test-isnanl.h (zero): New variable.
47411         (main): Avoid literal -0.0L.
47412         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47413         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47414         -0.0, -0.0L.
47415         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47416         (test_signbitd): Avoid literal -0.0.
47417         (test_signbitl): Avoid literal -0.0L.
47418         * tests/test-ceilf1.c (zero): New variable.
47419         (main): Avoid literal -0.0f.
47420         * tests/test-ceill.c (zero): New variable.
47421         (main): Avoid literal -0.0L.
47422         * tests/test-floorf1.c (zero): New variable.
47423         (main): Avoid literal -0.0f.
47424         * tests/test-floorl.c (zero): New variable.
47425         (main): Avoid literal -0.0L.
47426         * tests/test-roundf1.c (zero): New variable.
47427         (main): Avoid literal -0.0f.
47428         * tests/test-round1.c (zero): New variable.
47429         (main): Avoid literal -0.0.
47430         * tests/test-roundl.c (zero): New variable.
47431         (main): Avoid literal -0.0L.
47432         * tests/test-truncf1.c (zero): New variable.
47433         (main): Avoid literal -0.0f.
47434         * tests/test-trunc1.c (zero): New variable.
47435         (main): Avoid literal -0.0.
47436         * tests/test-truncl.c (zero): New variable.
47437         (main): Avoid literal -0.0L.
47438         * tests/test-frexp.c (zero): New variable.
47439         (main): Avoid literal -0.0.
47440         * tests/test-frexpl.c (zero): New variable.
47441         (main): Avoid literal -0.0L.
47442         * tests/test-ldexpl.c (zero): New variable.
47443         (main): Avoid literal -0.0L.
47444         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47445         (zerod, zerol): New variables.
47446         (test_function): Avoid literals -0.0, -0.0L.
47447         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47448         (zerod, zerol): New variables.
47449         (test_function): Avoid literals -0.0, -0.0L.
47450         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47451         (zerod, zerol): New variables.
47452         (test_function): Avoid literals -0.0, -0.0L.
47453         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47454         (zerod, zerol): New variables.
47455         (test_function): Avoid literals -0.0, -0.0L.
47456         * tests/test-strtod.c (zero): New variable.
47457         (main): Avoid literal -0.0.
47458         Reported by Jonathan C. Patschke <jp@centtech.com>.
47459
47460 2008-07-31  Jim Meyering  <meyering@redhat.com>
47461
47462         sha256.h: correct definition of SHA224_DIGEST_SIZE
47463         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47464         Reported by Paulie Pena IV <paulie4@gmail.com>.
47465         Define as 224 / 8, rather than as a literal.
47466         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47467         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47468         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47469
47470 2008-07-31  Bruno Haible  <bruno@clisp.org>
47471
47472         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47473         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47474         Reported by Jonathan Patschke <jp@centtech.com>.
47475
47476 2008-07-31  Bruno Haible  <bruno@clisp.org>
47477
47478         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47479         Reported by Paolo Bonzini <bonzini@gnu.org>.
47480
47481 2008-07-30  Eric Blake  <ebb9@byu.net>
47482
47483         test-strtod: allow compilation without -lm
47484         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47485         Reported by Dennis Clarke <blastwave@gmail.com>.
47486
47487 2008-07-28  Jim Meyering  <meyering@redhat.com>
47488
47489         bootstrap: work also when there are no .po files in po/
47490         * build-aux/bootstrap (update_po_files): Complete the change
47491         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47492
47493 2008-07-27  Jim Meyering  <meyering@redhat.com>
47494
47495         * users.txt: Add zile.
47496
47497 2008-07-26  Ben Pfaff  <blp@gnu.org>
47498
47499         Add missing dependencies on new m4/exponent[fdl].m4 files.
47500         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47501         * modules/isnand-nolibm: Add m4/exponentd.m4.
47502         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47503         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47504         m4/isnan[fdl].m4, because the macros actually used moved.
47505         Reported by Jim Meyering.
47506
47507 2008-07-14  Ben Pfaff  <blp@gnu.org>
47508
47509         Add isinf module.
47510         * lib/isinf.c: New file.
47511         * lib/math.in.h: Define isinf macro if we have decided to replace
47512         it.
47513         * m4/isinf.m4: New file.
47514         * m4/math_h.m4: Initialize and substitute variables for isinf
47515         module.
47516         * modules/isinf: New file.
47517         * modules/isinf-tests: New file.
47518         * modules/math: Add substitutions for new module.
47519         * tests/test-isinf.c: New file.
47520         * doc/posix-functions/isinf.texi: Mention new module.
47521         * MODULES.html.sh: Mention new module.
47522
47523 2008-07-14  Ben Pfaff  <blp@gnu.org>
47524
47525         Factor out some macros for use by additional modules.
47526         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47527         exponentf.m4.
47528         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47529         exponentd.m4.
47530         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47531         file exponentl.m4.
47532         * m4/exponentf.m4: New file.
47533         * m4/exponentd.m4: New file.
47534         * m4/exponentl.m4: New file.
47535         * modules/isnanf: Use new file m4/exponentf.m4.
47536         * modules/isnand: Use new file m4/exponentd.m4.
47537         * modules/isnanl: Use new file m4/exponentl.m4.
47538
47539 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47540
47541         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47542         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47543         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47544         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47545
47546         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47547         readlink on platforms without PATH_MAX.
47548
47549 2008-07-21  Eric Blake  <ebb9@byu.net>
47550
47551         Warn, not fail, on stale version.
47552         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47553
47554         Don't allow installation with stale devel version number.
47555         * top/GNUmakefile (_is-install-target): New macro.
47556         (_curr-ver): Forbid installation with stale version number.
47557
47558 2008-07-20  Bruno Haible  <bruno@clisp.org>
47559
47560         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47561         TESTS_ENVIRONMENT.
47562         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47563
47564 2008-07-20  Bruno Haible  <bruno@clisp.org>
47565
47566         * lib/c-stack.h (c_stack_action): Add documentation.
47567         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47568
47569 2008-07-20  Bruno Haible  <bruno@clisp.org>
47570
47571         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47572         * modules/readlink (License): Likewise.
47573
47574 2008-07-17  Eric Blake  <ebb9@byu.net>
47575
47576         * modules/c-stack (Link): Fix typo.
47577
47578         Make c-stack use libsigsegv, when available.
47579         * modules/c-stack (Depends-on): Add libsigsegv.
47580         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47581         needed.
47582         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47583         (segv_handler, overflow_handler, c_stack_action)
47584         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47585         implementation when libsigsegv is available, but only when using
47586         the library is necessary.
47587         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47588         comment, explaining why XSI check fails on Linux.
47589         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47590         * tests/test-c-stack2.sh: Tweak skip message.
47591         * NEWS: Document new link-time requirements.
47592
47593 2008-07-16  Eric Blake  <ebb9@byu.net>
47594
47595         c-stack: Expose false positives when not using libsigsegv.
47596         * modules/c-stack-tests (Files): Expand test.
47597         * tests/test-c-stack.c (main): Add means to conditionally trigger
47598         non-overflow SIGSEGV.
47599         * tests/test-c-stack2.sh: New file.
47600
47601 2008-07-14  Bruno Haible  <bruno@clisp.org>
47602
47603         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47604         Reported by Eric Blake.
47605
47606 2008-07-14  Sam Steingold  <sds@gnu.org>
47607             Bruno Haible  <bruno@clisp.org>
47608
47609         New module libsigsegv.
47610         * modules/libsigsegv: New file.
47611         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47612         modifications.
47613         * MODULES.html.sh (Signal handling): New section.
47614
47615 2008-07-14  Bruno Haible  <bruno@clisp.org>
47616
47617         * modules/unictype/ctype-* (Description): Add the word "function".
47618         Improves the resulting doc in MODULES.html.
47619
47620 2008-07-12  Ben Pfaff  <blp@gnu.org>
47621
47622         Add longlong module.
47623         * modules/longlong: New file.
47624
47625 2008-07-12  Bruno Haible  <bruno@clisp.org>
47626
47627         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47628         to empty.
47629
47630 2008-07-10  Ben Pfaff  <blp@gnu.org>
47631
47632         Add isnan module.
47633         * doc/posix-functions/isnan.texi: Mention new module.
47634         * lib/math.in.h: Define isnan macro if we have decided to replace
47635         it.
47636         * m4/isnan.m4: New file.
47637         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47638         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47639         also.
47640         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47641         redundancy.
47642         * m4/math_h.m4: Initialize and substitute variables for isnan
47643         module.
47644         * modules/isnan: New file.
47645         * modules/isnan-tests: New file.
47646         * modules/math: Add substitutions for new module.
47647         * tests/test-isnan.c: New file.
47648         * MODULES.html.sh: Mention new module.
47649
47650 2008-07-10  Ben Pfaff  <blp@gnu.org>
47651
47652         Add isnanf module.
47653         * lib/isnanf.m4: New file.
47654         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47655         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47656         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47657         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47658         * modules/isnanf: New file.
47659         * modules/isnanf-tests: New file.
47660         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47661         files.
47662         * tests/test-isnanf-nolibm.c: factored most of its contents into
47663         new file tests/test-isnanf.h.
47664         * tests/test-isnanf.h: New file.
47665         * tests/test-isnanf.c: New file.
47666         * MODULES.html.sh: Mention new module.
47667         * doc/glibc-functions/isnanf.texi: Mention new module.
47668
47669 2008-07-10  Ben Pfaff  <blp@gnu.org>
47670
47671         Add isnand module.
47672         * lib/isnand.h: New file.
47673         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47674         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47675         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47676         functionality also.
47677         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47678         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47679         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47680         * modules/isnand: New file.
47681         * modules/isnand-tests: New file.
47682         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47683         files.
47684         * tests/test-isnand-nolibm.c: factored most of its contents into
47685         new file tests/test-isnand.h.
47686         * tests/test-isnand.h: New file.
47687         * tests/test-isnand.c: New file.
47688         * MODULES.html.sh: Mention new module.
47689
47690 2008-07-10  Ben Pfaff  <blp@gnu.org>
47691
47692         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47693         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47694         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47695         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47696         * modules/isnanf-nolibm: Update references to renamed files.
47697         * modules/isnand-nolibm: Likewise.
47698         * modules/isnanf-nolibm-tests: Likewise.
47699         * modules/isnand-nolibm-tests: Likewise.
47700         * lib/frexp.c: Likewise.
47701         * lib/isfinite.c: Likewise.
47702         * lib/signbitd.c: Likewise.
47703         * lib/signbitf.c: Likewise.
47704         * lib/vasnprintf.c: Likewise.
47705         * tests/test-ceilf1.c: Likewise.
47706         * tests/test-ceilf2.c: Likewise.
47707         * tests/test-floorf1.c: Likewise.
47708         * tests/test-floorf2.c: Likewise.
47709         * tests/test-frexp.c: Likewise.
47710         * tests/test-round1.c: Likewise.
47711         * tests/test-round2.c: Likewise.
47712         * tests/test-roundf1.c: Likewise.
47713         * tests/test-strtod.c: Likewise.
47714         * tests/test-trunc1.c: Likewise.
47715         * tests/test-trunc2.c: Likewise.
47716         * tests/test-truncf1.c: Likewise.
47717         * tests/test-truncf2.c: Likewise.
47718         * NEWS: Mention the renamed header files.
47719
47720 2008-07-11  Jim Meyering  <meyering@redhat.com>
47721
47722         vc-list-files: make the last-resort awk code more portable
47723         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47724         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47725         does not support it.
47726
47727 2008-07-10  Eric Blake  <ebb9@byu.net>
47728
47729         Work with tar's bootstrap.
47730         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47731         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47732         an m4 comment.
47733
47734 2008-07-09  Jim Meyering  <meyering@redhat.com>
47735
47736         posix-shell.m4: fix typo that made this test malfunction
47737         * m4/posix-shell.m4: Remove capitalization in variable name.
47738
47739 2008-07-08  Bruno Haible  <bruno@clisp.org>
47740
47741         * m4/onceonly.m4: Update comments.
47742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47743
47744 2008-07-04  Jim Meyering  <meyering@redhat.com>
47745
47746         * users.txt: Add vc-dwim.
47747         (bison, coreutils): Use the gitweb URL.
47748
47749 2008-07-03  Jim Meyering  <meyering@redhat.com>
47750
47751         * users.txt: Add libffcall.  From Sam Steingold.
47752
47753 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47754
47755         getdate.y: do not ignore TZ with relative day, month or year offset
47756         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47757         relative-date-handling, since otherwise, the latter would clobber the
47758         sole output (an updated Start value) of the tz-handling block.
47759         * tests/test-getdate.c: Tests for the fix
47760
47761 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47762
47763         Recognize 'foo_LIBRARIES += libgnu.a'.
47764         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47765         makefile snippet has already specified an installation location,
47766         also using '+='.
47767
47768 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47769
47770         getdate.y: factor out common actions
47771         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47772         Use them in place of open-coded actions.
47773
47774 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47775
47776         Add self-test for getdate module.
47777         * modules/getdate-tests: New file.
47778         * tests/test-getdate.c: New file.
47779
47780 2008-06-29  Bruno Haible  <bruno@clisp.org>
47781
47782         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47783         .gitignore.
47784         Reported by Sylvain Beucler <beuc@beuc.net>.
47785
47786 2008-06-29  Bruno Haible  <bruno@clisp.org>
47787
47788         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47789         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47790
47791 2008-06-29  Bruno Haible  <bruno@clisp.org>
47792
47793         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47794         EXTRA_DIST.
47795         Reported by Sylvain Beucler <beuc@beuc.net>.
47796
47797 2008-06-26  Jim Meyering  <meyering@redhat.com>
47798
47799         make several modules depend on the "open" module
47800         This provides slightly increased consistency when opening-for-write
47801         the name of a non-directory spelled with a trailing slash.
47802         * modules/chdir-safer: Likewise.
47803         * modules/chown: Likewise.
47804         * modules/clean-temp: Likewise.
47805         * modules/copy-file: Likewise.
47806         * modules/fchdir: Likewise.
47807         * modules/fcntl-safer: Likewise.
47808         * modules/pipe: Likewise.
47809         * modules/utime: Likewise.
47810         Prompted by Eric Blake and Bruno Haible.
47811
47812 2008-06-24  Andreas Schwab  <schwab@suse.de>
47813
47814         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47815         literals can be used as initializers for global variables.
47816
47817 2008-06-23  Eric Blake  <ebb9@byu.net>
47818
47819         Make gnulib-cache.m4 easier to diff.
47820         * gnulib-tool (func_import): Allow newlines when reading cached
47821         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47822
47823 2008-06-23  Bruno Haible  <bruno@clisp.org>
47824
47825         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47826         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47827         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47828         m4/signalblocking.m4.
47829         (gl_PREREQ_SIGACTION): Don't invoke it.
47830         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47831         gl_PREREQ_SIG_HANDLER_H.
47832         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47833         Don't check for sigaction here.
47834
47835 2008-06-23  Bruno Haible  <bruno@clisp.org>
47836
47837         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47838         (install_handlers): Don't set the SA_RESETHAND flag.
47839
47840 2008-06-23  Bruno Haible  <bruno@clisp.org>
47841
47842         * m4/sigaction.m4: Comment fixes.
47843         * lib/signal.in.h: Likewise.
47844
47845 2008-06-23  Eric Blake  <ebb9@byu.net>
47846
47847         Fix typo.
47848         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47849
47850         Avoid SA_ namespace.
47851         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47852         Reported by Ralf Wildenhues.
47853
47854         Avoid test failure due to SA_RESTORER.
47855         * tests/test-sigaction.c (SA_MASK): New macro.
47856         (main): Avoid failing due to extension flags being set.
47857         Reported by Jim Meyering.
47858
47859         Revert use of sig-handler.h in sigprocmask.c.
47860         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47861         it requires the existence of struct sigaction.
47862         * lib/sigprocmask.c (handler_t): Restore typedef.
47863         (rpl_signal, old_handlers): Use local type.
47864
47865 2008-06-22  Bruno Haible  <bruno@clisp.org>
47866
47867         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47868         conditionally.
47869         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47870
47871 2008-06-22  Bruno Haible  <bruno@clisp.org>
47872
47873         * doc/posix-functions/siginterrupt.texi: Move note.
47874
47875         * lib/signal.in.h (SA_RESTART): New macro.
47876         * lib/sigaction.c: Update comment.
47877
47878         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47879
47880         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47881         (gl_PREREQ_SIGPROCMASK): Invoke it.
47882         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47883
47884         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47885
47886         * lib/sigprocmask.c: Update a comment.
47887
47888 2008-06-21  Eric Blake  <ebb9@byu.net>
47889
47890         Use sigaction module rather than signal().
47891         * modules/c-stack (Depends-on): Add sigaction.
47892         * modules/fatal-signal (Depends-on): Likewise.
47893         * modules/nanosleep (Depends-on): Likewise.
47894         * modules/sigprocmask (Files): Add sig-handler.h.
47895         * modules/sigaction (Files): Likewise.
47896         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47897         Eggert.
47898         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47899         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47900         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47901         (init_fatal_signals): Likewise.
47902         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47903         (siginterrupt): Delete fallback.
47904         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47905         instead.
47906         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47907         siginterrupt.
47908
47909         New module sigaction, for mingw.
47910         * modules/sigaction: New module...
47911         * modules/sigaction-tests: ...and its test.
47912         * m4/sigaction.m4: New file.
47913         * lib/sigaction.c: Likewise.
47914         * tests/test-sigaction.c: Likewise.
47915         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47916         * modules/signal (Makefile.am): Likewise.
47917         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47918         needed.
47919         * doc/posix-headers/signal.texi (signal.h): Mention provided
47920         types.
47921         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47922         that sigaction is preferable.
47923         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47924         module.
47925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47926         sigaction.
47927
47928         Improve robustness of sigprocmask by overriding signal.
47929         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47930         is in use.
47931         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47932         (SIGKILL, SIGSTOP): Provide fallbacks.
47933         (rpl_signal): Implement.
47934         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47935         signal can be called inside handlers.
47936
47937         Fix nanosleep module on mingw.
47938         * modules/nanosleep (Depends-on): Add sys_select.
47939         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47940
47941         Fix licensing of sigprocmask.
47942         * modules/raise (License): Relicense as LGPL.
47943
47944 2008-06-21  Bruno Haible  <bruno@clisp.org>
47945
47946         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47947         result if it contains question marks.
47948         Reported by Michael Geng <linux@michaelgeng.de>.
47949
47950 2008-06-19  Bruno Haible  <bruno@clisp.org>
47951
47952         Fix CVS-ism.
47953         * doc/gnulib.texi: Include updated-stamp.texi.
47954         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47955         (updated-stamp.texi): New rule.
47956         (gnulib.info): Depend on it.
47957         * doc/.gitignore: Add updated-stamp.texi.
47958         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47959
47960 2008-06-19  Bruno Haible  <bruno@clisp.org>
47961
47962         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47963         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47964
47965 2008-06-19  Eric Blake  <ebb9@byu.net>
47966
47967         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47968         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47969         Reported by Stepan Kasal.
47970
47971 2008-06-18  Bruno Haible  <bruno@clisp.org>
47972
47973         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47974         Reported by Eric Blake.
47975
47976 2008-06-18  Eric Blake  <ebb9@byu.net>
47977
47978         Work around cygwin 1.5.25 strsignal bug.
47979         * tests/test-strsignal.c: Allow for const char *.
47980         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47981
47982 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47983
47984         * users.txt: Update URL to article and add author/date
47985         information.
47986
47987 2008-06-17  Bruno Haible  <bruno@clisp.org>
47988
47989         New macro gl_DISABLE_THREADS.
47990         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47991         if the user did not pass --enable-threads or --disable-threads option.
47992         (gl_DISABLE_THREADS): New macro.
47993         Reported by Eric Blake <ebb9@byu.net>.
47994
47995 2008-06-17  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47998         when the macro ignores it.
47999         Based on a patch by Eric Blake <ebb9@byu.net>.
48000
48001 2008-06-17  Bruno Haible  <bruno@clisp.org>
48002
48003         * modules/tls (License): Change to LGPLv2+.
48004         Reported by Eric Blake.
48005
48006 2008-06-17  Eric Blake  <ebb9@byu.net>
48007
48008         Simplify c-stack prerequisites.
48009         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48011         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48012         check.
48013         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48014         <sys/resource.h>.
48015
48016         Move c-stack test into testsuite.
48017         * modules/c-stack-tests: New file.
48018         * lib/c-stack.c [DEBUG]: Move test program...
48019         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48020         fail test if sigaltstack is lacking.
48021         * tests/test-c-stack.sh: New driver file.
48022
48023 2008-06-16  Eric Blake  <ebb9@byu.net>
48024
48025         Use raise module consistently.
48026         * modules/fatal-signal (Depends-on): Add raise.
48027         * modules/sigprocmask (Depends-on): Likewise.
48028         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48029         * lib/sigprocmask.c (sigprocmask): Likewise.
48030         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48031         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48032
48033         Fix compliance bug in sigpending.
48034         * lib/sigprocmask.c (sigpending): Return pending array via
48035         parameter, not return value.
48036
48037 2008-06-14  Eric Blake  <ebb9@byu.net>
48038
48039         Improve obstack-printf test code.
48040         * tests/test-obstack-printf.c (test_function): Fix comment, and
48041         simplify usage of obstack_* in macros.  Add a test for coverage.
48042         Reported by Bruno Haible.
48043
48044 2008-06-14  Bruno Haible  <bruno@clisp.org>
48045
48046         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48047         array size as a constant, not as a const variable.
48048         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48049         AC_USE_SYSTEM_EXTENSIONS.
48050         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48051         Test whether the obstack_printf function actually exists.
48052         * modules/obstack-printf (Depends-on): Add extensions.
48053         (Include): Remove obstack.h.
48054         * modules/obstack-printf-posix (Depends-on): Add extensions.
48055         (Include): Remove obstack.h.
48056
48057 2008-06-13  Eric Blake  <ebb9@byu.net>
48058
48059         Add obstack-printf and obstack-printf-posix modules.
48060         * modules/obstack-printf: New file.
48061         * modules/obstack-printf-posix: Likewise.
48062         * MODULES.html.sh (Misc): Mention them.
48063         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48064         Likewise.
48065         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48066         Likewise.
48067         * modules/stdio (Makefile.am): Accomodate new modules.
48068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48069         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48070         Declare.
48071         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48072         functions.
48073         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48074         (gl_REPLACE_OBSTACK_PRINTF): New macros
48075         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48076         * tests/test-obstack-printf.c: New file.
48077         * modules/obstack-printf-tests: Likewise.
48078         * modules/obstack-printf-posix-tests: Likewise.
48079
48080 2008-06-11  Bruno Haible  <bruno@clisp.org>
48081
48082         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48083         * lib/open.c: Include errno.h.
48084         (open): Fail when attempting to write to a file that has a trailing
48085         slash.
48086         * tests/test-open.c (main): Test against trailing slash bug.
48087         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48088
48089 2008-06-10  Bruno Haible  <bruno@clisp.org>
48090
48091         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48092         for $? to work inside the trap command, with various /bin/sh-s.
48093         * tests/test-vc-list-files-cvs.sh: Likewise.
48094
48095 2008-06-10  Bruno Haible  <bruno@clisp.org>
48096
48097         * lib/acl-internal.h: Don't include gettext.h here.
48098         * lib/set-mode-acl.c: Include gettext.h here.
48099         * lib/copy-acl.c: Likewise.
48100
48101 2008-06-10  Bruno Haible  <bruno@clisp.org>
48102
48103         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48104         * lib/wait-process.c (wait_subprocess): Likewise.
48105         * lib/execute.h (execute): Add termsigp argument.
48106         * lib/execute.c (execute): Likewise.
48107         * lib/csharpcomp.c (compile_csharp_using_pnet,
48108         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48109         * lib/csharpexec.c (execute_csharp_using_pnet,
48110         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48111         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48112         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48113         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48114         is_jikes_present): Update.
48115         * lib/javaexec.c (execute_java_class): Update.
48116         * lib/javaversion.c (execute_and_read_line): Update.
48117         * NEWS: Document the changes.
48118         Reported by Eric Blake.
48119
48120 2008-06-10  Eric Blake  <ebb9@byu.net>
48121
48122         Add missing include.
48123         * tests/test-strstr.c (includes): Add <signal.h>.
48124         * tests/test-strcasestr.c (includes): Likewise.
48125         * tests/test-memmem.c (includes): Likewise.
48126
48127 2008-06-10  Bruno Haible  <bruno@clisp.org>
48128
48129         * lib/wait-process.c (wait_subprocess): Add an assertion.
48130
48131 2008-06-10  Bruno Haible  <bruno@clisp.org>
48132
48133         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48134
48135 2008-06-10  Bruno Haible  <bruno@clisp.org>
48136
48137         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48138         using alarm().
48139         * tests/test-strcasestr.c (main): Likewise.
48140         * tests/test-strstr.c (main): Likewise.
48141
48142 2008-06-09  Bruno Haible  <bruno@clisp.org>
48143
48144         Work around the Solaris 10 ACE ACLs ABI change.
48145         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48146         declare if ACL_NO_TRIVIAL is present.
48147         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48148         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48149         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48150         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48151         define if ACL_NO_TRIVIAL is present.
48152         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48153         and use the current ABI.
48154         (file_has_acl): Use same #if condition as elsewhere.
48155         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48156         in use, and use the current ABI.
48157         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48158         Reported by Jim Meyering.
48159
48160 2008-06-09  Eric Blake  <ebb9@byu.net>
48161
48162         Work around environments that (stupidly) ignore SIGALRM.
48163         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48164         before using alarm().
48165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48167         Reported by Ian Beckwith <ianb@erislabs.net>.
48168
48169         Produce autobuild blurb earlier in log.
48170         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48171
48172 2008-06-09  Jim Meyering  <meyering@redhat.com>
48173         and OndÅ™ej Vašík  <ovasik@redhat.com>
48174
48175         utimens.c: correct kernel bug work-around
48176         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48177         failure, not success, and the kernel bug we're trying to work
48178         around affects not just the utimensat call, but also the fallback
48179         futimens call.
48180         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48181         not success.
48182         [HAVE_FUTIMENS]: Use the same work-around, here.
48183
48184 2008-06-09  Jim Meyering  <meyering@redhat.com>
48185
48186         add more guards around definition of ACE_-related code
48187         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48188         ALLOW and ACE_OWNER are also defined.
48189
48190 2008-06-08  Bruno Haible  <bruno@clisp.org>
48191
48192         * lib/acl-internal.h: Add me as co-author.
48193         * lib/file-has-acl.c: Likewise.
48194         * lib/set-mode-acl.c: Likewise.
48195         * lib/copy-acl.c: Likewise.
48196
48197 2008-06-08  Bruno Haible  <bruno@clisp.org>
48198
48199         Add support for AIX ACLs.
48200         * lib/acl-internal.h (acl_nontrivial): New declaration.
48201         * lib/file-has-acl.c (acl_nontrivial): New function.
48202         (file_has_acl): Add implementation using AIX 4 ACL API.
48203         * lib/set-mode-acl.c (qset_acl): Likewise.
48204         * lib/copy-acl.c (qcopy_acl): Likewise.
48205
48206 2008-06-08  Bruno Haible  <bruno@clisp.org>
48207
48208         Add support for HP-UX ACLs.
48209         * lib/acl-internal.h (acl_nontrivial): New declaration.
48210         * lib/file-has-acl.c (acl_nontrivial): New function.
48211         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48212         * lib/set-mode-acl.c (qset_acl): Likewise.
48213         * lib/copy-acl.c (qcopy_acl): Likewise.
48214
48215 2008-06-08  Bruno Haible  <bruno@clisp.org>
48216
48217         Add support for Cygwin ACLs.
48218         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48219         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48220         the chmod_or_fchmod call.
48221         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48222
48223 2008-06-08  Bruno Haible  <bruno@clisp.org>
48224
48225         Fix bug with setuid modes in Solaris 10+ code.
48226         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48227         succeeded, when the mode contains some special bits.
48228
48229 2008-06-08  Bruno Haible  <bruno@clisp.org>
48230
48231         Add support for Solaris 7..10 ACLs.
48232         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48233         declarations.
48234         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48235         functions.
48236         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48237         * lib/set-mode-acl.c (qset_acl): Likewise.
48238         * lib/copy-acl.c (qcopy_acl): Likewise.
48239
48240 2008-06-08  Bruno Haible  <bruno@clisp.org>
48241
48242         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48243         declaration.
48244         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48245         (acl_access_nontrivial): Remove MacOS X case.
48246         (file_has_acl): Use acl_extended_nontrivial.
48247         * lib/copy-acl.c (qcopy_acl): Likewise.
48248
48249 2008-06-08  Bruno Haible  <bruno@clisp.org>
48250
48251         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48252
48253 2008-06-08  Jim Meyering  <meyering@redhat.com>
48254
48255         * modules/acl (Maintainer): Add Bruno Haible.
48256
48257 2008-06-07  Bruno Haible  <bruno@clisp.org>
48258
48259         Improve support for Tru64 ACLs.
48260         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48261         ACL on OSF/1.
48262
48263 2008-06-07  Bruno Haible  <bruno@clisp.org>
48264
48265         Add support for MacOS X ACLs.
48266         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48267         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48268         * lib/set-mode-acl.c (qset_acl): Likewise.
48269         * lib/copy-acl.c (qcopy_acl): Likewise.
48270
48271 2008-06-07  Bruno Haible  <bruno@clisp.org>
48272
48273         Fix memory leak introduced on 2008-05-22.
48274         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48275         use.
48276
48277 2008-06-07  Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48280         to construct an empty ACL.
48281
48282 2008-06-07  Bruno Haible  <bruno@clisp.org>
48283
48284         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48285         precisely.
48286         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48287
48288 2008-06-07  Bruno Haible  <bruno@clisp.org>
48289
48290         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48291         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48292
48293 2008-06-07  Bruno Haible  <bruno@clisp.org>
48294
48295         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48296         regardless of POSIX.
48297         * doc/posix-functions/_longjmp.texi: Likewise.
48298         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48299         SystemV platform in this case.
48300
48301 2008-06-06  Eric Blake  <ebb9@byu.net>
48302
48303         Document abort() bugs.
48304         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48305
48306         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48307         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48308         sigsetjmp.
48309         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48310         siglongjmp, but only as a macro.
48311         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48312         is obsolete.
48313         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48314
48315         Tweak documentation to cover cygwin argz bugs.
48316         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48317         argz bug fix; no code change needed since no cygwin releases
48318         occurred between the last fix and the bug being tested.
48319         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48320         module and recently fixed cygwin bugs.
48321         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48322         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48323         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48324         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48325         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48326         Likewise.
48327         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48328         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48329         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48330         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48331         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48332         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48333         Likewise.
48334
48335         Avoid gcc warning on cygwin.
48336         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48337         !ACL_NO_TRIVIAL]: Avoid unused variable.
48338
48339 2008-06-05  Eric Blake  <ebb9@byu.net>
48340
48341         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48342         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48343         git-version-gen fails to come up with a version.
48344         Reported by Simon Josefsson.
48345
48346 2008-06-05  Jim Meyering  <meyering@redhat.com>
48347             Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         utimens.c: work around a probable Linux kernel bug
48350         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48351         appears to be a kernel bug that causes utimensat to return 280
48352         instead of 0, indicating success.
48353
48354 2008-06-04  Bruno Haible  <bruno@clisp.org>
48355
48356         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48357         2008-06-01 commit.
48358
48359 2008-06-04  Bruno Haible  <bruno@clisp.org>
48360
48361         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48362         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48363         (file_has_acl): Use it. Save errno afterwards.
48364         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48365
48366 2008-06-03  Bruno Haible  <bruno@clisp.org>
48367
48368         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48369         draft code. Simplify #ifs.
48370         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48371         Put Solaris code after POSIX-draft code. Fix comments regarding
48372         Solaris 10, HP-UX. Mention Cygwin.
48373         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48374
48375 2008-06-03  Eric Blake  <ebb9@byu.net>
48376
48377         Provide fallback for older kernels.
48378         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48379         Provide runtime fallback if kernel lacks support.
48380         Reported by Mike Frysinger.
48381
48382 2008-06-02  Bruno Haible  <bruno@clisp.org>
48383
48384         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48385         it exists.
48386
48387 2008-06-02  Bruno Haible  <bruno@clisp.org>
48388
48389         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48390         * lib/copy-acl.c (qcopy_acl): Update comment.
48391
48392 2008-06-02  Bruno Haible  <bruno@clisp.org>
48393
48394         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48395         like ACL APIs.
48396
48397 2008-06-02  Bruno Haible  <bruno@clisp.org>
48398
48399         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48400         * tests/test-set-mode-acl.sh: Likewise.
48401         * tests/test-copy-acl.sh: Likewise.
48402         * tests/test-copy-file.sh: Likewise.
48403
48404 2008-06-02  Bruno Haible  <bruno@clisp.org>
48405
48406         * tests/test-file-has-acl.sh: Remove unused code.
48407
48408 2008-06-01  Bruno Haible  <bruno@clisp.org>
48409
48410         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48411         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48412         messages.
48413         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48414
48415 2008-06-01  Bruno Haible  <bruno@clisp.org>
48416
48417         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48418         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48419         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48420         APIs.
48421         * modules/acl-tests (configure.ac): Remove tests now contained in
48422         m4/acl.m4.
48423
48424 2008-06-02  Jim Meyering  <meyering@redhat.com>
48425
48426         announce-gen: use a better key-server host name
48427         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48428         it may be more consistently reliable.  Suggested by Werner Koch
48429         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48430
48431 2008-06-01  Bruno Haible  <bruno@clisp.org>
48432
48433         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48434         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48435
48436 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48437
48438         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48439
48440 2008-06-01  Bruno Haible  <bruno@clisp.org>
48441
48442         New ACL tests.
48443         * tests/test-file-has-acl.sh: New file.
48444         * tests/test-file-has-acl.c: New file.
48445         * tests/test-set-mode-acl.sh: New file.
48446         * tests/test-set-mode-acl.c: New file.
48447         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48448         * tests/test-copy-acl.c: New file.
48449         * modules/acl-tests: New file, based on modules/copy-file-tests.
48450         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48451         (Depends-on): Add acl-tests.
48452         (configure.ac): Remove checks.
48453         (Makefile.am): Don't create test-sameacls program here any more.
48454
48455 2008-06-01  Bruno Haible  <bruno@clisp.org>
48456
48457         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48458         * tests/test-sameacls.c: Include progname.h.
48459         (main): Invoke set_program_name. Portability fixes for MacOS X,
48460         Solaris, HP-UX.
48461
48462 2008-06-01  Bruno Haible  <bruno@clisp.org>
48463
48464         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48465         function.
48466         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48467
48468 2008-06-01  Bruno Haible  <bruno@clisp.org>
48469
48470         * modules/rpmatch (Depends-on): Add strdup.
48471
48472 2008-06-01  Bruno Haible  <bruno@clisp.org>
48473
48474         * lib/pipe.c: Include unistd-safer.h.
48475         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48476         * modules/pipe (Depends-on): Add unistd-safer.
48477
48478 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48479
48480         * modules/autobuild (configure.ac): Call AB_INIT.
48481
48482 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48483
48484         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48485         Suggested by Bruno Haible <bruno@clisp.org>.
48486
48487 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48488
48489         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48490         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48491         <bruno@clisp.org>.
48492
48493 2008-05-29  Eric Blake  <ebb9@byu.net>
48494
48495         Prefer new POSIX 200x interfaces over futimesat.
48496         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48497         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48498         when available.
48499         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48500
48501 2008-05-28  Bruno Haible  <bruno@clisp.org>
48502
48503         * modules/stpcpy (License): Change to LGPLv2+.
48504         Requested by David Lutterkort <dlutter@redhat.com>.
48505
48506 2008-05-27  Bruno Haible  <bruno@clisp.org>
48507
48508         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48509         current mingw.
48510         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48511
48512 2008-05-27  Bruno Haible  <bruno@clisp.org>
48513
48514         * modules/iconv_open (Link): New section, from module 'iconv'.
48515         * modules/striconv (Link): Likewise.
48516         * modules/striconveh (Link): Likewise.
48517         * modules/xstriconv (Link): Likewise.
48518         * modules/unicodeio (Link): Likewise.
48519         * modules/propername (Link): Likewise.
48520         Reported by Jim Meyering.
48521
48522 2008-05-26  Jim Meyering  <meyering@redhat.com>
48523
48524         sha256: do not artificially restrict buffer length to be < 2^32
48525         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48526         uint32_t to size_t.
48527         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48528         to match.
48529
48530         avoid unaligned access errors, e.g., on sparc
48531         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48532         direct access through a possibly-unaligned uint64* pointer.
48533         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48534         direct access through a possibly-unaligned uint32* pointer.
48535         Prompted by this patch from Tom "spot" Callaway:
48536         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48537
48538         sha512.c: fix typo in comment
48539         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48540
48541 2008-05-25  Bruno Haible  <bruno@clisp.org>
48542
48543         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48544         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48545         (Makefile.am): Update lib_SOURCES.
48546
48547 2008-05-25  Bruno Haible  <bruno@clisp.org>
48548
48549         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48550
48551 2008-05-25  Jim Meyering  <meyering@redhat.com>
48552
48553         useless-if-before-free: freed expr may have white-space differences
48554         * build-aux/useless-if-before-free: Recognize cases in which the
48555         freed expression differs from the tested one in embedded white
48556         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48557         $1 was used, so we can't make any regexp shy.  Improved tests now
48558         detect this.
48559
48560         useless-if-before-free: accept white space in the expression.
48561         * build-aux/useless-if-before-free: For now, any white space
48562         in the expression must be identical in the free argument.
48563
48564         useless-if-before-free: efficiency tweak
48565         * build-aux/useless-if-before-free: Make the expression-matching
48566         regexp "shy".
48567         Make the *outer* regexp shy, not the expr-matching one.
48568
48569         update code-in-comment to accept cast of free arg
48570         * build-aux/useless-if-before-free: Update regexp.
48571
48572 2008-05-25  Bruno Haible  <bruno@clisp.org>
48573
48574         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48575         * modules/copy-file-tests (Files, Makefile.am): Update.
48576         * tests/test-copy-file.c (func_test_copy): Update.
48577
48578 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48579
48580         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48581
48582 2008-05-23  Bruno Haible  <bruno@clisp.org>
48583
48584         Improve support for ACLs on OSF/1.
48585         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48586         Remove fallback for unknown flavors of ACLs.
48587
48588 2008-05-22  Bruno Haible  <bruno@clisp.org>
48589
48590         Add support for ACLs on OSF/1.
48591         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48592         replacements.
48593         (acl_free_text): New macro fallback.
48594         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48595         acl_free.
48596         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48597         acl_free_text function. Require AC_C_INLINE.
48598
48599 2008-05-22  Bruno Haible  <bruno@clisp.org>
48600
48601         Make copy_acl work on MacOS X 10.5.
48602         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48603         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48604         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48605         If MODE_INSIDE_ACL, don't assume that every system has the same text
48606         representation for ACLs as FreeBSD.
48607         * lib/copy-acl.c (copy_acl): Add support for platforms with
48608         !MODE_INSIDE_ACL.
48609         * lib/file-has-acl.c (file_has_acl): Likewise.
48610         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48611         FreeBSD, MacOS X, or IRIX, respectively.
48612
48613 2008-05-22  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/acl.h: Don't include <sys/acl.h>.
48616         (GETACLCNT): Move fallback to lib/acl-internal.h.
48617         * lib/acl-internal.h: Include <sys/acl.h> here.
48618         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48619
48620 2008-05-22  Bruno Haible  <bruno@clisp.org>
48621
48622         Split off copy_acl function to separate file.
48623         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48624         * lib/acl.c (copy_acl): Moved function to separate file.
48625         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48626         * modules/acl (Files): Add lib/copy-acl.c.
48627         (Makefiles.am): Augment lib_SOURCES.
48628
48629 2008-05-22  Bruno Haible  <bruno@clisp.org>
48630
48631         * modules/copy-file-tests: New file.
48632         * tests/test-copy-file.sh: New file.
48633         * tests/test-copy-file.c: New file.
48634         * tests/test-copy-file-sameacls.c: New file.
48635
48636 2008-05-22  Eric Blake  <ebb9@byu.net>
48637
48638         Avoid gcc warning.
48639         * tests/test-memcmp.c (main): Pass NULL indirectly.
48640
48641 2008-05-21  Bruno Haible  <bruno@clisp.org>
48642
48643         Add reference doc about ACLs.
48644         * doc/acl-resources.txt: New file.
48645         * doc/acl-cygwin.txt: New file.
48646
48647 2008-05-21  Bruno Haible  <bruno@clisp.org>
48648
48649         Avoid one more warning from gcc.
48650         * lib/vasnprintf.c (IF_LINT): Update comments.
48651         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48652
48653 2008-05-21  Jim Meyering  <meyering@redhat.com>
48654
48655         avoid a warning from gcc
48656         * lib/vasnprintf.c (IF_LINT): Define.
48657         (scale10_round_decimal_long_double):
48658         Use it to avoid a "may be used uninitialized" warning.
48659         (scale10_round_decimal_double): Likewise.
48660
48661 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48662
48663         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48664         declared.
48665
48666 2008-05-20  Bruno Haible  <bruno@clisp.org>
48667
48668         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48669         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48670
48671 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48672
48673         * modules/memcmp-tests: New file.
48674         * tests/test-memcmp.c: New file.
48675
48676 2008-05-19  Bruno Haible  <bruno@clisp.org>
48677
48678         * modules/propername (Notice, configure.ac): Put quoted "..." into
48679         --keyword option.
48680         * lib/propername.h: Update comments accordingly.
48681         Reported by Eric Blake.
48682
48683 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48684
48685         * modules/getpass-gnu (Depends-on): Add fseeko.
48686
48687 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48688
48689         * modules/base64-tests: New file.
48690
48691 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48692
48693         * lib/base64.c (base64_decode_ctx): If a decode context structure
48694         was passed in use it to ignore newlines.  If a context structure
48695         was _not_ passed in, continue to treat newlines as garbage (this
48696         is the historical behavior).  Formerly base64_decode.
48697         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48698         takes a decode context structure.
48699         * lib/base64.h (base64_decode): Macro for four-argument calls.
48700         (base64_decode_alloc): Likewise.
48701         * lib/base64.c (base64_decode_ctx): If a decode context structure
48702         was passed in use it to ignore newlines.  If a context structure
48703         was _not_ passed in, continue to treat newlines as garbage (this
48704         is the historical behavior).  Formerly base64_decode.
48705         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48706         takes a decode context structure.
48707         * lib/base64.h (base64_decode): Macro for four-argument calls.
48708         (base64_decode_alloc): Likewise.
48709
48710 2008-05-19  Jim Meyering  <meyering@redhat.com>
48711
48712         avoid a warning from gcc
48713         * lib/trim.c (IF_LINT): Define.
48714         (trim2): Use it to avoid a "may be used uninitialized" warning.
48715
48716         Fix doc typo.
48717         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48718
48719 2008-05-19  Bruno Haible  <bruno@clisp.org>
48720
48721         * doc/glibc-functions/getpass.texi: Document limits of other
48722         implementations.
48723
48724 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48725             Bruno Haible <bruno@clisp.org>
48726
48727         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48728
48729 2008-05-18  Bruno Haible  <bruno@clisp.org>
48730
48731         * modules/propername: New file, from GNU gettext.
48732         * lib/propername.h: New file, from GNU gettext.
48733         * lib/propername.c: New file, from GNU gettext.
48734         * MODULES.html.sh (Internationalization functions): Add propername.
48735
48736 2008-05-16  Jim Meyering  <meyering@redhat.com>
48737             Bruno Haible  <bruno@clisp.org>
48738
48739         Avoid some warnings from "gcc -Wshadow".
48740         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48741
48742 2008-05-15  Eric Blake  <ebb9@byu.net>
48743
48744         Extend previous patch to cygwin 1.7.0.
48745         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48746         fast implementation in cygwin >= 1.7.0.
48747         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48748         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48749
48750 2008-05-15  Bruno Haible  <bruno@clisp.org>
48751
48752         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48753         implementation in glibc >= 2.9.
48754         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48756
48757 2008-05-15  Bruno Haible  <bruno@clisp.org>
48758
48759         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48760         (Unicode string functions): Add unilbrk/*.
48761         Reported by Karl Berry.
48762
48763 2008-05-15  Eric Blake  <ebb9@byu.net>
48764
48765         Fix violation of <stdbool.h> replacement in regex.
48766         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48767         * lib/regexec.c (re_search_internal): Likewise.
48768         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48769
48770 2008-05-15  Jim Meyering  <meyering@redhat.com>
48771
48772         avoid distracting test output when git or cvs is not found
48773         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48774         * tests/test-vc-list-files-git.sh: Likewise.
48775
48776 2008-05-15  Eric Blake  <ebb9@byu.net>
48777
48778         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48779         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48780         glibc version.
48781         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48782         * doc/posix-functions/strstr.texi (strstr): Likewise.
48783         * lib/str-two-way.h (MAX): Sychronize with glibc.
48784
48785 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48786
48787         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48788         opr.ctx_type.
48789         (calc_first): Initialize constraint field.
48790         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48791         Fix grammar.
48792         (duplicate_node): Merge constraint field for all node types.
48793         (calc_eclosure_iter): Look at constraint field for all node types.
48794         * lib/regex_internal.c (create_cd_newstate): Don't look at
48795         opr.ctx_type.
48796
48797 2008-05-14  Bruno Haible  <bruno@clisp.org>
48798
48799         Help GCC to do better code generation.
48800         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48801         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48802         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48803         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48804         Declare with attribute 'malloc' if supported.
48805
48806 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48807
48808         use "echo STR|wc -c" rather than unportable "expr length STR"
48809         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48810         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48811
48812 2008-05-14  Jim Meyering  <meyering@redhat.com>
48813
48814         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48815         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48816         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48817         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48818         via Collin Lasse.
48819
48820 2008-05-14  Eric Blake  <ebb9@byu.net>
48821
48822         Avoid quadratic growth in gl_LIBSOURCES.
48823         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48824         Suggested by Bruno Haible.
48825
48826         Test xmemdup0.
48827         * modules/xmemdup0-tests: New file.
48828         * tests/test-xmemdup0.c: Likewise.
48829
48830 2008-05-13  Eric Blake  <ebb9@byu.net>
48831
48832         Split xmemdup0 into its own module.
48833         * modules/xmemdup0: New file.
48834         * lib/xmemdup0.h: Likewise.
48835         * lib/xmemdup0.c: Likewise.
48836         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48837         * lib/xalloc.h (xmemdup0): Remove.
48838         * lib/xmalloc.c (xmemdup0): Likewise.
48839
48840 2008-05-13  Eric Blake  <ebb9@byu.net>
48841             Bruno Haible  <bruno@clisp.org>
48842
48843         Reduce number of forks required during autoconf.
48844         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48845         and gl_LIBSOURCES_DIR.
48846         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48847         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48848         m4_syscmd per file.
48849         <m4_foreach_w>: Move...
48850         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48851
48852 2008-05-13  Eric Blake  <ebb9@byu.net>
48853
48854         * gnulib-tool: Fix various comment typos.
48855
48856 2008-05-12  Bruno Haible  <bruno@clisp.org>
48857
48858         Tailor the linebreaking algorithm.
48859         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48860
48861 2008-05-12  Bruno Haible  <bruno@clisp.org>
48862
48863         Update to Unicode 5.0.0.
48864         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48865         LBP_JV, LBP_JT. Redistribute values.
48866         (unilbrk_table): Change size.
48867         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48868         Unicode TR#14 rev. 22.
48869         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48870         LBP_JV, LBP_JT. Redistribute values.
48871         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48872         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48873         Update.
48874         * lib/unilbrk/lbrkprop1.h: Regenerated.
48875         * lib/unilbrk/lbrkprop2.h: Regenerated.
48876         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48877         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48878         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48879         Likewise.
48880         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48881         Likewise.
48882         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48883         result.
48884         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48885         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48886         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48887         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48888         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48889         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48890
48891 2008-05-11  Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48894
48895 2008-05-11  Bruno Haible  <bruno@clisp.org>
48896
48897         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48898         * modules/unilbrk/gen-lbrk: New file.
48899
48900 2008-05-11  Bruno Haible  <bruno@clisp.org>
48901
48902         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48903         * m4/sha512.m4 (gl_SHA512): Likewise.
48904
48905 2008-05-11  Jim Meyering  <meyering@redhat.com>
48906
48907         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48908         * modules/crypto/sha256: New file.
48909         * modules/crypto/sha512: Likewise.
48910         * lib/sha256.c: Likewise.
48911         * lib/sha256.h: Likewise.
48912         * lib/sha512.c: Likewise.
48913         * lib/sha512.h: Likewise.
48914         * lib/u64.h: Likewise.
48915         * m4/sha256.m4: Likewise.
48916         * m4/sha512.m4: Likewise.
48917         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48918
48919 2008-05-10  Bruno Haible  <bruno@clisp.org>
48920
48921         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48922         (Input/Output <stdio.h>): Add xprintf.
48923         (Signal handling <signal.h>): Add strsignal.
48924         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48925         (Core language properties): Add func.
48926         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48927         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48928         strings.
48929         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48930         (Input/output): New section.
48931         (File system functions): Add openat-die, stat-macros.
48932         (Networking functions): Add sockets.
48933         (Unicode string functions): Add unictype/*.
48934         (Support for building libraries and executables): Add gperf.
48935         (Support for building documentation): Add agpl-3.0.
48936         (Misc): Add nocrash.
48937
48938 2008-05-10  Bruno Haible  <bruno@clisp.org>
48939
48940         * modules/unictype/gen-ctype: New file.
48941
48942 2008-05-10  Jim Meyering  <meyering@redhat.com>
48943
48944         Make chdir-safer.c more efficient on a system with no symlinks.
48945         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48946         also if ELOOP is zero.  Suggested by Bruno Haible.
48947
48948         Make chdir-safer.c slightly safer.
48949         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48950         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48951
48952         Avoid compile failure on systems without ELOOP (like mingw).
48953         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48954         Reported by Bruno Haible.
48955
48956 2008-05-10  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48959         (is_utf8_encoding): Use a case-insensitive comparison.
48960         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48961         streq.
48962
48963 2008-05-10  Bruno Haible  <bruno@clisp.org>
48964
48965         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48966         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48967         * lib/unilbrk/ulc-common.h (iconv_string_length,
48968         iconv_string_keeping_offsets): Remove declarations.
48969         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48970         Don't include <iconv.h>, streq.h, xsize.h.
48971         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48972         conversion.
48973         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48974         <iconv.h>, streq.h, xsize.h.
48975         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48976         conversion.
48977         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48978         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48979         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48980         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48981
48982 2008-05-10  Bruno Haible  <bruno@clisp.org>
48983
48984         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48985         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48986
48987         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48988         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48989
48990         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48991         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48992
48993         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48994         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48995
48996         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48997         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48998
48999         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49000         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49001
49002         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49003         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49004
49005         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49006         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49007
49008 2008-05-10  Bruno Haible  <bruno@clisp.org>
49009
49010         Split up 'linebreak' module.
49011         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49012         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49013         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49014         modifications.
49015         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49016         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49017         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49018         lib/linebreak.c.
49019         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49020         lib/linebreak.c.
49021         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49022         lib/linebreak.c.
49023         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49024         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49025         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49026         lib/linebreak.c.
49027         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49028         lib/linebreak.c.
49029         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49030         lib/linebreak.c.
49031         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49032         lib/linebreak.c.
49033         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49034         lib/linebreak.c.
49035         * modules/unilbrk/base: New file.
49036         * modules/unilbrk/tables: New file.
49037         * modules/unilbrk/u8-possible-linebreaks: New file.
49038         * modules/unilbrk/u16-possible-linebreaks: New file.
49039         * modules/unilbrk/u32-possible-linebreaks: New file.
49040         * modules/unilbrk/ulc-common: New file.
49041         * modules/unilbrk/ulc-possible-linebreaks: New file.
49042         * modules/unilbrk/u8-width-linebreaks: New file.
49043         * modules/unilbrk/u16-width-linebreaks: New file.
49044         * modules/unilbrk/u32-width-linebreaks: New file.
49045         * modules/unilbrk/ulc-width-linebreaks: New file.
49046         * lib/linebreak.h: Remove file.
49047         * lib/linebreak.c: Remove file.
49048         * m4/linebreak.m4: Remove file.
49049         * modules/linebreak: Remove file.
49050         * NEWS: Mention the changes.
49051
49052 2008-05-09  Eric Blake  <ebb9@byu.net>
49053
49054         Add xmemdup0.
49055         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49056         implementation.
49057         * lib/xmalloc.c (xmemdup0): New C implementation.
49058
49059 2008-05-08  Bruno Haible  <bruno@clisp.org>
49060
49061         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49062
49063 2008-05-07  Eric Blake  <ebb9@byu.net>
49064
49065         Support cross-compilation of <wctype.h>.
49066         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49067         AC_CACHE_CHECK.
49068
49069 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49070
49071         * build-aux/vc-list-files: Add support for bzr.
49072
49073 2008-05-03  Jim Meyering  <meyering@redhat.com>
49074
49075         avoid failed assertion with tight malloc
49076         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49077
49078 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49079
49080         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49081         are needed from arpa/inet.h.
49082         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49083         Reported by Bruno Haible.
49084
49085 2008-05-02  Jim Meyering  <meyering@redhat.com>
49086
49087         avoid compilation error on FreeBSD 6
49088         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49089
49090 2008-05-01  Jim Meyering  <meyering@redhat.com>
49091
49092         useless-if-before-free: correct --help's exit status description
49093         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49094         for one or more matches, etc.  Reported by Bruno Haible.
49095
49096         vc-list-files: make the stand-alone gnulib test work
49097         * modules/vc-list-files-tests (configure.ac):
49098         Define and AC_SUBST abs_aux_dir.
49099         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49100         $(abs_top_srcdir) to each script and having each of them
49101         duplicate the work of setting PATH, set PATH here, using
49102         the new variable, abs_aux_dir instead.
49103         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49104         * tests/test-vc-list-files-git.sh: Likewise.
49105         Reported by Bruno Haible.
49106
49107 2008-05-01  Bruno Haible  <bruno@clisp.org>
49108
49109         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49110         reallocation. Rename 'done' to 'found_delimiter'.
49111
49112 2008-05-01  Jim Meyering  <meyering@redhat.com>
49113
49114         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49115         * build-aux/vc-list-files: Use `...`, not $(...).
49116
49117 2008-04-30  Jim Meyering  <meyering@redhat.com>
49118
49119         add tests for vc-list-files
49120         * modules/vc-list-files-tests: New module.
49121         * tests/test-vc-list-files-cvs.sh: New file.
49122         * tests/test-vc-list-files-git.sh: New file.
49123
49124         avoid a warning from gcc
49125         * lib/getndelim2.c (IF_LINT): Define.
49126         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49127
49128         vc-list-files: work properly with build-aux/cvsu, too
49129         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49130         to all cvs-based clauses.
49131
49132         vc-list-files: work properly in the CVS+awk case, too
49133         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49134
49135         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49136         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49137         take more than one file argument, so .  Add quotes, just in case $dir
49138         ever contains a shell meta-character.  Prompted by Soren Hansen in
49139         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49140
49141 2008-04-29  Eric Blake  <ebb9@byu.net>
49142
49143         Optimize getndelim2 to use block operations when possible.
49144         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49145         freadseek, and memchr2.
49146         * lib/getndelim2.c (getndelim2): Use them for block reads.
49147
49148 2008-04-29  Bruno Haible  <bruno@clisp.org>
49149
49150         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49151         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49152         * modules/inet_ntop (Depends-on): Add extensions.
49153         * modules/inet_pton (Depends-on): Likewise.
49154         Reported by Simon Josefsson.
49155
49156 2008-04-29  Jim Meyering  <meyering@redhat.com>
49157
49158         When the is more than one match in a block, match all of them.
49159         * build-aux/useless-if-before-free: Iterate through each block
49160         until there are no more matches.
49161
49162         Fix broken useless-if-before-free script.
49163         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49164         the expression to match cast of argument to free-like function.
49165
49166 2008-04-29  Eric Blake  <ebb9@byu.net>
49167
49168         Use new header.
49169         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49170
49171 2008-04-29  Jim Meyering  <meyering@redhat.com>
49172
49173         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49174         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49175         by gnulib to exist and to declare e.g., inet_ntop.
49176         Don't include "inet_ntop.h", now removed.
49177
49178         * m4/arpa_inet_h.m4: Remove trailing blanks.
49179
49180 2008-04-29  Eric Blake  <ebb9@byu.net>
49181
49182         Silence valgrind on safe reads beyond potential array bounds.
49183         * lib/rawmemchr.valgrind: New file.
49184         * lib/strchrnul.valgrind: Likewise.
49185         * modules/rawmemchr (Files): Distribute new file.
49186         * modules/strchrnul (Files): Likewise.
49187         Suggested by Bruno Haible.
49188
49189 2008-04-29  Bruno Haible  <bruno@clisp.org>
49190
49191         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49192         (inet_ntop, inet_pton): Change portability warning's wording.
49193         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49194         Invoke gl_CHECK_NEXT_HEADERS.
49195         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49196         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49197         set ARPA_INET_H.
49198         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49199         * modules/arpa_inet (Description): No longer only for systems that
49200         lack it.
49201         (Depends-on): Add include_next.
49202         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49203         HAVE_ARPA_INET_H.
49204
49205 2008-04-29  Jim Meyering  <meyering@redhat.com>
49206
49207         * modules/mkdir (License): Re-license as LGPLv2+.
49208
49209 2008-04-29  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/rawmemchr (Maintainer): Set to Eric.
49212         * modules/strchrnul (Maintainer): Likewise.
49213
49214 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49215
49216         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49217         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49218
49219         * modules/arpa_inet (arpa/inet.h): Use them.
49220
49221 2008-04-28  Eric Blake  <ebb9@byu.net>
49222
49223         Test getndelim2.
49224         * modules/getndelim2-tests: New file.
49225         * tests/test-getndelim2.c: Likewise.
49226         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49227         stream.
49228         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49229
49230         * MODULES.html.sh: Document new module.
49231
49232 2008-04-20  Bruno Haible  <bruno@clisp.org>
49233
49234         * lib/c-stack.c (die): Use raise.
49235         * modules/c-stack (Depends-on): Add raise.
49236
49237 2008-04-28  Bruno Haible  <bruno@clisp.org>
49238
49239         Expect rpmatch to be declared.
49240         * lib/yesno.c (rpmatch): Remove declaration.
49241
49242         Declare rpmatch.
49243         * lib/stdlib.in.h (rpmatch): New declaration.
49244         * lib/rpmatch.c: Include <stdlib.h> first.
49245         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49246         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49248         HAVE_RPMATCH.
49249         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49250         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49251         (Include): Set to <stdlib.h>.
49252         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49253         HAVE_RPMATCH.
49254         * NEWS: Document the change.
49255
49256 2008-04-28  Bruno Haible  <bruno@clisp.org>
49257
49258         Change rpmatch to use nl_langinfo when appropriate.
49259         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49260         (N_): New macro.
49261         (localized_pattern): New function/macro.
49262         (try): Remove match, nomatch arguments. Copy the pattern into safe
49263         memory before caching it.
49264         (rpmatch): Use localized_pattern. Add translator comments.
49265         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49266         Suggested by Eric Blake.
49267         * modules/rpmatch (Depends-on): Add stdbool.
49268
49269 2008-04-28  Eric Blake  <ebb9@byu.net>
49270
49271         Add rawmemchr module, matching glibc.
49272         * modules/string (Makefile.am): New indicator.
49273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49274         * lib/string.in.h (rawmemchr): Declare when appropriate.
49275         * modules/rawmemchr: New file.
49276         * m4/rawmemchr.m4: Likewise.
49277         * lib/rawmemchr.c: Likewise.
49278         * modules/rawmemchr-tests: Likewise.
49279         * tests/test-rawmemchr.c: Likewise.
49280         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49281         module.
49282         * modules/strchrnul (Depends-on): Add rawmemchr.
49283         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49284
49285         Whitespace cleanup.
49286         * tests/test-strchrnul.c: Reindent.
49287         * lib/strchrnul.c: Likewise.
49288
49289         Optimize and test strchrnul.
49290         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49291         * modules/strchrnul-tests: New file.
49292         * tests/test-strchrnul.c: Likewise.
49293
49294         Remove intprops dependency.
49295         * modules/memchr (Depends-on): Remove intprops.
49296         * modules/memrchr (Depends-on): Likewise.
49297         * modules/memchr2 (Depends-on): Likewise.
49298         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49299         * lib/memrchr.c (__memrchr): Likewise.
49300         * lib/memrchr2.c (memchr2): Likewise.
49301         Reported by Simon Josefsson.
49302
49303 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49304
49305         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49306         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49307
49308 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49309
49310         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49311
49312         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49313
49314         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49315
49316         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49317         declarations.
49318         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49319
49320         * m4/inet_pton.m4: Don't check for header files.
49321
49322         * m4/inet_ntop.m4: Don't check for header files.
49323
49324 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49325
49326         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49327         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49328         trigger for cygwin).
49329         Reported by Bruno Haible  <bruno@clisp.org>.
49330
49331 2008-04-28  Bruno Haible  <bruno@clisp.org>
49332
49333         * doc/posix-functions/strdup.texi: Mention mingw problem.
49334
49335 2008-04-27  Bruno Haible  <bruno@clisp.org>
49336
49337         * modules/stat-time-tests (Depends-on): Add sleep.
49338         * tests/test-stat-time.c (force_unlink): New function.
49339         (cleanup): Use it.
49340         (test_mtime): Remove the ctime related tests.
49341         (test_ctime): New function, containing the ctime related tests.
49342         (main): Call test_ctime, except on native Windows platforms.
49343
49344 2008-04-27  Bruno Haible  <bruno@clisp.org>
49345
49346         * lib/rpmatch.c (rpmatch): Add some comments.
49347         Reported by James Youngman <jay@gnu.org>.
49348
49349 2008-04-27  Bruno Haible  <bruno@clisp.org>
49350
49351         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49352         quiet NaNs.
49353
49354 2008-04-27  Bruno Haible  <bruno@clisp.org>
49355
49356         Make test-yesno.sh work on mingw.
49357         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49358         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49359         (main): Set stdin to binary mode.
49360         * modules/yesno-tests (Depends-on): Add binary-io.
49361
49362 2008-04-27  Bruno Haible  <bruno@clisp.org>
49363
49364         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49365         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49366         argument that lie outside the IEEE 854 domain.
49367         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49368         (gl_ISFINITE): Use it.
49369         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49370
49371 2008-04-27  Bruno Haible  <bruno@clisp.org>
49372
49373         Allow local renaming in config.h.
49374         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49375
49376 2008-04-27  Bruno Haible  <bruno@clisp.org>
49377
49378         * lib/memchr.c (__memchr): Change type of 'i'.
49379         * lib/memchr2.c (memchr2): Likewise.
49380
49381 2008-04-26  Eric Blake  <ebb9@byu.net>
49382         and Bruno Haible  <bruno@clisp.org>
49383
49384         Optimize and test memrchr.
49385         * modules/memrchr (Depends-on): Add intprops.
49386         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49387         * modules/memrchr-tests: New file.
49388         * tests/test-memrchr.c: New file.
49389
49390 2008-04-26  Bruno Haible  <bruno@clisp.org>
49391
49392         Add tentative support for DragonFly BSD.
49393         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49394         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49395         fp.
49396         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49397         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49398         * lib/fpurge.c (fpurge): Likewise.
49399         * lib/freadable.c (freaadable): Likewise.
49400         * lib/freadahead.c (freadahead): Likewise.
49401         * lib/freading.c (freading): Likewise.
49402         * lib/freadptr.c (freadptr): Likewise.
49403         * lib/freadseek.c (freadptrinc): Likewise.
49404         * lib/fseeko.c (fseeko): Likewise.
49405         * lib/fseterr.c (fseterr): Likewise.
49406         * lib/fwritable.c (fwritable): Likewise.
49407         * lib/fwriting.c (fwriting): Likewise.
49408
49409 2008-04-26  Bruno Haible  <bruno@clisp.org>
49410
49411         * lib/stdio-impl.h: New file.
49412         * lib/fbufmode.c: Include stdio-impl.h.
49413         (fbufmode): Use fp_, remove redundant #defines.
49414         * lib/fflush.c: Include stdio-impl.h.
49415         (clear_ungetc_buffer): Remove redundant #defines.
49416         * lib/fpurge.c: Include stdio-impl.h.
49417         (fpurge): Remove redundant #defines.
49418         * lib/freadable.c: Include stdio-impl.h.
49419         (freadable): Remove redundant #defines.
49420         * lib/freadahead.c: Include stdio-impl.h.
49421         (freadahead): Remove redundant #defines.
49422         * lib/freading.c: Include stdio-impl.h.
49423         (freading): Remove redundant #defines.
49424         * lib/freadptr.c: Include stdio-impl.h.
49425         (freadptr): Remove redundant #defines.
49426         * lib/freadseek.c: Include stdio-impl.h.
49427         (freadptrinc): Remove redundant #defines.
49428         * lib/fseeko.c: Include stdio-impl.h.
49429         (rpl_fseeko): Remove redundant #defines.
49430         * lib/fseterr.c: Include stdio-impl.h.
49431         (fseterr): Remove redundant #defines.
49432         * lib/fwritable.c: Include stdio-impl.h.
49433         (fwritable: Remove redundant #defines.
49434         * lib/fwriting.c: Include stdio-impl.h.
49435         (fwriting): Remove redundant #defines.
49436         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49437         * modules/fflush (Files): Likewise.
49438         * modules/fpurge (Files): Likewise.
49439         * modules/freadable (Files): Likewise.
49440         * modules/freadahead (Files): Likewise.
49441         * modules/freading (Files): Likewise.
49442         * modules/freadptr (Files): Likewise.
49443         * modules/freadseek (Files): Likewise.
49444         * modules/fseeko (Files): Likewise.
49445         * modules/fseterr (Files): Likewise.
49446         * modules/fwritable (Files): Likewise.
49447         * modules/fwriting (Files): Likewise.
49448
49449 2008-04-26  Bruno Haible  <bruno@clisp.org>
49450
49451         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49452         restore_seek_optimization, update_fpos_cache): New functions, extracted
49453         from rpl_fflush.
49454         (rpl_fflush): Use them.
49455         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49456         (gl_REPLACE_FFLUSH): Use it.
49457
49458 2008-04-26  Bruno Haible  <bruno@clisp.org>
49459
49460         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49461         on Solaris.
49462         * tests/test-xstrtoimax.sh: Likewise.
49463         * tests/test-xstrtoumax.sh: Likewise.
49464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49465
49466 2008-04-26  Bruno Haible  <bruno@clisp.org>
49467
49468         * modules/memchr-tests: New file.
49469         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49470
49471 2008-04-26  Eric Blake  <ebb9@byu.net>
49472             Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/memchr.c: Include intprops.h.
49475         (__memchr): Optimize parallel detection of matching bytes. Rename local
49476         variables. Add explanatory comments.
49477
49478 2008-04-26  Bruno Haible  <bruno@clisp.org>
49479
49480         Fix module 'memchr', broken since 2000-10-28.
49481         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49482
49483 2008-04-26  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49486         comments.
49487
49488 2008-04-25  Eric Blake  <ebb9@byu.net>
49489
49490         Use native fstatat on cygwin 1.7.0.
49491         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49492         first.
49493
49494 2008-04-23  Eric Blake  <ebb9@byu.net>
49495
49496         Improve memchr2 performance.
49497         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49498         NUL bytes.
49499         * modules/memchr2 (Depends-on): Use intprops.h.
49500
49501 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49502
49503         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49504         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49505         <blp@cs.stanford.edu>.
49506
49507 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49508
49509         * lib/arpa_inet.in.h: New file.
49510
49511         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49512         (Makefile.am): Sed in substitute header file.
49513
49514         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49515         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49516
49517         * modules/inet_ntop (configure.ac): Use
49518         gl_ARPA_INET_MODULE_INDICATOR.
49519
49520         * modules/inet_pton (configure.ac): Use
49521         gl_ARPA_INET_MODULE_INDICATOR.
49522
49523 2008-04-22  Jim Meyering  <meyering@redhat.com>
49524
49525         * modules/verify (License): Re-license as LGPLv2+.
49526
49527 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49528
49529         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49530         parameter to void* as per POSIX standard (MinGW uses char*).
49531
49532 2008-04-21  Bruno Haible  <bruno@clisp.org>
49533
49534         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49535         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49536         Define to replacements if REPLACE_ISWCNTRL is 1.
49537         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49538         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49539         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49540         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49541         what it fixes.
49542         * doc/posix-functions/iswalpha.texi: Likewise.
49543         * doc/posix-functions/iswblank.texi: Likewise.
49544         * doc/posix-functions/iswcntrl.texi: Likewise.
49545         * doc/posix-functions/iswdigit.texi: Likewise.
49546         * doc/posix-functions/iswgraph.texi: Likewise.
49547         * doc/posix-functions/iswlower.texi: Likewise.
49548         * doc/posix-functions/iswprint.texi: Likewise.
49549         * doc/posix-functions/iswpunct.texi: Likewise.
49550         * doc/posix-functions/iswspace.texi: Likewise.
49551         * doc/posix-functions/iswupper.texi: Likewise.
49552         * doc/posix-functions/iswxdigit.texi: Likewise.
49553         Reported by Alain Guibert.
49554
49555 2008-04-21  Bruno Haible  <bruno@clisp.org>
49556
49557         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49558         Patch by Alain Guibert.
49559
49560 2008-04-21  Bruno Haible  <bruno@clisp.org>
49561
49562         Fix test failures on mingw.
49563         * tests/test-xstrtol.c (print_no_progname): New function.
49564         (main): Install it in error_print_progname hook.
49565         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49566         * tests/test-xstrtoimax.sh: Likewise.
49567         * tests/test-xstrtoumax.sh: Likewise.
49568
49569 2008-04-21  Bruno Haible  <bruno@clisp.org>
49570
49571         Fix test failure on mingw.
49572         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49573
49574 2008-04-21  Bruno Haible  <bruno@clisp.org>
49575
49576         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49577         Actually assign a value.
49578
49579 2008-04-20  Bruno Haible  <bruno@clisp.org>
49580
49581         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49582         take 2.
49583         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49584         'canonicalize-lgpl' module is also used.
49585         * lib/canonicalize-lgpl.c: Undo last change.
49586         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49587
49588 2008-04-20  Bruno Haible  <bruno@clisp.org>
49589
49590         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49591         config.h. Provide _mkdir based fallback for mingw.
49592         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49593         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49594         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49595         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49596         rather than defining mkdir in config.h.
49597         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49598         (gl_SYS_STAT_H_DEFAULTS): New macro.
49599         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49600         HAVE_IO_H any more.
49601         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49602         HAVE_DECL_MKDIR and HAVE_IO_H.
49603
49604 2008-04-20  Bruno Haible  <bruno@clisp.org>
49605
49606         * lib/isapipe.c: Port to native Windows platforms.
49607
49608 2008-04-20  Bruno Haible  <bruno@clisp.org>
49609
49610         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49611
49612 2008-04-21  Eric Blake  <ebb9@byu.net>
49613
49614         Work around preprocessors that don't handle UINTMAX_MAX.
49615         * lib/memchr2.c (memchr2): Avoid embedded #if.
49616         Reported by Alain Guibert, fix suggested by Bruno Haible.
49617
49618 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49619
49620         * doc/posix-functions/strftime.texi (strftime): Explain better
49621         Windows incompatibility.  Suggested by Micah Cowan
49622         <micah@cowan.name>.
49623
49624 2008-04-20  Bruno Haible  <bruno@clisp.org>
49625
49626         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49627         unistr/u8-mblen.
49628
49629 2008-04-20  Bruno Haible  <bruno@clisp.org>
49630
49631         Fix test failure on platforms with non-GNU iconv.
49632         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49633         (U_TO_U8): Use it, rather than u16_to_u8.
49634         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49635         units at the end of the input string.
49636         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49637
49638 2008-04-20  Bruno Haible  <bruno@clisp.org>
49639
49640         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49641         when the resulting length is 0.
49642         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49643
49644 2008-04-20  Bruno Haible  <bruno@clisp.org>
49645
49646         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49647         works.
49648         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49649
49650 2008-04-20  Bruno Haible  <bruno@clisp.org>
49651
49652         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49653         * modules/tsearch-tests (configure.ac): Test for initstate function.
49654
49655 2008-04-20  Bruno Haible  <bruno@clisp.org>
49656
49657         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49658         for nlink_t if missing.
49659         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49660
49661 2008-04-19  Bruno Haible  <bruno@clisp.org>
49662
49663         Work around snprintf bug on Linux libc5.
49664         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49665         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49666         gl_SNPRINTF_SIZE1.
49667         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49668         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49669         that test failed.
49670         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49671         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49672         * modules/snprintf (Files): Add m4/printf.m4.
49673         * modules/vsnprintf (Files): Likewise.
49674         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49675         * doc/posix-functions/vsnprintf.texi: Likewise.
49676
49677 2008-04-19  Bruno Haible  <bruno@clisp.org>
49678
49679         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49680         from 0.0058 to less than 10^-7.
49681
49682 2008-04-19  Bruno Haible  <bruno@clisp.org>
49683
49684         Fix rounding when a precision is given.
49685         * lib/vasnprintf.c (is_borderline): New function.
49686         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49687         9...9x.
49688         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49689         %e, %g.
49690         * tests/test-vasprintf-posix.c (test_function): Likewise.
49691         * tests/test-snprintf-posix.h (test_function): Likewise.
49692         * tests/test-sprintf-posix.h (test_function): Likewise.
49693         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49694         * tests/test-printf-posix.h (test_function): Likewise.
49695         * tests/test-printf-posix.output: Update.
49696         Reported by John Darrington <john@darrington.wattle.id.au> via
49697         Ben Pfaff <blp@cs.stanford.edu>.
49698
49699 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49700
49701         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49702         Suggested by Bruno Haible <bruno@clisp.org>.
49703
49704 2008-04-17  Bruno Haible  <bruno@clisp.org>
49705
49706         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49707         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49708         implementation.
49709         Patch by Bruce Merry <bmerry@gmail.com>.
49710
49711 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49712
49713         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49714         doesn't work under Windows.
49715
49716 2008-04-16  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49719         New macros.
49720         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49721         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49722         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49723         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49724         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49725         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49726         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49727         macros.
49728         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49729         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49730         Northern Sotho, Uighur.
49731
49732 2008-04-16  Bruno Haible  <bruno@clisp.org>
49733
49734         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49735         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49736         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49737         Reported by Daniel Bergström <daniel@octocode.com>.
49738
49739 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49740             Bruno Haible  <bruno@clisp.org>
49741
49742         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49743         function.
49744         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49745         New functions, mostly extracted from gl_locale_name_default.
49746         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49747
49748 2008-04-16  Eric Blake  <ebb9@byu.net>
49749
49750         Adjust strtod detection to catch glibc 2.7 bug.
49751         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49752         Reported by John Gatewood Ham.
49753
49754 2008-04-16  Bruno Haible  <bruno@clisp.org>
49755
49756         Add tentative support for Linux libc5.
49757         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49758         * lib/fpurge.c (fpurge): Likewise.
49759         * lib/freadable.c (freadable): Likewise.
49760         * lib/freadahead.c (freadahead): Likewise.
49761         * lib/freading.c (freading): Likewise.
49762         * lib/freadptr.c (freadptr): Likewise.
49763         * lib/freadseek.c (freadptrinc): Likewise.
49764         * lib/fseeko.c (rpl_fseeko): Likewise.
49765         * lib/fseterr.c (fseterr): Likewise.
49766         * lib/fwritable.c (fwritable): Likewise.
49767         * lib/fwriting.c (fwriting): Likewise.
49768         Reported by Alain Guibert <alguibert+bts@free.fr>.
49769
49770 2008-04-15  Bruno Haible  <bruno@clisp.org>
49771
49772         * modules/mathl (configure.ac): Define module indicator.
49773
49774 2008-04-15  Bruno Haible  <bruno@clisp.org>
49775
49776         * lib/logl.c (logl): Remove unused variables.
49777
49778 2008-04-15  Bruno Haible  <bruno@clisp.org>
49779
49780         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49781         fails.
49782
49783 2008-04-15  Bruno Haible  <bruno@clisp.org>
49784
49785         * lib/trim.c (trim2): Fix argument of isspace() macro.
49786
49787 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49788
49789         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49790         to 0.
49791         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49792
49793 2008-04-14  Bruno Haible  <bruno@clisp.org>
49794
49795         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49796         AC_LANG_PROGRAM argument.
49797         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49798         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49799         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49800         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49801         * m4/math_h.m4 (gl_MATH_H): Likewise.
49802         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49803         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49804         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49805         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49806         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49807         * m4/regex.m4 (gl_REGEX): Likewise.
49808         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49809         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49810         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49811         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49812         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49813         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49816
49817 2008-04-14  Jim Meyering  <meyering@redhat.com>
49818
49819         test-strtod: fix typos: s/abs/fabs/
49820         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49821
49822 2008-04-13  Bruno Haible  <bruno@clisp.org>
49823
49824         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49825         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49826         module is also used and while not building the reloc-wrapper.
49827
49828 2008-04-13  Bruno Haible  <bruno@clisp.org>
49829
49830         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49831
49832 2008-04-13  Bruno Haible  <bruno@clisp.org>
49833
49834         Fix AIX compilation failure introduced on 2008-04-02.
49835         * tests/test-frexp.c (exp): Undefine before redefining.
49836         * tests/test-frexpl.c (exp): Likewise.
49837
49838 2008-04-13  Bruno Haible  <bruno@clisp.org>
49839
49840         Work around a HP-UX stdio bug.
49841         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49842         * tests/test-ftello.c (main): Likewise.
49843         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49844         * doc/posix-functions/ftello.texi: Likewise.
49845
49846 2008-04-13  Bruno Haible  <bruno@clisp.org>
49847
49848         Make test-signbit pass on HP-UX/hppa.
49849         * tests/test-signbit.c (minus_zerol): New variable.
49850         (test_signbitl): Use it.
49851
49852 2008-04-13  Bruno Haible  <bruno@clisp.org>
49853
49854         Make truncl work on OSF/1 4.0.
49855         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49856         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49857         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49859         HAVE_DECL_TRUNCL.
49860         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49861         HAVE_DECL_TRUNCL.
49862         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49863
49864 2008-04-13  Bruno Haible  <bruno@clisp.org>
49865
49866         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49867
49868 2008-04-13  Bruno Haible  <bruno@clisp.org>
49869
49870         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49871         expression, so as to avoid HP-UX 11 cc compiler bug.
49872
49873 2008-04-13  Bruno Haible  <bruno@clisp.org>
49874
49875         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49876
49877 2008-04-13  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/git-merge-changelog.c: Remove empty declaration outside of
49880         functions.
49881
49882 2008-04-13  Bruno Haible  <bruno@clisp.org>
49883
49884         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49885
49886 2008-04-13  Bruno Haible  <bruno@clisp.org>
49887
49888         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49889         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49890         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49891         also if it exists but lacks definitions of the SHUT_* macros.
49892         * modules/sys_socket (Description): Update.
49893         Reported by Elbert Pol <e.pol@chello.nl>.
49894
49895 2008-04-13  Bruno Haible  <bruno@clisp.org>
49896
49897         * lib/localcharset.c (OS2): Don't redefine if already defined.
49898         Reported by Elbert Pol <e.pol@chello.nl>.
49899
49900 2008-04-13  Bruno Haible  <bruno@clisp.org>
49901
49902         * lib/binary-io.h [__EMX__]: Include <io.h>.
49903         Reported by Elbert Pol <e.pol@chello.nl>.
49904
49905 2008-04-12  Bruno Haible  <bruno@clisp.org>
49906
49907         * lib/fpucw.h: Enable the definitions also for x86_64.
49908         Needed for NetBSD/x86_64.
49909         Reported by Thomas Klausner <tk@giga.or.at>.
49910
49911 2008-04-12  Bruno Haible  <bruno@clisp.org>
49912
49913         * tests/test-strtod.c: Include isnand.h.
49914         (main): Use isnand instead of isnan.
49915         Reported by Jim Meyering.
49916
49917 2008-04-12  Bruno Haible  <bruno@clisp.org>
49918
49919         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49920         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49921
49922 2008-04-12  Jim Meyering  <meyering@redhat.com>
49923
49924         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49925
49926 2008-04-12  Bruno Haible  <bruno@clisp.org>
49927
49928         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49929         Reported by Elbert Pol <e.pol@chello.nl>.
49930
49931 2008-04-12  Eric Blake  <ebb9@byu.net>
49932
49933         Work around Solaris 10 math.h bug.
49934         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49935         (gl_MATH_H_DEFAULTS): Set up default.
49936         * modules/math (Makefile.am): Replace new indicators.
49937         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49938         * tests/test-math.c (main): Test this.
49939         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49940         * doc/posix-headers/math.texi (math.h): Mention bug.
49941         Reported by Nelson H. F. Beebe and Jim Meyering.
49942
49943 2008-04-11  Bruno Haible  <bruno@clisp.org>
49944
49945         Adapt to future versions of Apple GCC.
49946         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49947         Reported by Peter O'Gorman <peter@pogma.com>.
49948
49949 2008-04-11  Bruno Haible  <bruno@clisp.org>
49950
49951         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49952
49953 2008-04-11  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49956
49957         * modules/getaddrinfo-tests (Makefile.am): Define
49958         test_getaddrinfo_LDADD.
49959
49960 2008-04-11  Bruno Haible  <bruno@clisp.org>
49961
49962         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49963         (init): Fix syntax error.
49964         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49965         is declared.
49966
49967 2008-04-11  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49970         * modules/glob (Depends-on): Add stdbool.
49971
49972 2008-04-11  Bruno Haible  <bruno@clisp.org>
49973
49974         * lib/trim.c: Include <string.h>.
49975
49976 2008-04-11  Eric Blake  <ebb9@byu.net>
49977
49978         Avoid compile failure on OS/2.
49979         * lib/regex_internal.h (internal_function): Disable optimization
49980         on OS/2 (__EMX__), where it caused compiler error.
49981         Reported by Elbert Pol.
49982
49983 2008-04-11  Bruno Haible  <bruno@clisp.org>
49984
49985         Flush the standard error stream before aborting. Needed on mingw.
49986         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49987         * tests/test-array_list.c (ASSERT): Likewise.
49988         * tests/test-array_oset.c (ASSERT): Likewise.
49989         * tests/test-avltree_list.c (ASSERT): Likewise.
49990         * tests/test-avltree_oset.c (ASSERT): Likewise.
49991         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49992         * tests/test-binary-io.c (ASSERT): Likewise.
49993         * tests/test-byteswap.c (ASSERT): Likewise.
49994         * tests/test-c-ctype.c (ASSERT): Likewise.
49995         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49996         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49997         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49998         * tests/test-c-strstr.c (ASSERT): Likewise.
49999         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50000         * tests/test-canonicalize.c (ASSERT): Likewise.
50001         * tests/test-carray_list.c (ASSERT): Likewise.
50002         * tests/test-ceilf1.c (ASSERT): Likewise.
50003         * tests/test-ceilf2.c (ASSERT): Likewise.
50004         * tests/test-ceill.c (ASSERT): Likewise.
50005         * tests/test-count-one-bits.c (ASSERT): Likewise.
50006         * tests/test-fbufmode.c (ASSERT): Likewise.
50007         * tests/test-fflush2.c (ASSERT): Likewise.
50008         * tests/test-floorf1.c (ASSERT): Likewise.
50009         * tests/test-floorf2.c (ASSERT): Likewise.
50010         * tests/test-floorl.c (ASSERT): Likewise.
50011         * tests/test-fopen.c (ASSERT): Likewise.
50012         * tests/test-fpending.c (ASSERT): Likewise.
50013         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50014         * tests/test-fpurge.c (ASSERT): Likewise.
50015         * tests/test-freadable.c (ASSERT): Likewise.
50016         * tests/test-freadahead.c (ASSERT): Likewise.
50017         * tests/test-freading.c (ASSERT): Likewise.
50018         * tests/test-freadptr.c (ASSERT): Likewise.
50019         * tests/test-freadptr2.c (ASSERT): Likewise.
50020         * tests/test-freadseek.c (ASSERT): Likewise.
50021         * tests/test-freopen.c (ASSERT): Likewise.
50022         * tests/test-frexp.c (ASSERT): Likewise.
50023         * tests/test-frexpl.c (ASSERT): Likewise.
50024         * tests/test-fseek.c (ASSERT): Likewise.
50025         * tests/test-fseeko.c (ASSERT): Likewise.
50026         * tests/test-fstrcmp.c (ASSERT): Likewise.
50027         * tests/test-ftell.c (ASSERT): Likewise.
50028         * tests/test-ftello.c (ASSERT): Likewise.
50029         * tests/test-func.c (ASSERT): Likewise.
50030         * tests/test-fwritable.c (ASSERT): Likewise.
50031         * tests/test-fwriting.c (ASSERT): Likewise.
50032         * tests/test-getdelim.c (ASSERT): Likewise.
50033         * tests/test-getline.c (ASSERT): Likewise.
50034         * tests/test-i-ring.c (ASSERT): Likewise.
50035         * tests/test-iconv-utf.c (ASSERT): Likewise.
50036         * tests/test-iconv.c (ASSERT): Likewise.
50037         * tests/test-isfinite.c (ASSERT): Likewise.
50038         * tests/test-isnand.c (ASSERT): Likewise.
50039         * tests/test-isnanf.c (ASSERT): Likewise.
50040         * tests/test-isnanl.h (ASSERT): Likewise.
50041         * tests/test-ldexpl.c (ASSERT): Likewise.
50042         * tests/test-linked_list.c (ASSERT): Likewise.
50043         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50044         * tests/test-localename.c (ASSERT): Likewise.
50045         * tests/test-lseek.c (ASSERT): Likewise.
50046         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50047         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50048         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50049         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50050         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50051         * tests/test-mbschr.c (ASSERT): Likewise.
50052         * tests/test-mbscspn.c (ASSERT): Likewise.
50053         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50054         * tests/test-mbspbrk.c (ASSERT): Likewise.
50055         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50056         * tests/test-mbsrchr.c (ASSERT): Likewise.
50057         * tests/test-mbsspn.c (ASSERT): Likewise.
50058         * tests/test-mbsstr1.c (ASSERT): Likewise.
50059         * tests/test-mbsstr2.c (ASSERT): Likewise.
50060         * tests/test-mbsstr3.c (ASSERT): Likewise.
50061         * tests/test-memchr2.c (ASSERT): Likewise.
50062         * tests/test-memmem.c (ASSERT): Likewise.
50063         * tests/test-open.c (ASSERT): Likewise.
50064         * tests/test-printf-frexp.c (ASSERT): Likewise.
50065         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50066         * tests/test-printf-posix.c (ASSERT): Likewise.
50067         * tests/test-quotearg.c (ASSERT): Likewise.
50068         * tests/test-rbtree_list.c (ASSERT): Likewise.
50069         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50070         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50071         * tests/test-round1.c (ASSERT): Likewise.
50072         * tests/test-roundf1.c (ASSERT): Likewise.
50073         * tests/test-roundl.c (ASSERT): Likewise.
50074         * tests/test-signbit.c (ASSERT): Likewise.
50075         * tests/test-sleep.c (ASSERT): Likewise.
50076         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50077         * tests/test-snprintf.c (ASSERT): Likewise.
50078         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50079         * tests/test-stat-time.c (ASSERT): Likewise.
50080         * tests/test-strcasestr.c (ASSERT): Likewise.
50081         * tests/test-strerror.c (ASSERT): Likewise.
50082         * tests/test-striconv.c (ASSERT): Likewise.
50083         * tests/test-striconveh.c (ASSERT): Likewise.
50084         * tests/test-striconveha.c (ASSERT): Likewise.
50085         * tests/test-strsignal.c (ASSERT): Likewise.
50086         * tests/test-strstr.c (ASSERT): Likewise.
50087         * tests/test-strtod.c (ASSERT): Likewise.
50088         * tests/test-trunc1.c (ASSERT): Likewise.
50089         * tests/test-trunc2.c (ASSERT): Likewise.
50090         * tests/test-truncf1.c (ASSERT): Likewise.
50091         * tests/test-truncf2.c (ASSERT): Likewise.
50092         * tests/test-truncl.c (ASSERT): Likewise.
50093         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50094         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50095         * tests/test-vasnprintf.c (ASSERT): Likewise.
50096         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50097         * tests/test-vasprintf.c (ASSERT): Likewise.
50098         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50099         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50100         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50101         * tests/test-vsnprintf.c (ASSERT): Likewise.
50102         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50103         * tests/test-wcwidth.c (ASSERT): Likewise.
50104         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50105         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50106         * tests/test-xvasprintf.c (ASSERT): Likewise.
50107         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50108         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50109         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50110         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50111         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50112         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50113         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50114         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50115         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50116         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50117         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50118         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50119         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50120         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50121         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50122         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50123         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50124         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50125         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50126         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50127         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50128         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50129         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50130         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50131         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50132         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50133         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50134         * tests/unictype/test-combining.c (ASSERT): Likewise.
50135         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50136         * tests/unictype/test-digit.c (ASSERT): Likewise.
50137         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50138         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50139         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50140         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50141         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50142         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50143         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50144         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50145         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50146         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50147         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50148         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50149         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50150         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50151         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50152         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50153         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50154         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50155         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50156         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50157         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50158         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50159         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50160         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50161         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50162         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50163         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50164         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50165         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50166         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50167         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50168         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50169         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50170         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50171         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50172         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50173         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50174         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50175         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50176         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50177         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50178         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50179         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50180         Reported by Eric Blake.
50181
50182 2008-04-11  Bruno Haible  <bruno@clisp.org>
50183
50184         * lib/wchar.in.h: Tweak comment.
50185
50186 2008-04-11  Bruno Haible  <bruno@clisp.org>
50187
50188         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50189         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50190         gl_COMMON.
50191         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50192
50193 2008-04-11  Bruno Haible  <bruno@clisp.org>
50194
50195         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50196
50197 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50198
50199         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50200         of attempting to use non-existing /dev/*random.  Based on patch
50201         from Adam Strzelecki <ono@java.pl> in
50202         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50203
50204 2008-04-08  Bruno Haible  <bruno@clisp.org>
50205
50206         Add tentative support for emx+gcc.
50207         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50208         * lib/fpurge.c (fpurge): Likewise.
50209         * lib/freadable.c (freadable): Likewise.
50210         * lib/freadahead.c (freadahead): Likewise.
50211         * lib/freading.c (freading): Likewise.
50212         * lib/freadptr.c (freadptr): Likewise.
50213         * lib/freadseek.c (freadptrinc): Likewise.
50214         * lib/fseeko.c (rpl_fseeko): Likewise.
50215         * lib/fseterr.c (fseterr): Likewise.
50216         * lib/fwritable.c (fwritable): Likewise.
50217         * lib/fwriting.c (fwriting): Likewise.
50218         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50219
50220 2008-04-09  Eric Blake  <ebb9@byu.net>
50221
50222         Avoid some autoconf warnings.
50223         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50224         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50225         * m4/afs.m4 (gl_AFS): Likewise.
50226         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50227         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50228         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50229         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50230         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50231         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50232         (AC_CHECK_DECLS_ONCE): Likewise.
50233         Rename file...
50234         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50235         gnulib-tool requires autoconf 2.59 or better.
50236         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50237
50238 2008-04-08  Eric Blake  <ebb9@byu.net>
50239
50240         Use 'git describe --match' if present (added in git 1.5.5).
50241         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50242         if possible.
50243
50244 2008-04-08  Bruno Haible  <bruno@clisp.org>
50245
50246         Add tentative support for OpenServer.
50247         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50248         _ptr, _cnt.
50249         * lib/fpurge.c (fpurge): Likewise.
50250         * lib/freadable.c (freadable): Likewise.
50251         * lib/freadahead.c (freadahead): Likewise.
50252         * lib/freading.c (freading): Likewise.
50253         * lib/freadptr.c (freadptr): Likewise.
50254         * lib/freadseek.c (freadptrinc): Likewise.
50255         * lib/fseeko.c (rpl_fseeko): Likewise.
50256         * lib/fseterr.c (fseterr): Likewise.
50257         * lib/fwritable.c (fwritable): Likewise.
50258         * lib/fwriting.c (fwriting): Likewise.
50259         Reported by Roger Cornelius <rac@tenzing.org> and
50260         Brian K. White <brian@aljex.com>.
50261
50262 2008-04-06  Jim Meyering  <meyering@redhat.com>
50263
50264         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50265
50266 2008-04-06  Bruno Haible  <bruno@clisp.org>
50267
50268         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50269         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50270         * tests/test-printf-posix.sh: Likewise.
50271         * tests/test-vfprintf-posix.sh: Likewise.
50272         * tests/test-vprintf-posix.sh: Likewise.
50273         * tests/test-xprintf-posix.sh: Likewise.
50274
50275 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50276
50277         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50278         hide error from 'ls', needed on OS/2.
50279         Report by Elbert Pol <elbert.pol@gmail.com>.
50280
50281 2008-04-04  Eric Blake  <ebb9@byu.net>
50282
50283         Make test-fseeko.c failures meaningful.
50284         * tests/test-fseeko.c: Print line number on failure.
50285         * tests/test-fseek.c: Likewise.
50286         Reported by Nelson H. F. Beebe.
50287
50288         Improve strtod bug detection check.
50289         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50290         required for Solaris 10.
50291         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50292
50293 2008-04-04  Bruno Haible  <bruno@clisp.org>
50294
50295         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50296         by m4/setenv.m4.
50297
50298 2008-04-03  Eric Blake  <ebb9@byu.net>
50299
50300         Ensure sane .version contents.
50301         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50302         version string.
50303         * build-aux/git-version-gen: Improve documentation.
50304
50305         Make GNU make output nicer.
50306         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50307         MAKECMDGOALS to enforce message for all command line targets.  Set
50308         srcdir for use in maint.mk.
50309
50310         Another maintainer tweak.
50311         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50312         a target that regenerates version.
50313
50314 2008-04-03  Jim Meyering  <meyering@redhat.com>
50315
50316         vc-list-files: don't cause coreutils "make po-check" failure
50317         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50318
50319 2008-04-03  Eric Blake  <ebb9@byu.net>
50320
50321         Allow VPATH usage of vc-list-files.
50322         * build-aux/vc-list-files (scriptversion): Add timestamp.
50323         (options): Add --help, --version, -C.
50324         (CVS): Support installed cvsu.
50325
50326 2008-04-02  Bruno Haible  <bruno@clisp.org>
50327
50328         Avoid some "statement with no effect" warnings from gcc.
50329         * tests/test-wctype.c (main): Explicitly ignore unused values.
50330         Reported by Jim Meyering.
50331
50332 2008-04-02  Jim Meyering  <meyering@redhat.com>
50333
50334         Avoid some warnings from "gcc -Wshadow".
50335         * tests/test-frexp.c (exp): Define to a different identifier.
50336         * tests/test-frexpl.c (exp): Likewise.
50337
50338 2008-04-03  Jim Meyering  <meyering@redhat.com>
50339
50340         bootstrap: remove dangling *.[ch] symlinks from lib
50341         * build-aux/bootstrap [dangling symlink removal]: Move find's
50342         -depth option to precede all others, to avoid a warning.
50343         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50344
50345 2008-04-02  Bruno Haible  <bruno@clisp.org>
50346
50347         Avoid some warnings from "gcc -Wshadow".
50348         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50349         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50350         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50351         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50352         Reported by Jim Meyering.
50353
50354 2008-04-01  Bruno Haible  <bruno@clisp.org>
50355
50356         Fix test to work on IRIX 6.5 with cc.
50357         * tests/test-math.c (numeric_equal): New function.
50358         (main): Use it.
50359
50360 2008-04-01  Bruno Haible  <bruno@clisp.org>
50361
50362         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50363
50364 2008-04-01  Bruno Haible  <bruno@clisp.org>
50365
50366         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50367         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50368         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50369         (Depends-on): Remove math.
50370
50371         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50372         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50373         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50374         (Depends-on): Remove math.
50375
50376         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50377         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50378         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50379         (Depends-on): Remove math.
50380         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50381         (Depends-on): Remove math.
50382
50383         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50384         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50385         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50386         (Depends-on): Remove math.
50387         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50388         (Depends-on): Remove math.
50389
50390         * tests/test-round1.c: Include nan.h.
50391         (main): Use NaNd instead of NAN.
50392         * modules/round-tests (Files): Add tests/nan.h.
50393
50394         * tests/test-trunc1.c: Include nan.h.
50395         (main): Use NaNd instead of NAN.
50396         * modules/trunc-tests (Files): Add tests/nan.h.
50397
50398         * tests/test-roundf1.c: Include nan.h.
50399         (main): Use NaNf instead of NAN.
50400         * modules/roundf-tests (Files): Add tests/nan.h.
50401
50402         * tests/test-truncf1.c: Include nan.h.
50403         (main): Use NaNf instead of NAN.
50404         * modules/truncf-tests (Files): Add tests/nan.h.
50405
50406         * tests/test-ceilf1.c: Include nan.h.
50407         (main): Use NaNf instead of NAN.
50408         * modules/ceilf-tests (Files): Add tests/nan.h.
50409
50410         * tests/test-floorf1.c: Include nan.h.
50411         (main): Use NaNf instead of NAN.
50412         * modules/floorf-tests (Files): Add tests/nan.h.
50413
50414         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50415         (main): Use NaNf instead of NAN.
50416         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50417
50418         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50419         (main): Use NaNd instead of NAN.
50420         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50421
50422         * tests/test-frexp.c: Include nan.h.
50423         (main): Use NaNd instead of NAN.
50424         * modules/frexp-tests (Files): Add tests/nan.h.
50425
50426         * lib/isnan.c: Don't include <math.h>.
50427         (FUNC): Don't use NAN macro.
50428         * modules/isnand-nolibm (Depends-on): Remove math.
50429         * modules/isnanf-nolibm (Depends-on): Remove math.
50430         * modules/isnanl (Depends-on): Remove math.
50431         * modules/isnanl-nolibm (Depends-on): Remove math.
50432
50433         * tests/nan.h: New file.
50434
50435 2008-04-01  Eric Blake  <ebb9@byu.net>
50436
50437         Fix typos.
50438         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50439         values to be the right type.
50440
50441         For now, cater to gnulib strtod inaccuracies.
50442         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50443         fractional results.  While not as nice from a QoI perspective, it
50444         is a quicker patch than correctly implementing decimal to binary
50445         rounding.
50446
50447 2008-03-31  Eric Blake  <ebb9@byu.net>
50448
50449         Guarantee a definition of NAN.
50450         * lib/math.in.h (NAN): Define if missing.
50451         * tests/test-math.c (main): Test it.
50452         * doc/posix-headers/math.texi (math.h): Document this.
50453         * lib/isnan.c (rpl_isnand): Use it.
50454         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50455         * tests/test-floorf1.c (NaN): Likewise.
50456         * tests/test-frexp.c (NaN): Likewise.
50457         * tests/test-isnand.c (NaN): Likewise.
50458         * tests/test-isnanf.c (NaN): Likewise.
50459         * tests/test-round1.c (NaN): Likewise.
50460         * tests/test-roundf1.c (NaN): Likewise.
50461         * tests/test-snprintf-posix.h (NaN): Likewise.
50462         * tests/test-sprintf-posix.h (NaN): Likewise.
50463         * tests/test-trunc1.c (NaN): Likewise.
50464         * tests/test-truncf1.c (NaN): Likewise.
50465         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50466         * tests/test-vasprintf-posix.c (NaN): Likewise.
50467         * modules/isnand-nolibm (Depends-on): Add math.
50468         * modules/isnanf-nolibm (Depends-on): Likewise.
50469         * modules/isnanl (Depends-on): Likewise.
50470         * modules/isnanl-nolibm (Depends-on): Likewise.
50471         * modules/snprintf-posix-tests (Depends-on): Likewise.
50472         * modules/sprintf-posix-tests (Depends-on): Likewise.
50473         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50474         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50475         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50476         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50477
50478 2008-03-31  Bruno Haible  <bruno@clisp.org>
50479
50480         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50481         * doc/posix-functions/strtod.texi: Likewise.
50482
50483 2008-03-31  Bruno Haible  <bruno@clisp.org>
50484
50485         * tests/test-strtod.c (main): Don't use C99 syntax.
50486
50487 2008-03-31  Bruno Haible  <bruno@clisp.org>
50488
50489         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50490         Reported by Eric Blake.
50491
50492 2008-03-31  Jim Meyering  <meyering@redhat.com>
50493
50494         Don't compare actual signbit return values.
50495         * tests/test-strtod.c (main): Rather, compare only their
50496         zero/non-zero nature.
50497
50498 2008-03-31  Eric Blake  <ebb9@byu.net>
50499
50500         More strtod documentation.
50501         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50502         failures as distinct bugs.
50503
50504 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50505
50506         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50507         Problem reported by Erik Benada in
50508         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50509
50510 2008-03-30  Bruno Haible  <bruno@clisp.org>
50511
50512         * tests/test-strtod.c: Add comments about which assertion fails on which
50513         platform.
50514         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50515
50516 2008-03-30  Eric Blake  <ebb9@byu.net>
50517
50518         Test signbit behavior on zeros.
50519         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50520         (test_signbitd, test_signbitl): Likewise.
50521
50522         More strtod touchups.
50523         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50524         sign of negative underflow, for now.  Use .5, not .1.
50525         * doc/posix-functions/strtod.texi (strtod): Mention these
50526         limitations.
50527         Reported by Jim Meyering.
50528
50529 2008-03-30  Bruno Haible  <bruno@clisp.org>
50530
50531         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50532         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50533
50534 2008-03-30  Bruno Haible  <bruno@clisp.org>
50535
50536         Avoid failure when attempting to return empty iconv results on some
50537         platforms.
50538         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50539         allocation, don't report ENOMEM when the resulting string is empty.
50540
50541 2008-03-30  Bruno Haible  <bruno@clisp.org>
50542
50543         Fix buffer overrun.
50544         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50545         Don't consider the width for tmp_length. Check count against tmp_length
50546         before doing the padding. Ensure enough allocation during padding.
50547
50548 2008-03-30  Eric Blake  <ebb9@byu.net>
50549
50550         strtod touchups.
50551         * lib/strtod.c (strtod): Avoid compiler warnings.
50552         Reported by Jim Meyering.
50553
50554 2008-03-30  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50557         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50558         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50559         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50560         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50561         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50562         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50563         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50564
50565         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50566         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50567         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50568         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50569         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50570         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50571         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50572         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50573
50574         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50575         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50576         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50577         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50578         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50579         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50580         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50581         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50582
50583         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50584         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50585
50586         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50587         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50588
50589         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50590         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50591
50592         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50593         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50594         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50595
50596         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50598         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50599
50600         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50601         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50602         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50603
50604         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50605         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50606         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50607
50608         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50609         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50610         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50611         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50612         (Depends-on): Add EOVERFLOW.
50613         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50614         (Depends-on): Add EOVERFLOW.
50615         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50616         (Depends-on): Add EOVERFLOW.
50617         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50618         (Depends-on): Add EOVERFLOW.
50619         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50620         (Depends-on): Add EOVERFLOW.
50621         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50622         (Depends-on): Add EOVERFLOW.
50623         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50624         (Depends-on): Add EOVERFLOW.
50625         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50626         (Depends-on): Add EOVERFLOW.
50627
50628         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50629         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50630         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50631
50632         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50633         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50634         * modules/snprintf (Depends-on): Add EOVERFLOW.
50635
50636         * lib/poll.c (EOVERFLOW): Remove fallback.
50637         * modules/poll (Depends-on): Add EOVERFLOW.
50638
50639         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50640         * modules/getugroups (Depends-on): Add EOVERFLOW.
50641
50642         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50643         * modules/getdelim (Depends-on): Add EOVERFLOW.
50644
50645         * lib/ftell.c (EOVERFLOW): Remove fallback.
50646         * modules/ftell (Depends-on): Add EOVERFLOW.
50647
50648         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50649         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50650         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50651
50652         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50653
50654         * modules/EOVERFLOW-tests: New file.
50655         * tests/test-EOVERFLOW.c: New file.
50656
50657         * modules/EOVERFLOW: New file.
50658         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50659
50660 2008-03-30  Bruno Haible  <bruno@clisp.org>
50661
50662         Fix bug introduced on 2007-06-10.
50663         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50664         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50665
50666 2008-03-30  Bruno Haible  <bruno@clisp.org>
50667
50668         Improve freadseek's efficiency after ungetc.
50669         * lib/freadseek.c: Include freadahead.h.
50670         (freadptrinc): New function, extracted from freadseek.
50671         (freadseek): Use it in a loop. Use freadahead to determine the number
50672         of loop iterations.
50673         * modules/freadseek (Depends-on): Add freadahead.
50674         (configure.ac): Require AC_C_INLINE.
50675
50676 2008-03-30  Bruno Haible  <bruno@clisp.org>
50677
50678         * lib/freadseek.c (freadseek): Don't ignore the return value of
50679         freadptr.
50680
50681 2008-03-29  Eric Blake  <ebb9@byu.net>
50682
50683         Add hex float support.
50684         * modules/strtod (Depends-on): Add c-ctype.
50685         (Link): Mention POW_LIB.
50686         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50687         whitespace between 'e' and exponent.
50688         * tests/test-strtod.c (main): Enable hex float tests.
50689         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50690         now provides.
50691
50692         Document various strtod bugs, with some fixes.
50693         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50694         "-0x", "inf", "nan", and hex constants.
50695         * doc/posix-functions/atof.texi (atof): Likewise.
50696         * modules/stdlib (Makefile.am): Support strtod.
50697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50698         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50699         detect additional strtod bugs.
50700         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50701         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50702         bool where appropriate.  Parse 'inf' and 'nan'.
50703         * tests/test-strtod.c: New file.
50704         * modules/strtod (Depends-on): Add stdbool, stdlib.
50705         (configure.ac): Turn on module indicator.
50706         * modules/strtod-tests: New module.
50707
50708 2008-03-29  Eric Blake  <ebb9@byu.net>
50709
50710         Fix ftell on mingw.
50711         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50712         * modules/ftell-tests (Depends-on): Add binary-io.
50713         * modules/ftello-tests (Depends-on): Likewise.
50714         * tests/test-ftell.c (main): Enhance test to cover behavior after
50715         ungetc.  Enforce binary mode.
50716         * tests/test-ftello.c (main): Likewise.
50717
50718         Pass test-freadseek on cygwin.
50719         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50720         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50721         ungetc buffer.
50722
50723         * tests/test-fflush2.c (main): Fix typo.
50724
50725 2008-03-29  Bruno Haible  <bruno@clisp.org>
50726
50727         * tests/test-fflush2.c (main): Temporarily disable the contents of
50728         this test.
50729         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50730         Reported by Eric Blake.
50731
50732 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50733
50734         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50735         (GC_SHA224_DIGEST_SIZE): Add.
50736
50737         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50738         (gc_hash_digest_length): Likewise.
50739         (gc_hash_buffer): Likewise.
50740
50741 2008-03-25  Bruno Haible  <bruno@clisp.org>
50742
50743         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50744         detail which gettext release to use.
50745         Reported by Simon Josefsson.
50746
50747 2008-03-26  Jim Meyering  <meyering@redhat.com>
50748
50749         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50750         * modules/gnumakefile (clean-GNUmakefile): Also, use
50751         test ... && ... || : syntax rather than if-then ... fi.
50752
50753         gnumakefile: Don't double-quote-expand $(VPATH) value.
50754         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50755
50756 2008-03-24  Eric Blake  <ebb9@byu.net>
50757
50758         Alter GNUmakefile to install into top directory.
50759         * modules/maintainer-makefile: Split, and add dependency...
50760         * modules/gnumakefile: to this new module.
50761         * build-aux/GNUmakefile: Move...
50762         * top/GNUmakefile: ...here.
50763         * build-aux/maint.mk: Move...
50764         * top/maint.mk: ...here.
50765         * MODULES.html.sh (Support for maintaining...): Document new
50766         module.
50767
50768 2008-03-23  Bruno Haible  <bruno@clisp.org>
50769
50770         * gnulib-tool: New options --vc-files, --no-vc-files.
50771         (func_usage): Document them.
50772         (vc_files): New variable.
50773         (func_import): Consider vc_files.
50774         (func_create_testdir): Set vc_files to empty.
50775         Suggested by Jim Meyering and Karl Berry.
50776
50777 2008-03-23  Bruno Haible  <bruno@clisp.org>
50778
50779         Fix regex compilation error on HP-UX 11.
50780         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50781         * modules/regex (Files): Add m4/mbstate_t.m4.
50782         Reported by Ton Voon <ton.voon@altinity.com>.
50783
50784 2008-03-23  Bruno Haible  <bruno@clisp.org>
50785
50786         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50787
50788 2008-03-23  Eric Blake  <ebb9@byu.net>
50789             Bruno Haible  <bruno@clisp.org>
50790
50791         Install files from top/ in the destination directory.
50792         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50793         augmentation also for the files from top/.
50794         (func_import, func_create_testdir): Rewrite file names:
50795         top/filename -> filename.
50796
50797 2008-03-23  Bruno Haible  <bruno@clisp.org>
50798
50799         Tweak "gnulib --version" output.
50800         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50801
50802 2008-03-23  Bruno Haible  <bruno@clisp.org>
50803
50804         Tweak "gnulib --version" output.
50805         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50806         rather than contents of ChangeLog, when possible.
50807
50808 2008-03-21  Eric Blake  <ebb9@byu.net>
50809
50810         More --version tweaks.
50811         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50812         date of last ChangeLog entry.
50813
50814 2008-03-21  Jim Meyering  <meyering@redhat.com>
50815
50816         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50817
50818 2008-03-20  Eric Blake  <ebb9@byu.net>
50819
50820         VPATH fix.
50821         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50822
50823 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50824
50825         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50826         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50827
50828 2008-03-20  Eric Blake  <ebb9@byu.net>
50829
50830         Sync GNUmakefile with coreutils.
50831         * build-aux/GNUmakefile (have-Makefile): Rename...
50832         (_have-Makefile): ...to this, for namespace consideration.
50833         (GNUmakefile.cfg): Include, if present.
50834         (_autoreconf): Define a default.
50835         (_is-dist-target): New rule for rebuilds to pick up intra-release
50836         version.
50837         (maint-cfg.mk): Rename...
50838         (cfg.mk): ...to this.
50839
50840 2008-03-18  Jim Meyering  <meyering@redhat.com>
50841
50842         New script and module: mktempd
50843         * MODULES.html.sh (maint+release support): Add mktempd.
50844         * build-aux/mktempd: New file.
50845         * modules/mktempd: New file.
50846
50847 2008-03-15  Jim Meyering  <meyering@redhat.com>
50848
50849         Undo last change.
50850         * lib/sha1.c, lib/md5.c: 63 != ~63.
50851         Reported by Andreas Schwab.
50852
50853         sha1.c, md5.c: Hoist a redundant expression.
50854         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50855         "ctx->buflen" only once, before calling *_process_block.
50856         * lib/md5.c (md5_process_bytes): Likewise.
50857
50858 2008-03-14  Eric Blake  <ebb9@byu.net>
50859
50860         Bump copyright year in files generated by gnulib-tool.
50861         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50862         gnulib-tool, rather than hard-coding it.
50863
50864         Fix 'gnulib-tool --version' output to work with git.
50865         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50866         (startup): ...here.
50867         (func_version): Use it to invoke git-version-gen, rather than
50868         relying on CVS keyword expansion.  Modernize wording.
50869         (cvsdatestamp, last_checkin_date, version): Kill unused
50870         variables.
50871
50872 2008-03-12  Jim Meyering  <meyering@redhat.com>
50873
50874         Recognize optional cast of the argument to free.
50875         * build-aux/useless-if-before-free: Update regexps.
50876
50877         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50878
50879 2008-03-11  Bruno Haible  <bruno@clisp.org>
50880
50881         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50882         by a single package.
50883         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50884         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50885         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50886         Reported by Sam Steingold <sds@gnu.org>.
50887
50888 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50889
50890         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50891         repositories.
50892
50893 2008-03-11  Bruno Haible  <bruno@clisp.org>
50894
50895         Avoid conflicts between local macro definitions.
50896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50897         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50898
50899 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50900             Bruno Haible  <bruno@clisp.org>
50901
50902         Make va_copy work with some version of xlc on AIX 5.1.
50903         * lib/stdarg.in.h: New file.
50904         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50905         On AIX, use a <stdarg.h> file substitute.
50906         * modules/stdarg (Files): Add lib/stdarg.in.h.
50907         (Depends-on): Add include_next.
50908         (Makefile.am): Build a stdarg.h substitute if requested.
50909         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50910
50911 2008-03-10  Bruno Haible  <bruno@clisp.org>
50912
50913         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50914         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50915         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50916
50917 2008-03-10  Bruno Haible  <bruno@clisp.org>
50918
50919         * modules/stdlib (Depends-on): Add include_next, remove
50920         absolute-header.
50921
50922 2008-03-09  Bruno Haible  <bruno@clisp.org>
50923
50924         * lib/freadahead.h (freadahead): Document more precisely.
50925         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50926         the sum of both buffer sizes.
50927         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50928         * NEWS: Document the change.
50929
50930 2008-03-09  Bruno Haible  <bruno@clisp.org>
50931
50932         Extend freadptr to return also the buffer size.
50933         * lib/freadptr.h (freadptr): Add sizep argument.
50934         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50935         (freadptr): Add sizep argument. Determine buffer size like freadahead
50936         does.
50937         * tests/test-freadptr.c: Don't include freadahead.h.
50938         (main): Adapt for new calling convention of freadptr.
50939         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50940         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50941         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50942         tests/test-freadptr2.sh.
50943         (Depends): Remove freadahead.
50944         (TESTS): Add test-freadptr2.sh.
50945         (check_PROGRAMS): Add test-freadptr2.
50946
50947 2008-03-09  Bruno Haible  <bruno@clisp.org>
50948
50949         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50950         Report and solution by Simon Josefsson.
50951
50952 2008-03-06  Bruno Haible  <bruno@clisp.org>
50953
50954         Make fflush after ungetc work on BSD platforms.
50955         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50956         * tests/test-fflush2.c: New file.
50957         * tests/test-fflush2.sh: New file.
50958         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50959         tests/test-fflush2.c.
50960         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50961         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50962
50963 2008-03-06  Eric Blake  <ebb9@byu.net>
50964
50965         Likewise for ftello.
50966         * modules/ftello (Dependencies): Add extensions.
50967         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50968
50969 2008-03-06  Bruno Haible  <bruno@clisp.org>
50970
50971         * modules/fseeko (Dependencies): Add extensions.
50972         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50973         Needed on glibc systems.
50974
50975 2008-03-06  Bruno Haible  <bruno@clisp.org>
50976
50977         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50978         email address.
50979         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50980
50981 2008-03-06  Bruno Haible  <bruno@clisp.org>
50982
50983         * users.txt: Add libgnupdf.
50984
50985 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50986
50987         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50988         (Header File Substitutes, Function Substitutes,
50989         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50990         (Build robot for gnulib): Fix typo.
50991
50992 2008-03-06  Bruno Haible  <bruno@clisp.org>
50993
50994         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50995         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50996
50997 2008-03-06  Bruno Haible  <bruno@clisp.org>
50998
50999         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51000         * doc/gnulib.texi: Include it.
51001
51002 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51003
51004         * modules/func (License): Change license to unlimited; there was
51005         no LGPL parts in the module anyway.
51006
51007 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51008
51009         * modules/__func__: Renamed to modules/func.
51010         * modules/__func__-tests: Renamed to modules/func-tests.
51011         * tests/test-__func__.c: Renamed to tests/test-func.c.
51012         * m4/__func__.m4: Renamed to m4/func.m4.
51013         * doc/gnulib.texi (__func__): Section renamed to func.
51014         Suggested by Eric Blake <ebb9@byu.net>.
51015
51016 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51017
51018         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51019         about __func__.  Make example self-contained.  Suggested by Eric
51020         Blake <ebb9@byu.net>.
51021
51022         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51023         Suggested by Eric Blake <ebb9@byu.net>.
51024
51025 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51026
51027         * modules/__func__: New file.
51028         * modules/__func__-tests: New file.
51029         * tests/test-__func__.c: New file.
51030         * m4/__func__.m4: New file.
51031         * doc/gnulib.texi (__func__): Document __func__ module.
51032
51033 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51034
51035         * modules/byteswap (License): Re-license as LGPLv2+.
51036
51037 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51038
51039         * doc/Makefile: Add pdf target.
51040
51041 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51042
51043         * modules/inline (License): Use 'unlimited', since there are only
51044         *.m4 files in this module.
51045
51046 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51047             Bruno Haible  <bruno@clisp.org>
51048
51049         Add support for HP C 7.1 on OpenVMS 8.3.
51050         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51051
51052 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51053
51054         Update VMS specifics.
51055         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51056
51057 2008-03-02  Jim Meyering  <meyering@redhat.com>
51058
51059         Remove the last dependency on the "free" module.
51060         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51061         Reported by Bob Proulx.
51062
51063         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51064
51065         Remove useless "if" tests before free.  Deprecate "free" module.
51066         * doc/posix-functions/free.texi: Mention that this
51067         module is no longer useful.
51068         * modules/free (Notice): Say this module is obsolete.
51069         * modules/readutmp (Depends-on): Remove free.
51070         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51071         * lib/putenv.c (putenv): Likewise.
51072         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51073         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51074         * tests/test-c-strcasestr.c (main): Likewise.
51075         * tests/test-c-strstr.c (main): Likewise.
51076         * tests/test-mbscasestr1.c (main): Likewise.
51077         * tests/test-mbscasestr2.c (main): Likewise.
51078         * tests/test-mbsstr1.c (main): Likewise.
51079         * tests/test-mbsstr2.c (main): Likewise.
51080         * tests/test-memmem.c (main): Likewise.
51081         * tests/test-strcasestr.c (main): Likewise.
51082         * tests/test-striconv.c (main): Likewise.
51083         * tests/test-striconveh.c (main): Likewise.
51084         * tests/test-striconveha.c (main): Likewise.
51085         * tests/test-strstr.c (main): Likewise.
51086
51087         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51088
51089         bootstrap: sync from coreutils again
51090         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51091
51092 2008-03-01  Jim Meyering  <meyering@redhat.com>
51093
51094         bootstrap: sync from coreutils
51095         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51096         also when the target doesn't exist.
51097
51098 2008-03-01  Eric Blake  <ebb9@byu.net>
51099
51100         Fix bugs in last patch.
51101         * lib/memchr2.c (memchr2): Fix typo.
51102         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51103         extension.
51104         Reported by Bruce Korb.
51105
51106         New module 'memchr2'.
51107         * modules/memchr2: New file.
51108         * modules/memchr2-tests: Likewise.
51109         * lib/memchr2.h: Likewise.
51110         * lib/memchr2.c: Likewise, based on memchr.c.
51111         * tests/test-memchr2.c: New test.
51112         * MODULES.html.sh (String handling): Add memchr2.
51113
51114 2008-02-29  Bruno Haible  <bruno@clisp.org>
51115
51116         * modules/freadseek-tests: New file.
51117         * tests/test-freadseek.sh: New file.
51118         * tests/test-freadseek.c: New file.
51119
51120         New module 'freadseek'.
51121         * modules/freadseek: New file.
51122         * lib/freadseek.h: New file.
51123         * lib/freadseek.c: New file.
51124         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51125
51126 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51127
51128         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51129         wydawca.
51130
51131         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51132         program_invocation_name and program_invocation_short_name are
51133         present.
51134
51135 2008-02-28  Bruno Haible  <bruno@clisp.org>
51136
51137         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51138         * tests/test-freadptr.sh: Also test non-seekable stdin.
51139
51140 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51141
51142         * build-aux/bootstrap (source_base, m4_base)
51143         (doc_base, tests_base): New variables.
51144         (gnulib_tool_options): Do not hardcode base directories, use
51145         the above variables instead.
51146
51147 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51148
51149         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51150
51151 2008-02-28  Bruno Haible  <bruno@clisp.org>
51152
51153         * modules/freadptr-tests: New file.
51154         * tests/test-freadptr.sh: New file.
51155         * tests/test-freadptr.c: New file.
51156
51157         New module 'freadptr'.
51158         * modules/freadptr: New file.
51159         * lib/freadptr.h: New file.
51160         * lib/freadptr.c: New file.
51161         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51162
51163 2008-02-26  Karl Berry  <karl@freefriends.org>
51164
51165         Sync from Libtool:
51166         * libltdl/argz.c (argz_add, argz_count): New functions.
51167         * libltdl/argz.in.h: Declare them.
51168         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51169
51170 2008-02-22  Bruno Haible  <bruno@clisp.org>
51171
51172         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51173         is a pointer type.  Needed for HP-UX 10.
51174         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51175         * doc/posix-functions/gmtime_r.texi: Likewise.
51176         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51177
51178 2008-02-24  Bruno Haible  <bruno@clisp.org>
51179
51180         * modules/environ-tests: New file.
51181         * tests/test-environ.c: New file.
51182
51183         New module 'environ'.
51184         * modules/environ: New file.
51185         * lib/unistd.in.h (environ): New declaration.
51186         * m4/environ.m4: New file.
51187         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51188         after use.
51189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51190         HAVE_DECL_ENVIRON.
51191         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51192         HAVE_DECL_ENVIRON.
51193         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51194         wrong claim that 'environ' is missing on some systems.
51195         * modules/execute (Depends-on): Add environ.
51196         * lib/execute.c (environ): Remove fallback declaration.
51197         * modules/pipe (Depends-on): Add environ.
51198         * lib/pipe.c (environ): Remove fallback declaration.
51199         * modules/setenv (Depends-on): Add environ.
51200         * lib/setenv.c (environ): Remove fallback declaration.
51201         * modules/unsetenv (Depends-on): Add environ.
51202         * lib/unsetenv.c (environ): Remove fallback declaration.
51203         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51204         m4/environ.m4.
51205         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51206         (gl_PREREQ_UNSETENV): Likewise.
51207
51208 2008-02-24  Bruno Haible  <bruno@clisp.org>
51209
51210         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51211
51212 2008-02-20  Bob Proulx  <bob@proulx.com>
51213
51214         Enable use of older two part flavor 'git describe'.
51215         * build-aux/git-version-gen: If using the older two part flavor of
51216         git version then recreate the third part now present in the
51217         newer three part flavor of git describe.
51218
51219 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51220
51221         * lib/fts.c (fts_build): Typo correction to comment.
51222
51223 2008-02-17  Bruno Haible  <bruno@clisp.org>
51224
51225         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51226         generating no-op conflicts.
51227
51228 2008-02-17  Bruno Haible  <bruno@clisp.org>
51229
51230         Speed up by 10%.
51231         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51232         result_entries, rather than an index-based loop.
51233
51234 2008-02-17  Bruno Haible  <bruno@clisp.org>
51235
51236         Speed up by 25%.
51237         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51238         'hashcode_cached'.
51239         (entry_create): New function.
51240         (entry_hashcode): Use the cached hashcode if possible.
51241         (read_changelog_file, try_split_merged_entry): Use entry_create.
51242
51243 2008-02-17  Bruno Haible  <bruno@clisp.org>
51244
51245         Speed up from O(n^2) to O(n) for long ChangeLog files.
51246         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51247         (read_changelog_file): Change implementation of entries_reversed list
51248         to rbtreehash.
51249         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51250
51251 2008-02-17  Bruno Haible  <bruno@clisp.org>
51252
51253         New option --split-merged-entry.
51254         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51255         (find_paragraph_end, try_split_merged_entry): New functions.
51256         (long_options): Add option --split-merged-entry.
51257         (usage): Document option --split-merged-entry.
51258         (main): Implement option --split-merged-entry.
51259         Reported by Eric Blake.
51260
51261 2008-02-17  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/git-merge-changelog.c: Include c-strstr.h.
51264         (main): Support the "git pull --rebase" situation.
51265         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51266         Reported by Eric Blake.
51267
51268 2008-02-16  Eric Blake  <ebb9@byu.net>
51269
51270         Avoid doubling \ in common case of "c-maybe" quoting style.
51271         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51272         eliding outer quotes.
51273         * lib/quotearg.h: Document this.
51274         * tests/test-quotearg.c (result_strings, inputs, results_g)
51275         (flag_results, locale_results): Test it by adding a new string to
51276         each test group.
51277         (compare_strings): Test new string.
51278
51279 2008-02-13  Eric Blake  <ebb9@byu.net>
51280
51281         Avoid trigraph quoting in default output.
51282         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51283         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51284         unless explicitly requested.
51285         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51286
51287 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51288
51289         Don't rely on signed integer overflowing to negative value.
51290         * lib/getugroups.c (getugroups): Include <limits.h>.
51291         Instead, compare against INT_MAX, and increment only if the test passes.
51292
51293 2008-02-13  Jim Meyering  <meyering@redhat.com>
51294         and Eric Blake  <ebb9@byu.net>
51295
51296         Avoid shadowing warning and compile errors on Linux.
51297         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51298         forwarding macros on Linux.
51299         (dcgettext): Define a stub, for Linux.
51300         (results_g, main): Avoid warnings.
51301
51302 2008-02-12  Eric Blake  <ebb9@byu.net>
51303
51304         Silence warning in last patch.
51305         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51306
51307         Quotearg part 4: add tests, fix c-maybe colon quoting.
51308         * lib/quotearg.h: Improve documentation.
51309         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51310         escapes when adding outer quotes.  When quoting trigraphs, use
51311         valid C notation.  When quoting NUL, omit extra characters if next
51312         character is not digit.  Alter prototype.
51313         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51314         callers.
51315         * modules/quotearg-tests: New module.
51316         * tests/test-quotearg.c: New test.
51317
51318 2008-02-07  Eric Blake  <ebb9@byu.net>
51319
51320         Quotearg part 3: add flag to control outer quote elision.
51321         * lib/quotearg.h (c_maybe_quoting_style): New style.
51322         (enum quoting_flags): Better documentation of flags.
51323         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51324         c-maybe style.
51325         (quotearg_buffer_restyled): Handle new flag to elide outer
51326         quotes.
51327
51328         Quotearg part 2: add flag that can control NUL elision.
51329         * lib/quotearg.h (set_quoting_flags): New prototype.
51330         * lib/quotearg.c (struct quoting_options): Add flag field.
51331         (set_quoting_flags): New function.
51332         (quotearg_buffer_restyled): Add flags parameter.
51333         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51334         (quotearg_n_options): Set the flag, since length cannot be
51335         returned.
51336         (quoting_options_from_style): Default flags correctly.
51337
51338         Quotearg part 1: more wrappers, restore quotearg_char state.
51339         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51340         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51341         (quotearg_colon_mem): New wrappers.
51342         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51343         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51344         functions.
51345         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51346         (quotearg_colon_mem): New functions.
51347
51348 2008-02-11  Bruno Haible  <bruno@clisp.org>
51349
51350         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51351         library in the current directory: it does not work with parallel make.
51352         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51353
51354 2008-02-11  Bruno Haible  <bruno@clisp.org>
51355
51356         * .gitattributes: New file.
51357
51358 2008-02-11  Jim Meyering  <meyering@redhat.com>
51359
51360         useless-if-before-free: Fix reversed exit values.
51361         * build-aux/useless-if-before-free: Use correct values
51362         for EXIT_MATCH and EXIT_NO_MATCH.
51363
51364         * build-aux/useless-if-before-free: Close stdout carefully.
51365
51366 2008-02-10  Bruno Haible  <bruno@clisp.org>
51367
51368         New module 'git-merge-changelog'.
51369         * modules/git-merge-changelog: New file.
51370         * lib/git-merge-changelog.c: New file.
51371
51372 2008-02-10  Jim Meyering  <meyering@redhat.com>
51373
51374         useless-if-before-free: New option: --list (-l).
51375
51376         useless-if-before-free: Don't exit immediately upon open failure.
51377         * build-aux/useless-if-before-free: Exit 2 for errors.
51378         Upon failure to open a file, don't exit immediately.
51379         Rather, just warn and continue with any remaining files.
51380
51381 2008-02-10  Bruno Haible  <bruno@clisp.org>
51382
51383         New abstract list operation 'node_set_value'.
51384         * lib/gl_list.h (gl_list_node_set_value): New function.
51385         (struct gl_list_implementation): New field node_set_value.
51386         * lib/gl_list.c (gl_list_node_set_value): New function.
51387         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51388         (gl_array_list_implementation): Update.
51389         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51390         (gl_carray_list_implementation): Update.
51391         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51392         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51393         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51394         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51395         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51396         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51397         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51398         Update.
51399         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51400         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51401         (gl_sublist_list_implementation): Update.
51402
51403 2008-02-10  Bruno Haible  <bruno@clisp.org>
51404
51405         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51406         Needed when ELEMENT is #defined to 'some_type *'.
51407
51408 2008-02-10  Jim Meyering  <meyering@redhat.com>
51409
51410         New script and module: useless-if-before-free
51411         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51412         * build-aux/useless-if-before-free: New file.
51413         * modules/useless-if-before-free: New file.
51414
51415         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51416
51417         xstrtol_error: Fix typo.
51418         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51419         s/exit_failure/exit_status/.
51420
51421 2008-02-09  Jim Meyering  <meyering@redhat.com>
51422
51423         New script and module: gitlog-to-changelog
51424         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51425         * modules/gitlog-to-changelog: New file.
51426         * build-aux/gitlog-to-changelog: New file.
51427
51428 2008-02-08  Jim Meyering  <meyering@redhat.com>
51429
51430         Avoid two "parameter unused" warnings.
51431         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51432         Mark "st" as used.
51433
51434         Use "git COMMAND", not "git-COMMAND".
51435         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51436         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51437         * build-aux/git-version-gen: Use "git status", not "git-status".
51438
51439 2008-02-07  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51442         Avoids a crash on Windows Vista.
51443         Reported by Adam Strzelecki <ono@java.pl> via
51444         Simon Josefsson <simon@josefsson.org>.
51445
51446 2008-02-06  Bruno Haible  <bruno@clisp.org>
51447
51448         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51449         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51450         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51452         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51453         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51454         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51455         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51456         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51457         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51458         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51459         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51460         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51461         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51462         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51463         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51464         left-adjust flag.
51465         * tests/test-snprintf-posix.h (test_function): Likewise.
51466         * tests/test-sprintf-posix.h (test_function): Likewise.
51467         * tests/test-vasprintf-posix.c (test_function): Likewise.
51468         * doc/posix-functions/fprintf.texi: Update.
51469         * doc/posix-functions/printf.texi: Update.
51470         * doc/posix-functions/snprintf.texi: Update.
51471         * doc/posix-functions/sprintf.texi: Update.
51472         * doc/posix-functions/vfprintf.texi: Update.
51473         * doc/posix-functions/vprintf.texi: Update.
51474         * doc/posix-functions/vsnprintf.texi: Update.
51475         * doc/posix-functions/vsprintf.texi: Update.
51476         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51477
51478 2008-02-06  Bruno Haible  <bruno@clisp.org>
51479
51480         Fix bug introduced on 2008-01-26.
51481         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51482
51483 2008-02-06  Bruno Haible  <bruno@clisp.org>
51484
51485         Fix bug introduced on 2007-06-10.
51486         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51487         !NEED_PRINTF_FLAG_ZERO.
51488
51489 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51490
51491         getloadavg: use libperfstat on AIX5
51492         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51493
51494 2008-02-03  Bruno Haible  <bruno@clisp.org>
51495
51496         * lib/diffseq.h: Add comments about required #includes.
51497         Reported by Michael Biggs <gnulib@doubleplum.net>.
51498
51499 2008-02-01  Bruno Haible  <bruno@clisp.org>
51500
51501         * users.txt: Add gnuit.
51502
51503 2008-01-31  Bruno Haible  <bruno@clisp.org>
51504
51505         * lib/md4.c (set_uint32): Mark as inline.
51506         * lib/md5.c (set_uint32): Likewise.
51507         * lib/sha1.c (set_uint32): Likewise.
51508         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51509         * m4/md5.m4 (gl_MD5): Likewise.
51510         * m4/sha1.m4 (gl_SHA1): Likewise.
51511
51512 2008-01-31  Jim Meyering  <meyering@redhat.com>
51513
51514         Use "sizeof VAR", rather than a literal "4".
51515         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51516         * lib/md4.c (md4_read_ctx): Likewise.
51517         * lib/sha1.c (sha1_read_ctx): Likewise.
51518
51519 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51520
51521         * tests/test-sha1.c: New file, based on test-md5.c.
51522
51523         * modules/crypto/sha1-tests: New file.
51524
51525 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51526
51527         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51528
51529 2008-01-31  Jim Meyering  <meyering@redhat.com>
51530
51531         Prefer "sizeof v" over the equivalent "4".
51532         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51533         * lib/md5.c (set_uint32): Likewise.
51534         * lib/sha1.c (set_uint32): Likewise.
51535
51536 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51537
51538         * lib/sha1.c (set_uint32): Mark function as static.
51539
51540 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51541
51542         md2: clarify comments to say that alignment is not required.
51543         * lib/md2.h: Remove warning about alignment in comment.
51544         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51545         never been required.
51546
51547 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51548
51549         md4: adapt alignment constraint fix from sha1.
51550         * lib/md4.c (set_uint32): New function, from sha1.c
51551         (md4_read_ctx): Use it.
51552         (md4_finish_ctx): Doc fix.
51553         * lib/md4.h: Doc fix.
51554
51555 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51556
51557         md5: adapt alignment constraint fix from sha1.
51558         * lib/md5.c (set_uint32): New function, from sha1.c
51559         (md5_read_ctx): Use it.
51560         (md5_finish_ctx): Doc fix.
51561         * lib/md5.h: Doc fix.
51562
51563 2008-01-30  Peter Palfrader  <weasel@debian.org>
51564
51565         sha1: remove the result buffer alignment constraint
51566         * lib/sha1.c (set_uint32): New function.
51567         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51568         constraint.
51569         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51570         * lib/sha1.h: Likewise.
51571
51572 2008-01-30  Andreas Schwab  <schwab@suse.de>
51573             Bruno Haible  <bruno@clisp.org>
51574
51575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51576         correct definition of LDBL_MIN_EXP.
51577
51578 2008-01-30  Karl Berry  <karl@gnu.org>
51579
51580         * config/srclist-update: try to preserve x bit on updates.
51581         * config/srclistvars.sh: update for karl.
51582
51583 2008-01-29  Jim Meyering  <meyering@redhat.com>
51584
51585         vasnprintf.c: Avoid warning about unused label
51586         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51587         "overflow" label definition and associated code with the
51588         same cpp condition that guards the sole use of that label.
51589
51590 2008-01-26  Bruno Haible  <bruno@clisp.org>
51591
51592         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51593         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51594         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51595         * lib/isnanl-nolibm.h (isnanl): Likewise.
51596         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51597
51598 2008-01-26  Bruno Haible  <bruno@clisp.org>
51599
51600         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51601         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51602
51603 2008-01-26  Bruno Haible  <bruno@clisp.org>
51604
51605         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51606         GCC >= 4.0 built-in.
51607         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51608
51609 2008-01-26  Bruno Haible  <bruno@clisp.org>
51610
51611         Rename isnan, applicable to 'double' only, to isnand.
51612         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51613         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51614         (configure.ac): Update.
51615         (Include): Replace "isnan.h" with "isnand.h".
51616         * m4/isnand.m4: Renamed from m4/isnan.m4.
51617         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51618         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51619         instead of isnan.c.
51620         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51621         instead of HAVE_ISNAN_IN_LIBC.
51622         (isnand): Renamed from isnan.
51623         * lib/isnand.c: New file.
51624         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51625         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51626         (Makefile.am): Update.
51627         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51628         Include isnand.h instead of isnan.h.
51629         (main): Test isnand instead of isnan.
51630         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51631         isnan-nolibm.
51632         * modules/frexp (Depends-on): Likewise.
51633         * modules/frexp-tests (Depends-on): Likewise.
51634         * modules/frexp-nolibm (Depends-on): Likewise.
51635         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51636         * modules/isfinite (Depends-on): Likewise.
51637         * modules/round-tests (Depends-on): Likewise.
51638         * modules/signbit (Depends-on): Likewise.
51639         * modules/signbit-tests (Depends-on): Likewise.
51640         * modules/snprintf-posix (Depends-on): Likewise.
51641         * modules/sprintf-posix (Depends-on): Likewise.
51642         * modules/trunc-tests (Depends-on): Likewise.
51643         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51644         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51645         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51646         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51647         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51648         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51649         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51650         * modules/vasnprintf-posix (Depends-on): Likewise.
51651         * modules/vasprintf-posix (Depends-on): Likewise.
51652         * modules/vfprintf-posix (Depends-on): Likewise.
51653         * modules/vsnprintf-posix (Depends-on): Likewise.
51654         * modules/vsprintf-posix (Depends-on): Likewise.
51655         * lib/frexp.c: Include isnand.h instead of isnan.h.
51656         (ISNAN): Set to isnand instead of isnan.
51657         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51658         (gl_isfinited): Use isnand instead of isnan.
51659         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51660         (gl_signbitd): Use isnand instead of isnan.
51661         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51662         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51663         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51664         (main): Use isnand instead of isnan.
51665         * tests/test-round1.c: Include isnand.h.
51666         (main): Use isnand instead of isnan.
51667         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51668         (ISNAN): Set to isnand instead of isnan.
51669         * tests/test-trunc1.c: Include isnand.h.
51670         (main): Use isnand instead of isnan.
51671         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51672         (equal): Use isnand instead of isnan.
51673         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51674         isnand-nolibm.
51675         * NEWS: Mention the change.
51676
51677 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51678             Bruno Haible  <bruno@clisp.org>
51679
51680         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51681         the GCC builtins for signbits are present and set
51682         REPLACE_SIGNBIT_USING_GCC if so.
51683         * lib/math.in.h (signbit): Define using GCC builtins if
51684         REPLACE_SIGNBIT_USING_GCC is set.
51685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51686         REPLACE_SIGNBIT_USING_GCC.
51687         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51688
51689 2008-01-25  Jim Meyering  <meyering@redhat.com>
51690
51691         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51692         * lib/poll.c: Include <config.h>, not "config.h".
51693         * tests/test-getaddrinfo.c: Likewise.
51694
51695 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51696
51697         * modules/sockets-tests: New file.
51698
51699 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51700
51701         * modules/sockets: New module, can be used to call WSA_Startup and
51702         WSA_Cleanup when needed.
51703
51704         * lib/sockets.h, lib/sockets.c: New files.
51705
51706         * m4/sockets.m4: New file.
51707
51708         * tests/test-sockets.c: New file.
51709
51710 2008-01-19  Bruno Haible  <bruno@clisp.org>
51711
51712         * doc/posix-headers: Renamed from doc/headers.
51713         * doc/posix-functions: Renamed from doc/functions.
51714         * doc/gnulib.texi: Update.
51715
51716 2008-01-19  Bruno Haible  <bruno@clisp.org>
51717
51718         * doc/glibc-functions/strcasestr.texi: Include contents of
51719         doc/functions/strcasestr.texi, fixing the list of platforms.
51720         * doc/functions/strcasestr.texi: Remove file.
51721
51722 2008-01-19  Bruno Haible  <bruno@clisp.org>
51723
51724         * doc/glibc-functions/memmem.texi: Include contents of
51725         doc/functions/memmem.texi.
51726         * doc/functions/memmem.texi: Remove file.
51727
51728 2008-01-18  Bruno Haible  <bruno@clisp.org>
51729
51730         * doc/glibc-functions/*.texi: New files.
51731         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51732         to use the new files.
51733
51734 2008-01-17  Bruno Haible  <bruno@clisp.org>
51735
51736         * tests/test-gethostname.c (main): Fix printf statement.
51737
51738 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51739
51740         * modules/gethostname-tests: New file.
51741
51742         * tests/test-gethostname.c: New file.
51743
51744 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51745
51746         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51747         used by the UNAME case.  Reported by Bruno Haible
51748         <bruno@clisp.org>.
51749
51750 2008-01-17  Eric Blake  <ebb9@byu.net>
51751
51752         Convert c-strcasestr to be more efficient.
51753         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51754         (Depends-on): Add c-strcase, remove malloca, strnlen.
51755         * tests/test-c-strcasestr.c (main): Enhance test.
51756         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51757
51758 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51759
51760         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51761         Use it in creating po/Makevars.
51762
51763 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51764
51765         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51766         Applications that requires it should initialize libgcrypt
51767         manually.
51768
51769 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51770
51771         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51772
51773 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51774
51775         Fix problem with getdate on mingw32 reported by Simon Josefsson
51776         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51777         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51778         tzname", when deciding whether to declare tzname.
51779         * lib/strftime.c (tzname): Likewise.
51780
51781 2008-01-15  Bruno Haible  <bruno@clisp.org>
51782
51783         Work around a MacOS X 10.5 bug in frexpl().
51784         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51785         * doc/functions/frexpl.texi: Document the bug.
51786         Reported by Elias Pipping <pipping@gentoo.org>.
51787
51788 2008-01-14  Eric Blake  <ebb9@byu.net>
51789
51790         Touch up previous patch.
51791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51792         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51793
51794         Convert strcasestr module to use Two-Way algorithm.
51795         * modules/strcasestr-simple: New module, based on the old
51796         strcasestr, but with Two-Way rather than KMP.
51797         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51798         * lib/string.in.h (rpl_strcasestr): Declare.
51799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51800         performance.
51801         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51802         * modules/string (Makefile.am): Support strcasestr.
51803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51804         * modules/strcasestr-tests (Depends-on): Check for alarm.
51805         * tests/test-strcasestr.c: Augment test.
51806         * lib/str-two-way.h: Clean up stray macro.
51807         * NEWS: Document new module.
51808         * MODULES.html.sh (string handling): Likewise.
51809         * doc/functions/strcasestr.texi: New file.
51810         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51811         here, since it is not a POSIX function.
51812
51813 2008-01-14  Colin Watson  <cjwatson@debian.org>
51814             Bruno Haible  <bruno@clisp.org>
51815
51816         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51817         works fine; if not, set REPLACE_STRSIGNAL.
51818         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51820         REPLACE_STRSIGNAL.
51821         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51822         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51823         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51824
51825 2008-01-14  Bruno Haible  <bruno@clisp.org>
51826
51827         * modules/strsignal (Include): Change to <string.h>.
51828
51829 2008-01-14  Colin Watson  <cjwatson@debian.org>
51830
51831         * modules/argp (Notice): Add a notice recommending to change
51832         XGETTEXT_OPTIONS.
51833         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51834
51835 2008-01-13  Colin Watson  <cjwatson@debian.org>
51836
51837         * modules/strsignal-tests: New file.
51838         * tests/test-strsignal.c: New file.
51839
51840         * lib/strsignal.c: New file, from glibc with modifications.
51841         * lib/siglist.h: New file, from glibc with modifications.
51842         * lib/string.in.h (strsignal): New declaration.
51843         * m4/strsignal.m4: New file.
51844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51845         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51846         * modules/strsignal: New file.
51847         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51848         HAVE_DECL_STRSIGNAL.
51849
51850 2008-01-13  Bruno Haible  <bruno@clisp.org>
51851
51852         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51853         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51854         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51855         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51856
51857 2008-01-13  Bruno Haible  <bruno@clisp.org>
51858
51859         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51860         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51861         * lib/argp.h (__attribute__): Likewise.
51862         * lib/c-stack.c (__attribute__): Likewise.
51863         * lib/error.h (__attribute__): Likewise.
51864         * lib/fts.c (__attribute__): Likewise.
51865         * lib/openat.h (__attribute__): Likewise.
51866         * lib/stdio.in.h (__attribute__): Likewise.
51867         * lib/string.in.h (__attribute__): Likewise.
51868         * lib/utimens.c (__attribute__): Likewise.
51869         * lib/vasnprintf.h (__attribute__): Likewise.
51870         * lib/xalloc.h (__attribute__): Likewise.
51871         * lib/xprintf.h (__attribute__): Likewise.
51872         * lib/xstrtol.h (__attribute__): Likewise.
51873         * lib/xvasprintf.h (__attribute__): Likewise.
51874
51875 2008-01-12  Bruno Haible  <bruno@clisp.org>
51876
51877         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51878         * doc/glibc-headers/a.out.texi: New file.
51879         * doc/glibc-headers/aliases.texi: New file.
51880         * doc/glibc-headers/alloca.texi: New file.
51881         * doc/glibc-headers/ar.texi: New file.
51882         * doc/glibc-headers/argp.texi: New file.
51883         * doc/glibc-headers/argz.texi: New file.
51884         * doc/glibc-headers/byteswap.texi: New file.
51885         * doc/glibc-headers/crypt.texi: New file.
51886         * doc/glibc-headers/endian.texi: New file.
51887         * doc/glibc-headers/envz.texi: New file.
51888         * doc/glibc-headers/err.texi: New file.
51889         * doc/glibc-headers/error.texi: New file.
51890         * doc/glibc-headers/execinfo.texi: New file.
51891         * doc/glibc-headers/fpu_control.texi: New file.
51892         * doc/glibc-headers/fstab.texi: New file.
51893         * doc/glibc-headers/fts.texi: New file.
51894         * doc/glibc-headers/getopt.texi: New file.
51895         * doc/glibc-headers/ieee754.texi: New file.
51896         * doc/glibc-headers/ifaddrs.texi: New file.
51897         * doc/glibc-headers/libintl.texi: New file.
51898         * doc/glibc-headers/mcheck.texi: New file.
51899         * doc/glibc-headers/mntent.texi: New file.
51900         * doc/glibc-headers/obstack.texi: New file.
51901         * doc/glibc-headers/paths.texi: New file.
51902         * doc/glibc-headers/printf.texi: New file.
51903         * doc/glibc-headers/pty.texi: New file.
51904         * doc/glibc-headers/resolv.texi: New file.
51905         * doc/glibc-headers/shadow.texi: New file.
51906         * doc/glibc-headers/sysexits.texi: New file.
51907         * doc/glibc-headers/ttyent.texi: New file.
51908
51909 2008-01-12  Jim Meyering  <meyering@redhat.com>
51910
51911         announce-gen: emit Gnulib's git-based version string.
51912         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51913         New option --gnulib-version=V, where V is expected to be
51914         the output of running git describe in the gnulib directory.
51915         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51916         not useful, and plan to stop publishing an xdelta file with each
51917         coreutils release.
51918
51919         * build-aux/announce-gen: Also check for lzma-compressed files.
51920
51921 2008-01-11  Bruno Haible  <bruno@clisp.org>
51922
51923         * tests/test-memmem.c (main): Increase maximum allowed time.
51924         * tests/test-strstr.c (main): Likewise.
51925
51926 2008-01-11  Bruno Haible  <bruno@clisp.org>
51927
51928         * doc/functions/memmem.texi: Add more precisions about platforms.
51929         * doc/functions/strstr.texi: Likewise.
51930
51931 2008-01-10  Eric Blake  <ebb9@byu.net>
51932
51933         * m4/strstr.m4: Delete cruft from copy-n-paste.
51934         Reported by Bruno Haible.
51935
51936 2008-01-10  Bruno Haible  <bruno@clisp.org>
51937
51938         Make c-strstr rely on strstr.
51939         * lib/c-strstr.c: Don't include str-kmp.h.
51940         (c_strstr): Define in terms of strstr.
51941         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51942         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51943
51944 2008-01-10  Bruno Haible  <bruno@clisp.org>
51945
51946         * doc/gnulib.texi (String Functions in C Locale): New section.
51947         * doc/c-ctype.texi: New file.
51948         * doc/c-strcase.texi: New file.
51949         * doc/c-strcaseeq.texi: New file.
51950         * doc/c-strcasestr.texi: New file.
51951         * doc/c-strstr.texi: New file.
51952         * doc/c-strtod.texi: New file.
51953         * doc/c-strtold.texi: New file.
51954
51955 2008-01-10  Eric Blake  <ebb9@byu.net>
51956
51957         * lib/relocatable.h: Fix a comment.
51958
51959 2008-01-10  Eric Blake  <ebb9@byu.net>
51960
51961         Share two-way algorithm.
51962         * lib/str-two-way.h: New file, merged from...
51963         * lib/memmem.c: ...here...
51964         * lib/strstr.c: ...and here.
51965         * modules/memmem (Files): Use it.
51966         * modules/strstr (Files): Likewise.
51967
51968         Avoid quadratic strstr implementations.
51969         * lib/strstr.c: New file.
51970         * m4/strstr.m4: Likewise.
51971         * modules/strstr: Likewise.
51972         * modules/strstr-tests: Likewise.
51973         * tests/test-strstr.c: Likewise.
51974         * lib/string.in.h (rpl_strstr): Declare.
51975         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51977         * modules/string (Makefile.am): Likewise.
51978         * MODULES.html.sh (string handling): Mention new module.
51979         * doc/functions/strstr.texi (strstr): Document the bug.
51980
51981 2008-01-10  Bruno Haible  <bruno@clisp.org>
51982
51983         * lib/relocatable.h (relocate): State whether result is freshly
51984         allocated or not.
51985         * lib/relocatable.c (relocate): Return a freshly allocated string
51986         instead of a pointer to a privately held string.
51987         Reported by Sylvain Beucler <beuc@gnu.org>.
51988
51989 2008-01-10  Colin Watson  <cjwatson@debian.org>
51990
51991         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51992         s/S_ISNLK/S_ISLNK/.
51993
51994 2008-01-09  Bruno Haible  <bruno@clisp.org>
51995
51996         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51997         and other files.
51998         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51999         if it's only a guess.
52000         * modules/memmem: Simplify by depending on memmem-simple.
52001
52002 2008-01-09  Bruno Haible  <bruno@clisp.org>
52003
52004         Work around OpenBSD 4.0 tdelete() bug.
52005         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52006         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52007         macros and don't redefine the enum values.
52008         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52009         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52010         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52011
52012 2008-01-09  Bruno Haible  <bruno@clisp.org>
52013
52014         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52015         (main): Don't perform the tests if setlocale did not install a UTF-8
52016         locale. Needed on OpenBSD 4.0.
52017         * modules/wcwidth-tests (Depends-on): Add localcharset.
52018
52019 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52020
52021         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52022         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52023         * NEWS: announce this.
52024         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52025
52026 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52027         and Eric Blake  <ebb9@byu.net>
52028
52029         Add memmem-simple module.
52030         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52031         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52032         * modules/memmem-simple: New file.
52033         * modules/memmem (Description): Tweak.
52034         * MODULES.html.sh (string handling): Mention new module.
52035         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52036         addressed by memmem-simple.
52037         * NEWS: Document the difference.
52038
52039 2008-01-09  Eric Blake  <ebb9@byu.net>
52040
52041         Give gcc some memmem optimization hints.
52042         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52043         (strcasestr): Declare as pure.
52044         * modules/memmem (Maintainer): Claim my implementation.
52045
52046 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52047
52048         Support AIX 6.1 and higher.
52049         * build-aux/config.libpath: Likewise.
52050         * build-aux/config.rpath: Likewise.
52051
52052 2008-01-08  Jim Meyering  <meyering@redhat.com>
52053             Bruno Haible  <bruno@clisp.org>
52054
52055         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52056         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52057         Reported by Peter Fales in
52058         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52059
52060 2008-01-08  Bruno Haible  <bruno@clisp.org>
52061
52062         * modules/unictype/category-of (Depends-on): Add
52063         unictype/category-none.
52064         * modules/unictype/category-and-tests (Depends-on): Add
52065         unictype/category-{L,N,Lu,Nd}.
52066         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52067         * modules/unictype/category-or-tests (Depends-on): Add
52068         unictype/category-{L,N}.
52069         * modules/unictype/category-name-tests (Depends-on): Add
52070         unictype/category-{Z,Nl}.
52071         Reported by Simon Josefsson.
52072
52073 2008-01-08  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52076         convention better.
52077         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52078         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52079         Reported by Peter Miller <millerp@canb.auug.org.au>.
52080
52081 2008-01-08  Eric Blake  <ebb9@byu.net>
52082
52083         Rewrite memmem to guarantee linear complexity without malloc.
52084         * lib/memmem.c (memmem): Use Two-Way rather than
52085         Knuth-Morris-Pratt, to allow O(1) space usage.
52086         (critical_factorization, two_way_short_needle)
52087         (two_way_long_needle): New functions.
52088         (knuth_morris_pratt): Delete.
52089         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52090         Add stdint.
52091         * tests/test-memmem.c (main): Add tests for periodic needle and
52092         sublinear performance.
52093         * doc/functions/memmem.texi (memmem): Document other deficiencies
52094         in cygwin and older glibc.
52095
52096 2008-01-08  Bruno Haible  <bruno@clisp.org>
52097
52098         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52099         augmentation.
52100
52101 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52102
52103         Add a configure time option: --disable-acl.
52104         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52105         AC_ARG_ENABLE(acl).
52106
52107 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52108
52109         * tests/test-localename.c: Don't include obsolete "setenv.h".
52110
52111         * modules/localename-tests (Depends-on): Need unsetenv.
52112
52113 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52114
52115         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52116
52117 2008-01-06  Colin Watson  <cjwatson@debian.org>
52118
52119         * users.txt: Add man-db.
52120
52121 2008-01-07  Bruno Haible  <bruno@clisp.org>
52122
52123         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52124         previous section name.
52125
52126 2008-01-07  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/progname.c (set_program_name): Don't strip off a leading
52129         "lt-" prefix outside a .libs directory.
52130         Suggested by Paul Eggert.
52131
52132 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52133             Bruno Haible  <bruno@clisp.org>
52134
52135         Improve memory cleanup in 'relocatable' module.
52136         * lib/relocatable.h (compute_curr_prefix): Change return type to
52137         'char *'.
52138         * lib/relocatable.c (compute_curr_prefix): Change return type to
52139         'char *'. Free curr_installdir after use.
52140         (relocate): Free curr_prefix_better after use.
52141         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52142
52143 2008-01-01  Bruno Haible  <bruno@clisp.org>
52144
52145         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52146         failure on older glibc systems.
52147         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52148
52149 2008-01-05  Eric Blake  <ebb9@byu.net>
52150
52151         Avoid quadratic system memmem.
52152         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52153         Reported by Ralf Wildenhues.
52154
52155         Fix memmem test for mingw.
52156         * modules/memmem-tests (configure.ac): Check for alarm.
52157         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52158         it.
52159         * doc/functions/memmem.texi: New file.
52160         * doc/gnulib.texi (Function Substitutes): Add memmem.
52161         Reported by Bruno Haible.
52162
52163 2008-01-04  Bruno Haible  <bruno@clisp.org>
52164
52165         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52166         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52167         gl_HEADER_STRING_H_DEFAULTS.
52168
52169 2008-01-04  Eric Blake  <ebb9@byu.net>
52170
52171         Shorten duration of memmem test.
52172         * tests/test-memmem.c (main): Use alarm to declare failure if test
52173         is taking too long.
52174         Reported by Ralf Wildenhues.
52175
52176 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52177
52178         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52179         string, needed by strerror.
52180
52181 2008-01-03  Colin Watson  <cjwatson@debian.org>
52182             Bruno Haible  <bruno@clisp.org>
52183
52184         * doc/gnulib-tool.texi (Localization): New section.
52185
52186 2008-01-02  Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52189         variables to 'unsigned char *' type.
52190         Reported by Paul Eggert.
52191
52192 2008-01-02  Jim Meyering  <jim@meyering.net>
52193
52194         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52195
52196 2007-12-31  Jim Meyering  <jim@meyering.net>
52197
52198         Avoid use of private FTS type name.
52199         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52200
52201 2007-12-30  Karl Berry  <karl@gnu.org>
52202
52203         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52204         work around defect in Texinfo and/or the standalone Info browser.
52205
52206 2007-12-30  Bruno Haible  <bruno@clisp.org>
52207
52208         Unify 5 copies of the KMP code.
52209         * lib/str-kmp.h: New file.
52210         * lib/c-strcasestr.c: Include str-kmp.h.
52211         (knuth_morris_pratt): Remove function.
52212         (c_strcasestr): Update.
52213         * lib/c-strstr.c: Include str-kmp.h.
52214         (knuth_morris_pratt): Remove function.
52215         (c_strcasestr): Update.
52216         * lib/mbscasestr.c: Include str-kmp.h.
52217         (knuth_morris_pratt_unibyte): Remove function.
52218         * lib/mbsstr.c: Include str-kmp.h.
52219         (knuth_morris_pratt_unibyte): Remove function.
52220         * lib/strcasestr.c: Include str-kmp.h.
52221         (knuth_morris_pratt): Remove function.
52222         (strcasestr): Update.
52223         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52224         * modules/c-strstr (Files): Likewise.
52225         * modules/mbscasestr (Files): Likewise.
52226         * modules/mbsstr (Files): Likewise.
52227         * modules/strcasestr (Files): Likewise.
52228         Suggested by Paul Eggert.
52229
52230 2007-12-30  Bruno Haible  <bruno@clisp.org>
52231
52232         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52233         defined.
52234
52235 2007-12-30  Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/xmalloca.h: Include xalloc.h.
52238         (xnmalloca): New macro.
52239
52240 2007-12-30  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/malloca.h (nmalloca): New macro.
52243         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52244         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52245         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52246         knuth_morris_pratt_multibyte): Likewise.
52247         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52248         knuth_morris_pratt_multibyte): Likewise.
52249         * lib/memmem.c (knuth_morris_pratt): Likewise.
52250         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52251
52252 2007-12-25  Bruno Haible  <bruno@clisp.org>
52253
52254         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52255         * lib/glob.c: Don't include openat.h.
52256         (link_exists2_p): Add back the code that deals with the
52257         !GLOB_ALTDIRFUNC case.
52258         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52259         let it do the filename concatenation.
52260         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52261         * modules/glob (Depends-on): Remove openat.
52262
52263 2007-12-31  Bruno Haible  <bruno@clisp.org>
52264
52265         * modules/dirfd (License): Change to LGPLv2+.
52266         Approved by Jim Meyering.
52267
52268 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52269
52270         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52271         when multiplying M by sizeof (size_t).
52272
52273 2007-12-10  Martin Lambers  <marlam@marlam.de>
52274
52275         Override getpagesize on mingw.
52276         * lib/getpagesize.c: New file.
52277         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52278         * modules/getpagesize (Files): Add lib/getpagesize.c.
52279         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52281         REPLACE_GETPAGESIZE.
52282         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52283
52284 2007-12-25  Bruno Haible  <bruno@clisp.org>
52285
52286         * modules/localcharset (Notice): New field.
52287         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52288         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52289
52290 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52291             Bruno Haible  <bruno@clisp.org>
52292
52293         Avoid using the syntax symbol() in formatted documentation.
52294         * MODULES.html.sh (func_module): When replacing symbol() with a
52295         hyperlink, remove the parentheses. Show an error if some remain.
52296         Recognize and render the '...' syntax.
52297         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52298         Rework. Add paragraph about GCC's inlining.
52299         * doc/alloca.texi: Likewise.
52300         * doc/error.texi: Remove parentheses from symbol reference.
52301         * doc/gnulib-intro.texi: Likewise.
52302         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52303         * modules/fnmatch (Description): Reword to say "the ... function".
52304         * modules/full-read (Description): Likewise.
52305         * modules/full-write (Description): Likewise.
52306         * modules/safe-read (Description): Likewise.
52307         * modules/safe-write (Description): Likewise.
52308         * modules/strchrnul (Description): Likewise.
52309         * modules/trim (Description): Likewise.
52310         * modules/error (Description): Remove parentheses from symbol
52311         references.
52312         * modules/verror (Description): Likewise.
52313         Reported by Karl Berry.
52314
52315 2007-12-25  Bruno Haible  <bruno@clisp.org>
52316
52317         Fixup after 2007-10-16 commit.
52318         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52319
52320 2007-12-24  Bruno Haible  <bruno@clisp.org>
52321
52322         Make --enable-relocatable work with DESTDIR.
52323         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52324         to compute installdir from destprog.
52325         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52326         also set the RELOC_DESTDIR variable.
52327         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52328
52329 2007-12-24  Bruno Haible  <bruno@clisp.org>
52330
52331         Fix link error due to xalloc_die().
52332         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52333         of xreadlink.
52334         * lib/relocwrapper.c: Update comments.
52335         * build-aux/install-reloc: Remove xreadlink.c from file list.
52336         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52337         xreadlink.c.
52338         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52339
52340 2007-12-24  Bruno Haible  <bruno@clisp.org>
52341
52342         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52343         * lib/setenv.h: Remove file.
52344         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52345         lib/setenv.h.
52346         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52347         (Depends-on): Add stdlib.
52348         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52349         gl_FUNC_UNSETENV.
52350         (Include): Replace setenv.h with <stdlib.h>.
52351         * modules/unsetenv: New file.
52352         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52353         * lib/unsetenv.c: Include <stdlib.h> first.
52354         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52355         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52356         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52357         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52358         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52359         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52361         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52362         * doc/functions/unsetenv.texi: Update.
52363         * modules/xsetenv (Depends-on): Add unsetenv.
52364         * modules/getdate (Depends-on): Likewise.
52365         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52366         * lib/xsetenv.c: Don't include setenv.h.
52367         * lib/getdate.y: Likewise.
52368         * lib/relocwrapper.c: Likewise.
52369         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52370         (Depends-on): Add stdlib.
52371         * NEWS: Mention the changes.
52372         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52373
52374 2007-12-23  Bruno Haible  <bruno@clisp.org>
52375
52376         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52377         indentation.
52378
52379 2007-12-23  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/c-strcasestr.c: Add more comments.
52382         * lib/c-strstr.c: Likewise.
52383         * lib/mbscasestr.c: Likewise.
52384         * lib/mbsstr.c: Likewise.
52385         * lib/strcasestr.c: Likewise.
52386         * lib/memmem.c: Likewise.
52387
52388 2007-12-23  Bruno Haible  <bruno@clisp.org>
52389
52390         * tests/test-memmem.c: Include <string.h> first.
52391
52392 2007-12-22  Bruno Haible  <bruno@clisp.org>
52393
52394         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52395         the contents of $testsbase.
52396         Reported by Ralf Wildenhues.
52397
52398 2007-12-22  Bruno Haible  <bruno@clisp.org>
52399
52400         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52401         two variables local_ldadd_before, local_ldadd_last.
52402
52403 2007-12-20  Eric Blake  <ebb9@byu.net>
52404
52405         Work around circular library issue when cross-compiling.
52406         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52407         that progname.o does not need to pull in rpl_memcmp.
52408
52409 2007-12-19  Eric Blake  <ebb9@byu.net>
52410
52411         Fix memmem to avoid O(n^2) worst-case complexity.
52412         * lib/memmem.c (knuth_morris_pratt): New function.
52413         (memmem): Use it if first few naive iterations fail.
52414         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52415         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52416         * modules/memchr (License): Likewise.
52417         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52418         malloca.
52419         * tests/test-memmem.c: Rewrite, borrowing ideas from
52420         test-mbsstr1.c; the old version wouldn't even compile!
52421         * modules/memmem-tests: New file.
52422         * lib/string.in.h (rpl_memmem): Add declaration.
52423         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52425         REPLACE_MEMMEM.
52426
52427 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52428
52429         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52430         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52431         before any system include files, and undef after them all.  This
52432         should fix a problem on VMS reported by John E. Malmberg in
52433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52434
52435 2007-12-17  Eric Blake  <ebb9@byu.net>
52436
52437         Revert addition of verify, for BSD/OS.
52438         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52439         can't handle large files, for the sake of obsolete platforms.
52440         * modules/fseeko (Depends-on): Remove verify.
52441         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52442         * doc/functions/ftello.texi (ftello): Likewise.
52443         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52444         Reported by Larry Jones.
52445
52446 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52447
52448         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52449         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52450
52451 2007-12-17  Jim Meyering  <meyering@redhat.com>
52452
52453         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52454         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52455         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52456         * modules/getcwd (Depends-on): Add openat.
52457         Reported by Petr Salinger.
52458
52459 2007-12-17  Bruno Haible  <bruno@clisp.org>
52460
52461         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52462         avoid a segmentation fault of the configure test on x86_64 systems.
52463
52464 2007-12-15  Jim Meyering  <meyering@redhat.com>
52465
52466         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52467
52468 2007-12-13  Eric Blake  <ebb9@byu.net>
52469
52470         Another fseek test.
52471         * tests/test-fseek.c (main): Also test ungetc handling.
52472         * tests/test-fseeko.c (main): Likewise.
52473         * modules/fseeko (Depends-on): Add verify.
52474         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52475         large.
52476         Reported by Larry Jones.
52477
52478         Fix fseeko on mingw.
52479         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52480         seek.
52481
52482         Beef up fseek tests.
52483         * tests/test-fseek.c (main): Also test eof handling.
52484         * tests/test-fseeko.c (main): Likewise.
52485         Reported by Larry Jones.
52486
52487 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52488
52489         Fix fseeko on BSD-based platforms.
52490         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52491         successful seek.
52492
52493 2007-12-12  Eric Blake  <ebb9@byu.net>
52494
52495         Allow circular dependency of separate libtests.a
52496         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52497         when use_libtests.
52498
52499 2007-12-11  Eric Blake  <ebb9@byu.net>
52500
52501         Fix bug with -0.0L in previous patch.
52502         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52503         * tests/test-isnan.c (main): Also test on zeroes.
52504         * tests/test-isnanf.c (main): Likewise.
52505         * tests/test-isnanl.h (main): Likewise.
52506
52507         Detect pseudo-denormals on x86 even when cross-compiling.
52508         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52509         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52510         invalid bit patterns that happen to satisfy ==.
52511
52512         Avoid link failures with separate libtests.a.
52513         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52514         last, to satisfy circular dependencies.
52515
52516 2007-12-11  Eric Blake  <ebb9@byu.net>
52517         and Bruno Haible  <bruno@clisp.org>
52518
52519         Fix OpenBSD 4.0 <float.h> handling of long double.
52520         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52521         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52522         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52523
52524 2007-12-11  Jim Meyering  <meyering@redhat.com>
52525
52526         * users.txt: Add libvirt.
52527
52528         Support versions of autoconf prior to 2.59c.
52529         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52530         if it is not already defined.
52531
52532 2007-12-09  Bruno Haible  <bruno@clisp.org>
52533
52534         Let 'gnulib-tool --import' collect sources needed for the tests in
52535         tests/ rather than in lib/.
52536         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52537         argument. If true, add rules to generate libtests.a, and put libtests.a
52538         into $(LDADD). Consider source files in subdirectories and set
52539         uses_subdirs.
52540         (func_emit_initmacro_start, func_emit_initmacro_end,
52541         func_emit_initmacro_done): Pass all arguments explicitly.
52542         (func_import): Determine two module lists main_modules,
52543         testsrelated_modules. Determine use_libtests. Determine two variables
52544         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52545         instead of just sed_transform_lib_file. Determine two variables
52546         main_files and testsrelated_files. Compute 'files' as the union of
52547         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52548         func_add_or_update. In the generated gnulib-comp.m4, collect the
52549         object files for tests/ in different variables than those for lib/.
52550         Substitute LIBTESTS_LIBDEPS.
52551         (func_create_testdir): Combine the uses_subdirs results from
52552         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52553
52554 2007-12-09  Bruno Haible  <bruno@clisp.org>
52555
52556         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52557         the build-aux directory.
52558
52559 2007-12-09  Bruno Haible  <bruno@clisp.org>
52560
52561         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52562         introduced on 2006-09-09.
52563
52564 2007-12-07  Jim Meyering  <meyering@redhat.com>
52565
52566         Let these macros work also with autoconf-2.59.
52567         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52568         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52569         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52570
52571 2007-12-06  Jim Meyering  <meyering@redhat.com>
52572
52573         Avoid a configure-time syntax error in gl_FUNC_ACL.
52574         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52575         function in each branch, before testing the cache variable.
52576
52577 2007-12-04  Eric Blake  <ebb9@byu.net>
52578
52579         Make scripts executable.
52580         * build-aux/config.guess: Add execute permissions.
52581         * build-aux/config.sub: Likewise.
52582         * build-aux/gendocs.sh: Likewise.
52583
52584         Fix frexp on mingw.
52585         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52586         cross-compiling.
52587         * doc/functions/frexp.texi (frexp): Document the bug.
52588
52589         Make cygwin fseeko check more reliable.
52590         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52591         version numbers, rather than unrelated feature check.
52592         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52593         * doc/functions/ftello.texi (ftello): Likewise.
52594         Reported by Bruno Haible.
52595
52596         * m4/strerror.m4: Bump version number.
52597
52598 2007-12-03  Bruno Haible  <bruno@clisp.org>
52599
52600         * doc/functions/mprotect.texi: Mention the mingw problem.
52601
52602 2007-12-03  Eric Blake  <ebb9@byu.net>
52603
52604         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52605         REPLACE_STRERROR is initialized before this macro.
52606
52607 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52608
52609         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52610         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52611         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52612         put -lsec in even for programs other than 'ls'.  This fixes a problem
52613         for gettext reported by Bruno Haible in
52614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52615         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52616         Add support for Solaris 10.  This isn't efficient, but should get the
52617         job done for now.
52618
52619 2007-12-03  James Youngman  <jay@gnu.org>
52620
52621         * doc/regexprops-generic.texi: change "an close-group" to "a
52622         close-group" and "illegal" to "not allowed".
52623
52624 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52625
52626         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52627         pr_byname.h. Needed for the rare case when the maintainer has done
52628         "make maintainer-clean" in the source directory and then attempts a
52629         build outside the source directory.
52630         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52631         scripts_byname.h.
52632
52633 2007-12-02  Martin Lambers <marlam@marlam.de>
52634             Bruno Haible  <bruno@clisp.org>
52635
52636         * lib/getpagesize.h: Remove file.
52637         * lib/unistd.in.h: Include declaration of getpagesize here.
52638         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52639         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52640         HAVE_SYS_PARAM_H.
52641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52642         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52643         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52644         (Depends-on): Add unistd.
52645         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52646         (Include): Use <unistd.h> instead of getpagesize.h.
52647         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52648         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52649         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52650         gl_GETPAGESIZE invocation, already handled by module dependency.
52651         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52652
52653 2007-12-02  Bruno Haible  <bruno@clisp.org>
52654
52655         * modules/strings-tests: New file.
52656         * tests/test-strings.c: New file.
52657
52658         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52659         * lib/strings.in.h: New file.
52660         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52661         * m4/strings_h.m4: New file.
52662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52663         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52664         * modules/strings: New file.
52665         * modules/string (Makefile.am): Update.
52666         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52667         Reported by Karl Berry.
52668
52669 2007-12-01  Eric Blake  <ebb9@byu.net>
52670
52671         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52672         accomodate fix in cygwin 1.5.25.
52673
52674 2007-12-01  Jim Meyering  <meyering@redhat.com>
52675
52676         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52677         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52678         that would inhibit utf8-optimization of a regexp containing line-
52679         or buffer-anchors, e.g., `^', `$'.
52680
52681 2007-11-30  Bruno Haible  <bruno@clisp.org>
52682
52683         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52684         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52685         glthread_recursive_lock_init.
52686         * lib/lock.c (glthread_recursive_lock_init)
52687         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52688         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52689
52690 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52691
52692         New function qset_acl, like set_acl but with syscall semantics.
52693         * lib/acl.h (qset_acl): New decl.
52694         * lib/acl.c (qset_acl): New function.
52695         (set_acl): Use new function.  Use more-consistent diagnostics.
52696
52697 2007-11-28  Jim Meyering  <meyering@redhat.com>
52698
52699         * modules/physmem (License): Change from GPL to LGPLv2+.
52700
52701 2007-11-26  Bruno Haible  <bruno@clisp.org>
52702
52703         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52704         'long double' type has excess precision.
52705         Reported by Jim Meyering in
52706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52707
52708 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52709
52710         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52711         Sync from <http://gnu.org/licenses>.
52712         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52713         with license text from same location.
52714         * doc/maintain.texi, doc/standards.texi:  Sync from
52715         <http://savannah.gnu.org/projects/gnustandards>.
52716
52717 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52718         and Jim Meyering  <meyering@redhat.com>
52719
52720         Adjust getdate' grammar to accept a slightly more regular language.
52721         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52722         Before, the former was rejected.
52723         * lib/getdate.y (digits_to_date_time): New function, factored
52724         out of ...
52725         (number): ...here.  Just call digits_to_date_time.
52726         (hybrid): New non-terminal to handle an <unsigned number,
52727         signed relative offset> sequence consistently.
52728
52729 2007-11-18  Jim Meyering  <meyering@redhat.com>
52730
52731         Pull my changes from coreutils:
52732         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52733         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52734         use of $gnulib_tool_option_extras, so that it's separated from the
52735         preceding argument.
52736
52737         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52738         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52739         parent destination directories before copying a file into place.
52740
52741 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52742
52743         bootstrap: work also with 4-argument variant of AC_INIT
52744         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52745
52746 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52747
52748         Port test-getaddrinfo to Solaris.
52749         Problem reported by Bruno Haible in
52750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52751         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52752         explanation of setting 'hints'.
52753         Don't reject an implementation merely because it returns EAI_SERVICE.
52754         (EAI_SERVICE): Define to 0 if not defined.
52755
52756 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52757
52758         The license of gnu-make and posix-shell is now "GPLed build tool".
52759         * modules/gnu-make (License): Likewise.
52760         * modules/posix-shell (License): Likewise.
52761
52762         New module posix-shell, for determining a POSIX shell
52763         or perhaps something that is close enough to a POSIX shell.
52764         * m4/posix-shell.m4: New file.
52765         * modules/posix-shell: New file.
52766
52767         * MODULES.html.sh: Mention new module.
52768
52769         New module gnu-make, for determining whether we're using GNU Make.
52770         * m4/gnu-make.m4: New file.
52771         * modules/gnu-make: New file.
52772         * MODULES.html.sh: Mention new module.
52773
52774 2007-11-14  Jim Meyering  <meyering@redhat.com>
52775
52776         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52777         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52778         use this macro to create a function _definition_.
52779         Remove useless "#undef ARGMATCH_DIE".
52780
52781 2007-11-14  Bruno Haible  <bruno@clisp.org>
52782
52783         * lib/config.charset: Update for OpenBSD 4.1.
52784         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52785
52786 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52787
52788         Document 64-bit #if problems in stdint.texi.
52789         * doc/headers/stdint.texi (stdint.h): Mention problems with
52790         64-bit-#if, and how to work around them.
52791
52792         Don't insist on 'long long int' support in the preprocessor.  It
52793         breaks too many things.  For example, PRIdMAX still uses a 'long
52794         long int' format with the latest Sun compiler, even though
52795         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52796         preprocessor problem.  This causes the latest coreutils to dump
52797         core on Solaris 10 sparc with the Sun C compiler.
52798         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52799         the troublesome expressions at configure-time, not at #if-time.
52800         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52801         preprocessor.
52802         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52803         compile-time C checks, done at 'configure'-time.
52804         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52805         * modules/inttypes (Makefile): Substitute the new symbols that
52806         gl_INTTYPES_H now generates.
52807         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52808
52809 2007-11-12  Bruno Haible  <bruno@clisp.org>
52810
52811         Tests for Unicode character classification functions.
52812
52813         * modules/unictype/bidicategory-byname-tests: New file.
52814         * modules/unictype/bidicategory-name-tests: New file.
52815         * modules/unictype/bidicategory-of-tests: New file.
52816         * modules/unictype/bidicategory-test-tests: New file.
52817         * modules/unictype/block-list-tests: New file.
52818         * modules/unictype/block-of-tests: New file.
52819         * modules/unictype/block-test-tests: New file.
52820         * modules/unictype/category-C-tests: New file.
52821         * modules/unictype/category-Cc-tests: New file.
52822         * modules/unictype/category-Cf-tests: New file.
52823         * modules/unictype/category-Cn-tests: New file.
52824         * modules/unictype/category-Co-tests: New file.
52825         * modules/unictype/category-Cs-tests: New file.
52826         * modules/unictype/category-L-tests: New file.
52827         * modules/unictype/category-Ll-tests: New file.
52828         * modules/unictype/category-Lm-tests: New file.
52829         * modules/unictype/category-Lo-tests: New file.
52830         * modules/unictype/category-Lt-tests: New file.
52831         * modules/unictype/category-Lu-tests: New file.
52832         * modules/unictype/category-M-tests: New file.
52833         * modules/unictype/category-Mc-tests: New file.
52834         * modules/unictype/category-Me-tests: New file.
52835         * modules/unictype/category-Mn-tests: New file.
52836         * modules/unictype/category-N-tests: New file.
52837         * modules/unictype/category-Nd-tests: New file.
52838         * modules/unictype/category-Nl-tests: New file.
52839         * modules/unictype/category-No-tests: New file.
52840         * modules/unictype/category-P-tests: New file.
52841         * modules/unictype/category-Pc-tests: New file.
52842         * modules/unictype/category-Pd-tests: New file.
52843         * modules/unictype/category-Pe-tests: New file.
52844         * modules/unictype/category-Pf-tests: New file.
52845         * modules/unictype/category-Pi-tests: New file.
52846         * modules/unictype/category-Po-tests: New file.
52847         * modules/unictype/category-Ps-tests: New file.
52848         * modules/unictype/category-S-tests: New file.
52849         * modules/unictype/category-Sc-tests: New file.
52850         * modules/unictype/category-Sk-tests: New file.
52851         * modules/unictype/category-Sm-tests: New file.
52852         * modules/unictype/category-So-tests: New file.
52853         * modules/unictype/category-Z-tests: New file.
52854         * modules/unictype/category-Zl-tests: New file.
52855         * modules/unictype/category-Zp-tests: New file.
52856         * modules/unictype/category-Zs-tests: New file.
52857         * modules/unictype/category-and-not-tests: New file.
52858         * modules/unictype/category-and-tests: New file.
52859         * modules/unictype/category-byname-tests: New file.
52860         * modules/unictype/category-name-tests: New file.
52861         * modules/unictype/category-none-tests: New file.
52862         * modules/unictype/category-of-tests: New file.
52863         * modules/unictype/category-or-tests: New file.
52864         * modules/unictype/category-test-withtable-tests: New file.
52865         * modules/unictype/combining-class-tests: New file.
52866         * modules/unictype/ctype-alnum-tests: New file.
52867         * modules/unictype/ctype-alpha-tests: New file.
52868         * modules/unictype/ctype-blank-tests: New file.
52869         * modules/unictype/ctype-cntrl-tests: New file.
52870         * modules/unictype/ctype-digit-tests: New file.
52871         * modules/unictype/ctype-graph-tests: New file.
52872         * modules/unictype/ctype-lower-tests: New file.
52873         * modules/unictype/ctype-print-tests: New file.
52874         * modules/unictype/ctype-punct-tests: New file.
52875         * modules/unictype/ctype-space-tests: New file.
52876         * modules/unictype/ctype-upper-tests: New file.
52877         * modules/unictype/ctype-xdigit-tests: New file.
52878         * modules/unictype/decimal-digit-tests: New file.
52879         * modules/unictype/digit-tests: New file.
52880         * modules/unictype/mirror-tests: New file.
52881         * modules/unictype/numeric-tests: New file.
52882         * modules/unictype/property-alphabetic-tests: New file.
52883         * modules/unictype/property-ascii-hex-digit-tests: New file.
52884         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52885         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52886         * modules/unictype/property-bidi-block-separator-tests: New file.
52887         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52888         * modules/unictype/property-bidi-common-separator-tests: New file.
52889         * modules/unictype/property-bidi-control-tests: New file.
52890         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52891         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52892         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52893         * modules/unictype/property-bidi-european-digit-tests: New file.
52894         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52895         * modules/unictype/property-bidi-left-to-right-tests: New file.
52896         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52897         * modules/unictype/property-bidi-other-neutral-tests: New file.
52898         * modules/unictype/property-bidi-pdf-tests: New file.
52899         * modules/unictype/property-bidi-segment-separator-tests: New file.
52900         * modules/unictype/property-bidi-whitespace-tests: New file.
52901         * modules/unictype/property-byname-tests: New file.
52902         * modules/unictype/property-combining-tests: New file.
52903         * modules/unictype/property-composite-tests: New file.
52904         * modules/unictype/property-currency-symbol-tests: New file.
52905         * modules/unictype/property-dash-tests: New file.
52906         * modules/unictype/property-decimal-digit-tests: New file.
52907         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52908         * modules/unictype/property-deprecated-tests: New file.
52909         * modules/unictype/property-diacritic-tests: New file.
52910         * modules/unictype/property-extender-tests: New file.
52911         * modules/unictype/property-format-control-tests: New file.
52912         * modules/unictype/property-grapheme-base-tests: New file.
52913         * modules/unictype/property-grapheme-extend-tests: New file.
52914         * modules/unictype/property-grapheme-link-tests: New file.
52915         * modules/unictype/property-hex-digit-tests: New file.
52916         * modules/unictype/property-hyphen-tests: New file.
52917         * modules/unictype/property-id-continue-tests: New file.
52918         * modules/unictype/property-id-start-tests: New file.
52919         * modules/unictype/property-ideographic-tests: New file.
52920         * modules/unictype/property-ids-binary-operator-tests: New file.
52921         * modules/unictype/property-ids-trinary-operator-tests: New file.
52922         * modules/unictype/property-ignorable-control-tests: New file.
52923         * modules/unictype/property-iso-control-tests: New file.
52924         * modules/unictype/property-join-control-tests: New file.
52925         * modules/unictype/property-left-of-pair-tests: New file.
52926         * modules/unictype/property-line-separator-tests: New file.
52927         * modules/unictype/property-logical-order-exception-tests: New file.
52928         * modules/unictype/property-lowercase-tests: New file.
52929         * modules/unictype/property-math-tests: New file.
52930         * modules/unictype/property-non-break-tests: New file.
52931         * modules/unictype/property-not-a-character-tests: New file.
52932         * modules/unictype/property-numeric-tests: New file.
52933         * modules/unictype/property-other-alphabetic-tests: New file.
52934         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52935         * modules/unictype/property-other-grapheme-extend-tests: New file.
52936         * modules/unictype/property-other-id-continue-tests: New file.
52937         * modules/unictype/property-other-id-start-tests: New file.
52938         * modules/unictype/property-other-lowercase-tests: New file.
52939         * modules/unictype/property-other-math-tests: New file.
52940         * modules/unictype/property-other-uppercase-tests: New file.
52941         * modules/unictype/property-paired-punctuation-tests: New file.
52942         * modules/unictype/property-paragraph-separator-tests: New file.
52943         * modules/unictype/property-pattern-syntax-tests: New file.
52944         * modules/unictype/property-pattern-white-space-tests: New file.
52945         * modules/unictype/property-private-use-tests: New file.
52946         * modules/unictype/property-punctuation-tests: New file.
52947         * modules/unictype/property-quotation-mark-tests: New file.
52948         * modules/unictype/property-radical-tests: New file.
52949         * modules/unictype/property-sentence-terminal-tests: New file.
52950         * modules/unictype/property-soft-dotted-tests: New file.
52951         * modules/unictype/property-space-tests: New file.
52952         * modules/unictype/property-terminal-punctuation-tests: New file.
52953         * modules/unictype/property-test-tests: New file.
52954         * modules/unictype/property-titlecase-tests: New file.
52955         * modules/unictype/property-unassigned-code-value-tests: New file.
52956         * modules/unictype/property-unified-ideograph-tests: New file.
52957         * modules/unictype/property-uppercase-tests: New file.
52958         * modules/unictype/property-variation-selector-tests: New file.
52959         * modules/unictype/property-white-space-tests: New file.
52960         * modules/unictype/property-xid-continue-tests: New file.
52961         * modules/unictype/property-xid-start-tests: New file.
52962         * modules/unictype/property-zero-width-tests: New file.
52963         * modules/unictype/scripts-tests: New file.
52964         * modules/unictype/syntax-c-ident-tests: New file.
52965         * modules/unictype/syntax-c-whitespace-tests: New file.
52966         * modules/unictype/syntax-java-ident-tests: New file.
52967         * modules/unictype/syntax-java-whitespace-tests: New file.
52968         * tests/unictype/test-bidi_byname.c: New file.
52969         * tests/unictype/test-bidi_name.c: New file.
52970         * tests/unictype/test-bidi_of.c: New file.
52971         * tests/unictype/test-bidi_test.c: New file.
52972         * tests/unictype/test-block_list.c: New file.
52973         * tests/unictype/test-block_of.c: New file.
52974         * tests/unictype/test-block_test.c: New file.
52975         * tests/unictype/test-categ_and.c: New file.
52976         * tests/unictype/test-categ_and_not.c: New file.
52977         * tests/unictype/test-categ_byname.c: New file.
52978         * tests/unictype/test-categ_name.c: New file.
52979         * tests/unictype/test-categ_none.c: New file.
52980         * tests/unictype/test-categ_of.c: New file.
52981         * tests/unictype/test-categ_or.c: New file.
52982         * tests/unictype/test-categ_test_withtable.c: New file.
52983         * tests/unictype/test-combining.c: New file.
52984         * tests/unictype/test-decdigit.c: New file.
52985         * tests/unictype/test-digit.c: New file.
52986         * tests/unictype/test-mirror.c: New file.
52987         * tests/unictype/test-numeric.c: New file.
52988         * tests/unictype/test-pr_byname.c: New file.
52989         * tests/unictype/test-pr_test.c: New file.
52990         * tests/unictype/test-predicate-part1.h: New file.
52991         * tests/unictype/test-predicate-part2.h: New file.
52992         * tests/unictype/test-scripts.c: New file.
52993         * tests/unictype/test-sy_c_ident.c: New file.
52994         * tests/unictype/test-sy_java_ident.c: New file.
52995
52996         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52997         for Unicode 5.0.0.
52998         * tests/unictype/test-categ_Cc.c: Likewise.
52999         * tests/unictype/test-categ_Cf.c: Likewise.
53000         * tests/unictype/test-categ_Cn.c: Likewise.
53001         * tests/unictype/test-categ_Co.c: Likewise.
53002         * tests/unictype/test-categ_Cs.c: Likewise.
53003         * tests/unictype/test-categ_L.c: Likewise.
53004         * tests/unictype/test-categ_Ll.c: Likewise.
53005         * tests/unictype/test-categ_Lm.c: Likewise.
53006         * tests/unictype/test-categ_Lo.c: Likewise.
53007         * tests/unictype/test-categ_Lt.c: Likewise.
53008         * tests/unictype/test-categ_Lu.c: Likewise.
53009         * tests/unictype/test-categ_M.c: Likewise.
53010         * tests/unictype/test-categ_Mc.c: Likewise.
53011         * tests/unictype/test-categ_Me.c: Likewise.
53012         * tests/unictype/test-categ_Mn.c: Likewise.
53013         * tests/unictype/test-categ_N.c: Likewise.
53014         * tests/unictype/test-categ_Nd.c: Likewise.
53015         * tests/unictype/test-categ_Nl.c: Likewise.
53016         * tests/unictype/test-categ_No.c: Likewise.
53017         * tests/unictype/test-categ_P.c: Likewise.
53018         * tests/unictype/test-categ_Pc.c: Likewise.
53019         * tests/unictype/test-categ_Pd.c: Likewise.
53020         * tests/unictype/test-categ_Pe.c: Likewise.
53021         * tests/unictype/test-categ_Pf.c: Likewise.
53022         * tests/unictype/test-categ_Pi.c: Likewise.
53023         * tests/unictype/test-categ_Po.c: Likewise.
53024         * tests/unictype/test-categ_Ps.c: Likewise.
53025         * tests/unictype/test-categ_S.c: Likewise.
53026         * tests/unictype/test-categ_Sc.c: Likewise.
53027         * tests/unictype/test-categ_Sk.c: Likewise.
53028         * tests/unictype/test-categ_Sm.c: Likewise.
53029         * tests/unictype/test-categ_So.c: Likewise.
53030         * tests/unictype/test-categ_Z.c: Likewise.
53031         * tests/unictype/test-categ_Zl.c: Likewise.
53032         * tests/unictype/test-categ_Zp.c: Likewise.
53033         * tests/unictype/test-categ_Zs.c: Likewise.
53034         * tests/unictype/test-ctype_alnum.c: Likewise.
53035         * tests/unictype/test-ctype_alpha.c: Likewise.
53036         * tests/unictype/test-ctype_blank.c: Likewise.
53037         * tests/unictype/test-ctype_cntrl.c: Likewise.
53038         * tests/unictype/test-ctype_digit.c: Likewise.
53039         * tests/unictype/test-ctype_graph.c: Likewise.
53040         * tests/unictype/test-ctype_lower.c: Likewise.
53041         * tests/unictype/test-ctype_print.c: Likewise.
53042         * tests/unictype/test-ctype_punct.c: Likewise.
53043         * tests/unictype/test-ctype_space.c: Likewise.
53044         * tests/unictype/test-ctype_upper.c: Likewise.
53045         * tests/unictype/test-ctype_xdigit.c: Likewise.
53046         * tests/unictype/test-decdigit.h: Likewise.
53047         * tests/unictype/test-digit.h: Likewise.
53048         * tests/unictype/test-numeric.h: Likewise.
53049         * tests/unictype/test-pr_alphabetic.c: Likewise.
53050         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53051         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53052         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53053         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53054         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53055         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53056         * tests/unictype/test-pr_bidi_control.c: Likewise.
53057         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53058         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53059         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53060         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53061         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53062         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53063         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53064         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53065         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53066         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53067         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53068         * tests/unictype/test-pr_combining.c: Likewise.
53069         * tests/unictype/test-pr_composite.c: Likewise.
53070         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53071         * tests/unictype/test-pr_dash.c: Likewise.
53072         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53073         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53074         * tests/unictype/test-pr_deprecated.c: Likewise.
53075         * tests/unictype/test-pr_diacritic.c: Likewise.
53076         * tests/unictype/test-pr_extender.c: Likewise.
53077         * tests/unictype/test-pr_format_control.c: Likewise.
53078         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53079         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53080         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53081         * tests/unictype/test-pr_hex_digit.c: Likewise.
53082         * tests/unictype/test-pr_hyphen.c: Likewise.
53083         * tests/unictype/test-pr_id_continue.c: Likewise.
53084         * tests/unictype/test-pr_id_start.c: Likewise.
53085         * tests/unictype/test-pr_ideographic.c: Likewise.
53086         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53087         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53088         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53089         * tests/unictype/test-pr_iso_control.c: Likewise.
53090         * tests/unictype/test-pr_join_control.c: Likewise.
53091         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53092         * tests/unictype/test-pr_line_separator.c: Likewise.
53093         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53094         * tests/unictype/test-pr_lowercase.c: Likewise.
53095         * tests/unictype/test-pr_math.c: Likewise.
53096         * tests/unictype/test-pr_non_break.c: Likewise.
53097         * tests/unictype/test-pr_not_a_character.c: Likewise.
53098         * tests/unictype/test-pr_numeric.c: Likewise.
53099         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53100         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53101         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53102         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53103         * tests/unictype/test-pr_other_id_start.c: Likewise.
53104         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53105         * tests/unictype/test-pr_other_math.c: Likewise.
53106         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53107         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53108         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53109         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53110         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53111         * tests/unictype/test-pr_private_use.c: Likewise.
53112         * tests/unictype/test-pr_punctuation.c: Likewise.
53113         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53114         * tests/unictype/test-pr_radical.c: Likewise.
53115         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53116         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53117         * tests/unictype/test-pr_space.c: Likewise.
53118         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53119         * tests/unictype/test-pr_titlecase.c: Likewise.
53120         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53121         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53122         * tests/unictype/test-pr_uppercase.c: Likewise.
53123         * tests/unictype/test-pr_variation_selector.c: Likewise.
53124         * tests/unictype/test-pr_white_space.c: Likewise.
53125         * tests/unictype/test-pr_xid_continue.c: Likewise.
53126         * tests/unictype/test-pr_xid_start.c: Likewise.
53127         * tests/unictype/test-pr_zero_width.c: Likewise.
53128         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53129         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53130
53131 2007-11-12  Bruno Haible  <bruno@clisp.org>
53132
53133         Unicode character classification functions.
53134         * lib/unictype.h: New file.
53135         * modules/unictype/base: New file.
53136         * modules/unictype/category-L: New file.
53137         * modules/unictype/category-Lu: New file.
53138         * modules/unictype/category-Ll: New file.
53139         * modules/unictype/category-Lt: New file.
53140         * modules/unictype/category-Lm: New file.
53141         * modules/unictype/category-Lo: New file.
53142         * modules/unictype/category-M: New file.
53143         * modules/unictype/category-Mn: New file.
53144         * modules/unictype/category-Mc: New file.
53145         * modules/unictype/category-Me: New file.
53146         * modules/unictype/category-N: New file.
53147         * modules/unictype/category-Nd: New file.
53148         * modules/unictype/category-Nl: New file.
53149         * modules/unictype/category-No: New file.
53150         * modules/unictype/category-P: New file.
53151         * modules/unictype/category-Pc: New file.
53152         * modules/unictype/category-Pd: New file.
53153         * modules/unictype/category-Ps: New file.
53154         * modules/unictype/category-Pe: New file.
53155         * modules/unictype/category-Pi: New file.
53156         * modules/unictype/category-Pf: New file.
53157         * modules/unictype/category-Po: New file.
53158         * modules/unictype/category-S: New file.
53159         * modules/unictype/category-Sm: New file.
53160         * modules/unictype/category-Sc: New file.
53161         * modules/unictype/category-Sk: New file.
53162         * modules/unictype/category-So: New file.
53163         * modules/unictype/category-Z: New file.
53164         * modules/unictype/category-Zs: New file.
53165         * modules/unictype/category-Zl: New file.
53166         * modules/unictype/category-Zp: New file.
53167         * modules/unictype/category-C: New file.
53168         * modules/unictype/category-Cc: New file.
53169         * modules/unictype/category-Cf: New file.
53170         * modules/unictype/category-Cs: New file.
53171         * modules/unictype/category-Co: New file.
53172         * modules/unictype/category-Cn: New file.
53173         * modules/unictype/category-or: New file.
53174         * modules/unictype/category-of: New file.
53175         * modules/unictype/category-test: New file.
53176         * modules/unictype/category-test-withtable: New file.
53177         * modules/unictype/category-byname: New file.
53178         * modules/unictype/category-none: New file.
53179         * modules/unictype/category-and: New file.
53180         * modules/unictype/category-and-not: New file.
53181         * modules/unictype/category-name: New file.
53182         * modules/unictype/combining-class: New file.
53183         * modules/unictype/category-all: New file.
53184         * modules/unictype/bidicategory-all: New file.
53185         * modules/unictype/bidicategory-byname: New file.
53186         * modules/unictype/bidicategory-name: New file.
53187         * modules/unictype/bidicategory-of: New file.
53188         * modules/unictype/bidicategory-test: New file.
53189         * modules/unictype/decimal-digit: New file.
53190         * modules/unictype/digit: New file.
53191         * modules/unictype/numeric: New file.
53192         * modules/unictype/mirror: New file.
53193         * modules/unictype/property-white-space: New file.
53194         * modules/unictype/property-alphabetic: New file.
53195         * modules/unictype/property-other-alphabetic: New file.
53196         * modules/unictype/property-not-a-character: New file.
53197         * modules/unictype/property-default-ignorable-code-point: New file.
53198         * modules/unictype/property-other-default-ignorable-code-point: New
53199         file.
53200         * modules/unictype/property-deprecated: New file.
53201         * modules/unictype/property-logical-order-exception: New file.
53202         * modules/unictype/property-variation-selector: New file.
53203         * modules/unictype/property-private-use: New file.
53204         * modules/unictype/property-unassigned-code-value: New file.
53205         * modules/unictype/property-uppercase: New file.
53206         * modules/unictype/property-other-uppercase: New file.
53207         * modules/unictype/property-lowercase: New file.
53208         * modules/unictype/property-other-lowercase: New file.
53209         * modules/unictype/property-titlecase: New file.
53210         * modules/unictype/property-soft-dotted: New file.
53211         * modules/unictype/property-id-start: New file.
53212         * modules/unictype/property-other-id-start: New file.
53213         * modules/unictype/property-id-continue: New file.
53214         * modules/unictype/property-other-id-continue: New file.
53215         * modules/unictype/property-xid-start: New file.
53216         * modules/unictype/property-xid-continue: New file.
53217         * modules/unictype/property-pattern-white-space: New file.
53218         * modules/unictype/property-pattern-syntax: New file.
53219         * modules/unictype/property-join-control: New file.
53220         * modules/unictype/property-grapheme-base: New file.
53221         * modules/unictype/property-grapheme-extend: New file.
53222         * modules/unictype/property-other-grapheme-extend: New file.
53223         * modules/unictype/property-grapheme-link: New file.
53224         * modules/unictype/property-bidi-control: New file.
53225         * modules/unictype/property-bidi-left-to-right: New file.
53226         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53227         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53228         * modules/unictype/property-bidi-european-digit: New file.
53229         * modules/unictype/property-bidi-eur-num-separator: New file.
53230         * modules/unictype/property-bidi-eur-num-terminator: New file.
53231         * modules/unictype/property-bidi-arabic-digit: New file.
53232         * modules/unictype/property-bidi-common-separator: New file.
53233         * modules/unictype/property-bidi-block-separator: New file.
53234         * modules/unictype/property-bidi-segment-separator: New file.
53235         * modules/unictype/property-bidi-whitespace: New file.
53236         * modules/unictype/property-bidi-non-spacing-mark: New file.
53237         * modules/unictype/property-bidi-boundary-neutral: New file.
53238         * modules/unictype/property-bidi-pdf: New file.
53239         * modules/unictype/property-bidi-embedding-or-override: New file.
53240         * modules/unictype/property-bidi-other-neutral: New file.
53241         * modules/unictype/property-hex-digit: New file.
53242         * modules/unictype/property-ascii-hex-digit: New file.
53243         * modules/unictype/property-ideographic: New file.
53244         * modules/unictype/property-unified-ideograph: New file.
53245         * modules/unictype/property-radical: New file.
53246         * modules/unictype/property-ids-binary-operator: New file.
53247         * modules/unictype/property-ids-trinary-operator: New file.
53248         * modules/unictype/property-zero-width: New file.
53249         * modules/unictype/property-space: New file.
53250         * modules/unictype/property-non-break: New file.
53251         * modules/unictype/property-iso-control: New file.
53252         * modules/unictype/property-format-control: New file.
53253         * modules/unictype/property-dash: New file.
53254         * modules/unictype/property-hyphen: New file.
53255         * modules/unictype/property-punctuation: New file.
53256         * modules/unictype/property-line-separator: New file.
53257         * modules/unictype/property-paragraph-separator: New file.
53258         * modules/unictype/property-quotation-mark: New file.
53259         * modules/unictype/property-sentence-terminal: New file.
53260         * modules/unictype/property-terminal-punctuation: New file.
53261         * modules/unictype/property-currency-symbol: New file.
53262         * modules/unictype/property-math: New file.
53263         * modules/unictype/property-other-math: New file.
53264         * modules/unictype/property-paired-punctuation: New file.
53265         * modules/unictype/property-left-of-pair: New file.
53266         * modules/unictype/property-combining: New file.
53267         * modules/unictype/property-composite: New file.
53268         * modules/unictype/property-decimal-digit: New file.
53269         * modules/unictype/property-numeric: New file.
53270         * modules/unictype/property-diacritic: New file.
53271         * modules/unictype/property-extender: New file.
53272         * modules/unictype/property-ignorable-control: New file.
53273         * modules/unictype/property-test: New file.
53274         * modules/unictype/property-byname: New file.
53275         * modules/unictype/property-all: New file.
53276         * modules/unictype/scripts: New file.
53277         * modules/unictype/scripts-all: New file.
53278         * modules/unictype/block-of: New file.
53279         * modules/unictype/block-test: New file.
53280         * modules/unictype/block-list: New file.
53281         * modules/unictype/block-all: New file.
53282         * modules/unictype/syntax-c-whitespace: New file.
53283         * modules/unictype/syntax-java-whitespace: New file.
53284         * modules/unictype/syntax-c-ident: New file.
53285         * modules/unictype/syntax-java-ident: New file.
53286         * modules/unictype/ctype-alnum: New file.
53287         * modules/unictype/ctype-alpha: New file.
53288         * modules/unictype/ctype-cntrl: New file.
53289         * modules/unictype/ctype-digit: New file.
53290         * modules/unictype/ctype-graph: New file.
53291         * modules/unictype/ctype-lower: New file.
53292         * modules/unictype/ctype-print: New file.
53293         * modules/unictype/ctype-punct: New file.
53294         * modules/unictype/ctype-space: New file.
53295         * modules/unictype/ctype-upper: New file.
53296         * modules/unictype/ctype-xdigit: New file.
53297         * modules/unictype/ctype-blank: New file.
53298         * lib/unictype/bidi_byname.c: New file.
53299         * lib/unictype/bidi_name.c: New file.
53300         * lib/unictype/bidi_of.c: New file.
53301         * lib/unictype/bidi_test.c: New file.
53302         * lib/unictype/bitmap.h: New file.
53303         * lib/unictype/block_test.c: New file.
53304         * lib/unictype/blocks.c: New file.
53305         * lib/unictype/categ_C.c: New file.
53306         * lib/unictype/categ_Cc.c: New file.
53307         * lib/unictype/categ_Cf.c: New file.
53308         * lib/unictype/categ_Cn.c: New file.
53309         * lib/unictype/categ_Co.c: New file.
53310         * lib/unictype/categ_Cs.c: New file.
53311         * lib/unictype/categ_L.c: New file.
53312         * lib/unictype/categ_Ll.c: New file.
53313         * lib/unictype/categ_Lm.c: New file.
53314         * lib/unictype/categ_Lo.c: New file.
53315         * lib/unictype/categ_Lt.c: New file.
53316         * lib/unictype/categ_Lu.c: New file.
53317         * lib/unictype/categ_M.c: New file.
53318         * lib/unictype/categ_Mc.c: New file.
53319         * lib/unictype/categ_Me.c: New file.
53320         * lib/unictype/categ_Mn.c: New file.
53321         * lib/unictype/categ_N.c: New file.
53322         * lib/unictype/categ_Nd.c: New file.
53323         * lib/unictype/categ_Nl.c: New file.
53324         * lib/unictype/categ_No.c: New file.
53325         * lib/unictype/categ_P.c: New file.
53326         * lib/unictype/categ_Pc.c: New file.
53327         * lib/unictype/categ_Pd.c: New file.
53328         * lib/unictype/categ_Pe.c: New file.
53329         * lib/unictype/categ_Pf.c: New file.
53330         * lib/unictype/categ_Pi.c: New file.
53331         * lib/unictype/categ_Po.c: New file.
53332         * lib/unictype/categ_Ps.c: New file.
53333         * lib/unictype/categ_S.c: New file.
53334         * lib/unictype/categ_Sc.c: New file.
53335         * lib/unictype/categ_Sk.c: New file.
53336         * lib/unictype/categ_Sm.c: New file.
53337         * lib/unictype/categ_So.c: New file.
53338         * lib/unictype/categ_Z.c: New file.
53339         * lib/unictype/categ_Zl.c: New file.
53340         * lib/unictype/categ_Zp.c: New file.
53341         * lib/unictype/categ_Zs.c: New file.
53342         * lib/unictype/categ_and.c: New file.
53343         * lib/unictype/categ_and_not.c: New file.
53344         * lib/unictype/categ_byname.c: New file.
53345         * lib/unictype/categ_name.c: New file.
53346         * lib/unictype/categ_none.c: New file.
53347         * lib/unictype/categ_of.c: New file.
53348         * lib/unictype/categ_or.c: New file.
53349         * lib/unictype/categ_test.c: New file.
53350         * lib/unictype/combining.c: New file.
53351         * lib/unictype/ctype_alnum.c: New file.
53352         * lib/unictype/ctype_alpha.c: New file.
53353         * lib/unictype/ctype_blank.c: New file.
53354         * lib/unictype/ctype_cntrl.c: New file.
53355         * lib/unictype/ctype_digit.c: New file.
53356         * lib/unictype/ctype_graph.c: New file.
53357         * lib/unictype/ctype_lower.c: New file.
53358         * lib/unictype/ctype_print.c: New file.
53359         * lib/unictype/ctype_punct.c: New file.
53360         * lib/unictype/ctype_space.c: New file.
53361         * lib/unictype/ctype_upper.c: New file.
53362         * lib/unictype/ctype_xdigit.c: New file.
53363         * lib/unictype/decdigit.c: New file.
53364         * lib/unictype/digit.c: New file.
53365         * lib/unictype/identsyntaxmap.h: New file.
53366         * lib/unictype/mirror.c: New file.
53367         * lib/unictype/numeric.c: New file.
53368         * lib/unictype/pr_alphabetic.c: New file.
53369         * lib/unictype/pr_ascii_hex_digit.c: New file.
53370         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53371         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53372         * lib/unictype/pr_bidi_block_separator.c: New file.
53373         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53374         * lib/unictype/pr_bidi_common_separator.c: New file.
53375         * lib/unictype/pr_bidi_control.c: New file.
53376         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53377         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53378         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53379         * lib/unictype/pr_bidi_european_digit.c: New file.
53380         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53381         * lib/unictype/pr_bidi_left_to_right.c: New file.
53382         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53383         * lib/unictype/pr_bidi_other_neutral.c: New file.
53384         * lib/unictype/pr_bidi_pdf.c: New file.
53385         * lib/unictype/pr_bidi_segment_separator.c: New file.
53386         * lib/unictype/pr_bidi_whitespace.c: New file.
53387         * lib/unictype/pr_byname.c: New file.
53388         * lib/unictype/pr_byname.gperf: New file.
53389         * lib/unictype/pr_combining.c: New file.
53390         * lib/unictype/pr_composite.c: New file.
53391         * lib/unictype/pr_currency_symbol.c: New file.
53392         * lib/unictype/pr_dash.c: New file.
53393         * lib/unictype/pr_decimal_digit.c: New file.
53394         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53395         * lib/unictype/pr_deprecated.c: New file.
53396         * lib/unictype/pr_diacritic.c: New file.
53397         * lib/unictype/pr_extender.c: New file.
53398         * lib/unictype/pr_format_control.c: New file.
53399         * lib/unictype/pr_grapheme_base.c: New file.
53400         * lib/unictype/pr_grapheme_extend.c: New file.
53401         * lib/unictype/pr_grapheme_link.c: New file.
53402         * lib/unictype/pr_hex_digit.c: New file.
53403         * lib/unictype/pr_hyphen.c: New file.
53404         * lib/unictype/pr_id_continue.c: New file.
53405         * lib/unictype/pr_id_start.c: New file.
53406         * lib/unictype/pr_ideographic.c: New file.
53407         * lib/unictype/pr_ids_binary_operator.c: New file.
53408         * lib/unictype/pr_ids_trinary_operator.c: New file.
53409         * lib/unictype/pr_ignorable_control.c: New file.
53410         * lib/unictype/pr_iso_control.c: New file.
53411         * lib/unictype/pr_join_control.c: New file.
53412         * lib/unictype/pr_left_of_pair.c: New file.
53413         * lib/unictype/pr_line_separator.c: New file.
53414         * lib/unictype/pr_logical_order_exception.c: New file.
53415         * lib/unictype/pr_lowercase.c: New file.
53416         * lib/unictype/pr_math.c: New file.
53417         * lib/unictype/pr_non_break.c: New file.
53418         * lib/unictype/pr_not_a_character.c: New file.
53419         * lib/unictype/pr_numeric.c: New file.
53420         * lib/unictype/pr_other_alphabetic.c: New file.
53421         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53422         * lib/unictype/pr_other_grapheme_extend.c: New file.
53423         * lib/unictype/pr_other_id_continue.c: New file.
53424         * lib/unictype/pr_other_id_start.c: New file.
53425         * lib/unictype/pr_other_lowercase.c: New file.
53426         * lib/unictype/pr_other_math.c: New file.
53427         * lib/unictype/pr_other_uppercase.c: New file.
53428         * lib/unictype/pr_paired_punctuation.c: New file.
53429         * lib/unictype/pr_paragraph_separator.c: New file.
53430         * lib/unictype/pr_pattern_syntax.c: New file.
53431         * lib/unictype/pr_pattern_white_space.c: New file.
53432         * lib/unictype/pr_private_use.c: New file.
53433         * lib/unictype/pr_punctuation.c: New file.
53434         * lib/unictype/pr_quotation_mark.c: New file.
53435         * lib/unictype/pr_radical.c: New file.
53436         * lib/unictype/pr_sentence_terminal.c: New file.
53437         * lib/unictype/pr_soft_dotted.c: New file.
53438         * lib/unictype/pr_space.c: New file.
53439         * lib/unictype/pr_terminal_punctuation.c: New file.
53440         * lib/unictype/pr_test.c: New file.
53441         * lib/unictype/pr_titlecase.c: New file.
53442         * lib/unictype/pr_unassigned_code_value.c: New file.
53443         * lib/unictype/pr_unified_ideograph.c: New file.
53444         * lib/unictype/pr_uppercase.c: New file.
53445         * lib/unictype/pr_variation_selector.c: New file.
53446         * lib/unictype/pr_white_space.c: New file.
53447         * lib/unictype/pr_xid_continue.c: New file.
53448         * lib/unictype/pr_xid_start.c: New file.
53449         * lib/unictype/pr_zero_width.c: New file.
53450         * lib/unictype/scripts.c: New file.
53451         * lib/unictype/sy_c_ident.c: New file.
53452         * lib/unictype/sy_c_whitespace.c: New file.
53453         * lib/unictype/sy_java_ident.c: New file.
53454         * lib/unictype/sy_java_whitespace.c: New file.
53455
53456         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53457         Unicode 5.0.0.
53458         * lib/unictype/blocks.h: Likewise.
53459         * lib/unictype/categ_C.h: Likewise.
53460         * lib/unictype/categ_Cc.h: Likewise.
53461         * lib/unictype/categ_Cf.h: Likewise.
53462         * lib/unictype/categ_Cn.h: Likewise.
53463         * lib/unictype/categ_Co.h: Likewise.
53464         * lib/unictype/categ_Cs.h: Likewise.
53465         * lib/unictype/categ_L.h: Likewise.
53466         * lib/unictype/categ_Ll.h: Likewise.
53467         * lib/unictype/categ_Lm.h: Likewise.
53468         * lib/unictype/categ_Lo.h: Likewise.
53469         * lib/unictype/categ_Lt.h: Likewise.
53470         * lib/unictype/categ_Lu.h: Likewise.
53471         * lib/unictype/categ_M.h: Likewise.
53472         * lib/unictype/categ_Mc.h: Likewise.
53473         * lib/unictype/categ_Me.h: Likewise.
53474         * lib/unictype/categ_Mn.h: Likewise.
53475         * lib/unictype/categ_N.h: Likewise.
53476         * lib/unictype/categ_Nd.h: Likewise.
53477         * lib/unictype/categ_Nl.h: Likewise.
53478         * lib/unictype/categ_No.h: Likewise.
53479         * lib/unictype/categ_P.h: Likewise.
53480         * lib/unictype/categ_Pc.h: Likewise.
53481         * lib/unictype/categ_Pd.h: Likewise.
53482         * lib/unictype/categ_Pe.h: Likewise.
53483         * lib/unictype/categ_Pf.h: Likewise.
53484         * lib/unictype/categ_Pi.h: Likewise.
53485         * lib/unictype/categ_Po.h: Likewise.
53486         * lib/unictype/categ_Ps.h: Likewise.
53487         * lib/unictype/categ_S.h: Likewise.
53488         * lib/unictype/categ_Sc.h: Likewise.
53489         * lib/unictype/categ_Sk.h: Likewise.
53490         * lib/unictype/categ_Sm.h: Likewise.
53491         * lib/unictype/categ_So.h: Likewise.
53492         * lib/unictype/categ_Z.h: Likewise.
53493         * lib/unictype/categ_Zl.h: Likewise.
53494         * lib/unictype/categ_Zp.h: Likewise.
53495         * lib/unictype/categ_Zs.h: Likewise.
53496         * lib/unictype/categ_of.h: Likewise.
53497         * lib/unictype/combining.h: Likewise.
53498         * lib/unictype/ctype_alnum.h: Likewise.
53499         * lib/unictype/ctype_alpha.h: Likewise.
53500         * lib/unictype/ctype_blank.h: Likewise.
53501         * lib/unictype/ctype_cntrl.h: Likewise.
53502         * lib/unictype/ctype_digit.h: Likewise.
53503         * lib/unictype/ctype_graph.h: Likewise.
53504         * lib/unictype/ctype_lower.h: Likewise.
53505         * lib/unictype/ctype_print.h: Likewise.
53506         * lib/unictype/ctype_punct.h: Likewise.
53507         * lib/unictype/ctype_space.h: Likewise.
53508         * lib/unictype/ctype_upper.h: Likewise.
53509         * lib/unictype/ctype_xdigit.h: Likewise.
53510         * lib/unictype/decdigit.h: Likewise.
53511         * lib/unictype/digit.h: Likewise.
53512         * lib/unictype/mirror.h: Likewise.
53513         * lib/unictype/numeric.h: Likewise.
53514         * lib/unictype/pr_alphabetic.h: Likewise.
53515         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53516         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53517         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53518         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53519         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53520         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53521         * lib/unictype/pr_bidi_control.h: Likewise.
53522         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53523         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53524         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53525         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53526         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53527         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53528         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53529         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53530         * lib/unictype/pr_bidi_pdf.h: Likewise.
53531         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53532         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53533         * lib/unictype/pr_combining.h: Likewise.
53534         * lib/unictype/pr_composite.h: Likewise.
53535         * lib/unictype/pr_currency_symbol.h: Likewise.
53536         * lib/unictype/pr_dash.h: Likewise.
53537         * lib/unictype/pr_decimal_digit.h: Likewise.
53538         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53539         * lib/unictype/pr_deprecated.h: Likewise.
53540         * lib/unictype/pr_diacritic.h: Likewise.
53541         * lib/unictype/pr_extender.h: Likewise.
53542         * lib/unictype/pr_format_control.h: Likewise.
53543         * lib/unictype/pr_grapheme_base.h: Likewise.
53544         * lib/unictype/pr_grapheme_extend.h: Likewise.
53545         * lib/unictype/pr_grapheme_link.h: Likewise.
53546         * lib/unictype/pr_hex_digit.h: Likewise.
53547         * lib/unictype/pr_hyphen.h: Likewise.
53548         * lib/unictype/pr_id_continue.h: Likewise.
53549         * lib/unictype/pr_id_start.h: Likewise.
53550         * lib/unictype/pr_ideographic.h: Likewise.
53551         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53552         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53553         * lib/unictype/pr_ignorable_control.h: Likewise.
53554         * lib/unictype/pr_iso_control.h: Likewise.
53555         * lib/unictype/pr_join_control.h: Likewise.
53556         * lib/unictype/pr_left_of_pair.h: Likewise.
53557         * lib/unictype/pr_line_separator.h: Likewise.
53558         * lib/unictype/pr_logical_order_exception.h: Likewise.
53559         * lib/unictype/pr_lowercase.h: Likewise.
53560         * lib/unictype/pr_math.h: Likewise.
53561         * lib/unictype/pr_non_break.h: Likewise.
53562         * lib/unictype/pr_not_a_character.h: Likewise.
53563         * lib/unictype/pr_numeric.h: Likewise.
53564         * lib/unictype/pr_other_alphabetic.h: Likewise.
53565         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53566         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53567         * lib/unictype/pr_other_id_continue.h: Likewise.
53568         * lib/unictype/pr_other_id_start.h: Likewise.
53569         * lib/unictype/pr_other_lowercase.h: Likewise.
53570         * lib/unictype/pr_other_math.h: Likewise.
53571         * lib/unictype/pr_other_uppercase.h: Likewise.
53572         * lib/unictype/pr_paired_punctuation.h: Likewise.
53573         * lib/unictype/pr_paragraph_separator.h: Likewise.
53574         * lib/unictype/pr_pattern_syntax.h: Likewise.
53575         * lib/unictype/pr_pattern_white_space.h: Likewise.
53576         * lib/unictype/pr_private_use.h: Likewise.
53577         * lib/unictype/pr_punctuation.h: Likewise.
53578         * lib/unictype/pr_quotation_mark.h: Likewise.
53579         * lib/unictype/pr_radical.h: Likewise.
53580         * lib/unictype/pr_sentence_terminal.h: Likewise.
53581         * lib/unictype/pr_soft_dotted.h: Likewise.
53582         * lib/unictype/pr_space.h: Likewise.
53583         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53584         * lib/unictype/pr_titlecase.h: Likewise.
53585         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53586         * lib/unictype/pr_unified_ideograph.h: Likewise.
53587         * lib/unictype/pr_uppercase.h: Likewise.
53588         * lib/unictype/pr_variation_selector.h: Likewise.
53589         * lib/unictype/pr_white_space.h: Likewise.
53590         * lib/unictype/pr_xid_continue.h: Likewise.
53591         * lib/unictype/pr_xid_start.h: Likewise.
53592         * lib/unictype/pr_zero_width.h: Likewise.
53593         * lib/unictype/scripts.h: Likewise.
53594         * lib/unictype/scripts_byname.gperf: Likewise.
53595         * lib/unictype/sy_c_ident.h: Likewise.
53596         * lib/unictype/sy_c_whitespace.h: Likewise.
53597         * lib/unictype/sy_java_ident.h: Likewise.
53598         * lib/unictype/sy_java_whitespace.h: Likewise.
53599
53600         * lib/unictype/Makefile: New file.
53601         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53602         glibc.
53603         * lib/unictype/3level.h: New file, copied from glibc.
53604         * lib/unictype/3levelbit.h: New file.
53605
53606 2007-11-11  Bruno Haible  <bruno@clisp.org>
53607
53608         * modules/gperf: New file.
53609         * modules/iconv_open (Depends-on): Add it.
53610         (Makefile.am): Remove the GPERF definition.
53611
53612 2007-11-11  Bruno Haible  <bruno@clisp.org>
53613
53614         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53615         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53616
53617 2007-11-11  Bruno Haible  <bruno@clisp.org>
53618
53619         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53620         (usage): Remove function.
53621
53622 2007-11-11  Bruno Haible  <bruno@clisp.org>
53623
53624         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53625         gl_FUNC_CEILF_LIBS.
53626         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53627         gl_FUNC_CEIL_LIBS.
53628         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53629         gl_FUNC_CEILL_LIBS.
53630         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53631         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53632         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53633
53634 2007-11-11  Bruno Haible  <bruno@clisp.org>
53635
53636         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53637         roundf were declared but do not exist on functions.
53638         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53639         roundl were declared but do not exist on functions.
53640         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53641         HAVE_FLOORL_AND_CEILL, respectively.
53642         Needed for Sun C on Solaris 10.
53643
53644 2007-11-11  Bruno Haible  <bruno@clisp.org>
53645
53646         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53647         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53648         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53649         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53650         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53651         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53652         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53653         HAVE_DECL_ROUNDF.
53654         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53655         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53657         of HAVE_DECL_ROUND*.
53658         * modules/math (Makefile.am): Update.
53659
53660 2007-11-10  Bruno Haible  <bruno@clisp.org>
53661
53662         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53663         ptrdiff_t as m4/intl.m4.
53664
53665 2007-11-10  Jim Meyering  <meyering@redhat.com>
53666
53667         Avoid link failure for the argmatch test.
53668         * tests/test-argmatch.c (usage): Define function to avoid a link
53669         failure: argmatch_die requires a usage function.
53670
53671 2007-11-09  Bruno Haible  <bruno@clisp.org>
53672
53673         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53674         * doc/functions/vsnprintf.texi: Likewise.
53675         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53676         with a size argument < 2.
53677
53678 2007-11-09  Bruno Haible  <bruno@clisp.org>
53679
53680         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53681         buffer. Fixes an inefficiency introduced on 2007-11-03.
53682
53683 2007-11-09  Bruno Haible  <bruno@clisp.org>
53684
53685         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53686         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53687
53688 2007-11-08  Jim Meyering  <meyering@redhat.com>
53689
53690         Change cache variable name prefix "jm_" to "gl_" everywhere.
53691         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53692         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53693         * m4/uptime.m4: s/gl_/jm_/
53694
53695 2007-11-07  Bruno Haible  <bruno@clisp.org>
53696
53697         Update to GNU gettext 0.17.
53698         * m4/intl.m4: Update to GNU gettext 0.17.
53699         * m4/po.m4: Likewise.
53700         * modules/gettext (Files): Remove m4/ulonglong.m4.
53701         (configure.ac): Require gettext infrastructure from version 0.17.
53702
53703 2007-11-06  Bruno Haible  <bruno@clisp.org>
53704
53705         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53706         symbolic values are not defined in a public header.
53707         * lib/freadable.c (freadable) [QNX]: Likewise.
53708         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53709         * lib/freading.c (freading) [QNX]: Likewise.
53710         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53711         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53712         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53713         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53714         Reported by Alain Magloire.
53715
53716         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53717
53718 2007-11-05  Bruno Haible  <bruno@clisp.org>
53719
53720         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53721         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53722         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53723         Reported by Eric Blake.
53724
53725 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53726             Bruno Haible  <bruno@clisp.org>
53727
53728         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53729         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53730         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53731         (malloc): Undefine also before including <stdlib.h>.
53732         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53733         Needed on OSF/1 4.0.
53734
53735 2007-11-05  Jim Meyering  <meyering@redhat.com>
53736
53737         git-version-gen: sync from coreutils.
53738         * build-aux/git-version-gen: Add comments.
53739         Change the first '-' to '.' in the snapshot version string,
53740         e.g., 6.9-377-08144 -> 6.9.377-08144
53741         Remove first parameter.
53742         Don't declare a version "-dirty" merely because a time
53743         stamp has changed.
53744
53745 2007-11-04  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/lock.h: Protect all macro definitions containing an 'if'
53748         statement through a "do { ... } while (0)".
53749         * lib/tls.h: Likewise.
53750
53751 2007-11-04  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53754
53755 2007-11-04  Bruno Haible  <bruno@clisp.org>
53756
53757         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53758         * modules/fprintf-posix (Depends-on): Add nocrash.
53759         * modules/snprintf-posix (Depends-on): Likewise.
53760         * modules/sprintf-posix (Depends-on): Likewise.
53761         * modules/vasnprintf-posix (Depends-on): Likewise.
53762         * modules/vasprintf-posix (Depends-on): Likewise.
53763         * modules/vfprintf-posix (Depends-on): Likewise.
53764         * modules/vsnprintf-posix (Depends-on): Likewise.
53765         * modules/vsprintf-posix (Depends-on): Likewise.
53766         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53767         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53768         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53769         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53770         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53771         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53772         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53773
53774 2007-11-04  Bruno Haible  <bruno@clisp.org>
53775
53776         * modules/nocrash: New file.
53777         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53778         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53779
53780 2007-11-04  Bruno Haible  <bruno@clisp.org>
53781
53782         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53783         precision handling.
53784         * tests/test-vasprintf-posix.c (test_function): Likewise.
53785         * tests/test-snprintf-posix.h (test_function): Likewise.
53786         * tests/test-sprintf-posix.h (test_function): Likewise.
53787
53788         Fix *printf behaviour for large precisions on mingw and BeOS.
53789         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53790         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53792         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53793         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53794         gl_PRINTF_PRECISION and test its result. Invoke
53795         gl_PREREQ_VASNPRINTF_PRECISION.
53796         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53797         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53803         * doc/functions/fprintf.texi: Update.
53804         * doc/functions/printf.texi: Update.
53805         * doc/functions/snprintf.texi: Update.
53806         * doc/functions/sprintf.texi: Update.
53807         * doc/functions/vfprintf.texi: Update.
53808         * doc/functions/vprintf.texi: Update.
53809         * doc/functions/vsnprintf.texi: Update.
53810         * doc/functions/vsprintf.texi: Update.
53811
53812 2007-11-04  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53815
53816 2007-11-04  Bruno Haible  <bruno@clisp.org>
53817
53818         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53819         Reported by Sylvain Beucler <beuc@gnu.org>.
53820
53821 2007-11-03  Bruno Haible  <bruno@clisp.org>
53822
53823         * tests/test-fprintf-posix2.sh: New file.
53824         * tests/test-fprintf-posix2.c: New file.
53825         * modules/fprintf-posix-tests (Files): Add them.
53826         (TESTS): Add test-fprintf-posix2.sh.
53827         (configure.ac): Check for getrlimit and setrlimit.
53828         (check_PROGRAMS): Add test-fprintf-posix2.
53829
53830         * tests/test-printf-posix2.sh: New file.
53831         * tests/test-printf-posix2.c: New file.
53832         * modules/printf-posix-tests (Files): Add them.
53833         (TESTS): Add test-printf-posix2.sh.
53834         (configure.ac): Check for getrlimit and setrlimit.
53835         (check_PROGRAMS): Add test-printf-posix2.
53836
53837         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53838         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53839         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53840         (decode_double): New function, copied from decode_long_double.
53841         (scale10_round_decimal_decoded): New function, extracted from
53842         scale10_round_decimal_long_double.
53843         (scale10_round_decimal_long_double): Use it.
53844         (scale10_round_decimal_double): New function.
53845         (floorlog10): New function.
53846         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53847         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53848         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53849         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53850         gl_PRINTF_ENOMEM and test its result. Invoke
53851         gl_PREREQ_VASNPRINTF_ENOMEM.
53852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53853         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53854         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53856         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53857         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53858         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53859         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53860         * modules/snprintf-posix (Depends-on): Likewise.
53861         * modules/sprintf-posix (Depends-on): Likewise.
53862         * modules/vasnprintf-posix (Depends-on): Likewise.
53863         * modules/vasprintf-posix (Depends-on): Likewise.
53864         * modules/vfprintf-posix (Depends-on): Likewise.
53865         * modules/vsnprintf-posix (Depends-on): Likewise.
53866         * modules/vsprintf-posix (Depends-on): Likewise.
53867         * doc/functions/fprintf.texi: Update.
53868         * doc/functions/printf.texi: Update.
53869         * doc/functions/snprintf.texi: Update.
53870         * doc/functions/sprintf.texi: Update.
53871         * doc/functions/vfprintf.texi: Update.
53872         * doc/functions/vprintf.texi: Update.
53873         * doc/functions/vsnprintf.texi: Update.
53874         * doc/functions/vsprintf.texi: Update.
53875
53876 2007-11-03  Bruno Haible  <bruno@clisp.org>
53877
53878         * modules/frexp-nolibm-tests: New file.
53879
53880         * modules/frexp-nolibm: New file.
53881         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53882
53883 2007-11-03  Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53886         value is C99 compliant.
53887         Needed for OSF/1 5.1.
53888
53889 2007-11-03  Bruno Haible  <bruno@clisp.org>
53890
53891         Fix out-of-memory handling of vasnprintf.
53892         * lib/printf-parse.c: Include <errno.h>.
53893         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53894         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53895         is already set.
53896
53897 2007-11-02  Eric Blake  <ebb9@byu.net>
53898
53899         Fix tests on cygwin.
53900         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53901
53902 2007-11-01  Bruno Haible  <bruno@clisp.org>
53903
53904         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53905         warning.
53906         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53907         needed for POSIX compatibility.
53908
53909 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53910
53911         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53912         for compatibility with GNU.
53913
53914 2007-11-01  Bruno Haible  <bruno@clisp.org>
53915
53916         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53917         (putenv): Renamed from rpl_putenv. Change argument type from
53918         'const char *' to 'char *'.
53919         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53920         of defining putenv in config.h, just set REPLACE_PUTENV.
53921         * modules/putenv (Depends-on): Add stdlib.
53922         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53923         (Include): Use <stdlib.h>.
53924         * lib/stdlib.in.h (putenv): New declaration.
53925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53926         REPLACE_PUTENV.
53927         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53928         REPLACE_PUTENV.
53929         Needed for MacOS X 10.5.0.
53930         Reported by Peter O'Gorman <peter@pogma.com>.
53931
53932 2007-11-01  Jim Meyering  <meyering@redhat.com>
53933
53934         Treat an empty date string exactly like "0".
53935         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53936         if the remaining date string (to be parsed) is empty, use "0".
53937         Reported by Mischa Molhoek and discussed in this thread:
53938         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53939
53940 2007-10-31  Bruno Haible  <bruno@clisp.org>
53941
53942         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53943         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53944         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53945         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53946         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53947         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53948
53949 2007-10-31  Bruno Haible  <bruno@clisp.org>
53950
53951         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53952         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53953         (AC_TYPE_LONG_LONG_INT): Use it.
53954         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53955         it as well.
53956         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53957         to m4/longlong.m4.
53958         * modules/stdint (Files): Remove m4/ulonglong.m4.
53959         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53960         m4/ulonglong.m4.
53961         * modules/strtoumax (Files): Likewise.
53962
53963 2007-10-30  Bruno Haible  <bruno@clisp.org>
53964
53965         * modules/xvasprintf-posix: New file.
53966         Suggested by Eric Blake.
53967
53968 2007-10-30  Bruno Haible  <bruno@clisp.org>
53969
53970         * modules/xprintf-posix-tests: New file.
53971         * tests/test-xprintf-posix.sh: New file.
53972         * tests/test-xprintf-posix.c: New file.
53973         * tests/test-xfprintf-posix.c: New file.
53974
53975         * modules/xprintf-posix: New file.
53976
53977 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53978
53979         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53980         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53981         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53982
53983 2007-10-29  Bruno Haible  <bruno@clisp.org>
53984
53985         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53986         contain the special marker '_cv_'.
53987         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53988         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53989         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53990         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53991         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53992         Reported by Ralf Wildenhues.
53993
53994 2007-10-29  Bruno Haible  <bruno@clisp.org>
53995
53996         * gnulib-tool (func_import): When --lgpl is not specified, set
53997         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53998         GPLv3.
53999         Reported by Simon Josefsson.
54000
54001 2007-10-28  Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54004         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54005         HAVE_DECL_ISFINITE.
54006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54007         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54008         HAVE_DECL_ISFINITE.
54009
54010 2007-10-28  Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54013         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54014
54015 2007-10-28  Bruno Haible  <bruno@clisp.org>
54016
54017         Fix link errors with Sun C 5.0 on Solaris 10.
54018         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54019         function is declared but not present in the compiler's libm.
54020         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54021         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54022         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54023         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54024         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54025         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54026         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54028         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54029         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54030         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54031         HAVE_DECL_FLOORL.
54032
54033 2007-10-28  Bruno Haible  <bruno@clisp.org>
54034
54035         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54036         gl_FUNC_FLOORL. Cache the result.
54037         (gl_FUNC_FLOORL): Use it.
54038         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54039         gl_FUNC_CEILL. Cache the result.
54040         (gl_FUNC_CEILL): Use it.
54041
54042         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54043         gl_FUNC_FLOOR. Cache the result.
54044         (gl_FUNC_FLOOR): Use it.
54045         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54046         gl_FUNC_CEIL. Cache the result.
54047         (gl_FUNC_CEIL): Use it.
54048
54049         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54050         gl_FUNC_FLOORF. Cache the result.
54051         (gl_FUNC_FLOORF): Use it.
54052         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54053         gl_FUNC_CEILF. Cache the result.
54054         (gl_FUNC_CEILF): Use it.
54055
54056 2007-10-28  Bruno Haible  <bruno@clisp.org>
54057
54058         * gnulib-tool: Allow specifying the LGPL version number through
54059         --lgpl=2 or --lgpl=3.
54060         (func_usage): Document --lgpl with argument.
54061         Handle --lgpl=... arguments.
54062         (func_import): Recognize also gl_LGPL calls with an argument. When
54063         --lgpl=2 is used and the module's license is just LGPL, report an
54064         error. Set sed_transform_lib_file according to the lgpl variable. In
54065         the generated files, use --lgpl or gl_LGPL invocations with argument,
54066         if necessary.
54067         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54068         an LGPv2+ license.
54069         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54070         gl_LGPL macro.
54071
54072 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54073             Bruno Haible  <bruno@clisp.org>
54074
54075         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54076         (u16_uctomb_aux): Likewise.
54077         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54078         !HAVE_INLINE.
54079         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54080
54081 2007-10-28  Bruno Haible  <bruno@clisp.org>
54082
54083         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54084         Invoke AM_GETTEXT_OPTION if it exists.
54085         * modules/vasprintf: Likewise.
54086         * modules/verror: Likewise.
54087         * modules/xprintf: Likewise.
54088         * modules/xvasprintf: Likewise.
54089
54090 2007-10-27  Ben Pfaff  <blp@gnu.org>
54091
54092         * lib/math.in.h: Define isfinite macro and prototypes for
54093         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54094         implementations.
54095         * m4/math_h.m4: New substitutions for isfinite module.
54096         * lib/isfinite.c: New file.
54097         * m4/isfinite.m4: New file.
54098         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54099         * modules/isfinite: New file.
54100         * modules/isfinite-tests: New file.
54101         * tests/tests-isfinite.c: New file.
54102         * doc/functions/isfinite.texi: Mention isfinite module.
54103         * MODULES.html.sh: Mention new module.
54104
54105 2007-10-27  Ben Pfaff  <blp@gnu.org>
54106
54107         Ralf Wildenhues reported that Tru64 4.0D declares the round
54108         functions but does not have definitions.
54109         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54110         cannot be found in any library, set the output variable to
54111         "missing" instead of "".
54112         * m4/round.m4: Also use our substitute if we cannot find round in
54113         any library, even if it is declared.
54114         * m4/roundf.m4: Likewise for roundf.
54115         * m4/roundl.m4: Likewise for roundl.
54116         * lib/math.in.h: Undefine roundf, round, roundl before defining
54117         their replacements, to allow for hypothetical systems where these
54118         may be defined as macros but not available in libraries.
54119
54120 2007-10-27  Bruno Haible  <bruno@clisp.org>
54121
54122         * doc/gnulib.texi: Invoke @firstparagraphindent.
54123         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54124         changes in gnulib.
54125         (Source changes): New section.
54126
54127 2007-10-26  Bruno Haible  <bruno@clisp.org>
54128
54129         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54130         borrowed from autoconf.
54131
54132 2007-10-26  Bruno Haible  <bruno@clisp.org>
54133
54134         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54135         strerror returned the empty string. Needed on HP-UX 11.00.
54136
54137 2007-10-24  Micah Cowan  <micah@cowan.name>
54138
54139         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54140         * build-aux/bootstrap: Remove support for now-unnecessary option,
54141         --cvs-user, and envvars CVS_USER, CVS_RSH.
54142
54143 2007-10-24  Jim Meyering  <meyering@redhat.com>
54144
54145         Avoid diagnostics from sha1sum when there is no cached checksum.
54146         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54147         if the po.s1 file hasn't been created yet.
54148
54149         * build-aux/bootstrap: Sync from coreutils:
54150         2007-10-24  Jim Meyering  <meyering@redhat.com>
54151         Get gnulib from the git repository, not from an obsolete cvs one.
54152         * build-aux/bootstrap: Suggestion from Micah Cowan.
54153         2007-10-04  Jim Meyering  <jim@meyering.net>
54154         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54155         (update_po_files): Work also when there are no .po files in po/.
54156
54157 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54158
54159         * README: Append ".git" to git and cg examples.
54160         Problem reported by Benoit Sigoure.
54161
54162 2007-10-23  Micah Cowan  <micah@cowan.name>
54163
54164         * users.txt: Add wget.
54165
54166 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54167
54168         Fix linking of some unistdio tests on FreeBSD.
54169         * modules/unistdio/u16-vsnprintf-tests
54170         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54171         * modules/unistdio/u16-vsprintf-tests
54172         (test_u16_vsnprintf1_LDADD): Likewise.
54173         * modules/unistdio/u32-vsnprintf-tests
54174         (test_u32_vsnprintf1_LDADD): Likewise.
54175         * modules/unistdio/u32-vsprintf-tests
54176         (test_u32_vsprintf1_LDADD): Likewise.
54177         * modules/unistdio/u8-vsnprintf-tests
54178         (test_u8_vsnprintf1_LDADD): Likewise.
54179         * modules/unistdio/u8-vsprintf-tests
54180         (test_u8_vsprintf1_LDADD): Likewise.
54181         * modules/unistdio/ulc-vsnprintf-tests
54182         (test_ulc_vsnprintf1_LDADD): Likewise.
54183         * modules/unistdio/ulc-vsprintf-tests
54184         (test_ulc_vsprintf1_LDADD): Likewise.
54185
54186         Fix linking of some uniconv tests on FreeBSD.
54187         * modules/uniconv/u16-conv-from-enc-tests
54188         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54189         * modules/uniconv/u16-conv-to-enc-tests
54190         (test_u16_conv_to_enc_LDADD): Likewise.
54191         * modules/uniconv/u16-strconv-from-enc-tests
54192         (test_u16_strconv_from_enc_LDADD): Likewise.
54193         * modules/uniconv/u16-strconv-to-enc-tests
54194         (test_u16_strconv_to_enc_LDADD): Likewise.
54195         * modules/uniconv/u32-conv-from-enc-tests
54196         (test_u32_conv_from_enc_LDADD): Likewise.
54197         * modules/uniconv/u32-conv-to-enc-tests
54198         (test_u32_conv_to_enc_LDADD): Likewise.
54199         * modules/uniconv/u32-strconv-from-enc-tests
54200         (test_u32_strconv_from_enc_LDADD): Likewise.
54201         * modules/uniconv/u32-strconv-to-enc-tests
54202         (test_u32_strconv_to_enc_LDADD): Likewise.
54203         * modules/uniconv/u8-conv-from-enc-tests
54204         (test_u8_conv_from_enc_LDADD): Likewise.
54205         * modules/uniconv/u8-conv-to-enc-tests
54206         (test_u8_conv_to_enc_LDADD): Likewise.
54207         * modules/uniconv/u8-strconv-from-enc-tests
54208         (test_u8_strconv_from_enc_LDADD): Likewise.
54209         * modules/uniconv/u8-strconv-to-enc-tests
54210         (test_u8_strconv_to_enc_LDADD): Likewise.
54211
54212 2007-10-22  Bruno Haible  <bruno@clisp.org>
54213
54214         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54215         size.
54216
54217 2007-10-22  Eric Blake  <ebb9@byu.net>
54218
54219         Tweak x*printf documentation.
54220         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54221         variable name and comments.
54222         Suggested by Bruno Haible.
54223
54224 2007-10-22  Bruno Haible  <bruno@clisp.org>
54225
54226         * lib/acl.c (copy_acl): Fix file name in comment.
54227
54228 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         Fix Tru64 problem with stdbool.h.
54231         * lib/stdbool.in.h (false, true):
54232         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54233         Don't declare as an enum in this situation; it runs afoul of Tru64.
54234         Problem reported by Steven M. Schweda in
54235         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54236
54237 2007-10-22  Eric Blake  <ebb9@byu.net>
54238
54239         Also wrap vf?printf.
54240         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54241         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54242         (xvprintf, xvfprintf): New functions.
54243
54244 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54245
54246         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54247         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54248
54249         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54250         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54251
54252 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54255         by Bruno Haible.
54256
54257 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54258
54259         * lib/getloadavg.c
54260         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54261         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54262
54263         * tests/test-i-ring.c: Work for C89.
54264
54265 2007-10-22  Bruno Haible  <bruno@clisp.org>
54266
54267         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54268         -1u, in preprocessor expression, so that we don't test for the bug
54269         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54270         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54271
54272 2007-10-22  Eric Blake  <ebb9@byu.net>
54273
54274         * tests/test-yesno.sh: Silence stderr during test.
54275
54276 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54277
54278         * modules/crypto/gc-camellia: New file.
54279
54280         * m4/gc-camellia.m4: New file.
54281
54282         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54283
54284         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54285
54286 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54287
54288         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54289         --help to stdout.  Reported by sms@antinode.org (Steven
54290         M. Schweda).
54291
54292 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54293
54294         * users.txt: Fix link to libksba.
54295
54296 2007-10-21  Ben Pfaff  <blp@gnu.org>
54297
54298         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54299         round.c roundf implementation that depends on floorf and ceilf to
54300         be tested unconditionally.
54301
54302 2007-10-21  Ben Pfaff  <blp@gnu.org>
54303
54304         * m4/check-libm-func.m4: Removed.
54305         * m4/check-math-lib.m4: New file.
54306         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54307         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54308         definition and lack of AC_LIBOBJ([roundf]).
54309         * m4/roundl.m4: Ditto, and similarly for roundl.
54310         * modules/round: Reference new m4 file.
54311         * modules/roundf: Ditto.
54312         * modules/roundl: Ditto.
54313         * tests/test-round2.c (main): Use ROUND instead of round.
54314         Bug report from Bruno Haible.
54315
54316 2007-10-21  Bruno Haible  <bruno@clisp.org>
54317
54318         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54319         context.
54320
54321 2007-10-21  Bruno Haible  <bruno@clisp.org>
54322
54323         * tests/test-wcwidth.c (main): Allow negative result for some control
54324         characters.
54325
54326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54327         Needed on OSF/1 5.1.
54328
54329 2007-10-21  Bruno Haible  <bruno@clisp.org>
54330
54331         * tests/test-floorf1.c: Include isnanf.h.
54332         (main): Use isnanf() instead of isnan().
54333         * tests/test-ceilf1.c: Include isnanf.h.
54334         (main): Use isnanf() instead of isnan().
54335         * tests/test-truncf1.c: Include isnanf.h.
54336         (main): Use isnanf() instead of isnan().
54337         * tests/test-roundf1.c: Include isnanf.h.
54338         (main): Use isnanf() instead of isnan().
54339
54340 2007-10-21  Eric Blake  <ebb9@byu.net>
54341
54342         * users.txt: Update URL for m4.
54343
54344 2007-10-21  Bruno Haible  <bruno@clisp.org>
54345
54346         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54347
54348 2007-10-21  Bruno Haible  <bruno@clisp.org>
54349
54350         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54351         Git's management files if the CVS files are not present.
54352
54353 2007-10-20  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54356         gcc-3.4.x.
54357
54358 2007-10-20  Ben Pfaff  <blp@gnu.org>
54359
54360         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54361         implementations.
54362         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54363         * lib/round.c: New file.
54364         * lib/roundf.c: New file.
54365         * lib/roundl.c: New file.
54366         * m4/round.m4: New file.
54367         * m4/roundf.m4: New file.
54368         * m4/roundl.m4: New file.
54369         * m4/check-libm-func-m4: New file.
54370         * modules/math: Replace round, roundf, roundl related @VARS@ in
54371         math.in.h.
54372         * modules/round: New file.
54373         * modules/round-tests: New file.
54374         * modules/roundf: New file.
54375         * modules/roundf-tests: New file.
54376         * modules/roundl: New file.
54377         * modules/roundl-tests: New file.
54378         * tests/test-round1.c: New file.
54379         * tests/test-round2.c: New file.
54380         * tests/test-roundf1.c: New file.
54381         * tests/test-roundf2.c: New file.
54382         * tests/test-roundl.c: New file.
54383         * doc/functions/round.texi: Mention round module.
54384         * doc/functions/roundf.texi: Mention roundf module.
54385         * doc/functions/roundl.texi: Mention roundl module.
54386         * MODULES.html.sh: Mention new modules.
54387         Thanks to Bruno Haible for suggestions.
54388
54389 2007-10-20  Jim Meyering  <meyering@redhat.com>
54390
54391         * lib/xprintf.c: Include <config.h> unconditionally.
54392
54393         Change xprintf's license to GPL.
54394         * modules/xprintf (License): s/LGPL/GPL/, since this module
54395         depends on modules (exit and exitfail) which are GPL.
54396         Suggestion from Bruno Haible.
54397
54398         xprintf fixes.
54399         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54400         Use a clearer diagnostic.
54401         Patch from Bruno Haible.
54402
54403 2007-10-20  Bruno Haible  <bruno@clisp.org>
54404
54405         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54406         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54408
54409 2007-10-20  Bruno Haible  <bruno@clisp.org>
54410
54411         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54412         precision in the comparison result > x - 1 or similar.
54413         * tests/test-ceilf2.c (correct_result_p): Likewise.
54414         * tests/test-truncf2.c (correct_result_p): Likewise.
54415         * tests/test-trunc2.c (correct_result_p): Likewise.
54416         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54417
54418 2007-10-20  Bruno Haible  <bruno@clisp.org>
54419
54420         * modules/ceil: New file.
54421         * m4/ceil.m4: New file.
54422         * doc/functions/ceil.texi: Mention the 'ceil' module.
54423
54424 2007-10-20  Bruno Haible  <bruno@clisp.org>
54425
54426         * modules/floor: New file.
54427         * m4/floor.m4: New file.
54428         * doc/functions/floor.texi: Mention the 'floor' module.
54429
54430 2007-10-20  Bruno Haible  <bruno@clisp.org>
54431
54432         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54433         of %a.
54434         * modules/floorf-tests (Depends-on): Likewise.
54435         * modules/truncf-tests (Depends-on): Likewise.
54436         * modules/trunc-tests (Depends-on): Likewise.
54437         Reported by Ben Pfaff.
54438
54439 2007-10-19  Jim Meyering  <meyering@redhat.com>
54440
54441         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54442         Don't bother testing specific errno values.  Just test ferror.
54443
54444         New module: xprintf
54445         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54446
54447 2007-10-19  Bruno Haible  <bruno@clisp.org>
54448
54449         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54450         syntax.
54451         * modules/javaexec (Makefile.am): Likewise.
54452         * modules/relocatable-prog (Makefile.am): Likewise.
54453         Suggested by Jim Meyering.
54454
54455 2007-10-18  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54458         Reported by Jim Meyering.
54459
54460 2007-10-18  Eric Blake  <ebb9@byu.net>
54461
54462         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54463
54464 2007-10-18  Bruno Haible  <bruno@clisp.org>
54465
54466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54467         the format string into writable memory. Needed in Fortify conditions.
54468
54469 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54470             Bruno Haible  <bruno@clisp.org>
54471
54472         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54473         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54474         * modules/trim (Depends-on): Add mbchar.
54475         (configure.ac): Add gl_FUNC_MBRTOWC.
54476         (Makefile.am): Augment lib_SOURCES.
54477
54478 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         Modify glob.c to use fstatat and dirfd, to simplify it.
54481         Suggested by Eric Blake.
54482         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54483         Don't include <stdbool.h>; not used.
54484         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54485         (link_exists_p): Simplify implementation, since we can now assume
54486         dirfd and fstatat.
54487         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54488
54489 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54490
54491         * gnulib-tool (func_get_dependencies): Fix sed script to
54492         match only tests.
54493
54494 2007-10-17  Bruno Haible  <bruno@clisp.org>
54495
54496         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54497         allow locale names without encoding suffix.
54498         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54499         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54500
54501 2007-10-16  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54504         * lib/getgroups.c (getgroups): Likewise.
54505         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54506
54507 2007-10-16  Bruno Haible  <bruno@clisp.org>
54508
54509         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54510         * modules/malloc-posix (License): Likewise.
54511         * modules/realloc-posix (License): Likewise.
54512         * modules/calloc-posix (License): Likewise.
54513         * modules/intprops (License): Change from GPL to LGPL, with
54514         Paul Eggert's approval.
54515
54516 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54517
54518         Merge glibc changes into lib/glob.c.
54519
54520         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54521         2007-10-15 04:59:03 UTC.  Here are the changes:
54522
54523         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54524
54525         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54526
54527         * lib/glob.c: Add some branch prediction throughout.
54528
54529         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54530
54531         [BZ #5103]
54532         * lib/glob.c (glob): Recognize patterns starting \/.
54533
54534         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54535
54536         [BZ #3996]
54537         * lib/glob.c (attribute_hidden): Define if not defined.
54538         (glob): Unescape dirname, filename or username when needed and not
54539         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54540         is NULL.  Handle unescaped [ in pattern without closing ].
54541         Don't pass GLOB_CHECK down to recursive glob for directories.
54542         (__glob_pattern_type): New function.
54543         (__glob_pattern_p): Implement using __glob_pattern_type.
54544         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54545         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54546         Remove unreachable code.
54547
54548         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54549
54550         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54551         explain why there are no leaks.
54552
54553         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54554
54555         [BZ #3253]
54556         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54557         time, rather allocate increasingly bigger arrays of pointers, if
54558         possible with alloca, if too large with malloc.
54559
54560 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54561
54562         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54563         Problem reported by H.Merijn Brand in
54564         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54565         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54566         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54567
54568 2007-10-15  Bruno Haible  <bruno@clisp.org>
54569
54570         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54571         with explicit rpl_ prefix.
54572         * lib/fopen.c (fopen): Likewise.
54573         * lib/freopen.c (freopen): Likewise.
54574         * lib/iconv.c (iconv): Likewise.
54575         * lib/iconv_close.c (iconv_close): Likewise.
54576
54577 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54578
54579         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54580
54581 2007-10-15  Bruno Haible  <bruno@clisp.org>
54582
54583         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54584         <stddef.h> instead of <stdlib.h> since we only need NULL.
54585         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54586
54587 2007-10-15  Bruno Haible  <bruno@clisp.org>
54588
54589         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54590         Replace paragraph talking about LIBOBJS.
54591         Reported by Colin Watson <cjwatson@debian.org>.
54592
54593 2007-10-15  Bruno Haible  <bruno@clisp.org>
54594
54595         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54596         <stdlib.h> before using NULL.
54597
54598 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54599
54600         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54601         Reported by Albert Chin <china@thewrittenword.com>.
54602
54603 2007-10-14  Bruno Haible  <bruno@clisp.org>
54604
54605         * modules/iconv_open-utf-tests: New file.
54606         * tests/test-iconv-utf.c: New file.
54607
54608         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54609         * modules/iconv_open-utf: New file.
54610         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54611         (iconv, iconv_close): New declarations.
54612         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54613         be defined.
54614         (iconv_open): Add special handling of conversion between UTF-8 and
54615         UTF-{16,32}{BE,LE}.
54616         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54617         * lib/iconv_close.c: New file.
54618         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54619         gl_FUNC_ICONV_OPEN.
54620         (gl_FUNC_ICONV_OPEN): Use it.
54621         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54622         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54623         and REPLACE_ICONV_UTF.
54624         * modules/iconv_open (Depends-on): Add c-strcase.
54625         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54626         ICONV_CONST.
54627         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54628
54629 2007-10-13  Albert Chin  <china@thewrittenword.com>
54630             Bruno Haible  <bruno@clisp.org>
54631
54632         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54633         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54634
54635 2007-10-13  Bruno Haible  <bruno@clisp.org>
54636
54637         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54638         defined, use the ISO C99 inline semantics.
54639         * lib/argp.h (ARGP_EI): Likewise.
54640
54641 2007-10-13  Bruno Haible  <bruno@clisp.org>
54642
54643         Handle 'inline' change in gcc 4.3.0.
54644         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54645         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54646         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54647         argp_fmtstream_point): Disable 'extern' declaration if the function
54648         definition is going to be provided inline.
54649         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54650         semantics, not the ISO C99 inline semantics.
54651         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54652         'extern' declaration if the function definition is going to be provided
54653         inline.
54654         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54655         the GNU C inline semantics, not the ISO C99 inline semantics. With
54656         GCC 4.2, avoid a warning.
54657
54658 2007-10-13  Bruno Haible  <bruno@clisp.org>
54659
54660         * lib/freading.h (freading): Enable the use of __freading for
54661         glibc >= 2.7.
54662         * lib/freading.c (freading): Likewise.
54663
54664 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54665
54666         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54667         "warning: C99 inline functions are not supported; using GNU89".
54668
54669 2007-10-12  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54672         of 2.
54673         * tests/test-ceilf2.c: New file.
54674         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54675
54676         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54677         * modules/ceilf-tests: Update.
54678
54679 2007-10-12  Bruno Haible  <bruno@clisp.org>
54680
54681         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54682         of 2.
54683         * tests/test-floorf2.c: New file.
54684         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54685
54686         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54687         * modules/floorf-tests: Update.
54688
54689 2007-10-12  Bruno Haible  <bruno@clisp.org>
54690
54691         * tests/test-trunc2.c: New file.
54692         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54693
54694         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54695         * modules/trunc-tests: Update.
54696
54697 2007-10-12  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54700         of 2.
54701         * tests/test-truncf2.c: New file.
54702         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54703
54704         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54705         * modules/truncf-tests: Update.
54706
54707 2007-10-11  Eric Blake  <ebb9@byu.net>
54708
54709         Don't claim strerror is broken on Interix.
54710         * doc/functions/strerror.texi (strerror): Known broken systems are
54711         now Solaris 8, and not Interix.
54712         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54713         Interix on cross-compile.
54714         Reported by Martin Koeppe in
54715         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54716
54717 2007-10-11  Bruno Haible  <bruno@clisp.org>
54718
54719         * modules/i-ring-tests: New file.
54720         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54721         instead of assert.
54722
54723 2007-10-11  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/filenamecat-tests: New file.
54726         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54727         * lib/filenamecat.c: Remove test code.
54728
54729 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54732
54733         * lib/strerror.c: Include <string.h> always, to test interface,
54734         and to remove the need for the dummy.
54735         Include intprops.h to compute width instead of doing it ourselves
54736         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54737         (strerror): Define it to return NULL if there's no system strerror.
54738         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54739         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54740         ancient pre-strerror Unix systems well any more.  Saying "unknown
54741         system error" is enough.
54742         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54743         simpler strerror.c implementation.
54744         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54745         Simplify the tests to reflect the simpler strerror implementation.
54746         * modules/strerror (Depends-on): Add intprops.
54747
54748 2007-10-09  Eric Blake  <ebb9@byu.net>
54749
54750         Silence test-fpending.
54751         * modules/fpending-tests (Files): Add wrapper script.
54752         * tests/test-fpending.sh: New file.
54753
54754 2007-10-09  Bruno Haible  <bruno@clisp.org>
54755
54756         * MODULES.html.sh (func_module): Don't create a hyperlink for
54757         function names like 'printf_frexp'.
54758         (Misc): Add crc, memxor.
54759         (Characteristics of floating types): New section.
54760         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54761         isnanf-nolibm, signbit, trunc, truncf, truncl.
54762         (Enhancements for ISO C 99 functions): New subsection Input/output.
54763         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54764         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54765         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54766         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54767         (Enhancements for POSIX:2001 functions): Add chdir-long.
54768         (File system functions): Add areadlink, chdir-safer, read-file.
54769         Remove cycle-check.
54770         (File system as inode set): New section.
54771         (Date and time): Add gethrxtime.
54772         (Multithreading): Add openmp.
54773         (Internationalization functions): Add localename.
54774         (Unicode string functions): Add unistr/u*-mbsnlen.
54775         (Support for maintaining and releasing projects): Add git-version-gen.
54776         (Lone files): Remove directories.
54777
54778 2007-10-08  Ben Pfaff  <blp@gnu.org>
54779
54780         * lib/xmalloca.h: Fix typo in comment.
54781
54782 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54783
54784         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54785         when avoiding problems with integer overflow.  Use a portable test
54786         instead.
54787
54788 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54789
54790         * modules/dummy (License): Change to LGPLv2+.
54791         * modules/float (License): Likewise
54792         * modules/realloc (License): Likewise
54793         * modules/stdlib (License): Likewise
54794
54795 2007-10-07  Bruno Haible  <bruno@clisp.org>
54796
54797         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54798         * floor.c (TWO_MANT_DIG): Likewise.
54799         * ceil.c (TWO_MANT_DIG): Likewise.
54800         Reported by Ben Pfaff.
54801
54802 2007-10-07  Bruno Haible  <bruno@clisp.org>
54803
54804         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54805         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54806         * lib/frexp.c (FUNC): Likewise.
54807         * lib/printf-frexp.h (printf_frexp): Likewise.
54808         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54809         * lib/printf-frexp.c (FUNC): Likewise.
54810         Suggested by Jim Meyering.
54811
54812 2007-10-07  Jim Meyering  <meyering@redhat.com>
54813
54814         Make xnanosleep's integer overflow test more robust.
54815         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54816         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54817
54818 2007-10-07  Bruno Haible  <bruno@clisp.org>
54819
54820         * NEWS: Mention the license change.
54821
54822         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54823         abbreviations in the modules files.
54824
54825         Change copyright notice from GPLv2+ to GPLv3+.
54826         * README: Change copyright notice.
54827         * MODULES.html.sh: Likewise.
54828         * build-aux/bootstrap.conf: Likewise.
54829         * build-aux/config.libpath: Likewise.
54830         * build-aux/csharpcomp.sh.in: Likewise.
54831         * build-aux/csharpexec.sh.in: Likewise.
54832         * build-aux/install-reloc: Likewise.
54833         * build-aux/javacomp.sh.in: Likewise.
54834         * build-aux/javaexec.sh.in: Likewise.
54835         * build-aux/ldd.sh.in: Likewise.
54836         * build-aux/reloc-ldflags: Likewise.
54837         * build-aux/relocatable.sh.in: Likewise.
54838         * build-aux/x-to-1.in: Likewise.
54839         * check-module: Likewise.
54840         * config/srclistvars.sh: Likewise.
54841         * gnulib-tool: Likewise.
54842         * lib/acl-internal.h: Likewise.
54843         * lib/acl.c: Likewise.
54844         * lib/acl.h: Likewise.
54845         * lib/acl_entries.c: Likewise.
54846         * lib/areadlink-with-size.c: Likewise.
54847         * lib/areadlink.c: Likewise.
54848         * lib/areadlink.h: Likewise.
54849         * lib/argmatch.c: Likewise.
54850         * lib/argmatch.h: Likewise.
54851         * lib/argp-ba.c: Likewise.
54852         * lib/argp-eexst.c: Likewise.
54853         * lib/argp-fmtstream.c: Likewise.
54854         * lib/argp-fmtstream.h: Likewise.
54855         * lib/argp-fs-xinl.c: Likewise.
54856         * lib/argp-help.c: Likewise.
54857         * lib/argp-namefrob.h: Likewise.
54858         * lib/argp-parse.c: Likewise.
54859         * lib/argp-pin.c: Likewise.
54860         * lib/argp-pv.c: Likewise.
54861         * lib/argp-pvh.c: Likewise.
54862         * lib/argp-xinl.c: Likewise.
54863         * lib/argp.h: Likewise.
54864         * lib/at-func.c: Likewise.
54865         * lib/atanl.c: Likewise.
54866         * lib/backupfile.c: Likewise.
54867         * lib/backupfile.h: Likewise.
54868         * lib/basename.c: Likewise.
54869         * lib/binary-io.h: Likewise.
54870         * lib/byteswap.in.h: Likewise.
54871         * lib/c-stack.c: Likewise.
54872         * lib/c-stack.h: Likewise.
54873         * lib/c-strcasestr.c: Likewise.
54874         * lib/c-strcasestr.h: Likewise.
54875         * lib/c-strstr.c: Likewise.
54876         * lib/c-strstr.h: Likewise.
54877         * lib/c-strtod.c: Likewise.
54878         * lib/calloc.c: Likewise.
54879         * lib/canon-host.c: Likewise.
54880         * lib/canon-host.h: Likewise.
54881         * lib/canonicalize-lgpl.c: Likewise.
54882         * lib/canonicalize.c: Likewise.
54883         * lib/canonicalize.h: Likewise.
54884         * lib/ceil.c: Likewise.
54885         * lib/ceilf.c: Likewise.
54886         * lib/ceill.c: Likewise.
54887         * lib/chdir-long.c: Likewise.
54888         * lib/chdir-long.h: Likewise.
54889         * lib/chdir-safer.c: Likewise.
54890         * lib/chdir-safer.h: Likewise.
54891         * lib/chown.c: Likewise.
54892         * lib/classpath.c: Likewise.
54893         * lib/classpath.h: Likewise.
54894         * lib/clean-temp.c: Likewise.
54895         * lib/clean-temp.h: Likewise.
54896         * lib/cloexec.c: Likewise.
54897         * lib/close-stream.c: Likewise.
54898         * lib/closein.c: Likewise.
54899         * lib/closein.h: Likewise.
54900         * lib/closeout.c: Likewise.
54901         * lib/closeout.h: Likewise.
54902         * lib/concat-filename.c: Likewise.
54903         * lib/copy-file.c: Likewise.
54904         * lib/copy-file.h: Likewise.
54905         * lib/count-one-bits.h: Likewise.
54906         * lib/crc.c: Likewise.
54907         * lib/crc.h: Likewise.
54908         * lib/creat-safer.c: Likewise.
54909         * lib/csharpcomp.c: Likewise.
54910         * lib/csharpcomp.h: Likewise.
54911         * lib/csharpexec.c: Likewise.
54912         * lib/csharpexec.h: Likewise.
54913         * lib/cycle-check.c: Likewise.
54914         * lib/cycle-check.h: Likewise.
54915         * lib/diacrit.c: Likewise.
54916         * lib/diacrit.h: Likewise.
54917         * lib/diffseq.h: Likewise.
54918         * lib/dirchownmod.c: Likewise.
54919         * lib/dirent.in.h: Likewise.
54920         * lib/dirfd.c: Likewise.
54921         * lib/dirfd.h: Likewise.
54922         * lib/dirname.c: Likewise.
54923         * lib/dirname.h: Likewise.
54924         * lib/dummy.c: Likewise.
54925         * lib/dup-safer.c: Likewise.
54926         * lib/dup2.c: Likewise.
54927         * lib/eealloc.h: Likewise.
54928         * lib/error.c: Likewise.
54929         * lib/error.h: Likewise.
54930         * lib/euidaccess.c: Likewise.
54931         * lib/exclude.c: Likewise.
54932         * lib/exclude.h: Likewise.
54933         * lib/execute.c: Likewise.
54934         * lib/execute.h: Likewise.
54935         * lib/exitfail.c: Likewise.
54936         * lib/exitfail.h: Likewise.
54937         * lib/expl.c: Likewise.
54938         * lib/fatal-signal.c: Likewise.
54939         * lib/fatal-signal.h: Likewise.
54940         * lib/fbufmode.c: Likewise.
54941         * lib/fbufmode.h: Likewise.
54942         * lib/fchdir.c: Likewise.
54943         * lib/fchmodat.c: Likewise.
54944         * lib/fchownat.c: Likewise.
54945         * lib/fcntl--.h: Likewise.
54946         * lib/fcntl-safer.h: Likewise.
54947         * lib/fcntl.in.h: Likewise.
54948         * lib/fd-safer.c: Likewise.
54949         * lib/fflush.c: Likewise.
54950         * lib/file-has-acl.c: Likewise.
54951         * lib/file-set.c: Likewise.
54952         * lib/file-type.c: Likewise.
54953         * lib/file-type.h: Likewise.
54954         * lib/fileblocks.c: Likewise.
54955         * lib/filemode.c: Likewise.
54956         * lib/filemode.h: Likewise.
54957         * lib/filename.h: Likewise.
54958         * lib/filenamecat.c: Likewise.
54959         * lib/filenamecat.h: Likewise.
54960         * lib/findprog.c: Likewise.
54961         * lib/findprog.h: Likewise.
54962         * lib/float.in.h: Likewise.
54963         * lib/floor.c: Likewise.
54964         * lib/floorf.c: Likewise.
54965         * lib/floorl.c: Likewise.
54966         * lib/fopen-safer.c: Likewise.
54967         * lib/fopen.c: Likewise.
54968         * lib/fpending.c: Likewise.
54969         * lib/fpending.h: Likewise.
54970         * lib/fprintf.c: Likewise.
54971         * lib/fprintftime.h: Likewise.
54972         * lib/fpucw.h: Likewise.
54973         * lib/fpurge.c: Likewise.
54974         * lib/fpurge.h: Likewise.
54975         * lib/freadable.c: Likewise.
54976         * lib/freadable.h: Likewise.
54977         * lib/freadahead.c: Likewise.
54978         * lib/freadahead.h: Likewise.
54979         * lib/freading.c: Likewise.
54980         * lib/freading.h: Likewise.
54981         * lib/free.c: Likewise.
54982         * lib/freopen.c: Likewise.
54983         * lib/frexp.c: Likewise.
54984         * lib/frexpl.c: Likewise.
54985         * lib/fseek.c: Likewise.
54986         * lib/fseterr.c: Likewise.
54987         * lib/fseterr.h: Likewise.
54988         * lib/fstatat.c: Likewise.
54989         * lib/fstrcmp.c: Likewise.
54990         * lib/fstrcmp.h: Likewise.
54991         * lib/fsusage.c: Likewise.
54992         * lib/fsusage.h: Likewise.
54993         * lib/ftell.c: Likewise.
54994         * lib/ftello.c: Likewise.
54995         * lib/fts-cycle.c: Likewise.
54996         * lib/fts.c: Likewise.
54997         * lib/fts_.h: Likewise.
54998         * lib/full-read.c: Likewise.
54999         * lib/full-read.h: Likewise.
55000         * lib/full-write.c: Likewise.
55001         * lib/full-write.h: Likewise.
55002         * lib/fwritable.c: Likewise.
55003         * lib/fwritable.h: Likewise.
55004         * lib/fwriteerror.c: Likewise.
55005         * lib/fwriteerror.h: Likewise.
55006         * lib/fwriting.c: Likewise.
55007         * lib/fwriting.h: Likewise.
55008         * lib/gcd.c: Likewise.
55009         * lib/gcd.h: Likewise.
55010         * lib/getcwd.c: Likewise.
55011         * lib/getdate.h: Likewise.
55012         * lib/getdate.y: Likewise.
55013         * lib/getdomainname.c: Likewise.
55014         * lib/getdomainname.h: Likewise.
55015         * lib/getgroups.c: Likewise.
55016         * lib/gethostname.c: Likewise.
55017         * lib/gethrxtime.c: Likewise.
55018         * lib/gethrxtime.h: Likewise.
55019         * lib/getloadavg.c: Likewise.
55020         * lib/getndelim2.c: Likewise.
55021         * lib/getndelim2.h: Likewise.
55022         * lib/getnline.c: Likewise.
55023         * lib/getnline.h: Likewise.
55024         * lib/getopt.c: Likewise.
55025         * lib/getopt.in.h: Likewise.
55026         * lib/getopt1.c: Likewise.
55027         * lib/getopt_int.h: Likewise.
55028         * lib/getpagesize.h: Likewise.
55029         * lib/getsubopt.c: Likewise.
55030         * lib/gettime.c: Likewise.
55031         * lib/getugroups.c: Likewise.
55032         * lib/getugroups.h: Likewise.
55033         * lib/getusershell.c: Likewise.
55034         * lib/gl_anyavltree_list1.h: Likewise.
55035         * lib/gl_anyavltree_list2.h: Likewise.
55036         * lib/gl_anyhash_list1.h: Likewise.
55037         * lib/gl_anyhash_list2.h: Likewise.
55038         * lib/gl_anylinked_list1.h: Likewise.
55039         * lib/gl_anylinked_list2.h: Likewise.
55040         * lib/gl_anyrbtree_list1.h: Likewise.
55041         * lib/gl_anyrbtree_list2.h: Likewise.
55042         * lib/gl_anytree_list1.h: Likewise.
55043         * lib/gl_anytree_list2.h: Likewise.
55044         * lib/gl_anytree_oset.h: Likewise.
55045         * lib/gl_anytreehash_list1.h: Likewise.
55046         * lib/gl_anytreehash_list2.h: Likewise.
55047         * lib/gl_array_list.c: Likewise.
55048         * lib/gl_array_list.h: Likewise.
55049         * lib/gl_array_oset.c: Likewise.
55050         * lib/gl_array_oset.h: Likewise.
55051         * lib/gl_avltree_list.c: Likewise.
55052         * lib/gl_avltree_list.h: Likewise.
55053         * lib/gl_avltree_oset.c: Likewise.
55054         * lib/gl_avltree_oset.h: Likewise.
55055         * lib/gl_avltreehash_list.c: Likewise.
55056         * lib/gl_avltreehash_list.h: Likewise.
55057         * lib/gl_carray_list.c: Likewise.
55058         * lib/gl_carray_list.h: Likewise.
55059         * lib/gl_linked_list.c: Likewise.
55060         * lib/gl_linked_list.h: Likewise.
55061         * lib/gl_linkedhash_list.c: Likewise.
55062         * lib/gl_linkedhash_list.h: Likewise.
55063         * lib/gl_list.c: Likewise.
55064         * lib/gl_list.h: Likewise.
55065         * lib/gl_oset.c: Likewise.
55066         * lib/gl_oset.h: Likewise.
55067         * lib/gl_rbtree_list.c: Likewise.
55068         * lib/gl_rbtree_list.h: Likewise.
55069         * lib/gl_rbtree_oset.c: Likewise.
55070         * lib/gl_rbtree_oset.h: Likewise.
55071         * lib/gl_rbtreehash_list.c: Likewise.
55072         * lib/gl_rbtreehash_list.h: Likewise.
55073         * lib/gl_sublist.c: Likewise.
55074         * lib/gl_sublist.h: Likewise.
55075         * lib/group-member.c: Likewise.
55076         * lib/group-member.h: Likewise.
55077         * lib/hard-locale.c: Likewise.
55078         * lib/hard-locale.h: Likewise.
55079         * lib/hash-pjw.c: Likewise.
55080         * lib/hash-pjw.h: Likewise.
55081         * lib/hash-triple.c: Likewise.
55082         * lib/hash.c: Likewise.
55083         * lib/hash.h: Likewise.
55084         * lib/human.c: Likewise.
55085         * lib/human.h: Likewise.
55086         * lib/i-ring.c: Likewise.
55087         * lib/i-ring.h: Likewise.
55088         * lib/idcache.c: Likewise.
55089         * lib/imaxabs.c: Likewise.
55090         * lib/imaxdiv.c: Likewise.
55091         * lib/inet_pton.c: Likewise.
55092         * lib/inet_pton.h: Likewise.
55093         * lib/intprops.h: Likewise.
55094         * lib/inttostr.c: Likewise.
55095         * lib/inttostr.h: Likewise.
55096         * lib/inttypes.in.h: Likewise.
55097         * lib/isapipe.c: Likewise.
55098         * lib/isdir.c: Likewise.
55099         * lib/isnan.c: Likewise.
55100         * lib/isnan.h: Likewise.
55101         * lib/isnanf.c: Likewise.
55102         * lib/isnanf.h: Likewise.
55103         * lib/isnanl-nolibm.h: Likewise.
55104         * lib/isnanl.c: Likewise.
55105         * lib/isnanl.h: Likewise.
55106         * lib/javacomp.c: Likewise.
55107         * lib/javacomp.h: Likewise.
55108         * lib/javaexec.c: Likewise.
55109         * lib/javaexec.h: Likewise.
55110         * lib/javaversion.c: Likewise.
55111         * lib/javaversion.h: Likewise.
55112         * lib/javaversion.java: Likewise.
55113         * lib/lbrkprop.h: Likewise.
55114         * lib/lchmod.h: Likewise.
55115         * lib/lchown.c: Likewise.
55116         * lib/ldexpl.c: Likewise.
55117         * lib/linebreak.c: Likewise.
55118         * lib/linebreak.h: Likewise.
55119         * lib/linebuffer.c: Likewise.
55120         * lib/linebuffer.h: Likewise.
55121         * lib/locale.in.h: Likewise.
55122         * lib/logl.c: Likewise.
55123         * lib/long-options.c: Likewise.
55124         * lib/long-options.h: Likewise.
55125         * lib/lstat.c: Likewise.
55126         * lib/lstat.h: Likewise.
55127         * lib/math.in.h: Likewise.
55128         * lib/mbchar.c: Likewise.
55129         * lib/mbchar.h: Likewise.
55130         * lib/mbfile.h: Likewise.
55131         * lib/mbiter.h: Likewise.
55132         * lib/mbscasecmp.c: Likewise.
55133         * lib/mbscasestr.c: Likewise.
55134         * lib/mbschr.c: Likewise.
55135         * lib/mbscspn.c: Likewise.
55136         * lib/mbslen.c: Likewise.
55137         * lib/mbsncasecmp.c: Likewise.
55138         * lib/mbsnlen.c: Likewise.
55139         * lib/mbspbrk.c: Likewise.
55140         * lib/mbspcasecmp.c: Likewise.
55141         * lib/mbsrchr.c: Likewise.
55142         * lib/mbssep.c: Likewise.
55143         * lib/mbsspn.c: Likewise.
55144         * lib/mbsstr.c: Likewise.
55145         * lib/mbstok_r.c: Likewise.
55146         * lib/mbswidth.c: Likewise.
55147         * lib/mbswidth.h: Likewise.
55148         * lib/mbuiter.h: Likewise.
55149         * lib/memcasecmp.c: Likewise.
55150         * lib/memcasecmp.h: Likewise.
55151         * lib/memchr.c: Likewise.
55152         * lib/memcmp.c: Likewise.
55153         * lib/memcoll.c: Likewise.
55154         * lib/memcoll.h: Likewise.
55155         * lib/memcpy.c: Likewise.
55156         * lib/memrchr.c: Likewise.
55157         * lib/mkancesdirs.c: Likewise.
55158         * lib/mkdir-p.c: Likewise.
55159         * lib/mkdir-p.h: Likewise.
55160         * lib/mkdir.c: Likewise.
55161         * lib/mkdirat.c: Likewise.
55162         * lib/mkdtemp.c: Likewise.
55163         * lib/mkstemp-safer.c: Likewise.
55164         * lib/mkstemp.c: Likewise.
55165         * lib/modechange.c: Likewise.
55166         * lib/modechange.h: Likewise.
55167         * lib/mountlist.c: Likewise.
55168         * lib/mountlist.h: Likewise.
55169         * lib/mpsort.c: Likewise.
55170         * lib/nanosleep.c: Likewise.
55171         * lib/obstack.c: Likewise.
55172         * lib/obstack.h: Likewise.
55173         * lib/open-safer.c: Likewise.
55174         * lib/open.c: Likewise.
55175         * lib/openat-die.c: Likewise.
55176         * lib/openat-priv.h: Likewise.
55177         * lib/openat-proc.c: Likewise.
55178         * lib/openat.c: Likewise.
55179         * lib/openat.h: Likewise.
55180         * lib/pagealign_alloc.c: Likewise.
55181         * lib/pagealign_alloc.h: Likewise.
55182         * lib/physmem.c: Likewise.
55183         * lib/physmem.h: Likewise.
55184         * lib/pipe-safer.c: Likewise.
55185         * lib/pipe.c: Likewise.
55186         * lib/pipe.h: Likewise.
55187         * lib/posixtm.c: Likewise.
55188         * lib/posixtm.h: Likewise.
55189         * lib/posixver.c: Likewise.
55190         * lib/printf-frexp.c: Likewise.
55191         * lib/printf-frexp.h: Likewise.
55192         * lib/printf-frexpl.c: Likewise.
55193         * lib/printf-frexpl.h: Likewise.
55194         * lib/printf.c: Likewise.
55195         * lib/progname.c: Likewise.
55196         * lib/progname.h: Likewise.
55197         * lib/progreloc.c: Likewise.
55198         * lib/putenv.c: Likewise.
55199         * lib/quote.c: Likewise.
55200         * lib/quote.h: Likewise.
55201         * lib/quotearg.c: Likewise.
55202         * lib/quotearg.h: Likewise.
55203         * lib/raise.c: Likewise.
55204         * lib/readline.c: Likewise.
55205         * lib/readline.h: Likewise.
55206         * lib/readlink.c: Likewise.
55207         * lib/readtokens.c: Likewise.
55208         * lib/readtokens.h: Likewise.
55209         * lib/readtokens0.c: Likewise.
55210         * lib/readtokens0.h: Likewise.
55211         * lib/readutmp.c: Likewise.
55212         * lib/readutmp.h: Likewise.
55213         * lib/realloc.c: Likewise.
55214         * lib/relocwrapper.c: Likewise.
55215         * lib/rename-dest-slash.c: Likewise.
55216         * lib/rename.c: Likewise.
55217         * lib/rmdir.c: Likewise.
55218         * lib/rpmatch.c: Likewise.
55219         * lib/safe-read.c: Likewise.
55220         * lib/safe-read.h: Likewise.
55221         * lib/safe-write.c: Likewise.
55222         * lib/safe-write.h: Likewise.
55223         * lib/same-inode.h: Likewise.
55224         * lib/same.c: Likewise.
55225         * lib/same.h: Likewise.
55226         * lib/save-cwd.c: Likewise.
55227         * lib/save-cwd.h: Likewise.
55228         * lib/savedir.c: Likewise.
55229         * lib/savedir.h: Likewise.
55230         * lib/savewd.c: Likewise.
55231         * lib/savewd.h: Likewise.
55232         * lib/search.in.h: Likewise.
55233         * lib/setenv.c: Likewise.
55234         * lib/setenv.h: Likewise.
55235         * lib/settime.c: Likewise.
55236         * lib/sh-quote.c: Likewise.
55237         * lib/sh-quote.h: Likewise.
55238         * lib/sig2str.c: Likewise.
55239         * lib/sig2str.h: Likewise.
55240         * lib/signal.in.h: Likewise.
55241         * lib/signbitd.c: Likewise.
55242         * lib/signbitf.c: Likewise.
55243         * lib/signbitl.c: Likewise.
55244         * lib/sigprocmask.c: Likewise.
55245         * lib/sincosl.c: Likewise.
55246         * lib/sleep.c: Likewise.
55247         * lib/sprintf.c: Likewise.
55248         * lib/sqrtl.c: Likewise.
55249         * lib/stat-time.h: Likewise.
55250         * lib/stdio--.h: Likewise.
55251         * lib/stdio-safer.h: Likewise.
55252         * lib/stdlib--.h: Likewise.
55253         * lib/stdlib-safer.h: Likewise.
55254         * lib/stdlib.in.h: Likewise.
55255         * lib/stpcpy.c: Likewise.
55256         * lib/stpncpy.c: Likewise.
55257         * lib/strchrnul.c: Likewise.
55258         * lib/strcspn.c: Likewise.
55259         * lib/strerror.c: Likewise.
55260         * lib/strftime.c: Likewise.
55261         * lib/strftime.h: Likewise.
55262         * lib/striconveh.c: Likewise.
55263         * lib/striconveh.h: Likewise.
55264         * lib/striconveha.c: Likewise.
55265         * lib/striconveha.h: Likewise.
55266         * lib/stripslash.c: Likewise.
55267         * lib/strnlen1.c: Likewise.
55268         * lib/strnlen1.h: Likewise.
55269         * lib/strtod.c: Likewise.
55270         * lib/strtoimax.c: Likewise.
55271         * lib/strtok_r.c: Likewise.
55272         * lib/strtol.c: Likewise.
55273         * lib/strtoll.c: Likewise.
55274         * lib/strtoul.c: Likewise.
55275         * lib/strtoull.c: Likewise.
55276         * lib/sysexits.in.h: Likewise.
55277         * lib/tempname.c: Likewise.
55278         * lib/tempname.h: Likewise.
55279         * lib/timespec.h: Likewise.
55280         * lib/tls.c: Likewise.
55281         * lib/tls.h: Likewise.
55282         * lib/tmpdir.c: Likewise.
55283         * lib/tmpdir.h: Likewise.
55284         * lib/tmpfile-safer.c: Likewise.
55285         * lib/tmpfile.c: Likewise.
55286         * lib/trigl.c: Likewise.
55287         * lib/trigl.h: Likewise.
55288         * lib/trim.c: Likewise.
55289         * lib/trim.h: Likewise.
55290         * lib/trunc.c: Likewise.
55291         * lib/truncf.c: Likewise.
55292         * lib/truncl.c: Likewise.
55293         * lib/tsearch.c: Likewise.
55294         * lib/unicodeio.c: Likewise.
55295         * lib/unicodeio.h: Likewise.
55296         * lib/unistd--.h: Likewise.
55297         * lib/unistd-safer.h: Likewise.
55298         * lib/unistdio/ulc-fprintf.c: Likewise.
55299         * lib/unistdio/ulc-vfprintf.c: Likewise.
55300         * lib/unlinkdir.c: Likewise.
55301         * lib/unlinkdir.h: Likewise.
55302         * lib/unlocked-io.h: Likewise.
55303         * lib/unsetenv.c: Likewise.
55304         * lib/userspec.c: Likewise.
55305         * lib/utime.c: Likewise.
55306         * lib/utimecmp.c: Likewise.
55307         * lib/utimecmp.h: Likewise.
55308         * lib/utimens.c: Likewise.
55309         * lib/verify.h: Likewise.
55310         * lib/verror.c: Likewise.
55311         * lib/verror.h: Likewise.
55312         * lib/version-etc-fsf.c: Likewise.
55313         * lib/version-etc.c: Likewise.
55314         * lib/version-etc.h: Likewise.
55315         * lib/vfprintf.c: Likewise.
55316         * lib/vprintf.c: Likewise.
55317         * lib/vsprintf.c: Likewise.
55318         * lib/w32spawn.h: Likewise.
55319         * lib/wait-process.c: Likewise.
55320         * lib/wait-process.h: Likewise.
55321         * lib/wcwidth.c: Likewise.
55322         * lib/write-any-file.c: Likewise.
55323         * lib/xalloc-die.c: Likewise.
55324         * lib/xalloc.h: Likewise.
55325         * lib/xasprintf.c: Likewise.
55326         * lib/xgetcwd.c: Likewise.
55327         * lib/xgetcwd.h: Likewise.
55328         * lib/xgetdomainname.c: Likewise.
55329         * lib/xgetdomainname.h: Likewise.
55330         * lib/xgethostname.c: Likewise.
55331         * lib/xmalloc.c: Likewise.
55332         * lib/xmalloca.c: Likewise.
55333         * lib/xmalloca.h: Likewise.
55334         * lib/xmemcoll.c: Likewise.
55335         * lib/xnanosleep.c: Likewise.
55336         * lib/xreadlink.c: Likewise.
55337         * lib/xreadlink.h: Likewise.
55338         * lib/xsetenv.c: Likewise.
55339         * lib/xsetenv.h: Likewise.
55340         * lib/xstriconv.c: Likewise.
55341         * lib/xstriconv.h: Likewise.
55342         * lib/xstrndup.c: Likewise.
55343         * lib/xstrndup.h: Likewise.
55344         * lib/xstrtod.c: Likewise.
55345         * lib/xstrtod.h: Likewise.
55346         * lib/xstrtol-error.c: Likewise.
55347         * lib/xstrtol.c: Likewise.
55348         * lib/xstrtol.h: Likewise.
55349         * lib/xtime.h: Likewise.
55350         * lib/xvasprintf.c: Likewise.
55351         * lib/xvasprintf.h: Likewise.
55352         * lib/yesno.c: Likewise.
55353         * lib/yesno.h: Likewise.
55354         * posix-modules: Likewise.
55355         * tests/test-alloca-opt.c: Likewise.
55356         * tests/test-arcfour.c: Likewise.
55357         * tests/test-arctwo.c: Likewise.
55358         * tests/test-argmatch.c: Likewise.
55359         * tests/test-argp-2.sh: Likewise.
55360         * tests/test-argp.c: Likewise.
55361         * tests/test-arpa_inet.c: Likewise.
55362         * tests/test-array_list.c: Likewise.
55363         * tests/test-array_oset.c: Likewise.
55364         * tests/test-atexit.c: Likewise.
55365         * tests/test-avltree_list.c: Likewise.
55366         * tests/test-avltree_oset.c: Likewise.
55367         * tests/test-avltreehash_list.c: Likewise.
55368         * tests/test-base64.c: Likewise.
55369         * tests/test-binary-io.c: Likewise.
55370         * tests/test-byteswap.c: Likewise.
55371         * tests/test-c-ctype.c: Likewise.
55372         * tests/test-c-strcasecmp.c: Likewise.
55373         * tests/test-c-strcasestr.c: Likewise.
55374         * tests/test-c-strncasecmp.c: Likewise.
55375         * tests/test-c-strstr.c: Likewise.
55376         * tests/test-canonicalize-lgpl.c: Likewise.
55377         * tests/test-canonicalize.c: Likewise.
55378         * tests/test-carray_list.c: Likewise.
55379         * tests/test-ceilf.c: Likewise.
55380         * tests/test-ceill.c: Likewise.
55381         * tests/test-count-one-bits.c: Likewise.
55382         * tests/test-crc.c: Likewise.
55383         * tests/test-dirname.c: Likewise.
55384         * tests/test-fbufmode.c: Likewise.
55385         * tests/test-fcntl.c: Likewise.
55386         * tests/test-fflush.c: Likewise.
55387         * tests/test-floorf.c: Likewise.
55388         * tests/test-floorl.c: Likewise.
55389         * tests/test-fopen.c: Likewise.
55390         * tests/test-fprintf-posix.c: Likewise.
55391         * tests/test-fprintf-posix.h: Likewise.
55392         * tests/test-fpurge.c: Likewise.
55393         * tests/test-freadable.c: Likewise.
55394         * tests/test-freadahead.c: Likewise.
55395         * tests/test-freading.c: Likewise.
55396         * tests/test-freopen.c: Likewise.
55397         * tests/test-frexp.c: Likewise.
55398         * tests/test-frexpl.c: Likewise.
55399         * tests/test-fseek.c: Likewise.
55400         * tests/test-fseeko.c: Likewise.
55401         * tests/test-fseterr.c: Likewise.
55402         * tests/test-fstrcmp.c: Likewise.
55403         * tests/test-ftell.c: Likewise.
55404         * tests/test-ftello.c: Likewise.
55405         * tests/test-fwritable.c: Likewise.
55406         * tests/test-fwriting.c: Likewise.
55407         * tests/test-getaddrinfo.c: Likewise.
55408         * tests/test-getpass.c: Likewise.
55409         * tests/test-gettimeofday.c: Likewise.
55410         * tests/test-hmac-md5.c: Likewise.
55411         * tests/test-hmac-sha1.c: Likewise.
55412         * tests/test-iconv.c: Likewise.
55413         * tests/test-iconvme.c: Likewise.
55414         * tests/test-inttypes.c: Likewise.
55415         * tests/test-isnan.c: Likewise.
55416         * tests/test-isnanf.c: Likewise.
55417         * tests/test-isnanl-nolibm.c: Likewise.
55418         * tests/test-isnanl.c: Likewise.
55419         * tests/test-isnanl.h: Likewise.
55420         * tests/test-ldexpl.c: Likewise.
55421         * tests/test-linked_list.c: Likewise.
55422         * tests/test-linkedhash_list.c: Likewise.
55423         * tests/test-locale.c: Likewise.
55424         * tests/test-localename.c: Likewise.
55425         * tests/test-lock.c: Likewise.
55426         * tests/test-lseek.c: Likewise.
55427         * tests/test-malloca.c: Likewise.
55428         * tests/test-math.c: Likewise.
55429         * tests/test-mbscasecmp.c: Likewise.
55430         * tests/test-mbscasestr1.c: Likewise.
55431         * tests/test-mbscasestr2.c: Likewise.
55432         * tests/test-mbscasestr3.c: Likewise.
55433         * tests/test-mbscasestr4.c: Likewise.
55434         * tests/test-mbschr.c: Likewise.
55435         * tests/test-mbscspn.c: Likewise.
55436         * tests/test-mbsncasecmp.c: Likewise.
55437         * tests/test-mbspbrk.c: Likewise.
55438         * tests/test-mbspcasecmp.c: Likewise.
55439         * tests/test-mbsrchr.c: Likewise.
55440         * tests/test-mbsspn.c: Likewise.
55441         * tests/test-mbsstr1.c: Likewise.
55442         * tests/test-mbsstr2.c: Likewise.
55443         * tests/test-mbsstr3.c: Likewise.
55444         * tests/test-md5.c: Likewise.
55445         * tests/test-memmem.c: Likewise.
55446         * tests/test-netinet_in.c: Likewise.
55447         * tests/test-open.c: Likewise.
55448         * tests/test-printf-frexp.c: Likewise.
55449         * tests/test-printf-frexpl.c: Likewise.
55450         * tests/test-printf-posix.c: Likewise.
55451         * tests/test-printf-posix.h: Likewise.
55452         * tests/test-rbtree_list.c: Likewise.
55453         * tests/test-rbtree_oset.c: Likewise.
55454         * tests/test-rbtreehash_list.c: Likewise.
55455         * tests/test-read-file.c: Likewise.
55456         * tests/test-rijndael.c: Likewise.
55457         * tests/test-search.c: Likewise.
55458         * tests/test-signbit.c: Likewise.
55459         * tests/test-sleep.c: Likewise.
55460         * tests/test-snprintf-posix.c: Likewise.
55461         * tests/test-snprintf-posix.h: Likewise.
55462         * tests/test-snprintf.c: Likewise.
55463         * tests/test-sprintf-posix.c: Likewise.
55464         * tests/test-sprintf-posix.h: Likewise.
55465         * tests/test-stat-time.c: Likewise.
55466         * tests/test-stdbool.c: Likewise.
55467         * tests/test-stdint.c: Likewise.
55468         * tests/test-stdio.c: Likewise.
55469         * tests/test-stdlib.c: Likewise.
55470         * tests/test-stpncpy.c: Likewise.
55471         * tests/test-strcasestr.c: Likewise.
55472         * tests/test-striconv.c: Likewise.
55473         * tests/test-striconveh.c: Likewise.
55474         * tests/test-striconveha.c: Likewise.
55475         * tests/test-string.c: Likewise.
55476         * tests/test-sys_select.c: Likewise.
55477         * tests/test-sys_socket.c: Likewise.
55478         * tests/test-sys_stat.c: Likewise.
55479         * tests/test-sys_time.c: Likewise.
55480         * tests/test-sysexits.c: Likewise.
55481         * tests/test-time.c: Likewise.
55482         * tests/test-tls.c: Likewise.
55483         * tests/test-trunc.c: Likewise.
55484         * tests/test-truncf.c: Likewise.
55485         * tests/test-truncl.c: Likewise.
55486         * tests/test-unistd.c: Likewise.
55487         * tests/test-vasnprintf-posix.c: Likewise.
55488         * tests/test-vasnprintf-posix2.c: Likewise.
55489         * tests/test-vasnprintf.c: Likewise.
55490         * tests/test-vasprintf-posix.c: Likewise.
55491         * tests/test-vasprintf.c: Likewise.
55492         * tests/test-verify.c: Likewise.
55493         * tests/test-vfprintf-posix.c: Likewise.
55494         * tests/test-vprintf-posix.c: Likewise.
55495         * tests/test-vsnprintf-posix.c: Likewise.
55496         * tests/test-vsnprintf.c: Likewise.
55497         * tests/test-vsprintf-posix.c: Likewise.
55498         * tests/test-wchar.c: Likewise.
55499         * tests/test-wctype.c: Likewise.
55500         * tests/test-wcwidth.c: Likewise.
55501         * tests/test-xstrtol.c: Likewise.
55502         * tests/test-xvasprintf.c: Likewise.
55503         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55504         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55505         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55506         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55507         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55508         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55509         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55510         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55511         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55512         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55513         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55514         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55515         * tests/uniname/test-uninames.c: Likewise.
55516         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55517         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55518         * tests/unistdio/test-u16-printf1.h: Likewise.
55519         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55520         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55521         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55522         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55523         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55524         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55525         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55526         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55527         * tests/unistdio/test-u32-printf1.h: Likewise.
55528         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55529         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55530         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55531         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55532         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55533         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55534         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55535         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55536         * tests/unistdio/test-u8-printf1.h: Likewise.
55537         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55538         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55539         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55540         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55541         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55542         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55543         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55544         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55545         * tests/unistdio/test-ulc-printf1.h: Likewise.
55546         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55547         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55548         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55549         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55550         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55551         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55552         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55553         * tests/uniwidth/test-u16-width.c: Likewise.
55554         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55555         * tests/uniwidth/test-u32-width.c: Likewise.
55556         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55557         * tests/uniwidth/test-u8-width.c: Likewise.
55558         * tests/uniwidth/test-uc_width.c: Likewise.
55559         * config/srclist-update: Likewise.
55560         (fixlicense): Update to GPLv3+.
55561
55562         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55563         * tests/test-tsearch.c: Change copyright notice.
55564
55565         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55566         * lib/c-strcaseeq.h: Change copyright notice.
55567         * lib/streq.h: Likewise.
55568         * lib/uniconv.h: Likewise.
55569         * lib/uniconv/u-conv-from-enc.h: Likewise.
55570         * lib/uniconv/u-conv-to-enc.h: Likewise.
55571         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55572         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55573         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55574         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55575         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55576         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55577         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55578         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55579         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55580         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55581         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55582         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55583         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55584         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55585         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55586         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55587         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55588         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55589         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55590         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55591         * lib/uniname.h: Likewise.
55592         * lib/uniname/uniname.c: Likewise.
55593         * lib/unistdio.h: Likewise.
55594         * lib/unistdio/u-asnprintf.h: Likewise.
55595         * lib/unistdio/u-asprintf.h: Likewise.
55596         * lib/unistdio/u-printf-args.c: Likewise.
55597         * lib/unistdio/u-printf-args.h: Likewise.
55598         * lib/unistdio/u-printf-parse.h: Likewise.
55599         * lib/unistdio/u-snprintf.h: Likewise.
55600         * lib/unistdio/u-sprintf.h: Likewise.
55601         * lib/unistdio/u-vasprintf.h: Likewise.
55602         * lib/unistdio/u-vsnprintf.h: Likewise.
55603         * lib/unistdio/u-vsprintf.h: Likewise.
55604         * lib/unistdio/u16-asnprintf.c: Likewise.
55605         * lib/unistdio/u16-asprintf.c: Likewise.
55606         * lib/unistdio/u16-printf-parse.c: Likewise.
55607         * lib/unistdio/u16-snprintf.c: Likewise.
55608         * lib/unistdio/u16-sprintf.c: Likewise.
55609         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55610         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55611         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55612         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55613         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55614         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55615         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55616         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55617         * lib/unistdio/u16-vasnprintf.c: Likewise.
55618         * lib/unistdio/u16-vasprintf.c: Likewise.
55619         * lib/unistdio/u16-vsnprintf.c: Likewise.
55620         * lib/unistdio/u16-vsprintf.c: Likewise.
55621         * lib/unistdio/u32-asnprintf.c: Likewise.
55622         * lib/unistdio/u32-asprintf.c: Likewise.
55623         * lib/unistdio/u32-printf-parse.c: Likewise.
55624         * lib/unistdio/u32-snprintf.c: Likewise.
55625         * lib/unistdio/u32-sprintf.c: Likewise.
55626         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55627         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55628         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55629         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55630         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55631         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55632         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55633         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55634         * lib/unistdio/u32-vasnprintf.c: Likewise.
55635         * lib/unistdio/u32-vasprintf.c: Likewise.
55636         * lib/unistdio/u32-vsnprintf.c: Likewise.
55637         * lib/unistdio/u32-vsprintf.c: Likewise.
55638         * lib/unistdio/u8-asnprintf.c: Likewise.
55639         * lib/unistdio/u8-asprintf.c: Likewise.
55640         * lib/unistdio/u8-printf-parse.c: Likewise.
55641         * lib/unistdio/u8-snprintf.c: Likewise.
55642         * lib/unistdio/u8-sprintf.c: Likewise.
55643         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55644         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55645         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55646         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55647         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55648         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55649         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55650         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55651         * lib/unistdio/u8-vasnprintf.c: Likewise.
55652         * lib/unistdio/u8-vasprintf.c: Likewise.
55653         * lib/unistdio/u8-vsnprintf.c: Likewise.
55654         * lib/unistdio/u8-vsprintf.c: Likewise.
55655         * lib/unistdio/ulc-asnprintf.c: Likewise.
55656         * lib/unistdio/ulc-asprintf.c: Likewise.
55657         * lib/unistdio/ulc-printf-parse.c: Likewise.
55658         * lib/unistdio/ulc-snprintf.c: Likewise.
55659         * lib/unistdio/ulc-sprintf.c: Likewise.
55660         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55661         * lib/unistdio/ulc-vasprintf.c: Likewise.
55662         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55663         * lib/unistdio/ulc-vsprintf.c: Likewise.
55664         * lib/unistr.h: Likewise.
55665         * lib/unistr/u-cpy-alloc.h: Likewise.
55666         * lib/unistr/u-cpy.h: Likewise.
55667         * lib/unistr/u-endswith.h: Likewise.
55668         * lib/unistr/u-move.h: Likewise.
55669         * lib/unistr/u-set.h: Likewise.
55670         * lib/unistr/u-startswith.h: Likewise.
55671         * lib/unistr/u-stpcpy.h: Likewise.
55672         * lib/unistr/u-stpncpy.h: Likewise.
55673         * lib/unistr/u-strcat.h: Likewise.
55674         * lib/unistr/u-strcpy.h: Likewise.
55675         * lib/unistr/u-strcspn.h: Likewise.
55676         * lib/unistr/u-strdup.h: Likewise.
55677         * lib/unistr/u-strlen.h: Likewise.
55678         * lib/unistr/u-strncat.h: Likewise.
55679         * lib/unistr/u-strncpy.h: Likewise.
55680         * lib/unistr/u-strnlen.h: Likewise.
55681         * lib/unistr/u-strpbrk.h: Likewise.
55682         * lib/unistr/u-strspn.h: Likewise.
55683         * lib/unistr/u-strstr.h: Likewise.
55684         * lib/unistr/u-strtok.h: Likewise.
55685         * lib/unistr/u16-check.c: Likewise.
55686         * lib/unistr/u16-chr.c: Likewise.
55687         * lib/unistr/u16-cmp.c: Likewise.
55688         * lib/unistr/u16-cpy-alloc.c: Likewise.
55689         * lib/unistr/u16-cpy.c: Likewise.
55690         * lib/unistr/u16-endswith.c: Likewise.
55691         * lib/unistr/u16-mblen.c: Likewise.
55692         * lib/unistr/u16-mbsnlen.c: Likewise.
55693         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55694         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55695         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55696         * lib/unistr/u16-mbtouc.c: Likewise.
55697         * lib/unistr/u16-mbtoucr.c: Likewise.
55698         * lib/unistr/u16-move.c: Likewise.
55699         * lib/unistr/u16-next.c: Likewise.
55700         * lib/unistr/u16-prev.c: Likewise.
55701         * lib/unistr/u16-set.c: Likewise.
55702         * lib/unistr/u16-startswith.c: Likewise.
55703         * lib/unistr/u16-stpcpy.c: Likewise.
55704         * lib/unistr/u16-stpncpy.c: Likewise.
55705         * lib/unistr/u16-strcat.c: Likewise.
55706         * lib/unistr/u16-strchr.c: Likewise.
55707         * lib/unistr/u16-strcmp.c: Likewise.
55708         * lib/unistr/u16-strcpy.c: Likewise.
55709         * lib/unistr/u16-strcspn.c: Likewise.
55710         * lib/unistr/u16-strdup.c: Likewise.
55711         * lib/unistr/u16-strlen.c: Likewise.
55712         * lib/unistr/u16-strmblen.c: Likewise.
55713         * lib/unistr/u16-strmbtouc.c: Likewise.
55714         * lib/unistr/u16-strncat.c: Likewise.
55715         * lib/unistr/u16-strncmp.c: Likewise.
55716         * lib/unistr/u16-strncpy.c: Likewise.
55717         * lib/unistr/u16-strnlen.c: Likewise.
55718         * lib/unistr/u16-strpbrk.c: Likewise.
55719         * lib/unistr/u16-strrchr.c: Likewise.
55720         * lib/unistr/u16-strspn.c: Likewise.
55721         * lib/unistr/u16-strstr.c: Likewise.
55722         * lib/unistr/u16-strtok.c: Likewise.
55723         * lib/unistr/u16-to-u32.c: Likewise.
55724         * lib/unistr/u16-to-u8.c: Likewise.
55725         * lib/unistr/u16-uctomb-aux.c: Likewise.
55726         * lib/unistr/u16-uctomb.c: Likewise.
55727         * lib/unistr/u32-check.c: Likewise.
55728         * lib/unistr/u32-chr.c: Likewise.
55729         * lib/unistr/u32-cmp.c: Likewise.
55730         * lib/unistr/u32-cpy-alloc.c: Likewise.
55731         * lib/unistr/u32-cpy.c: Likewise.
55732         * lib/unistr/u32-endswith.c: Likewise.
55733         * lib/unistr/u32-mblen.c: Likewise.
55734         * lib/unistr/u32-mbsnlen.c: Likewise.
55735         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55736         * lib/unistr/u32-mbtouc.c: Likewise.
55737         * lib/unistr/u32-mbtoucr.c: Likewise.
55738         * lib/unistr/u32-move.c: Likewise.
55739         * lib/unistr/u32-next.c: Likewise.
55740         * lib/unistr/u32-prev.c: Likewise.
55741         * lib/unistr/u32-set.c: Likewise.
55742         * lib/unistr/u32-startswith.c: Likewise.
55743         * lib/unistr/u32-stpcpy.c: Likewise.
55744         * lib/unistr/u32-stpncpy.c: Likewise.
55745         * lib/unistr/u32-strcat.c: Likewise.
55746         * lib/unistr/u32-strchr.c: Likewise.
55747         * lib/unistr/u32-strcmp.c: Likewise.
55748         * lib/unistr/u32-strcpy.c: Likewise.
55749         * lib/unistr/u32-strcspn.c: Likewise.
55750         * lib/unistr/u32-strdup.c: Likewise.
55751         * lib/unistr/u32-strlen.c: Likewise.
55752         * lib/unistr/u32-strmblen.c: Likewise.
55753         * lib/unistr/u32-strmbtouc.c: Likewise.
55754         * lib/unistr/u32-strncat.c: Likewise.
55755         * lib/unistr/u32-strncmp.c: Likewise.
55756         * lib/unistr/u32-strncpy.c: Likewise.
55757         * lib/unistr/u32-strnlen.c: Likewise.
55758         * lib/unistr/u32-strpbrk.c: Likewise.
55759         * lib/unistr/u32-strrchr.c: Likewise.
55760         * lib/unistr/u32-strspn.c: Likewise.
55761         * lib/unistr/u32-strstr.c: Likewise.
55762         * lib/unistr/u32-strtok.c: Likewise.
55763         * lib/unistr/u32-to-u16.c: Likewise.
55764         * lib/unistr/u32-to-u8.c: Likewise.
55765         * lib/unistr/u32-uctomb.c: Likewise.
55766         * lib/unistr/u8-check.c: Likewise.
55767         * lib/unistr/u8-chr.c: Likewise.
55768         * lib/unistr/u8-cmp.c: Likewise.
55769         * lib/unistr/u8-cpy-alloc.c: Likewise.
55770         * lib/unistr/u8-cpy.c: Likewise.
55771         * lib/unistr/u8-endswith.c: Likewise.
55772         * lib/unistr/u8-mblen.c: Likewise.
55773         * lib/unistr/u8-mbsnlen.c: Likewise.
55774         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55775         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55776         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55777         * lib/unistr/u8-mbtouc.c: Likewise.
55778         * lib/unistr/u8-mbtoucr.c: Likewise.
55779         * lib/unistr/u8-move.c: Likewise.
55780         * lib/unistr/u8-next.c: Likewise.
55781         * lib/unistr/u8-prev.c: Likewise.
55782         * lib/unistr/u8-set.c: Likewise.
55783         * lib/unistr/u8-startswith.c: Likewise.
55784         * lib/unistr/u8-stpcpy.c: Likewise.
55785         * lib/unistr/u8-stpncpy.c: Likewise.
55786         * lib/unistr/u8-strcat.c: Likewise.
55787         * lib/unistr/u8-strchr.c: Likewise.
55788         * lib/unistr/u8-strcmp.c: Likewise.
55789         * lib/unistr/u8-strcpy.c: Likewise.
55790         * lib/unistr/u8-strcspn.c: Likewise.
55791         * lib/unistr/u8-strdup.c: Likewise.
55792         * lib/unistr/u8-strlen.c: Likewise.
55793         * lib/unistr/u8-strmblen.c: Likewise.
55794         * lib/unistr/u8-strmbtouc.c: Likewise.
55795         * lib/unistr/u8-strncat.c: Likewise.
55796         * lib/unistr/u8-strncmp.c: Likewise.
55797         * lib/unistr/u8-strncpy.c: Likewise.
55798         * lib/unistr/u8-strnlen.c: Likewise.
55799         * lib/unistr/u8-strpbrk.c: Likewise.
55800         * lib/unistr/u8-strrchr.c: Likewise.
55801         * lib/unistr/u8-strspn.c: Likewise.
55802         * lib/unistr/u8-strstr.c: Likewise.
55803         * lib/unistr/u8-strtok.c: Likewise.
55804         * lib/unistr/u8-to-u16.c: Likewise.
55805         * lib/unistr/u8-to-u32.c: Likewise.
55806         * lib/unistr/u8-uctomb-aux.c: Likewise.
55807         * lib/unistr/u8-uctomb.c: Likewise.
55808         * lib/unitypes.h: Likewise.
55809         * lib/uniwidth.h: Likewise.
55810         * lib/uniwidth/cjk.h: Likewise.
55811         * lib/uniwidth/u16-strwidth.c: Likewise.
55812         * lib/uniwidth/u16-width.c: Likewise.
55813         * lib/uniwidth/u32-strwidth.c: Likewise.
55814         * lib/uniwidth/u32-width.c: Likewise.
55815         * lib/uniwidth/u8-strwidth.c: Likewise.
55816         * lib/uniwidth/u8-width.c: Likewise.
55817         * lib/uniwidth/width.c: Likewise.
55818
55819 2007-10-07  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55822         The file is still under LGPL (see modules/inttypes).
55823
55824 2007-10-06  Bruno Haible  <bruno@clisp.org>
55825
55826         * modules/trunc (Dependencies): Add 'extensions'.
55827         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55828         Reported by Ben Pfaff <blp@gnu.org>.
55829
55830 2007-10-06  Bruno Haible  <bruno@clisp.org>
55831
55832         * modules/freopen-tests: New file.
55833         * tests/test-freopen.c: New file.
55834
55835         * modules/fopen-tests: New file.
55836         * tests/test-fopen.c: New file.
55837
55838         * modules/fopen: New file.
55839         * lib/fopen.c: New file.
55840         * m4/fopen.m4: New file.
55841         * modules/freopen: New file.
55842         * lib/freopen.c: New file.
55843         * m4/freopen.m4: New file.
55844         * lib/stdio.in.h (fopen, freopen): New declarations.
55845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55846         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55847         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55848         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55849         * doc/functions/fopen.texi: Mention the 'fopen' module.
55850         * doc/functions/freopen.texi: Mention the 'freopen' module.
55851
55852 2007-10-06  Bruno Haible  <bruno@clisp.org>
55853
55854         * modules/open-tests: New file.
55855         * tests/test-open.c: New file.
55856
55857         * modules/open: New file.
55858         * lib/open.c: New file.
55859         * m4/open.m4: New file.
55860         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55861         lib/open.c does.
55862         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55863         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55864         macros.
55865         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55866         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55867         REPLACE_OPEN.
55868         * doc/functions/open.texi: Mention the 'open' module.
55869
55870 2007-10-04  Bruno Haible  <bruno@clisp.org>
55871
55872         * modules/ceill-tests: New file.
55873         * tests/test-ceill.c: New file.
55874
55875         * modules/ceill: New file.
55876         * lib/ceill.c: Replace entire file.
55877         * m4/ceill.m4: New file.
55878         * lib/math.in.h (ceill): Replace declaration.
55879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55880         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55881         * doc/functions/ceill.texi: Mention the 'ceill' module.
55882         * modules/mathl (Files): Remove lib/ceill.c.
55883         (Depends-on): Add ceill.
55884
55885 2007-10-04  Bruno Haible  <bruno@clisp.org>
55886
55887         * modules/ceilf-tests: New file.
55888         * tests/test-ceilf.c: New file.
55889
55890         * modules/ceilf: New file.
55891         * lib/ceil.c: New file.
55892         * lib/ceilf.c: New file.
55893         * m4/ceilf.m4: New file.
55894         * lib/math.in.h (ceilf): New declaration.
55895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55896         HAVE_DECL_CEILF.
55897         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55898         HAVE_DECL_CEILF.
55899         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55900
55901 2007-10-04  Bruno Haible  <bruno@clisp.org>
55902
55903         * modules/floorl-tests: New file.
55904         * tests/test-floorl.c: New file.
55905
55906         * modules/floorl: New file.
55907         * lib/floorl.c: Replace entire file.
55908         * m4/floorl.m4: New file.
55909         * lib/math.in.h (floorl): Replace declaration.
55910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55911         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55912         * doc/functions/floorl.texi: Mention the 'floorl' module.
55913         * modules/mathl (Files): Remove lib/floorl.c.
55914         (Depends-on): Add floorl.
55915
55916 2007-10-04  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/floorf-tests: New file.
55919         * tests/test-floorf.c: New file.
55920
55921         * modules/floorf: New file.
55922         * lib/floor.c: New file.
55923         * lib/floorf.c: New file.
55924         * m4/floorf.m4: New file.
55925         * lib/math.in.h (floorf): New declaration.
55926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55927         HAVE_DECL_FLOORF.
55928         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55929         HAVE_DECL_FLOORF.
55930         * doc/functions/floorf.texi: Mention the 'floorf' module.
55931
55932 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55933             Bruno Haible  <bruno@clisp.org>
55934
55935         Advertise for the Git server instead of the CVS server.
55936         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55937         repository instead of the CVS one.
55938         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55939         about all VCS systems generically.
55940         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55941
55942 2007-10-04  Bruno Haible  <bruno@clisp.org>
55943
55944         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55945         means.
55946         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55947
55948 2007-10-04  Bruno Haible  <bruno@clisp.org>
55949
55950         * modules/truncl-tests: New file.
55951         * tests/test-truncl.c: New file.
55952
55953         * modules/truncl: New file.
55954         * lib/truncl.c: New file.
55955         * m4/truncl.m4: New file.
55956         * lib/math.in.h (truncl): New declaration.
55957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55958         HAVE_DECL_TRUNCL.
55959         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55960         HAVE_DECL_TRUNCL.
55961         * doc/functions/truncl.texi: Mention the 'truncl' module.
55962
55963 2007-10-04  Bruno Haible  <bruno@clisp.org>
55964
55965         * modules/truncf-tests: New file.
55966         * tests/test-truncf.c: New file.
55967
55968         * modules/truncf: New file.
55969         * lib/trunc.c: Make paramerizable through USE_* macros.
55970         * lib/truncf.c: New file.
55971         * m4/truncf.m4: New file.
55972         * lib/math.in.h (truncf): New declaration.
55973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55974         HAVE_DECL_TRUNCF.
55975         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55976         HAVE_DECL_TRUNCF.
55977         * doc/functions/truncf.texi: Mention the 'truncf' module.
55978
55979 2007-10-03  Bruno Haible  <bruno@clisp.org>
55980
55981         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55982         augmentation also for tests modules.
55983         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55984         * modules/atexit-tests (Makefile.am): Likewise.
55985         * modules/binary-io-tests (Makefile.am): Likewise.
55986         * modules/c-strcase-tests (Makefile.am): Likewise.
55987         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55988         * modules/canonicalize-tests (Makefile.am): Likewise.
55989         * modules/closein-tests (Makefile.am): Likewise.
55990         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55991         * modules/freadahead-tests (Makefile.am): Likewise.
55992         * modules/fseek-tests (Makefile.am): Likewise.
55993         * modules/fseeko-tests (Makefile.am): Likewise.
55994         * modules/ftell-tests (Makefile.am): Likewise.
55995         * modules/ftello-tests (Makefile.am): Likewise.
55996         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55997         * modules/isnanl-tests (Makefile.am): Likewise.
55998         * modules/lseek-tests (Makefile.am): Likewise.
55999         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56000         * modules/mbscasestr-tests (Makefile.am): Likewise.
56001         * modules/mbschr-tests (Makefile.am): Likewise.
56002         * modules/mbscspn-tests (Makefile.am): Likewise.
56003         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56004         * modules/mbspbrk-tests (Makefile.am): Likewise.
56005         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56006         * modules/mbsrchr-tests (Makefile.am): Likewise.
56007         * modules/mbsspn-tests (Makefile.am): Likewise.
56008         * modules/mbsstr-tests (Makefile.am): Likewise.
56009         * modules/printf-posix-tests (Makefile.am): Likewise.
56010         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56011         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56012         * modules/tsearch-tests (Makefile.am): Likewise.
56013         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56014         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56015         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56016         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56017         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56018         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56019         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56020         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56021         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56022         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56023         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56024         * modules/xstrtol-tests (Makefile.am): Likewise.
56025         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56026         * modules/yesno-tests (Makefile.am): Likewise.
56027
56028 2007-10-03  Bruno Haible  <bruno@clisp.org>
56029
56030         * modules/trunc-tests: New file.
56031         * tests/test-trunc.c: New file.
56032
56033         * modules/trunc: New file.
56034         * lib/trunc.c: New file.
56035         * m4/trunc.m4: New file.
56036         * lib/math.in.h (trunc): New declaration.
56037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56038         HAVE_DECL_TRUNC.
56039         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56040         HAVE_DECL_TRUNC.
56041         * doc/functions/trunc.texi: Mention the 'trunc' module.
56042
56043 2007-10-03  Bruno Haible  <bruno@clisp.org>
56044
56045         * tests/test-fpending.c: New file, mostly copied
56046         from coreutils/lib/t-fpending.c.
56047         * modules/fpending-tests: New file.
56048
56049 2007-10-03  Bruno Haible  <bruno@clisp.org>
56050
56051         Port the stdio extensions to QNX (untested).
56052         * lib/fseterr.c (fseterr): Add support for QNX.
56053         * lib/fbufmode.c (fbufmode): Likewise.
56054         * lib/freadable.c (freadable): Likewise.
56055         * lib/fwritable.c (fwritable): Likewise.
56056         * lib/freading.c (freading): Likewise.
56057         * lib/fwriting.c (fwriting): Likewise.
56058         * lib/freadahead.c (freadahed): Likewise.
56059         * lib/fpurge.c (fpurge): Likewise.
56060         * lib/fseeko.c (rpl_fseeko): Likewise.
56061
56062 2007-10-03  Bruno Haible  <bruno@clisp.org>
56063             Jim Meyering  <jim@meyering.net>
56064             Eric Blake  <ebb9@byu.net>
56065
56066         * doc/relocatable.texi: Use @command instead of @program.
56067
56068 2007-10-02  Jim Meyering  <jim@meyering.net>
56069
56070         Perform one more "_.h" -> ".in.h" substitution.
56071         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56072         instead of unistd_.h here, too.
56073
56074 2007-10-01  Bruno Haible  <bruno@clisp.org>
56075
56076         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56077         Needed for the alloca-opt module.
56078
56079 2007-09-30  Bruno Haible  <bruno@clisp.org>
56080
56081         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56082         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56083         alloca_.h.
56084         * lib/argz.in.h: Renamed from lib/argz_.h.
56085         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56086         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56087         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56088         byteswap_.h.
56089         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56090         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56091         dirent_.h.
56092         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56093         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56094         fcntl_.h.
56095         * lib/float.in.h: Renamed from lib/float_.h.
56096         * modules/float (Files, Makefile.am): Use float.in.h instead of
56097         float_.h.
56098         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56099         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56100         fnmatch_.h.
56101         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56102         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56103         getopt_.h.
56104         * lib/glob.in.h: Renamed from lib/glob_.h.
56105         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56106         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56107         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56108         iconv_.h.
56109         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56110         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56111         inttypes_.h.
56112         * lib/locale.in.h: Renamed from lib/locale_.h.
56113         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56114         locale_.h.
56115         * lib/math.in.h: Renamed from lib/math_.h.
56116         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56117         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56118         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56119         of netinet_in_.h. Add dependency.
56120         * lib/poll.in.h: Renamed from lib/poll_.h.
56121         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56122         * lib/search.in.h: Renamed from lib/search_.h.
56123         * modules/search (Files, Makefile.am): Use search.in.h instead of
56124         search_.h.
56125         * lib/signal.in.h: Renamed from lib/signal_.h.
56126         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56127         _signal.h.
56128         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56129         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56130         stdbool_.h.
56131         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56132         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56133         stdint_.h.
56134         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56135         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56136         stdio_.h.
56137         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56138         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56139         stdlib_.h.
56140         * lib/string.in.h: Renamed from lib/string_.h.
56141         * modules/string (Files, Makefile.am): Use string.in.h instead of
56142         string_.h.
56143         * doc/gnulib-tool.texi (Initial import): Update.
56144         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56145         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56146         of sys_select_.h. Add dependency.
56147         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56148         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56149         of sys_socket_.h.
56150         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56151         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56152         sys_stat_.h.
56153         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56154         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56155         sys_time_.h.
56156         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56157         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56158         sysexits_.h.
56159         * lib/time.in.h: Renamed from lib/time_.h.
56160         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56161         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56162         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56163         unistd_.h.
56164         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56165         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56166         wchar_.h.
56167         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56168         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56169         wctype_.h.
56170         * build-aux/bootstrap (slurp): Update.
56171         * lib/.cppi-disable: Update.
56172
56173 2007-09-30  Bruno Haible  <bruno@clisp.org>
56174
56175         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56176         Needed on BeOS.
56177
56178 2007-09-30  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56181
56182 2007-09-29  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56185
56186 2007-09-29  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56189         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56190         * build-aux/install-reloc: Compile also areadlink.c.
56191         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56192
56193 2007-09-29  Bruno Haible  <bruno@clisp.org>
56194
56195         * gnulib-tool (func_emit_initmacro_done): Indentation.
56196
56197 2007-09-29  Bruno Haible  <bruno@clisp.org>
56198
56199         * README: Add CVS checkout update instructions.
56200         Info from Bob Proulx <bob@proulx.com>.
56201
56202 2007-09-28  Eric Blake  <ebb9@byu.net>
56203
56204         Provide move-if-change.
56205         * build-aux/move-if-change: New file, based on best practice
56206         rather than any canonical upstream location.
56207
56208 2007-09-28  Jim Meyering  <jim@meyering.net>
56209
56210         Fix canonicalize loop-detection corner case.
56211         Do not attempt to stat the symlink values stored via seen_triple.
56212         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56213         on linux-2.6.18, (but not 2.6.22).
56214         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56215         triple_compare.  The former compares dev,ino,filename, while the latter
56216         would actually stat dirname(filename) when dev and ino were equal.
56217         * lib/hash-triple.c: Install <string.h>.
56218         (STREQ): Define.
56219         (triple_compare_ino_str): New function.
56220         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56221
56222 2007-09-28  Eric Blake  <ebb9@byu.net>
56223
56224         Enforce that AC_REPLACE_FUNCS files exist.
56225         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56226         override check for typos.
56227
56228         Fix test-closein on Solaris 10.
56229         * tests/test-closein.c (main): Don't assume stdin can be inherited
56230         closed on all systems.
56231         * tests/test-closein.sh: Likewise.
56232         Reported by Piotr Tarnowski.
56233
56234 2007-09-28  Jim Meyering  <jim@meyering.net>
56235
56236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56237
56238 2007-09-27  Jim Meyering  <jim@meyering.net>
56239
56240         canonicalize: Avoid a false-positive cycle failure.
56241         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56242         Sort.  Remove cycle-check.
56243         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56244         not cycle-check.h.
56245         (seen_triple): New function.
56246         (canonicalize_filename_mode): Use it instead of cycle-check.
56247         * tests/test-canonicalize.c: Add a test for this bug.
56248         * tests/test-canonicalize.sh: Set up and run the test.
56249
56250         New module, file-set, from coreutils.
56251         * modules/file-set: Define it.
56252         * lib/file-set.c, lib/file-set.h: Implement.
56253
56254         New module, hash-triple, from coreutils.
56255         * modules/hash-triple: Define it.
56256         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56257
56258 2007-09-25  Eric Blake  <ebb9@byu.net>
56259
56260         Fix strerror on Interix.
56261         * lib/string_.h (strerror): Declare replacement.
56262         * doc/functions/strerror.texi (strerror): Document the Interix
56263         shortcoming.
56264         * modules/string (Makefile.am): Support new hooks.
56265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56266         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56267         gl_FUNC_STRERROR_SEPARATE.
56268         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56269         * lib/strerror.c (rpl_strerror): Provide replacement.
56270         * modules/strerror (Depends-on): Add string.
56271         (configure.ac): Detect use of module.
56272         * tests/test-strerror.c: New file.
56273         * modules/strerror-tests: New test module.
56274         * modules/argp (Depends-on): Add strerror.
56275         * modules/error (Depends-on): Likewise.
56276         Reported by Martin Koeppe.
56277
56278 2007-09-24  Bruno Haible  <bruno@clisp.org>
56279
56280         * README: Update git instructions.
56281
56282 2007-09-24  Eric Blake  <ebb9@byu.net>
56283
56284         Revert fpending breakage from 2007-09-08.
56285         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56286         __fpending.c.
56287
56288 2007-09-24  Jim Meyering  <jim@meyering.net>
56289
56290         filenamecat.c: Add a test.
56291         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56292         showing how the function works when DIR is the empty string.
56293
56294 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56295
56296         * tests/test-canonicalize.sh: Turn on executable bit.
56297
56298 2007-09-19  Eric Blake  <ebb9@byu.net>
56299
56300         * README: Update CVS instructions.
56301
56302 2007-09-18  Bruno Haible  <bruno@clisp.org>
56303
56304         * modules/areadlink: New file.
56305         * lib/areadlink.h (areadlink): New declaration.
56306         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56307
56308 2007-09-17  Jim Meyering  <jim@meyering.net>
56309
56310         * lib/savewd.c (ESTALE) [!defined]: Define.
56311         Reported to be required on Interix by Martin Koeppe.
56312
56313 2007-09-17  Bruno Haible  <bruno@clisp.org>
56314
56315         * gnulib-tool (func_version): Use $version.
56316
56317 2007-09-16  Bruno Haible  <bruno@clisp.org>
56318
56319         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56320         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56321         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56322         Reported by Greg Schafer <gschafer@zip.com.au>.
56323
56324 2007-09-15  Bruno Haible  <bruno@clisp.org>
56325
56326         * gnulib-tool (sed): Try a little harder to make bash understand the
56327         alias.
56328         Reported by Bruce Korb <bruce.korb@gmail.com>.
56329
56330 2007-09-13  Eric Blake  <ebb9@byu.net>
56331
56332         * ChangeLog: Remove conflict markers.
56333
56334 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56335
56336         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56337         Reported by Bruno Haible <bruno@clisp.org>.
56338
56339 2007-09-12  Bruno Haible  <bruno@clisp.org>
56340
56341         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56342         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56343         is not defined.
56344
56345 2007-09-12  Eric Blake  <ebb9@byu.net>
56346
56347         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56348         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56349         Autoconf definition.
56350         * modules/euidaccess (Depends-on): Add extensions, for
56351         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56352         * modules/fnmatch (Depends-on): Likewise.
56353         * modules/getaddrinfo (Depends-on): Likewise.
56354         * modules/getdelim (Depends-on): Likewise.
56355         * modules/getline (Depends-on): Likewise.
56356         * modules/getsubopt (Depends-on): Likewise.
56357         * modules/gettext (Depends-on): Likewise.
56358         * modules/group-member (Depends-on): Likewise.
56359         * modules/mbchar (Depends-on): Likewise.
56360         * modules/memmem (Depends-on): Likewise.
56361         * modules/mempcpy (Depends-on): Likewise.
56362         * modules/memrchr (Depends-on): Likewise.
56363         * modules/pagealign_alloc (Depends-on): Likewise.
56364         * modules/readutmp (Depends-on): Likewise.
56365         * modules/stpcpy (Depends-on): Likewise.
56366         * modules/stpncpy (Depends-on): Likewise.
56367         * modules/strchrnul (Depends-on): Likewise.
56368         * modules/strndup (Depends-on): Likewise.
56369         * modules/strsep (Depends-on): Likewise.
56370         * modules/strverscmp (Depends-on): Likewise.
56371         * modules/vasprintf (Depends-on): Likewise.
56372         * modules/wcwidth (Depends-on): Likewise.
56373         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56374         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56375         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56377         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56378         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56379         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56380         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56381         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56382         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56383         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56384         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56385         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56386         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56387         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56388         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56389         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56390         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56391         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56392         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56393         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56394         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56395         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56396         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56397         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56399         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56400         so that lock.m4 can be used in gettext without extensions module.
56401
56402 2007-09-11  Bruno Haible  <bruno@clisp.org>
56403
56404         * m4/isc-posix.m4: Remove file.
56405         Suggested by Eric Blake.
56406
56407 2007-09-11  Eric Blake  <ebb9@byu.net>
56408
56409         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56410
56411 2007-09-10  Bruno Haible  <bruno@clisp.org>
56412
56413         * posix-modules: Fix typo in error message.
56414         Reported by Matt <mkraai@beckman.com>.
56415
56416 2007-09-09  Bruno Haible  <bruno@clisp.org>
56417
56418         * doc/functions/getdelim.texi: Update list of platforms lacking the
56419         function.
56420         * doc/functions/getline.texi: Likewise.
56421
56422 2007-09-09  Jim Meyering  <jim@meyering.net>
56423
56424         * lib/hash.c (hash_initialize): Detect calloc failure.
56425         Reported by Bruno Haible.
56426
56427 2007-09-09  Bruno Haible  <bruno@clisp.org>
56428
56429         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56430         malloc or realloc fails.
56431
56432 2007-09-09  Bruno Haible  <bruno@clisp.org>
56433
56434         * modules/getcwd (Depends-on): Add malloc-posix.
56435         * modules/glob (Depends-on): Likewise.
56436         * modules/putenv (Depends-on): Likewise.
56437         * modules/strdup (Depends-on): Likewise.
56438         * modules/getdelim (Depends-on): Add realloc-posix.
56439         * modules/read-file (Depends-on): Likewise.
56440
56441 2007-09-09  Bruno Haible  <bruno@clisp.org>
56442
56443         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56444         (gl_FUNC_MALLOC_POSIX): Require it.
56445         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56446         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56447         * modules/realloc (Files): Add m4/malloc.m4.
56448         * modules/calloc (Files): Likewise.
56449
56450 2007-09-09  Bruno Haible  <bruno@clisp.org>
56451
56452         * modules/malloc-posix: New file.
56453         * modules/malloc (Depends-on): Add malloc-posix.
56454         * lib/malloc.c: Include errno.h.
56455         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56456         and a POSIX-compatible malloc into a single function. Set ENOMEM
56457         when returning NULL.
56458         * m4/malloc.m4: New file.
56459         * doc/functions/malloc.texi: Mention the malloc-posix module.
56460         * lib/stdlib_.h (malloc): New declaration.
56461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56462         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56463         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56464         and HAVE_MALLOC_POSIX.
56465
56466 2007-09-09  Bruno Haible  <bruno@clisp.org>
56467
56468         * modules/realloc-posix: New file.
56469         * modules/realloc (Depends-on): Add realloc-posix.
56470         * lib/realloc.c: Include errno.h.
56471         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56472         and a POSIX-compatible realloc into a single function. Set ENOMEM
56473         when returning NULL.
56474         * m4/realloc.m4: New file.
56475         * doc/functions/realloc.texi: Mention the realloc-posix module.
56476         * lib/stdlib_.h (realloc): New declaration.
56477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56478         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56479         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56480         and HAVE_REALLOC_POSIX.
56481
56482 2007-09-09  Bruno Haible  <bruno@clisp.org>
56483
56484         * modules/calloc-posix: New file.
56485         * modules/calloc (Depends-on): Add calloc-posix.
56486         * lib/calloc.c: Include errno.h.
56487         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56488         and a POSIX-compatible calloc into a single function. Set ENOMEM
56489         when returning NULL.
56490         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56491         * doc/functions/calloc.texi: Mention the calloc-posix module.
56492         * lib/stdlib_.h (calloc): New declaration.
56493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56494         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56495         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56496         and HAVE_CALLOC_POSIX.
56497
56498 2007-09-09  Bruno Haible  <bruno@clisp.org>
56499
56500         Allow for modules to show an arbitrary notice.
56501         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56502         * gnulib-tool: New option --extract-notice.
56503         (func_usage): Document it.
56504         (sed_extract_prog): Update.
56505         (func_get_notice): New function.
56506         (func_modules_notice): New function.
56507         (func_import, func_create_testdir): Invoke it.
56508         Suggested by Jim Meyering.
56509
56510 2007-09-09  Bruno Haible  <bruno@clisp.org>
56511
56512         * gnulib-tool: New options --verbose, --quiet.
56513         (func_usage): Document them.
56514         (verbose): New variable.
56515         (func_execute_command): New function.
56516         (func_import): Don't show the module list and the file list if
56517         $verbose < 0.
56518         (func_create_testdir): Likewise. Use func_execute_command.
56519         (func_create_megatestdir): Use func_execute_command.
56520
56521 2007-09-08  Bruno Haible  <bruno@clisp.org>
56522
56523         * gnulib-tool (func_import): Prefer rsync over wget when available,
56524         for fetching the PO files.
56525
56526 2007-09-08  Bruno Haible  <bruno@clisp.org>
56527
56528         * posix-modules: New file. Portions copied from gnulib-tool.
56529         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56530
56531 2007-09-08  Jim Meyering  <jim@meyering.net>
56532
56533         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56534         * lib/fpending.h: Rename from __fpending.h.
56535         * lib/fpending.c: Rename from __fpending.c.
56536         Include "fpending.h", not "__fpending.h".
56537         * lib/__fpending.h, lib/__fpending.c: Remove files.
56538         * modules/fpending (Files): Reflect new file names.
56539         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56540
56541 2007-09-08  Bruno Haible  <bruno@clisp.org>
56542
56543         * m4/inttypes-h.m4: Remove stub file.
56544
56545 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56546
56547         * doc/headers/stdint.texi: Discuss #include_next issue.
56548
56549 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56550
56551         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56552
56553 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56554
56555         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56556         in variable name.
56557
56558 2007-09-03  Jim Meyering  <jim@meyering.net>
56559
56560         New module: git-version-gen.
56561         * modules/git-version-gen: New file.
56562
56563         Import changes from coreutils for bootstrap script.
56564
56565         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56566
56567         bootstrap: uses rsync to download the .po files
56568         * build-aux/bootstrap (po_download_command_format): New global.
56569         (download_po_files): Use rsync.
56570         (update_po_files): Don't remove .po files after download,
56571         so future rsync runs can take advantage of the copies.
56572
56573         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56574
56575         Solve the unnecessary-.po-file-regeneration problem once and for all.
56576         * build-aux/bootstrap (download_po_files): New function, renamed from
56577         get_translations.  Now, downloads, but doesn't update LINGUAS.
56578         (update_po_files): New function.
56579
56580         bootstrap: Ignore more.
56581         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56582         uniwidth to e.g., lib/.gitignore.
56583         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56584
56585         * build-aux/bootstrap: New setting: vc_ignore.
56586         (insert_sorted_if_absent): Create $file if absent.
56587         Adapt to new, possibly empty, list: $vc_ignore.
56588
56589         bootstrap: generate more ignorable names
56590         * build-aux/bootstrap (slurp): When generating ignorable names,
56591         also map .sin to .sed, .gperf to .c, and .y to .c.
56592
56593 2007-09-03  Jim Meyering  <jim@meyering.net>
56594
56595         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56596         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56597
56598 2007-09-02  Bruno Haible  <bruno@clisp.org>
56599
56600         Fix mis-recognition of 'mcs' on QNX 6.
56601         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56602         output contains the string "Mono".
56603         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56604         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56605
56606 2007-09-01  Bruno Haible  <bruno@clisp.org>
56607
56608         Fix collision between uniwidth/* and linebreak modules.
56609         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56610         u32_width): Remove declarations.
56611         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56612         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56613         streq3, streq2, streq1, streq0): Remove functions.
56614         (STREQ): Remove macro.
56615         (is_cjk_encoding): Remove function.
56616         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56617         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56618         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56619         * NEWS: Document the change.
56620
56621 2007-09-01  Bruno Haible  <bruno@clisp.org>
56622
56623         * lib/streq.h: Add double-inclusion guard.
56624
56625 2007-09-01  Karl Berry  <karl@gnu.org>
56626
56627         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56628
56629 2007-08-28  Jim Meyering  <jim@meyering.net>
56630
56631         Rename mreadlink_with_size to areadlink_with_size.
56632         * NEWS: Document the change.
56633         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56634         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56635         * lib/mreadlink.h: Rename this to...
56636         * lib/areadlink.h: ...this.
56637         * modules/mreadlink-with-size: Rename this to...
56638         * modules/areadlink-with-size: ...this.
56639         * lib/canonicalize.c: Reflect the renaming.
56640         * modules/canonicalize: Likewise.
56641
56642 2007-08-26  Bruno Haible  <bruno@clisp.org>
56643
56644         * gnulib-tool (func_import): When deciding which files to remove,
56645         consider also dangling symbolic links.
56646         Reported by Eric Blake.
56647
56648 2007-08-26  Bruno Haible  <bruno@clisp.org>
56649
56650         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56651
56652 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56653
56654         * lib/readline.c: Don't include getline.h, the prototype is now
56655         found in stdio.h.
56656
56657 2007-08-23  Jim Meyering  <jim@meyering.net>
56658
56659         Getdelim touchup.
56660         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56661         around the funlockfile call, since funlockfile never sets errno.
56662         Don't set errno upon failed realloc.
56663
56664 2007-08-22  Eric Blake  <ebb9@byu.net>
56665
56666         Getline touchups.
56667         * lib/getdelim.c (getdelim): Revert regression that required *n to
56668         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56669         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56670         getdelim, rather than whether implementation is missing.
56671         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56672         * lib/stdio_.h (getline): Also declare if replacement is
56673         required.
56674         * doc/functions/getdelim.texi: New file.
56675         * doc/functions/getline.texi: Likewise.
56676         * doc/gnulib.texi (Function Substitutes): Add new files.
56677         Reported by Bruno Haible.
56678
56679 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56680
56681         * users.txt: Add Guile.
56682
56683 2007-08-22  Eric Blake  <ebb9@byu.net>
56684
56685         * tests/test-getdelim.c (main): Use remove, not unlink.
56686         * tests/test-getline.c (main): Likewise.
56687
56688         Move getline and getdelim into stdio.h, per POSIX 200x.
56689         * modules/getline (Files): Remove getline.h.
56690         (Depends-on): Add stdio.
56691         (configure.ac): Add module indicator.
56692         * modules/getdelim (Files): Remove getdelim.h.
56693         (Depends-on): Add stdio.
56694         (configure.ac): Add module indicator.
56695         * modules/stdio (Makefile.am): Work with new indicators.
56696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56697         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56698         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56699         * lib/getdelim.h: Delete.
56700         * lib/getline.h: Delete.
56701         * lib/stdio_.h (getdelim, getline): Declare.
56702         * modules/getdelim-tests: New module.
56703         * modules/getline-tests: Likewise.
56704         * tests/test-getdelim.c: New file.
56705         * tests/test-getline.c: Likewise.
56706         * NEWS: Document the change.
56707         * lib/getline.c: Update choice of header.
56708         * lib/csharpcomp.c: Likewise.
56709         * lib/getpass.c: Likewise.
56710         * lib/javacomp.c: Likewise.
56711         * lib/javaversion.c: Likewise.
56712         * lib/yesno.c: Likewise.
56713         * lib/getdelim.c: Likewise.
56714         (getdelim): Set errno on failure, and avoid memory leak.
56715
56716 2007-08-19  Bruno Haible  <bruno@clisp.org>
56717
56718         * modules/closein (Depends-on): Add freadahead.
56719         * lib/closein.c: Include freadahead.h.
56720         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56721         is zero.
56722
56723 2007-08-19  Bruno Haible  <bruno@clisp.org>
56724
56725         * modules/freadahead-tests: New file.
56726         * tests/test-freadahead.sh: New file.
56727         * tests/test-freadahead.c: New file.
56728
56729         * modules/freadahead: New file.
56730         * lib/freadahead.h: New file.
56731         * lib/freadahead.c: New file.
56732         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56733         fbufmode, fpurge, freadable, fwritable.
56734
56735 2007-08-19  Eric Blake  <ebb9@byu.net>
56736
56737         Test yesno in combination with closein.
56738         * lib/yesno.c (yesno): Document use of stdin.
56739         * modules/yesno-tests (Files): New module.
56740         * tests/test-yesno.c (main): New file.
56741         * tests/test-yesno.sh: Likewise.
56742
56743 2007-08-19  Bruno Haible  <bruno@clisp.org>
56744
56745         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56746         * lib/fseeko.c (rpl_fseeko): Likewise.
56747         * lib/fseterr.c (fseterr): Likewise.
56748
56749 2007-08-19  Bruno Haible  <bruno@clisp.org>
56750
56751         * tests/test-lseek.c (main): Disable a test for BeOS.
56752         * doc/functions/lseek.texi: Document the BeOS bug.
56753
56754 2007-08-19  Bruno Haible  <bruno@clisp.org>
56755             Eric Blake  <ebb9@byu.net>
56756
56757         * lib/lseek.c: Include <sys/stat.h>.
56758         (rpl_lseek): Add workaround code also for Unix platforms.
56759         Needed for BeOS.
56760         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56761         * doc/functions/lseek.texi: Document BeOS definiency.
56762
56763 2007-08-18  Bruno Haible  <bruno@clisp.org>
56764
56765         * modules/fstrcmp-tests: New file.
56766         * tests/test-fstrcmp.c: New file.
56767
56768 2007-08-18  Bruno Haible  <bruno@clisp.org>
56769
56770         * modules/fstrcmp: New file, from GNU gettext with modifications.
56771         * lib/fstrcmp.h: New file, from GNU gettext.
56772         * lib/fstrcmp.c: New file, from GNU gettext.
56773         * MODULES.html.sh (String handling): Add fstrcmp.
56774
56775 2007-08-18  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56778         'bool'.
56779         (diag, compareseq): Remove const from the ctxt argument.
56780         (USE_HEURISTIC): Undefine at the end.
56781
56782 2007-08-18  Jim Meyering  <jim@meyering.net>
56783
56784         New file: lib/idcache.h
56785         * NEWS: Mention the addition.
56786         * modules/idcache (Files): Add lib/idcache.h
56787         * lib/idcache.c: Include "idcache.h".
56788         Don't include <sys/types.h>.
56789         Add a FIXME comment.
56790         Move file-scoped "static" declarations to the top.
56791         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56792
56793 2007-08-17  Bruno Haible  <bruno@clisp.org>
56794         and Paul Eggert  <eggert@cs.ucla.edu>
56795
56796         * MODULES.html.sh: Add diffseq.
56797         * modules/diffseq: New file.
56798         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56799         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56800
56801 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56802
56803         Import changes from coreutils for bootstrap script.
56804
56805         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56806
56807         * build-aux/bootstrap (slurp): Work even in environments where
56808         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56809         current code does not slurp files whose names start with ".", and
56810         this looks like it might be a troublesome area.
56811
56812         2007-07-11  Jim Meyering  <jim@meyering.net>
56813
56814         If there's a GPL vN copyright comment, require that N == 3.
56815
56816         2007-07-08  Jim Meyering  <jim@meyering.net>
56817
56818         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56819         * build-aux/bootstrap (mam_template): Move definition out of loop.
56820
56821         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56822
56823         * build-aux/bootstrap (symlink_to_dir): Rename function from
56824         symlink_to_gnulib.  Add a directory parameter.  Update all
56825         callers.
56826         (cp_mark_as_generated): Also check for -- and link to -- files in
56827         gl/.
56828
56829         2007-07-08  Jim Meyering  <jim@meyering.net>
56830
56831         Adapt to deeper hierarchy in gnulib.
56832         * build-aux/bootstrap (symlink_to_dir): If the destination
56833         directory doesn't exist, create it. This is required at least for
56834         "lib/uniwidth/cjk.h".
56835
56836         2007-05-15  Jim Meyering  <jim@meyering.net>
56837
56838         * build-aux/bootstrap: Now that generated Makefile.am files
56839         are no longer under version control, they must be created at
56840         bootstrap time.
56841
56842 2007-08-14  Ben Pfaff  <blp@gnu.org>
56843
56844         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56845
56846 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56847
56848         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56849         given the changes below.
56850         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56851         even on hosts that have padding bits beyond the supported 64.
56852
56853 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56854
56855         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56856         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56857         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56858         depends on it.
56859         (xstrtol_error): Remove.
56860         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56861         but with a different signature.
56862         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56863         * lib/xstrtol-error.c: Include exitfail.h.
56864         (xstrtol_fatal): New function, with a different signature from the
56865         old xstrtol_error, so that the caller need not worry about passing
56866         in an exit status, or about storage management of the option argument.
56867         (xstrtol_error): Now a static function.  Redo signature to
56868         implement xstrtol_fatal.  Output the correct number of hyphens in
56869         front of the option so that the caller need not worry about
56870         storage management.
56871         (N_): New macro.
56872         (_): Remove; not used now.
56873         * modules/xstrtol: Depend on getopt.
56874         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56875         of old STRTOL_FATAL_ERROR macro.
56876         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56877         of test program.
56878         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56879         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56880
56881 2007-08-08  Eric Blake  <ebb9@byu.net>
56882
56883         * lib/xstrtol-error.c: Add missing include.
56884
56885         Move xstrtol messages into gnulib domain, when --pobase is used.
56886         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56887         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56888         * modules/xstrtol (Files): Distribute new file.
56889         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56890         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56891         * tests/test-xstrtol.c: ...into new file.
56892         * tests/test-xstrtoul.c: Also test xstrtoul.
56893         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56894         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56895         * tests/test-xstrtol.sh: Drive the tests.
56896         * tests/test-xstrtoimax.sh: Likewise.
56897         * tests/test-xstrtoumax.sh: Likewise.
56898         * modules/xstrtol-tests: New module.
56899         * modules/xstrtoimax-tests: Likewise.
56900         * modules/xstrtoumax-tests: Likewise.
56901
56902 2007-08-08  Jim Meyering  <jim@meyering.net>
56903
56904         New function: mfile_name_concat.
56905         * lib/filenamecat.c (mfile_name_concat): New function, just like
56906         file_name_concat, but return NULL upon failure rather than exiting
56907         with a diagnostic.
56908         * lib/filenamecat.h: Declare it.
56909
56910 2007-08-07  Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56913         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56914         warning from gcc.
56915         Reported by Eric Blake.
56916
56917 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56918
56919         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56920         * modules/crypto/arcfour (License): Likewise.
56921         * modules/crypto/des-tests (License): Likewise.
56922         * modules/crypto/gc-arctwo-tests (License): Likewise.
56923         * modules/crypto/gc-des-tests (License): Likewise.
56924         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56925         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56926         * modules/crypto/gc-md2-tests (License): Likewise.
56927         * modules/crypto/gc-md4-tests (License): Likewise.
56928         * modules/crypto/gc-md5-tests (License): Likewise.
56929         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56930         * modules/crypto/gc-rijndael-tests (License): Likewise.
56931         * modules/crypto/gc-sha1-tests (License): Likewise.
56932         * modules/crypto/gc-tests (License): Likewise.
56933         * modules/crypto/hmac-md5 (License): Likewise.
56934         * modules/crypto/hmac-sha1 (License): Likewise.
56935         * modules/crypto/md2-tests (License): Likewise.
56936         * modules/crypto/md4-tests (License): Likewise.
56937         * modules/crypto/md5 (License): Likewise.
56938         * modules/crypto/rijndael (License): Likewise.
56939         * modules/crypto/sha1 (License): Likewise.
56940         * modules/memxor (License): Likewise.
56941
56942 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56943         and Bruno Haible  <bruno@clisp.org>
56944
56945         * NEWS: Describe interface changes to human, xstrtol.
56946         * lib/human.h: Include <xstrtol.h>.
56947         (human_options): Return enum strtol_error, not int.  Remove
56948         bool arg; take int * instead.
56949         * lib/human.c: Don't include "gettext.h".
56950         (_): Remove; no longer used.
56951         Don't include <xstrtol.h>, since human.h does it.
56952         (human_options): Adjust to abovementioned interface changes.
56953         Do not report error to stderr; that's now the caller's
56954         responsibility.
56955         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56956         interface change.
56957         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56958         Str, Argument_type_string.  All uses changed.  Put " argument"
56959         in diagnostics to make them clearer.  Change wording of suffix
56960         message for clarity.
56961         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56962         Argument_type_string.
56963         (STRTOL_FATAL_WARN): Remove; no longer used.
56964         * modules/human (Depends-on): Remove gettext-h.
56965
56966 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56967
56968         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56969
56970 2007-07-31  Bruno Haible  <bruno@clisp.org>
56971
56972         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56973         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56974         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56975
56976 2007-07-31  Bruno Haible  <bruno@clisp.org>
56977
56978         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56979         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56980
56981 2007-07-30  Bruno Haible  <bruno@clisp.org>
56982
56983         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56984         * modules/c-ctype (License): Likewise.
56985         * modules/c-strcase (License): Likewise.
56986         * modules/check-version (License): Likewise.
56987         * modules/iconv (License): Likewise.
56988         * modules/iconv_open (License): Likewise.
56989         * modules/read-file (License): Likewise.
56990         * modules/striconv (License): Likewise.
56991         * modules/strverscmp (License): Likewise.
56992         * modules/vasprintf (License): Likewise.
56993         * modules/crypto/des (License): Likewise.
56994         * modules/crypto/gc (License): Likewise.
56995         * modules/crypto/gc-arcfour (License): Likewise.
56996         * modules/crypto/gc-arctwo (License): Likewise.
56997         * modules/crypto/gc-des (License): Likewise.
56998         * modules/crypto/gc-hmac-md5 (License): Likewise.
56999         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57000         * modules/crypto/gc-md2 (License): Likewise.
57001         * modules/crypto/gc-md4 (License): Likewise.
57002         * modules/crypto/gc-md5 (License): Likewise.
57003         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57004         * modules/crypto/gc-random (License): Likewise.
57005         * modules/crypto/gc-rijndael (License): Likewise.
57006         * modules/crypto/gc-sha1 (License): Likewise.
57007         * modules/crypto/md2 (License): Likewise.
57008         * modules/crypto/md4 (License): Likewise.
57009
57010 2007-07-30  Jim Meyering  <jim@meyering.net>
57011
57012         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57013         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57014         it has valid stat data.  This bug would cause du not to count the
57015         sizes of inaccessible directories.
57016         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57017         in <http://bugzilla.redhat.com/250077>.
57018
57019 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57020             Bruno Haible  <bruno@clisp.org>
57021
57022         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57023         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57024         #include_next, gives a diagnostic about it, but reports no error in
57025         the exit code.
57026         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57027
57028 2007-07-24  Ben Pfaff  <blp@gnu.org>
57029
57030         Improve name: "count-one-bits" is better than "popcount".
57031         * MODULES.html.sh: Update name.
57032         * lib/popcount.h: Renamed lib/count-one-bits.h.
57033         (popcount): Renamed count_one_bits.
57034         (popcountl): Renamed count_one_bits_l.
57035         (popcountll): Renamed count_one_bits_ll.
57036         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57037         * modules/popcount: Renamed module/count-one-bits.
57038         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57039         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57040
57041 2007-07-23  Ben Pfaff  <blp@gnu.org>
57042
57043         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57044         better code generation, and add U to large constants to avoid
57045         warnings, in non-GCC case.
57046         Suggested by Bruno Haible.
57047
57048 2007-07-23  Ben Pfaff  <blp@gnu.org>
57049
57050         * lib/popcount.h: Use verify_true instead of if...abort.
57051         * modules/popcount: Depend on verify module.
57052         Suggested by Jim Meyering.
57053
57054 2007-07-23  Bruno Haible  <bruno@clisp.org>
57055
57056         * gnulib-tool (func_import): Create a .cvsignore file also when the
57057         directory is not yet in CVS but the toplevel directory is. When
57058         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57059         Reported by Karl Berry.
57060
57061 2007-07-22  Ben Pfaff  <blp@gnu.org>
57062
57063         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57064         case.
57065         Suggested by Eric Blake.
57066
57067 2007-07-22  Ben Pfaff  <blp@gnu.org>
57068
57069         New module: popcount.
57070         * MODULES.html.sh: Add popcount.
57071         * modules/popcount: New file.
57072         * modules/popcount-tests: New file.
57073         * tests/test-popcount.c: New file.
57074         * lib/popcount.h: New file.
57075         * m4/popcount.m4: New file.
57076
57077 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57078
57079         * build-aux/announce-gen: Update to GPLv3.
57080
57081         * build-aux/config.guess: Update from config.
57082
57083 2007-07-21  Bruno Haible  <bruno@clisp.org>
57084
57085         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57086         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57087
57088 2007-07-20  Jim Meyering  <jim@meyering.net>
57089
57090         * check-module: Diagnose a self-dependency.
57091
57092 2007-07-19  Bruno Haible  <bruno@clisp.org>
57093
57094         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57095         empty.
57096         Reported by Eric Blake.
57097
57098 2007-07-18  Bruno Haible  <bruno@clisp.org>
57099
57100         * gnulib-tool: New options --po-base, --po-domain.
57101         (func_usage): Document them.
57102         (pobase, po_domain): New variables.
57103         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57104         DEFAULT_TEXT_DOMAIN.
57105         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57106         (func_import): Consider pobase and po_domain. Create a po/ directory.
57107         (func_create_testdir): Set pobase and po_domain to empty.
57108         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57109         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57110
57111 2007-07-18  Bruno Haible  <bruno@clisp.org>
57112
57113         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57114         EXTRA_DIST augmentation for files in build-aux/.
57115
57116 2007-07-16  Bruno Haible  <bruno@clisp.org>
57117
57118         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57119         * modules/getdelim (License): Likewise.
57120
57121 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57122
57123         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57124         * modules/d-type (License): Likewise.
57125         * modules/extensions (License): Likewise.
57126         * modules/fnmatch (License): Likewise.
57127         * modules/fseeko (License): Likewise.
57128         * modules/getaddrinfo (License): Likewise.
57129         * modules/getline (License): Likewise.
57130         * modules/getlogin_r (License): Likewise.
57131         * modules/getpass (License): Likewise.
57132         * modules/gettimeofday (License): Likewise.
57133         * modules/glob (License): Likewise.
57134         * modules/inet_ntop (License): Likewise.
57135         * modules/malloc (License): Likewise.
57136         * modules/malloca (License): Likewise.
57137         * modules/memmem (License): Likewise.
57138         * modules/mempcpy (License): Likewise.
57139         * modules/memset (License): Likewise.
57140         * modules/minmax (License): Likewise.
57141         * modules/mktime (License): Likewise.
57142         * modules/netinet_in (License): Likewise.
57143         * modules/pathmax (License): Likewise.
57144         * modules/poll (License): Likewise.
57145         * modules/regex (License): Likewise.
57146         * modules/snprintf (License): Likewise.
57147         * modules/stdbool (License): Likewise.
57148         * modules/stdint (License): Likewise.
57149         * modules/stdio (License): Likewise.
57150         * modules/strcase (License): Likewise.
57151         * modules/strcasestr (License): Likewise.
57152         * modules/strdup (License): Likewise.
57153         * modules/string (License): Likewise.
57154         * modules/strndup (License): Likewise.
57155         * modules/strnlen (License): Likewise.
57156         * modules/strpbrk (License): Likewise.
57157         * modules/strptime (License): Likewise.
57158         * modules/strsep (License): Likewise.
57159         * modules/sys_select (License): Likewise.
57160         * modules/sys_socket (License): Likewise.
57161         * modules/sys_stat (License): Likewise.
57162         * modules/sys_time (License): Likewise.
57163         * modules/time (License): Likewise.
57164         * modules/time_r (License): Likewise.
57165         * modules/timegm (License): Likewise.
57166         * modules/unistd (License): Likewise.
57167         * modules/vsnprintf (License): Likewise.
57168         * modules/wctype (License): Likewise.
57169
57170 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57171
57172         * modules/argz (License): LGPLv2+.
57173
57174 2007-07-15  Karl Berry  <karl@gnu.org>
57175
57176         * doc/gnulib.texi: revise node structure per new fdl.texi.
57177
57178 2007-07-14  Bruno Haible  <bruno@clisp.org>
57179
57180         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57181         the output file.
57182         * lib/uniname/uninames.h: Regenerated.
57183
57184 2007-07-14  Karl Berry  <karl@gnu.org>
57185
57186         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57187         omitting sectioning and index commands.
57188
57189 2007-07-13  Bruno Haible  <bruno@clisp.org>
57190
57191         New gnulib-tool option --more-symlinks.
57192         * gnulib-tool (func_usage): Document --more-symlinks.
57193         (do_copyrights): New variable.
57194         Recognize option --more-symlinks.
57195         (func_import): Don't add a copyright notice transform to
57196         sed_transform_lib_file if do_copyrights is empty.
57197
57198 2007-07-13  Bruno Haible  <bruno@clisp.org>
57199
57200         * lib/vasnprintf.c (decimal_point_char): Define also if
57201         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57202         && !NEED_PRINTF_DIRECTIVE_A.
57203         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57204         Gary V. Vaughan <gary@gnu.org>.
57205
57206 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         * lib/inttypes_.h: Undo previous change, since it was fixed
57209         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57210
57211 2007-07-13  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57214         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57215
57216 2007-07-13  Jim Meyering  <jim@meyering.net>
57217
57218         df: Don't fail for Tru64's "file-on-file mount".
57219         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57220         so we fall through and use statfs instead.  Details here:
57221         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57222         Reported by Albert Chin.
57223
57224 2007-07-13  Bruno Haible  <bruno@clisp.org>
57225
57226         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57227         * modules/configmake (License): Likewise.
57228         * modules/gettext (License): Likewise.
57229         * modules/gettext-h (License): Likewise.
57230         * modules/include_next (License): Likewise.
57231         * modules/link-warning (License): Likewise.
57232         * modules/localcharset (License): Likewise.
57233         * modules/localename (License): Likewise.
57234         * modules/lock (License): Likewise.
57235         * modules/relocatable-lib-lgpl (License): Likewise.
57236         * modules/size_max (License): Likewise.
57237         * modules/vasnprintf (License): Likewise.
57238         * modules/wchar (License): Likewise.
57239         * modules/xsize (License): Likewise.
57240
57241 2007-07-13  Bruno Haible  <bruno@clisp.org>
57242
57243         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57244         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57245
57246 2007-07-12  Bruno Haible  <bruno@clisp.org>
57247
57248         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57249         in the modules files.
57250
57251 2007-07-11  Karl Berry  <karl@gnu.org>
57252
57253         * MODULES.html.sh (func_module): use
57254          sed -e '\|^'"${includefile}"'$|d'
57255          instead of /.../d, to avoid errors on $includefile's containing /.
57256
57257 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57258
57259         * gnulib-tool (func_import): Avoid duplication of --avoid
57260         statements
57261         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57262         names to `_' in variable names.
57263
57264 2007-07-10  Eric Blake  <ebb9@byu.net>
57265
57266         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57267         * NEWS: Document this change.
57268
57269 2007-07-08  Bruno Haible  <bruno@clisp.org>
57270
57271         Update to Unicode 5.0.
57272         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57273         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57274         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57275         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57276         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57277         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57278         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57279         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57280         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57281         U+10A3F, U+1D242..U+1D244.
57282         (nonspacing_table_ind): Update.
57283         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57284         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57285
57286 2007-07-08  Bruno Haible  <bruno@clisp.org>
57287
57288         Update to Unicode 5.0.
57289         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57290         code transform. Extend the name index field of unicode_name_to_code and
57291         unicode_code_to_name from 16 to 24 bits.
57292         * lib/uniname/uniname.c (unicode_character_name,
57293         unicode_name_character): Add the range 0x12xxx to the code transform.
57294         * lib/uniname/uninames.h: Regenerated.
57295         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57296
57297 2007-07-07  Bruno Haible  <bruno@clisp.org>
57298
57299         * modules/wcwidth-tests: New file.
57300         * tests/test-wcwidth.c: New file.
57301
57302         Work around MacOS X wcwidth() bug.
57303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57304         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57305         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57306         original wcwidth in non-UTF-8 locales.
57307         * modules/wcwidth (Depends-on): Add localcharset, streq,
57308         uniwidth/width.
57309         * doc/functions/wcwidth.texi: Update.
57310
57311 2007-07-07  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57314         (wcwidth): New declaration.
57315         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57316         macros.
57317         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57318         here. Prepare for creating <wchar.h> unconditionally.
57319         * modules/wchar (Depends-on): Add link-warning.
57320         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57321         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57322         * lib/wcwidth.h: Remove file.
57323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57324         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57325         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57326         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57327         (Include): Replace wcwidth.h with <wchar.h>.
57328         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57329         * lib/mbchar.h: Don't include wcwidth.h.
57330         * lib/mbswidth.c: Likewise.
57331         * NEWS: Mention the change.
57332
57333 2007-07-07  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57336         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57337         definition with an external declaration.
57338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57339         defined as a function. Remove AC_C_INLINE requirement.
57340         * modules/wcwidth (Files): Add lib/wcwidth.c.
57341         (Makefile.am): Remove redundant statement.
57342
57343 2007-07-07  Bruno Haible  <bruno@clisp.org>
57344
57345         * MODULES.html.sh (Unicode string functions): Add the new modules.
57346
57347         * tests/uniwidth/test-u32-strwidth.c: New file.
57348         * modules/uniwidth/u32-strwidth-tests: New file.
57349
57350         * lib/uniwidth/u32-strwidth.c: New file.
57351         * modules/uniwidth/u32-strwidth: New file.
57352
57353         * tests/uniwidth/test-u16-strwidth.c: New file.
57354         * modules/uniwidth/u16-strwidth-tests: New file.
57355
57356         * lib/uniwidth/u16-strwidth.c: New file.
57357         * modules/uniwidth/u16-strwidth: New file.
57358
57359         * tests/uniwidth/test-u8-strwidth.c: New file.
57360         * modules/uniwidth/u8-strwidth-tests: New file.
57361
57362         * lib/uniwidth/u8-strwidth.c: New file.
57363         * modules/uniwidth/u8-strwidth: New file.
57364
57365         * tests/uniwidth/test-u32-width.c: New file.
57366         * modules/uniwidth/u32-width-tests: New file.
57367
57368         * lib/uniwidth/u32-width.c: New file.
57369         * modules/uniwidth/u32-width: New file.
57370
57371         * tests/uniwidth/test-u16-width.c: New file.
57372         * modules/uniwidth/u16-width-tests: New file.
57373
57374         * lib/uniwidth/u16-width.c: New file.
57375         * modules/uniwidth/u16-width: New file.
57376
57377         * tests/uniwidth/test-u8-width.c: New file.
57378         * modules/uniwidth/u8-width-tests: New file.
57379
57380         * lib/uniwidth/u8-width.c: New file.
57381         * modules/uniwidth/u8-width: New file.
57382
57383         * tests/uniwidth/test-uc_width.c: New file.
57384         * modules/uniwidth/width-tests: New file.
57385
57386         * lib/uniwidth/width.c: New file, from GNU libiconv.
57387         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57388         * modules/uniwidth/width: New file.
57389
57390         * lib/uniwidth.h: New file, from GNU libiconv.
57391         * modules/uniwidth/base: New file.
57392
57393 2007-07-07  Bruno Haible  <bruno@clisp.org>
57394
57395         * lib/uniname.h: New file, from GNU gettext.
57396         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57397         * lib/uniname/uninames.h: New file, from GNU gettext.
57398         * lib/uniname/uniname.c: New file, from GNU gettext.
57399         * tests/uniname/test-uninames.sh: New file.
57400         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57401         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57402         * modules/uniname/base: New file.
57403         * modules/uniname/uniname: New file.
57404         * modules/uniname/uniname-tests: New file.
57405         * MODULES.html.sh (Unicode string functions): Add the new modules.
57406
57407 2007-07-06  Bruno Haible  <bruno@clisp.org>
57408
57409         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57410
57411 2007-07-06  Bruno Haible  <bruno@clisp.org>
57412
57413         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57414         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57415         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57416         include <sys/time.h>.
57417         Reported by Eric Blake.
57418
57419 2007-07-06  Eric Blake  <ebb9@byu.net>
57420
57421         Fix testing canonicalize on cygwin.
57422         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57423         Revert patch from 2007-06-19.
57424         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57425         canonicalize module is also in use.
57426         * tests/test-canonicalize.c: New file.
57427         * tests/test-canonicalize.sh: Likewise.
57428         * modules/canonicalize-tests: Likewise.
57429
57430 2007-07-06  Jim Meyering  <jim@meyering.net>
57431
57432         * lib/getugroups.c (getugroups): Detect getgrent failure.
57433         Adjust comment to reflect reality: this function may return -1.
57434
57435 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57436
57437         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57438         the new TP address.
57439         (usage): Fix typo
57440         (gnulib_mk): New variable.
57441
57442 2007-07-05  Jim Meyering  <jim@meyering.net>
57443
57444         Don't let endgrent clobber errno, no matter how improbable.
57445         * lib/getugroups.c (getugroups): Save and restore errno around
57446         endgrent call.
57447
57448         Close the group DB even when failing with 2^31 or more members.
57449         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57450
57451 2007-07-04  Jim Meyering  <jim@meyering.net>
57452
57453         * lib/getugroups.h: New file.
57454         * lib/getugroups.c: Include "getugroups.h".
57455         Remove uses of "register" keyword.
57456         Move local variable, "cp", down into scope where used.
57457         Give "username" parameter the "const" attribute.
57458         * modules/getugroups (Files): Add lib/getugroups.h
57459
57460 2007-07-04  Karl Berry  <karl@gnu.org>
57461
57462         * MODULES.html.sh (func_all_modules): Complete rename of
57463         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57464
57465 2007-07-02  Bruno Haible  <bruno@clisp.org>
57466
57467         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57468         mode, when inttypes.h comes from gnulib.
57469         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57470
57471 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57472
57473         * NEWS: Mention lgpl module name change.
57474
57475         * modules/lgpl-2.1: Renamed from lgpl.
57476
57477         * NEWS: Mention gpl module name change.
57478
57479         * modules/gpl-3.0: New file, based on gpl-2.0.
57480
57481         * modules/gpl-2.0: Renamed from gpl.
57482
57483         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57484         doc/gpl-2.0.texi.
57485
57486 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57487
57488         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57489         #define __STDC_LIMIT_MACROS temporarily while including
57490         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57491         Problem reported by Joel E. Denny in
57492         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57493
57494 2007-07-01  Bruno Haible  <bruno@clisp.org>
57495
57496         * lib/unistdio.h: New file.
57497         * lib/unistdio/u-asnprintf.h: New file.
57498         * lib/unistdio/u-asprintf.h: New file.
57499         * lib/unistdio/u-printf-args.c: New file.
57500         * lib/unistdio/u-printf-args.h: New file.
57501         * lib/unistdio/u-printf-parse.h: New file.
57502         * lib/unistdio/u-snprintf.h: New file.
57503         * lib/unistdio/u-sprintf.h: New file.
57504         * lib/unistdio/u-vasprintf.h: New file.
57505         * lib/unistdio/u-vsnprintf.h: New file.
57506         * lib/unistdio/u-vsprintf.h: New file.
57507         * lib/unistdio/ulc-asnprintf.c: New file.
57508         * lib/unistdio/ulc-asprintf.c: New file.
57509         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57510         * lib/unistdio/ulc-printf-parse.c: New file.
57511         * lib/unistdio/ulc-snprintf.c: New file.
57512         * lib/unistdio/ulc-sprintf.c: New file.
57513         * lib/unistdio/ulc-vasnprintf.c: New file.
57514         * lib/unistdio/ulc-vasprintf.c: New file.
57515         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57516         * lib/unistdio/ulc-vsnprintf.c: New file.
57517         * lib/unistdio/ulc-vsprintf.c: New file.
57518         * lib/unistdio/u8-asnprintf.c: New file.
57519         * lib/unistdio/u8-asprintf.c: New file.
57520         * lib/unistdio/u8-printf-parse.c: New file.
57521         * lib/unistdio/u8-snprintf.c: New file.
57522         * lib/unistdio/u8-sprintf.c: New file.
57523         * lib/unistdio/u8-vasnprintf.c: New file.
57524         * lib/unistdio/u8-vasprintf.c: New file.
57525         * lib/unistdio/u8-vsnprintf.c: New file.
57526         * lib/unistdio/u8-vsprintf.c: New file.
57527         * lib/unistdio/u8-u8-asnprintf.c: New file.
57528         * lib/unistdio/u8-u8-asprintf.c: New file.
57529         * lib/unistdio/u8-u8-snprintf.c: New file.
57530         * lib/unistdio/u8-u8-sprintf.c: New file.
57531         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57532         * lib/unistdio/u8-u8-vasprintf.c: New file.
57533         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57534         * lib/unistdio/u8-u8-vsprintf.c: New file.
57535         * lib/unistdio/u16-asnprintf.c: New file.
57536         * lib/unistdio/u16-asprintf.c: New file.
57537         * lib/unistdio/u16-printf-parse.c: New file.
57538         * lib/unistdio/u16-snprintf.c: New file.
57539         * lib/unistdio/u16-sprintf.c: New file.
57540         * lib/unistdio/u16-vasnprintf.c: New file.
57541         * lib/unistdio/u16-vasprintf.c: New file.
57542         * lib/unistdio/u16-vsnprintf.c: New file.
57543         * lib/unistdio/u16-vsprintf.c: New file.
57544         * lib/unistdio/u16-u16-asnprintf.c: New file.
57545         * lib/unistdio/u16-u16-asprintf.c: New file.
57546         * lib/unistdio/u16-u16-snprintf.c: New file.
57547         * lib/unistdio/u16-u16-sprintf.c: New file.
57548         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57549         * lib/unistdio/u16-u16-vasprintf.c: New file.
57550         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57551         * lib/unistdio/u16-u16-vsprintf.c: New file.
57552         * lib/unistdio/u32-asnprintf.c: New file.
57553         * lib/unistdio/u32-asprintf.c: New file.
57554         * lib/unistdio/u32-printf-parse.c: New file.
57555         * lib/unistdio/u32-snprintf.c: New file.
57556         * lib/unistdio/u32-sprintf.c: New file.
57557         * lib/unistdio/u32-vasnprintf.c: New file.
57558         * lib/unistdio/u32-vasprintf.c: New file.
57559         * lib/unistdio/u32-vsnprintf.c: New file.
57560         * lib/unistdio/u32-vsprintf.c: New file.
57561         * lib/unistdio/u32-u32-asnprintf.c: New file.
57562         * lib/unistdio/u32-u32-asprintf.c: New file.
57563         * lib/unistdio/u32-u32-snprintf.c: New file.
57564         * lib/unistdio/u32-u32-sprintf.c: New file.
57565         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57566         * lib/unistdio/u32-u32-vasprintf.c: New file.
57567         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57568         * lib/unistdio/u32-u32-vsprintf.c: New file.
57569         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57570         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57571         * tests/unistdio/test-ulc-printf1.h: New file.
57572         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57573         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57574         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57575         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57576         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57577         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57578         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57579         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57580         * tests/unistdio/test-u8-asnprintf1.c: New file.
57581         * tests/unistdio/test-u8-asnprintf1.h: New file.
57582         * tests/unistdio/test-u8-printf1.h: New file.
57583         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57584         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57585         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57586         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57587         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57588         * tests/unistdio/test-u8-vasprintf1.c: New file.
57589         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57590         * tests/unistdio/test-u8-vsprintf1.c: New file.
57591         * tests/unistdio/test-u16-asnprintf1.c: New file.
57592         * tests/unistdio/test-u16-asnprintf1.h: New file.
57593         * tests/unistdio/test-u16-printf1.h: New file.
57594         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57595         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57596         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57597         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57598         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57599         * tests/unistdio/test-u16-vasprintf1.c: New file.
57600         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57601         * tests/unistdio/test-u16-vsprintf1.c: New file.
57602         * tests/unistdio/test-u32-asnprintf1.c: New file.
57603         * tests/unistdio/test-u32-asnprintf1.h: New file.
57604         * tests/unistdio/test-u32-printf1.h: New file.
57605         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57606         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57607         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57608         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57609         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57610         * tests/unistdio/test-u32-vasprintf1.c: New file.
57611         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57612         * tests/unistdio/test-u32-vsprintf1.c: New file.
57613         * modules/unistdio/base: New file.
57614         * modules/unistdio/u-printf-args: New file.
57615         * modules/unistdio/ulc-asnprintf: New file.
57616         * modules/unistdio/ulc-asprintf: New file.
57617         * modules/unistdio/ulc-fprintf: New file.
57618         * modules/unistdio/ulc-printf-parse: New file.
57619         * modules/unistdio/ulc-snprintf: New file.
57620         * modules/unistdio/ulc-sprintf: New file.
57621         * modules/unistdio/ulc-vasnprintf: New file.
57622         * modules/unistdio/ulc-vasprintf: New file.
57623         * modules/unistdio/ulc-vfprintf: New file.
57624         * modules/unistdio/ulc-vsnprintf: New file.
57625         * modules/unistdio/ulc-vsprintf: New file.
57626         * modules/unistdio/u8-asnprintf: New file.
57627         * modules/unistdio/u8-asprintf: New file.
57628         * modules/unistdio/u8-printf-parse: New file.
57629         * modules/unistdio/u8-snprintf: New file.
57630         * modules/unistdio/u8-sprintf: New file.
57631         * modules/unistdio/u8-vasnprintf: New file.
57632         * modules/unistdio/u8-vasprintf: New file.
57633         * modules/unistdio/u8-vsnprintf: New file.
57634         * modules/unistdio/u8-vsprintf: New file.
57635         * modules/unistdio/u8-u8-asnprintf: New file.
57636         * modules/unistdio/u8-u8-asprintf: New file.
57637         * modules/unistdio/u8-u8-snprintf: New file.
57638         * modules/unistdio/u8-u8-sprintf: New file.
57639         * modules/unistdio/u8-u8-vasnprintf: New file.
57640         * modules/unistdio/u8-u8-vasprintf: New file.
57641         * modules/unistdio/u8-u8-vsnprintf: New file.
57642         * modules/unistdio/u8-u8-vsprintf: New file.
57643         * modules/unistdio/u16-asnprintf: New file.
57644         * modules/unistdio/u16-asprintf: New file.
57645         * modules/unistdio/u16-printf-parse: New file.
57646         * modules/unistdio/u16-snprintf: New file.
57647         * modules/unistdio/u16-sprintf: New file.
57648         * modules/unistdio/u16-vasnprintf: New file.
57649         * modules/unistdio/u16-vasprintf: New file.
57650         * modules/unistdio/u16-vsnprintf: New file.
57651         * modules/unistdio/u16-vsprintf: New file.
57652         * modules/unistdio/u16-u16-asnprintf: New file.
57653         * modules/unistdio/u16-u16-asprintf: New file.
57654         * modules/unistdio/u16-u16-snprintf: New file.
57655         * modules/unistdio/u16-u16-sprintf: New file.
57656         * modules/unistdio/u16-u16-vasnprintf: New file.
57657         * modules/unistdio/u16-u16-vasprintf: New file.
57658         * modules/unistdio/u16-u16-vsnprintf: New file.
57659         * modules/unistdio/u16-u16-vsprintf: New file.
57660         * modules/unistdio/u32-asnprintf: New file.
57661         * modules/unistdio/u32-asprintf: New file.
57662         * modules/unistdio/u32-printf-parse: New file.
57663         * modules/unistdio/u32-snprintf: New file.
57664         * modules/unistdio/u32-sprintf: New file.
57665         * modules/unistdio/u32-vasnprintf: New file.
57666         * modules/unistdio/u32-vasprintf: New file.
57667         * modules/unistdio/u32-vsnprintf: New file.
57668         * modules/unistdio/u32-vsprintf: New file.
57669         * modules/unistdio/u32-u32-asnprintf: New file.
57670         * modules/unistdio/u32-u32-asprintf: New file.
57671         * modules/unistdio/u32-u32-snprintf: New file.
57672         * modules/unistdio/u32-u32-sprintf: New file.
57673         * modules/unistdio/u32-u32-vasnprintf: New file.
57674         * modules/unistdio/u32-u32-vasprintf: New file.
57675         * modules/unistdio/u32-u32-vsnprintf: New file.
57676         * modules/unistdio/u32-u32-vsprintf: New file.
57677         * modules/unistdio/ulc-asnprintf-tests: New file.
57678         * modules/unistdio/ulc-vasnprintf-tests: New file.
57679         * modules/unistdio/ulc-vasprintf-tests: New file.
57680         * modules/unistdio/ulc-vsnprintf-tests: New file.
57681         * modules/unistdio/ulc-vsprintf-tests: New file.
57682         * modules/unistdio/u8-asnprintf-tests: New file.
57683         * modules/unistdio/u8-vasnprintf-tests: New file.
57684         * modules/unistdio/u8-vasprintf-tests: New file.
57685         * modules/unistdio/u8-vsnprintf-tests: New file.
57686         * modules/unistdio/u8-vsprintf-tests: New file.
57687         * modules/unistdio/u16-asnprintf-tests: New file.
57688         * modules/unistdio/u16-vasnprintf-tests: New file.
57689         * modules/unistdio/u16-vasprintf-tests: New file.
57690         * modules/unistdio/u16-vsnprintf-tests: New file.
57691         * modules/unistdio/u16-vsprintf-tests: New file.
57692         * modules/unistdio/u32-asnprintf-tests: New file.
57693         * modules/unistdio/u32-vasnprintf-tests: New file.
57694         * modules/unistdio/u32-vasprintf-tests: New file.
57695         * modules/unistdio/u32-vsnprintf-tests: New file.
57696         * modules/unistdio/u32-vsprintf-tests: New file.
57697         * MODULES.html.sh (Unicode string functions): Add the new modules.
57698
57699 2007-07-01  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/sprintf.c (sprintf): Limit the available length estimation,
57702         to avoid address wraparound.
57703         * lib/vsprintf.c (vsprintf): Likewise.
57704         * modules/sprintf-posix (Dependencies): Add stdint.
57705         * modules/vsprintf-posix (Dependencies): Likewise.
57706
57707 2007-07-01  Bruno Haible  <bruno@clisp.org>
57708
57709         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57710         Windows PATH as well. Conservative double-quoting. Comments.
57711
57712 2007-07-01  Bruno Haible  <bruno@clisp.org>
57713             Eric Blake  <ebb9@byu.net>
57714             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57715
57716         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57717         empty components in $PATH, denoting '.'.
57718
57719 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57720
57721         * gnulib-tool: Fix indentation.
57722         (func_create_megatestdir): Likewise.
57723         Report by Bruno Haible.
57724
57725 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57726
57727         Sync from Automake.
57728         * build-aux/gnupload: Fix shell portability issues with for loops.
57729         Report by Karl Berry.
57730
57731 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57732
57733         * build-aux/maint.mk (POURL): Use translationproject.org.
57734
57735 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57736             Bruno Haible  <bruno@clisp.org>
57737
57738         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57739         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57740         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57741         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57742         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57743
57744 2007-06-27  Bruno Haible  <bruno@clisp.org>
57745
57746         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57747         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57748
57749 2007-06-26  Karl Berry  <karl@gnu.org>
57750
57751         * MODULES.html.sh: remove xreadlink-with-size.
57752
57753 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57754
57755         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57756         method that I hope also handles the double-include problem noted
57757         by Bruno Haible in
57758         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57759
57760 2007-06-23  Bruno Haible  <bruno@clisp.org>
57761
57762         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57763         Don't let the 'mostlyclean' target fail if the last subdirectory could
57764         not be removed.
57765         Reported by Karl Berry.
57766
57767 2007-06-23  Bruno Haible  <bruno@clisp.org>
57768
57769         * gnulib-tool (echo): Add a speedier workaround for ksh.
57770         * tests/test-echo.sh: Likewise.
57771
57772 2007-06-23  Bruno Haible  <bruno@clisp.org>
57773
57774         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57775         * tests/test-echo.sh: Likewise.
57776
57777 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57778
57779         * gnulib-tool (IFS): Initialize early, so we don't set it to
57780         empty later.
57781         (self_abspathname): Rewrite algorithm to set it, reindent.
57782         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57783         (func_create_megatestdir): Merge some sed scripts.
57784
57785 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57786
57787         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57788         exposed by Sun Studio 11 cc on Solaris 8.
57789
57790 2007-06-22  Bruno Haible  <bruno@clisp.org>
57791
57792         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57793         backslashes.
57794         * tests/test-echo.sh: New file.
57795
57796 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57797
57798         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57799         simplify `sed_replace_build_aux' scripts, they are portable but
57800         echoing them with `echo' is not.
57801         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57802
57803 2007-06-21  Karl Berry  <karl@gnu.org>
57804
57805         * config/srclist.txt: guess we can't handle the licenses via
57806         srclist at the moment.
57807
57808 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * MODULES.html.sh: Add include_next.
57811         * modules/include_next: New file.
57812
57813 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57814
57815         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57816         INCLUDE_NEXT.
57817         (gl_CHECK_NEXT_HEADERS): New macro.
57818         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57819         the obsolescent gl_ABSOLUTE_HEADER.
57820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57821         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57822         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57823         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57824         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57825         * m4/math_h.m4 (gl_MATH_H): Likewise.
57826         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57827         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57828         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57829         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57830         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57831         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57832         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57837         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57838         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57839         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57840         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57841         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57842         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57843         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57844         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57845         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57846         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57847         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57848         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57849         * lib/float_.h: Likewise.
57850         * lib/inttypes_.h: Likewise.
57851         * lib/math_.h: Likewise.
57852         * lib/search_.h: Likewise.
57853         * lib/signal_.h: Likewise.
57854         * lib/stdint_.h: Likewise.
57855         * lib/stdio_.h: Likewise.
57856         * lib/stdlib_.h: Likewise.
57857         * lib/string_.h: Likewise.
57858         * lib/sys_stat_.h: Likewise.
57859         * lib/sys_time_.h: Likewise.
57860         * lib/time_.h: Likewise.
57861         * lib/unistd_.h: Likewise.
57862         * lib/wchar_.h: Likewise.
57863         * lib/wctype_.h: Likewise.
57864         * lib/dirent_.h: Likewise.
57865         * lib/iconv_.h: Likewise.
57866         * lib/locale_.h: Likewise.
57867         * lib/netinet_in_.h: Likewise.
57868         * lib/sys_select_.h: Likewise.
57869         * lib/sys_socket_.h: Likewise.
57870         * lib/sysexits_.h: Likewise.
57871         * modules/fcntl (Depends-on): Depend on include_next, not
57872         absolute_header.
57873         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57874         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57875         * modules/fchdir: Likewise.
57876         * modules/float: Likewise.
57877         * modules/iconv_open: Likewise.
57878         * modules/inttypes: Likewise.
57879         * modules/locale: Likewise.
57880         * modules/math: Likewise.
57881         * modules/netinet_in: Likewise.
57882         * modules/search: Likewise.
57883         * modules/signal: Likewise.
57884         * modules/stdint: Likewise.
57885         * modules/stdio: Likewise.
57886         * modules/stdlib: Likewise.
57887         * modules/string: Likewise.
57888         * modules/sys_select: Likewise.
57889         * modules/sys_socket: Likewise.
57890         * modules/sys_stat: Likewise.
57891         * modules/sys_time: Likewise.
57892         * modules/sysexits: Likewise.
57893         * modules/time: Likewise.
57894         * modules/unistd: Likewise.
57895         * modules/wchar: Likewise.
57896         * modules/wctype: Likewise.
57897         * modules/sys_stat: Change maintainer to "all".
57898         * modules/unistd: Likewise.
57899
57900 2007-06-20  Karl Berry  <karl@gnu.org>
57901
57902         * config/srclist.txt: track www changes in license files.
57903
57904 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57905
57906         * build-aux/bootstrap: Remove stray dot.
57907         Make sure build_aux settings are honored when linking
57908         gnulib_extra_files.
57909
57910 2007-06-19  Eric Blake  <ebb9@byu.net>
57911
57912         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57913         Allow compilation on cygwin.
57914
57915 2007-06-19  Jim Meyering  <jim@meyering.net>
57916
57917         xreadlink-with-size: Remove module.  No longer used.
57918         Ex-callers now use xreadlink or mreadlink-with-size.
57919         * modules/xreadlink-with-size: Remove module.
57920         * lib/xreadlink-with-size.c: Remove file.
57921         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57922         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57923         just before the function definition *is* accurate.
57924
57925         Eliminate one way canonicalize_filename_mode could exit.
57926         * lib/canonicalize.c (canonicalize_filename_mode):
57927         Use mreadlink_with_size, not xreadlink_with_size.
57928
57929 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57930
57931         Detect porting problems to FreeBSD/arm, which has time_t wider than
57932         long int.  Original problem reported for GNU diff by Xin Li in
57933         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57934         * modules/getdate (Depends-on): Add intprops, verify.
57935         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57936         is an integer type no wider than long int.
57937
57938 2007-06-18  Jim Meyering  <jim@meyering.net>
57939
57940         New module: mreadlink-with-size.
57941         * MODULES.html.sh: Add mreadlink-with-size.
57942         * modules/mreadlink-with-size: New module
57943         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57944         not xreadlink-with-size.
57945         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57946
57947 2007-06-16  Bruno Haible  <bruno@clisp.org>
57948
57949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57950         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57951         Reported by Gary V. Vaughan <gary@gnu.org>.
57952
57953 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57954
57955         Revamp lchown so that it lives in unistd.h where it belongs.
57956         * lib/lchown.h: Remove.
57957         * lib/dirchownmod.c: Don't include lib/lchown.h.
57958         * lib/fchownat.c: Likewise.
57959         * lib/openat.c: Likewise.
57960         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57961         does not follow symlinks.
57962         (EOPNOTSUPP): Define if not defined.
57963         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57964         is defined to 0.
57965         (lchown): New decl.
57966         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57967         Do not check for lchown decl.
57968         Set REPLACE_LCHOWN.
57969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57970         REPLACE_LCHOWN.
57971         * modules/chown: Make it clear it follows symlinks.
57972         * modules/lchown: Make it clear it doesn't follow symlinks.
57973         (Files): Remove lib/lchown.h
57974         (Depends-on): Add unistd.
57975         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57976         (Include): Include <unistd.h>, not "lchown.h".
57977         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57978         REPLACE_LCHOWN.
57979
57980 2007-06-15  Jim Meyering  <jim@meyering.net>
57981
57982         Change license (GPL to LGPL) of fsusage and dependents.
57983         * modules/fsusage (License): Change to LGPL.
57984         * modules/full-read (License): Likewise.
57985         * modules/full-write (License): Likewise.
57986         * modules/safe-read (License): Likewise.
57987         * modules/safe-write (License): Likewise.
57988
57989 2007-06-14  Ben Pfaff  <blp@gnu.org>
57990
57991         Missing part of allocsa -> malloca transition.
57992         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57993         gl_MALLOCA.
57994
57995 2007-06-12  Bruno Haible  <bruno@clisp.org>
57996
57997         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57998         to ia64, x86_64, i386.
57999         Reported by Eric Blake.
58000
58001 2007-06-12  Bruno Haible  <bruno@clisp.org>
58002
58003         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58004         cross-compiling to x86_64.
58005
58006 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58007
58008         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58009         glitch reported by Ralf Wildenhues in
58010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58011
58012         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58013         Vin Shelton.
58014
58015 2007-06-11  Bruno Haible  <bruno@clisp.org>
58016
58017         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58018         replacement string.
58019         Reported by Eric Blake.
58020
58021 2007-06-10  Bruno Haible  <bruno@clisp.org>
58022
58023         Prepare vasnprintf code for use with Unicode strings.
58024         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58025         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58026         TYPE_U32_STRING.
58027         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58028         a_u32_string variants.
58029         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58030         * lib/printf-args.c: Don't include config.h and the specification
58031         header if PRINTF_FETCHARGS is already defined.
58032         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58033         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58034         TYPE_U16_STRING, TYPE_U32_STRING.
58035         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58036         u16_directive, u16_directives, u32_directive, u32_directives): New
58037         types.
58038         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58039         New declarations.
58040         * lib/printf-parse.c: Don't include config.h and the specification
58041         header if PRINTF_PARSE is already defined. Eliminate the set of
58042         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58043         them now. Include c-ctype.h.
58044         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58045         directive and CHAR_T_ONLY_ASCII.
58046         * lib/vasnprintf.c: Don't include config.h and the specification header
58047         if VASNPRINTF is already defined.
58048         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58049         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58050         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58051         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58052         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58053         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58054         code accordingly.
58055         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58056         pad_ourselves also in this case, with the 'c' and 's' directives, and
58057         with a different notion of "width".
58058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58059
58060 2007-06-10  Bruno Haible  <bruno@clisp.org>
58061
58062         * modules/unistr/u32-mbsnlen: New file.
58063         * lib/unistr/u32-mbsnlen.c: New file.
58064
58065         * modules/unistr/u16-mbsnlen: New file.
58066         * lib/unistr/u16-mbsnlen.c: New file.
58067
58068         * modules/unistr/u8-mbsnlen: New file.
58069         * lib/unistr/u8-mbsnlen.c: New file.
58070
58071         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58072         declarations.
58073
58074 2007-06-10  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/string_.h (mbsnlen): New declaration.
58077         * lib/mbsnlen.c: New file.
58078         * m4/mbsnlen.m4: New file.
58079         * modules/mbsnlen: New file.
58080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58081         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58082         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58083
58084 2007-06-10  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58087
58088 2007-06-10  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58091         * lib/mbuiter.h: Likewise.
58092
58093 2007-06-10  Bruno Haible  <bruno@clisp.org>
58094
58095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58096         declaration.
58097
58098 2007-06-10  Karl Berry  <karl@gnu.org>
58099
58100         * config/srclist.txt: remove gettext entries, Bruno prefers
58101         to update individually.
58102
58103 2007-06-10  Bruno Haible  <bruno@clisp.org>
58104
58105         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58106         'maxlen'. Ensure only length + width bytes are allocated, not
58107         length + 1 + width.
58108
58109 2007-06-09  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58112         (CHAR_T): Remove macro.
58113         (VASNPRINTF): Update.
58114
58115 2007-06-09  Bruno Haible  <bruno@clisp.org>
58116
58117         * MODULES.html.sh (Unicode string functions): Add the new modules.
58118
58119         * modules/uniconv/u32-conv-to-enc: New file.
58120         * lib/uniconv/u32-conv-to-enc.c: New file.
58121         * modules/uniconv/u32-conv-to-enc-tests: New file.
58122         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58123
58124         * modules/uniconv/u16-conv-to-enc: New file.
58125         * lib/uniconv/u16-conv-to-enc.c: New file.
58126         * lib/uniconv/u-conv-to-enc.h: New file.
58127         * modules/uniconv/u16-conv-to-enc-tests: New file.
58128         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58129
58130         * modules/uniconv/u8-conv-to-enc: New file.
58131         * lib/uniconv/u8-conv-to-enc.c: New file.
58132         * modules/uniconv/u8-conv-to-enc-tests: New file.
58133         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58134
58135         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58136         u32_conv_to_encoding): New declarations.
58137
58138 2007-06-09  Bruno Haible  <bruno@clisp.org>
58139
58140         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58141
58142 2007-06-09  Bruno Haible  <bruno@clisp.org>
58143
58144         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58145         * modules/malloca: Renamed from modules/allocsa, updated.
58146         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58147         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58148         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58149         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58150         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58151         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58152         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58153         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58154         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58155         * modules/c-strcasestr (Depends-on): Update.
58156         * lib/c-strcasestr.c: Update.
58157         * modules/c-strstr (Depends-on): Update.
58158         * lib/c-strstr.c: Update.
58159         * modules/canonicalize-lgpl (Depends-on): Update.
58160         * lib/canonicalize-lgpl.c: Update.
58161         * modules/clean-temp (Depends-on): Update.
58162         * lib/clean-temp.c: Update.
58163         * modules/csharpcomp (Depends-on): Update.
58164         * lib/csharpcomp.c: Update.
58165         * modules/csharpexec (Depends-on): Update.
58166         * lib/csharpexec.c: Update.
58167         * modules/javacomp (Depends-on): Update.
58168         * lib/javacomp.c: Update.
58169         * modules/javaexec (Depends-on): Update.
58170         * lib/javaexec.c: Update.
58171         * modules/mbscasestr (Depends-on): Update.
58172         * lib/mbscasestr.c: Update.
58173         * modules/mbsstr (Depends-on): Update.
58174         * lib/mbsstr.c: Update.
58175         * modules/setenv (Depends-on): Update.
58176         * lib/setenv.c: Update.
58177         * modules/strcasestr (Depends-on): Update.
58178         * lib/strcasestr.c: Update.
58179         * modules/striconveha (Depends-on): Update.
58180         * lib/striconveha.c: Update.
58181         * modules/relocatable-prog-wrapper (Files): Update.
58182         * lib/relocwrapper.c: Update.
58183         * build-aux/install-reloc: Update.
58184         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58185
58186 2007-06-08  Bruno Haible  <bruno@clisp.org>
58187
58188         Port to uClibc.
58189         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58190         * lib/fpurge.c (fpurge): Likewise.
58191         * lib/freading.c (freading): Likewise.
58192         * lib/fseeko.c (rpl_fseeko): Likewise.
58193         * lib/fseterr.c (fseterr): Likewise.
58194         * lib/fwriting.c (fwriting): Likewise.
58195         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58196
58197 2007-06-08  Bruno Haible  <bruno@clisp.org>
58198
58199         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58200         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58201         * modules/gettext (Files): Add m4/intlmacosx.m4.
58202
58203 2007-06-07  Bruno Haible  <bruno@clisp.org>
58204
58205         * modules/localename-tests: New file.
58206         * tests/test-localename.c: New file.
58207
58208         New module 'localename'.
58209         * lib/localename.h: New file.
58210         * lib/localename.c: New file, from GNU gettext.
58211         * m4/localename.m4: New file.
58212         * modules/localename: New file.
58213
58214 2007-06-07  Bruno Haible  <bruno@clisp.org>
58215
58216         Work around the lack of <wchar.h> on some builds of uClibc.
58217         * doc/headers/wchar.texi: Update.
58218         * lib/wchar_.h: Include <wchar.h> only if it exists.
58219         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58220         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58221         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58222         doesn't exist.
58223         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58224         * modules/mbfile (Depends-on): Add wchar.
58225         * modules/mbiter (Depends-on): Likewise.
58226         * modules/mbuiter (Depends-on): Likewise.
58227         Reported by Simon Josefsson.
58228
58229 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58230
58231         Work around problem reported by Steven M. Schweda in
58232         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58233         Tru64 5.1B with the Compaq compiler environment installed declares
58234         an 'isblank' function but does not define it in the C library.
58235         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58236         * lib/regex_internal.h (isblank): Likewise.
58237         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58238         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58239
58240 2007-06-05  Bruno Haible  <bruno@clisp.org>
58241
58242         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58243         ia64.
58244         * modules/printf-safe: New file.
58245         * modules/fprintf-posix (Depends-on): Add printf-safe.
58246         * modules/printf-posix (Depends-on): Likewise.
58247         * modules/snprintf-posix (Depends-on): Likewise.
58248         * modules/sprintf-posix (Depends-on): Likewise.
58249         * modules/vasnprintf-posix (Depends-on): Likewise.
58250         * modules/vasprintf-posix (Depends-on): Likewise.
58251         * modules/vfprintf-posix (Depends-on): Likewise.
58252         * modules/vprintf-posix (Depends-on): Likewise.
58253         * modules/vsnprintf-posix (Depends-on): Likewise.
58254         * modules/vsprintf-posix (Depends-on): Likewise.
58255         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58256         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58257         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58258         "no" on i386, x86_64, ia64.
58259         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58260         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58261         on i386, x86_64, ia64.
58262         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58263         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58264         on i386, x86_64, ia64.
58265         * tests/test-vasnprintf-posix.c: Include float.h.
58266         (LDBL80_WORDS): New macro.
58267         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58268         on i386, x86_64, ia64.
58269         * tests/test-vasprintf-posix.c: Include float.h.
58270         (LDBL80_WORDS): New macro.
58271         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58272         on i386, x86_64, ia64.
58273         * tests/test-snprintf-posix.c: Include float.h.
58274         * tests/test-sprintf-posix.c: Likewise.
58275         * tests/test-vsnprintf-posix.c: Likewise.
58276         * tests/test-vsprintf-posix.c: Likewise.
58277
58278 2007-06-05  Bruno Haible  <bruno@clisp.org>
58279
58280         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58281         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58282         non-IEEE numbers on i386, x86_64, ia64.
58283         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58284         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58285         * tests/test-isnanl.h: Include float.h.
58286         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58287
58288 2007-06-05  Bruno Haible  <bruno@clisp.org>
58289
58290         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58291         also the %a / %A. Handle the %a / %A code before this extra handling.
58292
58293 2007-06-05  Bruno Haible  <bruno@clisp.org>
58294
58295         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58296         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58297
58298 2007-06-05  Bruno Haible  <bruno@clisp.org>
58299
58300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58301         typo in variable name.
58302
58303 2007-06-05  Eric Blake  <ebb9@byu.net>
58304
58305         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58306         Reported by Simon Josefsson.
58307
58308 2007-06-04  Bruno Haible  <bruno@clisp.org>
58309
58310         Avoid test failures on some PowerPC platforms.
58311         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58312         Define differently for PowerPC.
58313         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58314         Reported by Gary V. Vaughan <gary@gnu.org>.
58315
58316 2007-06-02  Bruno Haible  <bruno@clisp.org>
58317
58318         Fix test-stdint failure on FreeBSD/ia64.
58319         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58320         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58321         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58322         * doc/headers/stdint.texi: Update.
58323
58324 2007-06-01  Bruno Haible  <bruno@clisp.org>
58325
58326         * tests/test-binary-io.c (main): Pass a third argument to open().
58327         Reported by Gary V. Vaughan <gary@gnu.org>.
58328
58329 2007-06-01  Bruno Haible  <bruno@clisp.org>
58330
58331         * doc/functions/frexpl.texi: Update for mingw.
58332
58333 2007-06-01  Bruno Haible  <bruno@clisp.org>
58334
58335         * tests/test-lseek.c (main): Disable test of errno for invalid third
58336         argument.
58337         * doc/functions/lseek.texi: Update.
58338         Reported by Gary V. Vaughan <gary@gnu.org>.
58339
58340 2007-05-28  Bruno Haible  <bruno@clisp.org>
58341
58342         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58343
58344 2007-05-31  Eric Blake  <ebb9@byu.net>
58345
58346         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58347         cross compiling.
58348
58349 2007-05-30  Eric Blake  <ebb9@byu.net>
58350         and Bruno Haible  <bruno@clisp.org>
58351
58352         Work around mingw test failures exposed by m4-1.4.9b.
58353         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58354         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58355         moment.
58356
58357 2007-05-30  Bruno Haible  <bruno@clisp.org>
58358
58359         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58360         assuming that they are closed. Needed on HP-UX 11.
58361
58362 2007-05-29  Bruno Haible  <bruno@clisp.org>
58363
58364         Fix a problem with #include_next.
58365         * lib/dirent_.h: Split the double-inclusion guard.
58366         * lib/fcntl_.h: Likewise.
58367         * lib/float_.h: Likewise.
58368         * lib/iconv_.h: Likewise.
58369         * lib/inttypes_.h: Likewise.
58370         * lib/locale_.h: Likewise.
58371         * lib/math_.h: Likewise.
58372         * lib/netinet_in_.h: Likewise.
58373         * lib/search_.h: Likewise.
58374         * lib/signal_.h: Likewise.
58375         * lib/stdint_.h: Likewise.
58376         * lib/stdio_.h: Likewise.
58377         * lib/stdlib_.h: Likewise.
58378         * lib/string_.h: Likewise.
58379         * lib/sys_select_.h: Likewise.
58380         * lib/sys_socket_.h: Likewise.
58381         * lib/sys_stat_.h: Likewise.
58382         * lib/sys_time_.h: Likewise.
58383         * lib/sysexits_.h: Likewise.
58384         * lib/time_.h: Likewise.
58385         * lib/unistd_.h: Likewise.
58386         * lib/wchar_.h: Likewise.
58387         * lib/wctype_.h: Likewise.
58388
58389 2007-05-29  Bruno Haible  <bruno@clisp.org>
58390
58391         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58392         for the moment.
58393
58394 2007-05-29  Bruno Haible  <bruno@clisp.org>
58395
58396         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58397         invocation.
58398         Reported by Eric Blake.
58399
58400 2007-05-29  Bruno Haible  <bruno@clisp.org>
58401
58402         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58403         compiling case.
58404
58405 2007-05-29  Eric Blake  <ebb9@byu.net>
58406             Bruno Haible  <bruno@clisp.org>
58407
58408         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58409         cross compiles.
58410
58411 2007-05-28  Eric Blake  <ebb9@byu.net>
58412
58413         * modules/closein-tests (test_closein_LDADD): Support test on
58414         cygwin with libtool.
58415
58416 2007-05-28  Bruno Haible  <bruno@clisp.org>
58417
58418         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58419         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58420         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58421         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58422         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58423         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58424         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58425         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58426         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58427
58428 2007-05-28  Eric Blake  <ebb9@byu.net>
58429
58430         Unconditionally include <config.h> in unit tests.
58431         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58432         * tests/test-allocsa.c, tests/test-arcfour.c,
58433         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58434         tests/test-array_list.c, tests/test-array_oset.c,
58435         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58436         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58437         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58438         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58439         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58440         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58441         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58442         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58443         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58444         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58445         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58446         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58447         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58448         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58449         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58450         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58451         test-md5.c, test-memmem.c, test-printf-posix.c,
58452         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58453         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58454         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58455         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58456         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58457         test-vasnprintf-posix2.c, test-vasnprintf.c,
58458         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58459         test-vfprintf-posix.c, test-vprintf-posix.c,
58460         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58461         test-xvasprintf.c: Likewise.
58462
58463 2007-05-28  Bruno Haible  <bruno@clisp.org>
58464
58465         * gnulib-tool (func_import): Remember the --with-tests command-line
58466         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58467         Reported by Eric Blake.
58468
58469 2007-05-28  Bruno Haible  <bruno@clisp.org>
58470
58471         * modules/ftell-tests: New file.
58472         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58473         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58474
58475         * lib/ftell.c: New file.
58476         * modules/ftell: New file.
58477         * m4/ftell.m4: New file.
58478         * doc/functions/ftell.texi: Update.
58479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58480         REPLACE_FTELL.
58481         * lib/stdio_.h (rpl_ftell): New declaration.
58482         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58483         REPLACE_FTELL.
58484
58485 2007-05-28  Eric Blake  <ebb9@byu.net>
58486
58487         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58488
58489 2007-05-28  Bruno Haible  <bruno@clisp.org>
58490
58491         * modules/fseek-tests: New file.
58492         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58493         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58494
58495         * lib/fseek.c: New file.
58496         * modules/fseek: New file.
58497         * m4/fseek.m4: New file.
58498         * doc/functions/fseek.texi: Update.
58499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58500         REPLACE_FSEEK.
58501         * lib/stdio_.h (rpl_fseek): New declaration.
58502         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58503         REPLACE_FSEEK.
58504
58505 2007-05-28  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/stdio_.h (fflush): More comments.
58508
58509 2007-05-28  Bruno Haible  <bruno@clisp.org>
58510
58511         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58512         runtime test.
58513
58514 2007-05-28  Eric Blake  <ebb9@byu.net>
58515
58516         Improve lseek module.
58517         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58518         * lib/unistd_.h (lseek): Scale back link warning message.
58519         * tests/test-lseek.c: Beef up test.
58520         * tests/test-lseek.sh: Exercise more facets of lseek.
58521         Reported by Bruno Haible.
58522
58523 2007-05-28  Bruno Haible  <bruno@clisp.org>
58524
58525         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58526         to define.
58527
58528 2007-05-27  Bruno Haible  <bruno@clisp.org>
58529
58530         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58531
58532 2007-05-27  Bruno Haible  <bruno@clisp.org>
58533
58534         * modules/openmp: New file.
58535         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58536         Noah Misch.
58537
58538 2007-05-26  Bruno Haible  <bruno@clisp.org>
58539
58540         * modules/chdir-long (Depends-on): Add fchdir.
58541         * modules/chdir-safer (Depends-on): Likewise.
58542         * modules/fts (Depends-on): Likewise.
58543         * modules/fts-lgpl (Depends-on): Likewise.
58544         * modules/openat (Depends-on): Likewise.
58545         * modules/savewd (Depends-on): Likewise.
58546
58547 2007-05-24  Eric Blake  <ebb9@byu.net>
58548
58549         Fix lseek on mingw.
58550         * modules/lseek: New module.
58551         * m4/lseek.m4: New file.
58552         * lib/lseek.c: New file.
58553         * modules/lseek-tests: New file.
58554         * tests/test-lseek.c: New file.
58555         * tests/test-lseek.sh: New file.
58556         * MODULES.html.sh: Document lseek module.
58557         * modules/fflush (Depends-on): Add lseek, fseeko.
58558         * modules/fseeko (Depends-on): Likewise.
58559         * modules/ftello (Depends-on): Likewise.
58560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58561         broken.
58562         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58563         broken.
58564         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58565         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58566         * lib/ftello.c (rpl_ftello): Likewise.
58567         * tests/test-fseeko.c (main): Test this.
58568         * tests/test-fseeko.sh: Likewise.
58569         * tests/test-ftello.c (main): Likewise.
58570         * tests/test-ftello.sh: Likewise.
58571         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58572         implies replacing fseek.
58573         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58574         HAVE_FTELLO.
58575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58576         * modules/unistd (Makefile.am): Likewise.
58577         * lib/unistd_.h (lseek): Declare a replacement.
58578         * doc/functions/lseek.texi (lseek): Document this fix.
58579         * doc/functions/fseek.texi (fseek): Likewise.
58580         * doc/functions/ftell.texi (ftell): Likewise.
58581
58582 2007-05-24  Bruno Haible  <bruno@clisp.org>
58583
58584         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58585         in the printed representation of a NaN.
58586         * tests/test-vasprintf-posix.c (test_function): Likewise.
58587         * tests/test-snprintf-posix.h (test_function): Likewise.
58588         * tests/test-sprintf-posix.h (test_function): Likewise.
58589         Reported by Eric Blake.
58590
58591 2007-05-23  Eric Blake  <ebb9@byu.net>
58592
58593         Fix fseeko/ftello on cygwin 1.5.24.
58594         * doc/functions/fseeko.texi (fseeko): Document the fix.
58595         * doc/functions/ftello.texi (ftello): Document the fix.
58596         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58597         * doc/functions/stdout.text (stdout): New file.
58598         * doc/functions/stderr.text (stderr): New file.
58599         * doc/gnulib.texi (Function Substitutes): Use new files.
58600         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58601         prior to 1.7.0.
58602         * tests/test-ftello.c (main): Likewise for ftello.
58603         * tests/test-fseeko.sh: New file.
58604         * tests/test-ftello.sh: New file.
58605         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58606         with seekable stdin.
58607         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58608         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58609         (gl_REPLACE_FSEEKO): New macro.
58610         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58611         * modules/fseeko (Files): Distribute fseeko.c.
58612         * modules/ftello (Files): Distribute ftello.c.
58613         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58614         mode.
58615         * lib/ftello.c (rpl_ftello): New file.
58616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58617         fseeko, ftello.
58618         (gl_STDIN_LARGE_OFFSET): New macro.
58619         * modules/stdio (Makefile.am): Perform the replacement.
58620         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58621
58622 2007-05-23  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58625         GNULIB_POSIXCHECK is defined.
58626
58627 2007-05-21  Bruno Haible  <bruno@clisp.org>
58628
58629         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58630         Check also the output for NaN arguments. When cross-compiling, guess
58631         no on IRIX.
58632         * lib/vasnprintf.c: Update comments.
58633         * tests/test-vasnprintf-posix.c (strisnan): New function.
58634         (test_function): Use it.
58635         * tests/test-vasprintf-posix.c (strisnan): New function.
58636         (test_function): Use it.
58637         * tests/test-snprintf-posix.h (strisnan): New function.
58638         (test_function): Use it.
58639         * tests/test-sprintf-posix.h (strisnan): New function.
58640         (test_function): Use it.
58641         Reported by Eric Blake.
58642
58643 2007-05-20  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58646         numbers that fails on BeOS.
58647         * doc/functions/frexpl.texi: Update.
58648
58649 2007-05-20  Jim Meyering  <jim@meyering.net>
58650
58651         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58652         forced upon us by glibc-2.6.
58653
58654 2007-05-20  Bruno Haible  <bruno@clisp.org>
58655
58656         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58657         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58658         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58659         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58660         NEED_PRINTF_INFINITE.
58661         (is_infinitel): New function.
58662         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58664         gl_PREREQ_VASNPRINTF_INFINITE.
58665         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58667         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58668         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58669         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58670         gl_PREREQ_VASNPRINTF_INFINITE.
58671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58678         * doc/functions/fprintf.texi: Update.
58679         * doc/functions/printf.texi: Update.
58680         * doc/functions/snprintf.texi: Update.
58681         * doc/functions/sprintf.texi: Update.
58682         * doc/functions/vfprintf.texi: Update.
58683         * doc/functions/vprintf.texi: Update.
58684         * doc/functions/vsnprintf.texi: Update.
58685         * doc/functions/vsprintf.texi: Update.
58686
58687 2007-05-20  Bruno Haible  <bruno@clisp.org>
58688
58689         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58690         was not found in libc.
58691         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58692
58693 2007-05-20  Bruno Haible  <bruno@clisp.org>
58694
58695         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58696         printed as "-nan" instead of "nan".
58697         * tests/test-vasprintf-posix.c (test_function): Likewise.
58698         * tests/test-snprintf-posix.h (test_function): Likewise.
58699         * tests/test-sprintf-posix.h (test_function): Likewise.
58700         Needed for HP-UX 11.
58701
58702 2007-05-20  Jim Meyering  <jim@meyering.net>
58703
58704         Fix buggy test for the fchownat-deref bug.
58705         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58706         symlink required for the run-test.  Without it, this test would
58707         always declare that fchownat doesn't work, and client code would
58708         unnecessarily use the replacement function with fixed libc.
58709         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58710         Reported by Greg Schafer.
58711
58712 2007-05-19  Bruno Haible  <bruno@clisp.org>
58713
58714         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58715         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58716         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58717         Needed for IRIX 6.5 and Solaris 2.5.1.
58718
58719 2007-05-19  Bruno Haible  <bruno@clisp.org>
58720
58721         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58722         (test_function): Skip tests involving -0.0 on platforms where
58723         -0.0 = 0.0.
58724         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58725         (test_function): Skip tests involving -0.0 on platforms where
58726         -0.0 = 0.0.
58727         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58728         (test_function): Skip tests involving -0.0 on platforms where
58729         -0.0 = 0.0.
58730         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58731         (test_function): Skip tests involving -0.0 on platforms where
58732         -0.0 = 0.0.
58733         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58734         tests.
58735         * tests/test-printf-posix.h (test_function): Likewise.
58736         * tests/test-printf-posix.output: Remove all -0.0 related results.
58737         Needed for IRIX 6.5.
58738
58739 2007-05-19  Bruno Haible  <bruno@clisp.org>
58740
58741         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58742         printed as "nan0x7fffffff" instead of "nan".
58743         * tests/test-vasprintf-posix.c (test_function): Likewise.
58744         * tests/test-snprintf-posix.h (test_function): Likewise.
58745         * tests/test-sprintf-posix.h (test_function): Likewise.
58746         * tests/test-fprintf-posix.h (NaN): Remove macro.
58747         (test_function): Remove all NaN related tests.
58748         * tests/test-printf-posix.h (NaN): Remove macro.
58749         (test_function): Remove all NaN related tests.
58750         * tests/test-printf-posix.output: Remove all NaN related results.
58751         Needed for IRIX 6.5.
58752
58753 2007-05-19  Bruno Haible  <bruno@clisp.org>
58754
58755         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58757
58758 2007-05-19  Bruno Haible  <bruno@clisp.org>
58759
58760         * lib/float_.h: New file.
58761         * m4/float_h.m4: New file.
58762         * modules/float: New file.
58763         * modules/isnanl (Dependencies): Add float.
58764         * modules/isnanl-nolibm (Dependencies): Likewise.
58765         * modules/mathl (Dependencies): Likewise.
58766         * modules/printf-frexpl (Dependencies): Likewise.
58767         * modules/signbit (Dependencies): Likewise.
58768         * modules/vasnprintf (Dependencies): Likewise.
58769         * doc/headers/float.texi: Update.
58770
58771 2007-05-19  Jim Meyering  <jim@meyering.net>
58772
58773         * lib/utimens.c (gl_futimens): Rename from futimens,
58774         now that glibc-2.6 declares futimens.
58775         * lib/utimens.h: Likewise.
58776
58777 2007-05-19  Bruno Haible  <bruno@clisp.org>
58778
58779         Avoid test failures on mingw.
58780         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58781         * tests/test-printf-posix.sh: Likewise.
58782         * tests/test-vfprintf-posix.sh: Likewise.
58783         * tests/test-vprintf-posix.sh: Likewise.
58784
58785 2007-05-19  Bruno Haible  <bruno@clisp.org>
58786
58787         Fix *printf result for NaN, Inf, -0.0 on mingw.
58788         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58789         * lib/vasnprintf.c: Include math.h and isnan.h.
58790         (is_infinite_or_zero): New function.
58791         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58792         values in the %f, %F, %e, %E, %g, %G directives.
58793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58795         gl_PRINTF_INFINITE and test its result. Invoke
58796         gl_PREREQ_VASNPRINTF_INFINITE.
58797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58804         * doc/functions/fprintf.texi: Update.
58805         * doc/functions/printf.texi: Update.
58806         * doc/functions/snprintf.texi: Update.
58807         * doc/functions/sprintf.texi: Update.
58808         * doc/functions/vfprintf.texi: Update.
58809         * doc/functions/vprintf.texi: Update.
58810         * doc/functions/vsnprintf.texi: Update.
58811         * doc/functions/vsprintf.texi: Update.
58812
58813 2007-05-19  Bruno Haible  <bruno@clisp.org>
58814
58815         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58816         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58817         Instead of multiplying with 10^k, set extra_zeroes to k.
58818         (scale10_round_long_double): Remove function.
58819
58820 2007-05-18  Bruno Haible  <bruno@clisp.org>
58821
58822         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58823         introduced on 2007-05-06.
58824
58825 2007-05-18  Bruno Haible  <bruno@clisp.org>
58826
58827         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58828         %g directives.
58829         * tests/test-vasprintf-posix.c (test_function): Likewise.
58830         * tests/test-snprintf-posix.h (test_function): Likewise.
58831         * tests/test-sprintf-posix.h (test_function): Likewise.
58832
58833 2007-05-18  Bruno Haible  <bruno@clisp.org>
58834
58835         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58836         (strmatch): New function.
58837         (test_function): Test the %f directive on numbers of various exponents.
58838         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58839         (strmatch): New function.
58840         (test_function): Test the %f directive on numbers of various exponents.
58841         * tests/test-snprintf-posix.h (strmatch): New function.
58842         (test_function): Test the %f directive on numbers of various exponents.
58843         * tests/test-sprintf-posix.h (strmatch): New function.
58844         (test_function): Test the %f directive on numbers of various exponents.
58845         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58846         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58847         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58848         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58849
58850 2007-05-18  Bruno Haible  <bruno@clisp.org>
58851
58852         Add support for 'long double' number output.
58853         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58854         * lib/vasnprintf.c: Include math.h and float+.h.
58855         (mp_limb_t): New type.
58856         (GMP_LIMB_BITS): New macro.
58857         (mp_twolimb_t): New type.
58858         (GMP_TWOLIMB_BITS): New macro.
58859         (mpn_t): New type.
58860         (multiply, divide, convert_to_decimal, decode_long_double,
58861         scale10_round_long_double, scale10_round_decimal_long_double,
58862         floorlog10l): New functions.
58863         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58864         for the %f, %F, %e, %E, %g, %G directives.
58865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58866         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58867         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58868         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58869         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58870         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58871         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58873         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58874         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58875         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58876         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58877         * modules/snprintf-posix (Depends-on): Likewise.
58878         * modules/sprintf-posix (Depends-on): Likewise.
58879         * modules/vasnprintf-posix (Depends-on): Likewise.
58880         * modules/vasprintf-posix (Depends-on): Likewise.
58881         * modules/vfprintf-posix (Depends-on): Likewise.
58882         * modules/vsnprintf-posix (Depends-on): Likewise.
58883         * modules/vsprintf-posix (Depends-on): Likewise.
58884         * modules/vasnprintf (Files): Add lib/float+.h.
58885         * doc/functions/fprintf.texi: Update.
58886         * doc/functions/printf.texi: Update.
58887         * doc/functions/snprintf.texi: Update.
58888         * doc/functions/sprintf.texi: Update.
58889         * doc/functions/vfprintf.texi: Update.
58890         * doc/functions/vprintf.texi: Update.
58891         * doc/functions/vsnprintf.texi: Update.
58892         * doc/functions/vsprintf.texi: Update.
58893
58894 2007-05-18  Bruno Haible  <bruno@clisp.org>
58895
58896         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58897
58898 2007-05-18  Bruno Haible  <bruno@clisp.org>
58899
58900         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58901         for printing 64-bit integers. Needed for mingw.
58902
58903 2007-05-18  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58906         gl_FUNC_FREXPL_WORKS.
58907         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58908
58909 2007-05-18  Bruno Haible  <bruno@clisp.org>
58910
58911         * modules/frexpl-nolibm-tests: New file.
58912
58913         * modules/frexpl-nolibm: New file.
58914         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58915
58916 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58919         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58920         GCC 4.2, which otherwise issues a lot of warnings.
58921         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58922         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58923         Likewise.
58924         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58925         * modules/iconv_open (iconv.h): Likewise.
58926         * modules/locale (locale.h): Likewise.
58927         * modules/netinet_in (netinet/in.h): Likewise.
58928         * modules/sys_select (sys_select.h): Likewise.
58929         * modules/sys_socket (sys/socket.h): Likewise.
58930         * modules/sys_stat (sys/stat.h): Likewise.
58931         * modules/sysexits (sysexits.h): Likewise.
58932         * modules/unistd (unistd.h): Likewise.
58933
58934 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58935
58936         * modules/closein-tests (Makefile.am): Distribute
58937         `test-closein.sh'.
58938
58939 2007-05-17  Bruno Haible  <bruno@clisp.org>
58940
58941         * tests/test-printf-posix.output: Renamed from
58942         tests/test-fprintf-posix.out.
58943         * modules/fprintf-posix-tests: Update.
58944         * modules/printf-posix-tests: Update.
58945         * modules/vfprintf-posix-tests: Update.
58946         * modules/vprintf-posix-tests: Update.
58947         * tests/test-fprintf-posix.sh: Update.
58948         * tests/test-printf-posix.sh: Update.
58949         * tests/test-vfprintf-posix.sh: Update.
58950         * tests/test-vprintf-posix.sh: Update.
58951         Reported by Ralf Wildenhues.
58952
58953 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58954
58955         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58956         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58957         GCC 4.2, which otherwise issues a lot of warnings.
58958         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58959         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58960         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58961         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58962         it should no longer be needed.
58963         * lib/string_.h: Likewise.
58964         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58965         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58966         * modules/inttypes (inttypes.h): Likewise.
58967         * modules/math (math.h): Likewise.
58968         * modules/search (search.h): Likewise.
58969         * modules/signal (signal.h): Likewise.
58970         * modules/stdint (stdint.h): Likewise.
58971         * modules/stdio (stdio.h): Likewise.
58972         * modules/stdlib (stdlib.h): Likewise.
58973         * modules/string (string.h): Likewise.
58974         * modules/sys_time (sys/time.h): Likewise.
58975         * modules/time (time.h): Likewise.
58976         * modules/wchar (wchar.h): Likewise.
58977         * modules/wctype (wtype.h): Likewise.
58978
58979 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58980
58981         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58982
58983 2007-05-13  Bruno Haible  <bruno@clisp.org>
58984
58985         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58986         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58987         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58988         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58989         (gl_PREREQ_STRTOK_R): Don't require it here.
58990
58991 2007-05-13  Bruno Haible  <bruno@clisp.org>
58992
58993         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58994         when used in C++ mode.
58995
58996 2007-05-12  Bruno Haible  <bruno@clisp.org>
58997
58998         * lib/linebuffer.h: Tweak doc.
58999         * lib/linebuffer.c: Likewise.
59000
59001 2007-05-12  James Youngman  <jay@gnu.org>
59002
59003         * lib/linebuffer.c (readlinebuffer_delim): New function,
59004         like readlinebuffer, but use a caller-specified delimiter.
59005         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59006         as the delimiter.
59007         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59008
59009 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59010
59011         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59012         * modules/openat (Files): Remove openat-die.c.
59013         (Depends-on): Add openat-die.
59014         * modules/openat-die: New module.
59015
59016 2007-05-06  Bruno Haible  <bruno@clisp.org>
59017
59018         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59019         Update with info about Cygwin.
59020         * doc/functions/fprintf.texi: Update.
59021         * doc/functions/printf.texi: Update.
59022         * doc/functions/snprintf.texi: Update.
59023         * doc/functions/sprintf.texi: Update.
59024         * doc/functions/vfprintf.texi: Update.
59025         * doc/functions/vprintf.texi: Update.
59026         * doc/functions/vsnprintf.texi: Update.
59027         * doc/functions/vsprintf.texi: Update.
59028         Reported by Eric Blake.
59029
59030 2007-05-06  Bruno Haible  <bruno@clisp.org>
59031
59032         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59033         padding ourselves for the floating-point directives.
59034         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59037         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59038         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59039         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59040         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59042         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59043         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59044         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59045         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59046         * tests/test-snprintf-posix.h (test_function): Also check the width
59047         and some flags in the %f directive.
59048         * tests/test-sprintf-posix.h (test_function): Likewise.
59049         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59050         * tests/test-vasprintf-posix.c (test_function): Likewise.
59051         * doc/functions/fprintf.texi: Update.
59052         * doc/functions/printf.texi: Update.
59053         * doc/functions/snprintf.texi: Update.
59054         * doc/functions/sprintf.texi: Update.
59055         * doc/functions/vfprintf.texi: Update.
59056         * doc/functions/vprintf.texi: Update.
59057         * doc/functions/vsnprintf.texi: Update.
59058         * doc/functions/vsprintf.texi: Update.
59059
59060 2007-05-06  Bruno Haible  <bruno@clisp.org>
59061
59062         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59063         pass the ' flag character to sprintf or snprintf.
59064         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59067         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59068         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59069         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59071         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59072         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59073         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59074         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59075         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59076         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59077         flag.
59078         * tests/test-sprintf-posix.h (test_function): Likewise.
59079         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59080         * tests/test-vasprintf-posix.c (test_function): Likewise.
59081         * doc/functions/fprintf.texi: Update.
59082         * doc/functions/printf.texi: Update.
59083         * doc/functions/snprintf.texi: Update.
59084         * doc/functions/sprintf.texi: Update.
59085         * doc/functions/vfprintf.texi: Update.
59086         * doc/functions/vprintf.texi: Update.
59087         * doc/functions/vsnprintf.texi: Update.
59088         * doc/functions/vsprintf.texi: Update.
59089
59090 2007-05-01  Bruno Haible  <bruno@clisp.org>
59091
59092         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59093
59094 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59095
59096         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59097         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59098
59099 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59100
59101         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59102         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59103         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59104
59105 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59106
59107         * lib/argp-help.c (struct hol_entry): New member `ord'.
59108         (HOL_ENTRY_PTRCMP): Use ord for comparison
59109         (hol_sort): Initialize ord.
59110
59111 2007-05-01  Bruno Haible  <bruno@clisp.org>
59112
59113         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59114         Reported by Eric Blake.
59115         * doc/gnulib.texi (Function Substitutes): Update.
59116
59117 2007-05-01  Bruno Haible  <bruno@clisp.org>
59118
59119         * doc/functions.texi: Remove file, now redundant through
59120         doc/functions/*.texi.
59121
59122 2007-05-01  Bruno Haible  <bruno@clisp.org>
59123
59124         * modules/argp (Depends-on): Add sleep.
59125
59126 2007-05-01  Bruno Haible  <bruno@clisp.org>
59127
59128         * modules/sleep-tests: New file.
59129         * tests/test-sleep.c: New file.
59130
59131         * modules/sleep: New file.
59132         * lib/sleep.c: New file.
59133         * m4/sleep.m4: New file.
59134         * lib/unistd_.h (sleep): New declaration.
59135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59136         HAVE_SLEEP.
59137         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59138         * doc/functions/sleep.texi: Document the sleep module.
59139
59140 2007-05-01  Bruno Haible  <bruno@clisp.org>
59141
59142         * lib/sigprocmask.h: Remove file.
59143         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59144         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59145         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59146         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59147         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59148         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59149         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59150         HAVE_SIGSET_T as a shell variable.
59151         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59152         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59153         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59154         (Depends-on): Add signal. Remove verify.
59155         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59156         (Include): Mention <signal.h> instead of sigprocmask.h.
59157         * NEWS: Mention the change.
59158         * lib/fatal-signal.c: Don't include sigprocmask.h.
59159
59160 2007-05-01  Bruno Haible  <bruno@clisp.org>
59161
59162         * modules/signal: New file.
59163         * lib/signal_.h: New file.
59164         * m4/signal_h.m4: New file.
59165
59166 2007-05-01  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59169         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59170         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59171         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59172
59173 2007-05-01  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59176         configure time.
59177         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59178         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59179         * modules/sys_stat (Makefile.am): Substitute their values into
59180         sys/stat.h.
59181
59182 2007-05-01  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59185         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59186         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59187
59188 2007-05-01  Bruno Haible  <bruno@clisp.org>
59189
59190         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59191         'assert' module here.
59192
59193 2007-05-01  Bruno Haible  <bruno@clisp.org>
59194
59195         * doc/functions/*.texi: New files.
59196         * doc/functions/google-ranking.txt: New file.
59197         * doc/gnulib.texi (Function Substitutes): New chapter.
59198         (ctime, inet_ntoa): Remove sections.
59199         * doc/ctime.texi: Remove file.
59200         * doc/inet_ntoa.texi: Remove file.
59201         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59202         dependencies.
59203         (%.info): New rule, specifying a --reference-limit.
59204
59205 2007-05-01  Bruno Haible  <bruno@clisp.org>
59206
59207         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59208
59209 2007-05-01  Bruno Haible  <bruno@clisp.org>
59210
59211         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59212         the portability of 'mkdir' to mingw systems.
59213
59214 2007-05-01  Bruno Haible  <bruno@clisp.org>
59215
59216         * doc/headers/google-ranking.txt: New file.
59217
59218 2007-04-30  Eric Blake  <ebb9@byu.net>
59219
59220         Prefer fseeko to fseek.
59221         * modules/getpass (Depends-on): Add fseeko.
59222         * lib/getpass.c (getpass): Use fseeko, not fseek.
59223
59224 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59225
59226         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59227         assumes the sorting is stable, while most qsort implementations
59228         are not.  Use argument addresses to ensure they never compare as
59229         equal.
59230
59231         * tests/test-argp-2.sh (usage-indent test): Fix output
59232         (func_compare): Restore diff options
59233         * tests/test-argp.c: Restore #include "progname.h"
59234
59235 2007-04-29  Bruno Haible  <bruno@clisp.org>
59236
59237         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59238         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59239         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59240         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59241         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59242         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59243         (TESTS, check_PROGRAMS): Add test-snprintf.
59244         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59245         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59246         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59247         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59248         assertions that fail on HP-UX, OSF/1, or IRIX.
59249         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59250
59251 2007-04-29  Bruno Haible  <bruno@clisp.org>
59252
59253         * MODULES.html.sh (posix_functions): Remove 'contents'.
59254
59255 2007-04-29  Karl Berry  <karl@gnu.org>
59256
59257         * config/srclist.txt (gendocs_template_min): new entry.
59258
59259 2007-04-29  Bruno Haible  <bruno@clisp.org>
59260
59261         Work around fpurge bug on BSD systems.
59262         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59263         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59264         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59265         fpurge to rpl_fpurge if the system already has this function.
59266         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59267         the case where the system already has this function. Correct invariants
59268         on BSD systems.
59269         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59270         BSD systems.
59271
59272 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59273
59274         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59275         proposed by Sven Verdoolaege.
59276
59277         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59278         options.
59279         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59280         (usage and help tests): Update
59281
59282 2007-04-29  Bruno Haible  <bruno@clisp.org>
59283
59284         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59285         Print more information in case of failure. Disable a test on BeOS.
59286
59287 2007-04-29  Bruno Haible  <bruno@clisp.org>
59288
59289         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59290         This helps debugging on systems on which no gdb is available.
59291
59292 2007-04-29  Bruno Haible  <bruno@clisp.org>
59293
59294         * lib/freading.h: Improve comments.
59295         * lib/fwriting.h: Likewise.
59296         * tests/test-freading.c (main): Don't check freading immediately after
59297         repositioning. Needed for glibc.
59298
59299 2007-04-29  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/freading.c (freading): Trivial simplification.
59302
59303 2007-04-28  Bruno Haible  <bruno@clisp.org>
59304
59305         * tests/test-fwriting.c (main): Also test the interaction between
59306         fflush and fwriting.
59307         * modules/fwriting-tests (Depends-on): Add fflush.
59308
59309         * tests/test-freading.c (main): Also test the interaction between
59310         fflush and freading.
59311         * modules/freading-tests (Depends-on): Add fflush.
59312
59313 2007-04-28  Bruno Haible  <bruno@clisp.org>
59314
59315         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59316         fseeko and ftello.
59317         Suggested by Eric Blake.
59318
59319 2007-04-28  Jim Meyering  <jim@meyering.net>
59320
59321         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59322         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59323         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59324
59325 2007-04-27  Eric Blake  <ebb9@byu.net>
59326
59327         * doc/headers/assert.texi (assert.h): Document assert module use.
59328
59329 2007-04-27  Bruno Haible  <bruno@clisp.org>
59330
59331         * doc/headers/*.texi: New files.
59332         * doc/gnulib.texi (Header File Substitutes): New chapter.
59333         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59334         dependencies.
59335         (standards.info ,standards.html, standards.dvi): Update dependencies.
59336         (mostlyclean, clean): New targets.
59337
59338 2007-04-27  Bruno Haible  <bruno@clisp.org>
59339
59340         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59341         * modules/sysexits (Files, Makefile.am): Update.
59342
59343         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59344         * modules/sys_socket (Files, Makefile.am): Update.
59345
59346         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59347         * modules/sys_stat (Files, Makefile.am): Update.
59348
59349 2007-04-27  Eric Blake  <ebb9@byu.net>
59350
59351         * lib/freading.h: Improve comments.
59352         * lib/fwriting.h: Likewise.
59353         * lib/fflush.c: Likewise.
59354
59355         Fix closein for mingw.
59356         * modules/closein-tests: Add tests for closein.
59357         * tests/test-closein.c: New file.
59358         * tests/test-closein.sh: Likewise.
59359         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59360         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59361
59362 2007-04-27  Bruno Haible  <bruno@clisp.org>
59363
59364         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59365         version is < 6.
59366         * lib/math_.h [__DECC]: Likewise.
59367         * lib/stdio_.h [__DECC]: Likewise.
59368         * lib/stdlib_.h [__DECC]: Likewise.
59369         * lib/string_.h [__DECC]: Likewise.
59370         * lib/time_.h [__DECC]: Likewise.
59371         * lib/wchar_.h [__DECC]: Likewise.
59372         * lib/wctype_.h [__DECC]: Likewise.
59373
59374 2007-04-27  Bruno Haible  <bruno@clisp.org>
59375
59376         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59377
59378 2007-04-27  Bruno Haible  <bruno@clisp.org>
59379
59380         * lib/fflush.c: Add comments.
59381         * modules/fpurge-tests (Depends-on): Add fflush.
59382         * modules/freadable-tests (Depends-on): Likewise.
59383         * modules/fwritable-tests (Depends-on): Likewise.
59384
59385 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59386
59387         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59388         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59389         Report by Bruno Haible <bruno@clisp.org>.
59390
59391 2007-04-26  Eric Blake  <ebb9@byu.net>
59392
59393         Fix fflush on mingw.
59394         * modules/fflush (Depends-on): Add freading.
59395         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59396         but unread data.
59397
59398 2007-04-26  Eric Blake  <ebb9@byu.net>
59399         and Bruno Haible  <bruno@clisp.org>
59400
59401         Implement freading and fwriting.
59402         * lib/freading.c: New file.
59403         * lib/freading.h: Likewise.
59404         * m4/freading.m4: Likewise.
59405         * modules/freading: Likewise.
59406         * modules/freading-tests: Likewise.
59407         * tests/test-freading.c: Likewise.
59408         * lib/fwriting.c: New file.
59409         * lib/fwriting.h: Likewise.
59410         * m4/fwriting.m4: Likewise.
59411         * modules/fwriting: Likewise.
59412         * modules/fwriting-tests: Likewise.
59413         * tests/test-fwriting.c: Likewise.
59414         * MODULES.html.sh (File stream based Input/Output): Mention them.
59415
59416 2007-04-26  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59419         'long' when we assume it.
59420         Suggested by Eric Blake.
59421
59422 2007-04-26  Bruno Haible  <bruno@clisp.org>
59423
59424         Ensure fseeko, ftello are declared on glibc systems.
59425         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59426         * modules/fseeko (configure.ac-early): Likewise.
59427         * modules/ftello (configure.ac-early): Likewise.
59428         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59429         AC_FUNC_FSEEKO for this.
59430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59431         (gl_CHECK_FSEEKO): Remove macro.
59432
59433 2007-04-26  Bruno Haible  <bruno@clisp.org>
59434
59435         * tests/test-fflush.c (main): Also check the ftell result after
59436         fflush and fseek/fseeko.
59437         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59438         file descriptor position cache in the stream.
59439         * lib/fseeko.c (rpl_fseeko): Likewise.
59440
59441 2007-04-26  Bruno Haible  <bruno@clisp.org>
59442
59443         * modules/fflush-tests (Depends-on): Add fseeko.
59444
59445 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59446             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59447
59448         * lib/argz_.h: ensure error_t definition is obtained in same
59449         mechanism system argz.h would have.
59450         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59451         argz facilities are known bad.  Err on the side of caution if
59452         cross-compiling.
59453
59454 2007-04-25  Eric Blake  <ebb9@byu.net>
59455
59456         * lib/fpurge.c (includes): Use stdlib.h for free.
59457         * tests/test-fflush.c (main): Also test fflush-fseeko.
59458
59459 2007-04-25  Bruno Haible  <bruno@clisp.org>
59460
59461         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59462         * lib/fseeko.c: New file.
59463         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59464         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59465         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59466         gl_FUNC_FSEEKO.
59467         (gl_FUNC_FSEEKO): Invoke it.
59468         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59469         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59470         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59471
59472 2007-04-25  Bruno Haible  <bruno@clisp.org>
59473
59474         * modules/fflush (Depends-on): Add ftello.
59475
59476 2007-04-25  Bruno Haible  <bruno@clisp.org>
59477
59478         * modules/ftello-tests: New file.
59479         * tests/test-ftello.c: New file.
59480
59481         * modules/ftello: New file.
59482         * m4/ftello.m4: New file.
59483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59484         HAVE_FTELLO.
59485         * lib/stdio_.h (ftello): New declaration.
59486         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59487         HAVE_FTELLO.
59488
59489 2007-04-25  Bruno Haible  <bruno@clisp.org>
59490
59491         * modules/fseeko-tests: New file.
59492         * tests/test-fseeko.c: New file.
59493
59494         * modules/fseeko: New file.
59495         * m4/fseeko.m4: New file.
59496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59497         HAVE_FSEEKO.
59498         * lib/stdio_.h (fseeko): New declaration.
59499         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59500         HAVE_FSEEKO.
59501
59502 2007-04-25  Bruno Haible  <bruno@clisp.org>
59503
59504         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59505
59506 2007-04-25  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59509         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59510         * tests/test-unistd.c: Likewise.
59511         * tests/test-fcntl.c: Likewise.
59512
59513 2007-04-23  Eric Blake  <ebb9@byu.net>
59514
59515         * lib/fflush.c: Fix missing include.
59516         Reported by Bruno Haible.
59517
59518 2007-04-23  Bruno Haible  <bruno@clisp.org>
59519
59520         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59521         Reported by Eric Blake.
59522
59523 2007-04-23  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59526
59527 2007-04-23  Bruno Haible  <bruno@clisp.org>
59528
59529         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59530
59531 2007-04-23  Bruno Haible  <bruno@clisp.org>
59532
59533         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59534         Needed on HP-UX 11.
59535
59536 2007-04-16  Eric Blake  <ebb9@byu.net>
59537
59538         Make fflush rely on fpurge.
59539         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59540         open coding all variants.
59541         * modules/fflush (Depends-on): Add fpurge and unistd.
59542         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59543         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59544
59545         Fix --with-tests compilation on cygwin.
59546         * modules/argmatch-tests (Makefile.am): List gnulib library first
59547         in LDADD.
59548         * modules/argp-tests (Makefile.am): Likewise.
59549         * modules/array-list-tests (Makefile.am): Likewise.
59550         * modules/array-oset-tests (Makefile.am): Likewise.
59551         * modules/avltree-list-tests (Makefile.am): Likewise.
59552         * modules/avltree-oset-tests (Makefile.am): Likewise.
59553         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59554         * modules/carray-list-tests (Makefile.am): Likewise.
59555         * modules/dirname-tests (Makefile.am): Likewise.
59556         * modules/frexp-tests (Makefile.am): Likewise.
59557         * modules/isnanl-tests (Makefile.am): Likewise.
59558         * modules/linked-list-tests (Makefile.am): Likewise.
59559         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59560         * modules/lock-tests (Makefile.am): Likewise.
59561         * modules/rbtree-list-tests (Makefile.am): Likewise.
59562         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59563         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59564         * modules/tls-tests (Makefile.am): Likewise.
59565         * modules/tsearch-tests (Makefile.am): Likewise.
59566         * modules/xvasprintf-tests (Makefile.am): Likewise.
59567
59568         Fix fpurge for cygwin.
59569         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59570         value.
59571         * modules/fpurge-tests (Depends-on): Clean up trash.
59572
59573 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59574
59575         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59576
59577         * m4/autobuild.m4: Re-indent.
59578
59579 2007-04-13  Bruno Haible  <bruno@clisp.org>
59580
59581         * modules/fpurge-tests: New file.
59582         * tests/test-fpurge.c: New file.
59583
59584         * modules/fpurge: New file.
59585         * lib/fpurge.h: New file.
59586         * lib/fpurge.c: New file.
59587         * m4/fpurge.m4: New file.
59588
59589 2007-04-13  Bruno Haible  <bruno@clisp.org>
59590
59591         * modules/fbufmode-tests: New file.
59592         * tests/test-fbufmode.c: New file.
59593
59594         * modules/fbufmode: New file.
59595         * lib/fbufmode.h: New file.
59596         * lib/fbufmode.c: New file.
59597         * m4/fbufmode.m4: New file.
59598
59599 2007-04-13  Bruno Haible  <bruno@clisp.org>
59600
59601         * modules/fwritable-tests: New file.
59602         * tests/test-fwritable.c: New file.
59603
59604         * modules/fwritable: New file.
59605         * lib/fwritable.h: New file.
59606         * lib/fwritable.c: New file.
59607         * m4/fwritable.m4: New file.
59608
59609 2007-04-13  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/freadable-tests: New file.
59612         * tests/test-freadable.c: New file.
59613
59614         * modules/freadable: New file.
59615         * lib/freadable.h: New file.
59616         * lib/freadable.c: New file.
59617         * m4/freadable.m4: New file.
59618
59619 2007-04-13  Bruno Haible  <bruno@clisp.org>
59620
59621         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59622         MOSTLYCLEANFILES.
59623
59624 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59625
59626         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59627         gzip bootstrap.conf to avoid dragging in i18n machinery.
59628         (gnulib_tool_option): Use it.
59629
59630 2007-04-13  Bruno Haible  <bruno@clisp.org>
59631
59632         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59633         %F directives.
59634         * tests/test-vasprintf-posix.c (test_function): Likewise.
59635         * tests/test-snprintf-posix.h (test_function): Likewise.
59636         * tests/test-sprintf-posix.h (test_function): Likewise.
59637         * tests/test-fprintf-posix.h (test_function): Likewise.
59638         * tests/test-printf-posix.h (test_function): Likewise.
59639         * tests/test-fprintf-posix.out: Likewise.
59640
59641 2007-04-13  Bruno Haible  <bruno@clisp.org>
59642
59643         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59644         * modules/tls-tests (configure.ac): Likewise.
59645         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59646
59647 2007-04-13  Bruno Haible  <bruno@clisp.org>
59648
59649         * lib/tls.c (glthread_tls_get): Fix return type.
59650         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59651
59652 2007-04-12  Eric Blake  <ebb9@byu.net>
59653
59654         * modules/gettime (Depends-on): Remove gettime.
59655         Reported by Dmitry V. Levin.
59656
59657 2007-04-12  Bruno Haible  <bruno@clisp.org>
59658
59659         * modules/fflush (Include): Mention <stdio.h>.
59660         * modules/strtoimax (Include): Mention <inttypes.h>.
59661         * modules/strtoumax (Include): Likewise.
59662
59663 2007-04-12  Eric Blake  <ebb9@byu.net>
59664
59665         * .cvsignore: New file.
59666         * .gitignore: Likewise.
59667
59668 2007-04-12  Bruno Haible  <bruno@clisp.org>
59669
59670         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59671         not before, since $(LDADD) often contains libgnu.a.
59672         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59673         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59674         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59675         Needed on Cygwin.
59676
59677 2007-04-12  Eric Blake  <ebb9@byu.net>
59678
59679         Work around glibc's failure to flush stdin on fclose.
59680         * lib/closein.c (close_stdin): Flush stdin before closing.
59681
59682         Work around glibc's failure to reset seekable stdin on exit.
59683         * modules/closein: New module.
59684         * lib/closein.c: New file.
59685         * lib/closein.h: Likewise.
59686         * m4/closein.m4: Likewise.
59687         * MODULES.html.sh (File stream based Input/Output): Document it.
59688
59689 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59690
59691         * gnulib-tool: Rename generated 'autobuild' script to
59692         'do-autobuild' in --create-megatestdir output.
59693
59694         * doc/gnulib.texi (Build robot for gnulib): Fix.
59695
59696 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59697
59698         * modules/sysexits (Depends-on): Add absolute-header.
59699
59700 2007-04-12  Eric Blake  <ebb9@byu.net>
59701
59702         No need to preserve errno on success.
59703         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59704         Reported by Bruno Haible.
59705
59706 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59707
59708         * MODULES.html.sh (Support for maintaining and releasing
59709         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59710
59711 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59712
59713         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59714
59715 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59716
59717         * modules/autobuild: New module.
59718
59719         * m4/autobuild.m4: New file.
59720
59721 2007-04-11  Bruno Haible  <bruno@clisp.org>
59722
59723         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59724         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59725         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59728         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59729         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59731         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59732         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59736         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59737         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59738         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59740         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59741         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59742         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59743         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59744         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59746         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59747         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59748         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59749         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59750         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59751         Reported by Eric Blake.
59752
59753 2007-04-11  Bruno Haible  <bruno@clisp.org>
59754
59755         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59756
59757 2007-04-10  Bruno Haible  <bruno@clisp.org>
59758
59759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59760         for NaN and Infinity. Needed on FreeBSD 6.1.
59761         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59762         regarding results for "%010a" of Infinity and NaN.
59763         * tests/test-vasprintf-posix.c (test_function): Likewise.
59764         * tests/test-snprintf-posix.h (test_function): Likewise.
59765         * tests/test-sprintf-posix.h (test_function): Likewise.
59766         * tests/test-fprintf-posix.h (test_function): Likewise.
59767         * tests/test-printf-posix.h (test_function): Likewise.
59768         * tests/test-fprintf-posix.out: Likewise.
59769
59770 2007-04-10  Bruno Haible  <bruno@clisp.org>
59771
59772         * modules/locale-tests: New file.
59773         * tests/test-locale.c: New file.
59774
59775         * modules/locale: New file.
59776         * lib/locale_.h: New file.
59777         * m4/locale_h.m4: New file.
59778
59779 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59780             Bruno Haible  <bruno@clisp.org>
59781
59782         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59783         be determined, test for availability of the copysignf, copysign,
59784         copysignl functions.
59785         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59786         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59787         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59788
59789 2007-04-09  Eric Blake  <ebb9@byu.net>
59790
59791         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59792         * modules/stdio (Makefile.am): Support fflush.
59793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59794         * modules/fflush: New file.
59795         * lib/fflush.c: Likewise.
59796         * m4/fflush.m4: Likewise.
59797         * modules/fflush-tests: New test.
59798         * tests/test-fflush.c: Likewise.
59799         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59800
59801 2007-04-06  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59804         (VASNPRINTF): Use signbit for faster determination whether to print a
59805         minus sign.
59806         * modules/vasnprintf (Files): Remove lib/float+.h.
59807         * modules/fprintf-posix (Depends-on): Add signbit.
59808         * modules/snprintf-posix (Depends-on): Likewise.
59809         * modules/sprintf-posix (Depends-on): Likewise.
59810         * modules/vasnprintf-posix (Depends-on): Likewise.
59811         * modules/vasprintf-posix (Depends-on): Likewise.
59812         * modules/vfprintf-posix (Depends-on): Likewise.
59813         * modules/vsnprintf-posix (Depends-on): Likewise.
59814         * modules/vsprintf-posix (Depends-on): Likewise.
59815
59816 2007-04-06  Bruno Haible  <bruno@clisp.org>
59817
59818         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59819         * tests/test-frexpl.c (main): Likewise.
59820         * tests/test-ldexpl.c (main): Likewise.
59821         * modules/frexp-tests (Depends-on): Add signbit.
59822         * modules/frexpl-tests (Depdends-on): Likewise.
59823         * modules/ldexpl-tests (Depdends-on): Likewise.
59824
59825 2007-04-06  Bruno Haible  <bruno@clisp.org>
59826
59827         * modules/signbit-tests: New file.
59828         * tests/test-signbit.c: New file.
59829
59830         * modules/signbit: New file.
59831         * lib/signbitf.c: New file.
59832         * lib/signbitd.c: New file.
59833         * lib/signbitl.c: New file.
59834         * m4/signbit.m4: New file.
59835         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59836         (signbit): New macro.
59837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59838         REPLACE_SIGNBIT.
59839         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59840         REPLACE_FREXPL into math.h.
59841
59842 2007-04-06  Bruno Haible  <bruno@clisp.org>
59843
59844         * modules/isnanf-nolibm-tests: New file.
59845         * tests/test-isnanf.c: New file.
59846
59847         * modules/isnanf-nolibm: New file.
59848         * lib/isnanf.h: New file.
59849         * lib/isnanf.c: New file.
59850         * lib/isnan.c: Consider the USE_FLOAT macro.
59851         * m4/isnanf.m4: New file.
59852
59853 2007-04-06  Bruno Haible  <bruno@clisp.org>
59854
59855         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59856         (Link): New section.
59857
59858         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59859
59860 2007-04-06  Bruno Haible  <bruno@clisp.org>
59861
59862         Assume the 'long double' type.
59863         * m4/longdouble.m4: Remove file.
59864         * config/srclist.txt: Don't mention longdouble.m4.
59865         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59866         * lib/float+.h: Likewise.
59867         * lib/frexp.c: Likewise.
59868         * lib/printf-args.h: Likewise.
59869         * lib/printf-args.c: Likewise.
59870         * lib/printf-frexp.c: Likewise.
59871         * lib/printf-parse.c: Likewise.
59872         * lib/vasnprintf.c: Likewise.
59873         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59874         * m4/intl.m4: Likewise.
59875         * m4/isnanl.m4: Likewise.
59876         * m4/printf.m4: Likewise.
59877         * m4/printf-frexpl.m4: Likewise.
59878         * m4/vasnprintf.m4: Likewise.
59879         * modules/allocsa (Files): Remove m4/longdouble.m4.
59880         * modules/gettext (Files): Likewise.
59881         * modules/relocatable-prog-wrapper (Files): Likewise.
59882         * modules/vasnprintf (Files): Likewise.
59883         * modules/isnanl (Files): Likewise.
59884         (Include): Simplify.
59885         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59886         (Include): Simplify.
59887         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59888         (Include): Simplify.
59889         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59890         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59891         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59892         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59893         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59894         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59895         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59896         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59897         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59898         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59899         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59900         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59901         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59902         * tests/test-isnanl.c: Likewise.
59903         * tests/test-snprintf-posix.h: Likewise.
59904         * tests/test-sprintf-posix.h: Likewise.
59905         * tests/test-vasnprintf-posix.c: Likewise.
59906         * tests/test-vasnprintf-posix2.c: Likewise.
59907         * tests/test-vasprintf-posix.c: Likewise.
59908
59909 2007-04-06  Bruno Haible  <bruno@clisp.org>
59910
59911         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59912         * lib/math_.h [__DECC]: Include the overridden include file through
59913         #include_next, outside the double-inclusion guard.
59914         * lib/stdio_.h [__DECC]: Likewise.
59915         * lib/stdlib_.h [__DECC]: Likewise.
59916         * lib/string_.h [__DECC]: Likewise.
59917         * lib/time_.h [__DECC]: Likewise.
59918         * lib/wchar_.h [__DECC]: Likewise.
59919         * lib/wctype_.h [__DECC]: Likewise.
59920         * lib/inttypes_.h [__DECC]: Likewise.
59921         Reported by Albert Chin <china@thewrittenword.com> in
59922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59923
59924 2007-04-04  Eric Blake  <ebb9@byu.net>
59925
59926         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59927         1.5.x.
59928
59929 2007-04-04  Bruno Haible  <bruno@clisp.org>
59930
59931         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59932         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59933
59934 2007-04-04  Bruno Haible  <bruno@clisp.org>
59935
59936         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59937         results for "%010a" of Infinity and NaN.
59938         * tests/test-vasprintf-posix.c (test_function): Likewise.
59939         * tests/test-snprintf-posix.h (test_function): Likewise.
59940         * tests/test-sprintf-posix.h (test_function): Likewise.
59941         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59942         * tests/test-printf-posix.h (test_function): Likewise.
59943         * tests/test-fprintf-posix.out: Update.
59944         Needed for FreeBSD 6.1.
59945
59946 2007-04-04  Bruno Haible  <bruno@clisp.org>
59947
59948         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59949         directly used by the gnulib modules nor by gnulib-tool.
59950
59951 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         * DEPENDENCIES: Give overall description of version dependency
59954         desirability.  Use more-typical names for apps.
59955         Add shell, coreutils, diffutils, grep, tar, gzip.
59956
59957 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59958
59959         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59960
59961 2007-04-04  Karl Berry  <karl@gnu.org>
59962
59963         * MODULES.html.sh (func_module): missing '.
59964
59965 2007-04-03  Bruno Haible  <bruno@clisp.org>
59966
59967         * modules/argmatch-tests (Makefile.am): New variable
59968         test_argmatch_LDADD.
59969         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59970         * modules/array-list-tests (Makefile.am): New variable
59971         test_array_list_LDADD.
59972         * modules/array-oset-tests (Makefile.am): New variable
59973         test_array_oset_LDADD.
59974         * modules/avltree-list-tests (Makefile.am): New variable
59975         test_avltree_list_LDADD.
59976         * modules/avltree-oset-tests (Makefile.am): New variable
59977         test_avltree_oset_LDADD.
59978         * modules/avltreehash-list-tests (Makefile.am): New variable
59979         test_avltreehash_list_LDADD.
59980         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59981         test_canonicalize_lgpl_LDADD.
59982         * modules/carray-list-tests (Makefile.am): New variable
59983         test_carray_list_LDADD.
59984         * modules/dirname-tests (Makefile.am): New variable
59985         test_dirname_LDADD.
59986         * modules/linked-list-tests (Makefile.am): New variable
59987         test_linked_list_LDADD.
59988         * modules/linkedhash-list-tests (Makefile.am): New variable
59989         test_linkedhash_list_LDADD.
59990         * modules/rbtree-list-tests (Makefile.am): New variable
59991         test_rbtree_list_LDADD.
59992         * modules/rbtree-oset-tests (Makefile.am): New variable
59993         test_rbtree_oset_LDADD.
59994         * modules/rbtreehash-list-tests (Makefile.am): New variable
59995         test_rbtreehash_list_LDADD.
59996         * modules/xvasprintf-tests (Makefile.am): New variable
59997         test_xvasprintf_LDADD.
59998         Reported by Eric Blake.
59999
60000 2007-04-03  Eric Blake  <ebb9@byu.net>
60001
60002         * DEPENDENCIES: Weaken m4 requirements.
60003
60004 2007-04-03  Bruno Haible  <bruno@clisp.org>
60005
60006         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60007         * modules/isnanl-tests (configure.ac): Likewise.
60008
60009 2007-04-03  Ben Pfaff  <blp@gnu.org>
60010
60011         * modules/iconv_open: Add $(srcdir)/ to source directory
60012         references in Makefile fragments that call gperf, to fix VPATH
60013         builds.
60014
60015 2007-04-03  Bruno Haible  <bruno@clisp.org>
60016
60017         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60018         * lib/ldexpl.c: Undo last change.
60019
60020 2007-04-03  Bruno Haible  <bruno@clisp.org>
60021
60022         * modules/printf-frexpl (Depends-on): Undo last change.
60023         (Files): Add m4/ldexpl.m4.
60024
60025 2007-04-03  Bruno Haible  <bruno@clisp.org>
60026
60027         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60028         * modules/isnanl (Link): New section.
60029
60030         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60031         * modules/frexp (Link): New section.
60032
60033         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60034         * modules/frexpl (Link): New section.
60035
60036         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60037         * modules/ldexpl (Link): New section.
60038
60039 2007-04-03  Bruno Haible  <bruno@clisp.org>
60040
60041         * modules/TEMPLATE-EXTENDED: New file.
60042         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60043
60044 2007-04-03  Bruno Haible  <bruno@clisp.org>
60045
60046         * DEPENDENCIES: New file.
60047         Suggested by Simon Josefsson.
60048
60049 2007-04-03  Bruno Haible  <bruno@clisp.org>
60050
60051         * doc/gnulib.texi: Escape @.
60052
60053 2007-04-03  James Youngman  <jay@gnu.org>
60054         and Paul Eggert  <eggert@cs.ucla.edu>
60055
60056         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60057         birthtime on all systems that have birthtime, not just those which
60058         use st_birthtimensec rather than st_birthtim.  Putting zero in
60059         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60060         that the birth time is not available for files on an NFS mount.
60061
60062 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60063
60064         * modules/memxor: Move back from crypto/, suggested by Bruno.
60065         * modules/crypto/hmac-sha1: Fix memxor dependency.
60066
60067         * modules/crypto/gc: Moved from ../.
60068
60069 2007-04-02  Eric Blake  <ebb9@byu.net>
60070
60071         * lib/ldexpl.c (includes): Avoid libm.
60072
60073         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60074
60075 2007-04-02  Bruno Haible  <bruno@clisp.org>
60076
60077         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60078         on IRIX.
60079
60080 2007-04-02  Bruno Haible  <bruno@clisp.org>
60081
60082         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60083         x86 or x86_64 platforms running MacOS X.
60084         Reported by Ryan Schmidt <@ryandesign.com>.
60085
60086 2007-04-02  Bruno Haible  <bruno@clisp.org>
60087
60088         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60089         i386.
60090
60091 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60092
60093         * modules/crypto/arcfour: Moved from ../.
60094         * modules/crypto/arcfour-tests: Moved from ../.
60095         * modules/crypto/arctwo: Moved from ../.
60096         * modules/crypto/arctwo-tests: Moved from ../.
60097         * modules/crypto/des: Moved from ../.
60098         * modules/crypto/des-tests: Moved from ../.
60099         * modules/crypto/gc-arcfour: Moved from ../.
60100         * modules/crypto/gc-arcfour-tests: Moved from ../.
60101         * modules/crypto/gc-arctwo: Moved from ../.
60102         * modules/crypto/gc-arctwo-tests: Moved from ../.
60103         * modules/crypto/gc-des: Moved from ../.
60104         * modules/crypto/gc-des-tests: Moved from ../.
60105         * modules/crypto/gc-hmac-md5: Moved from ../.
60106         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60107         * modules/crypto/gc-hmac-sha1: Moved from ../.
60108         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60109         * modules/crypto/gc-md2: Moved from ../.
60110         * modules/crypto/gc-md2-tests: Moved from ../.
60111         * modules/crypto/gc-md4: Moved from ../.
60112         * modules/crypto/gc-md4-tests: Moved from ../.
60113         * modules/crypto/gc-md5: Moved from ../.
60114         * modules/crypto/gc-md5-tests: Moved from ../.
60115         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60116         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60117         * modules/crypto/gc-random: Moved from ../.
60118         * modules/crypto/gc-rijndael: Moved from ../.
60119         * modules/crypto/gc-rijndael-tests: Moved from ../.
60120         * modules/crypto/gc-sha1: Moved from ../.
60121         * modules/crypto/gc-sha1-tests: Moved from ../.
60122         * modules/crypto/gc-tests: Moved from ../.
60123         * modules/crypto/hmac-md5: Moved from ../.
60124         * modules/crypto/hmac-md5-tests: Moved from ../.
60125         * modules/crypto/hmac-sha1: Moved from ../.
60126         * modules/crypto/hmac-sha1-tests: Moved from ../.
60127         * modules/crypto/md2: Moved from ../.
60128         * modules/crypto/md2-tests: Moved from ../.
60129         * modules/crypto/md4: Moved from ../.
60130         * modules/crypto/md4-tests: Moved from ../.
60131         * modules/crypto/md5: Moved from ../.
60132         * modules/crypto/md5-tests: Moved from ../.
60133         * modules/crypto/memxor: Moved from ../.
60134         * modules/crypto/rijndael: Moved from ../.
60135         * modules/crypto/rijndael-tests: Moved from ../.
60136         * modules/crypto/sha1: Moved from ../.
60137
60138 2007-03-30  James Youngman  <jay@gnu.org>
60139
60140         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60141         rename() to change the ctime of a file (because ctime is unaffected
60142         by rename on jfs2 on AIX 5.1).
60143         (main): Start by doing cleanup, in case a previous run failed leaving
60144         test files behind.
60145
60146 2007-03-31  Bruno Haible  <bruno@clisp.org>
60147
60148         Support old proprietary implementations of iconv.
60149         * modules/iconv_open: New file.
60150         * lib/iconv_.h: New file.
60151         * m4/iconv_h.m4: New file.
60152         * lib/iconv_open.c: New file.
60153         * lib/iconv_open-aix.gperf: New file.
60154         * lib/iconv_open-hpux.gperf: New file.
60155         * lib/iconv_open-irix.gperf: New file.
60156         * lib/iconv_open-osf.gperf: New file.
60157         * m4/iconv_open.m4: New file.
60158         * modules/linebreak (Depends-on): Add iconv_open.
60159         * modules/striconv (Depends-on): Likewise.
60160         * modules/striconveh (Depends-on): Likewise.
60161         * modules/unicodeio (Depends-on): Likewise.
60162         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60163         (iconv_t)(-1).
60164         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60165         conversion if cd is (iconv_t)(-1).
60166         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60167         is not possible.
60168
60169 2007-03-31  Bruno Haible  <bruno@clisp.org>
60170
60171         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60172         work on Solaris either. Protect also second use of "autodetect_jp".
60173
60174 2007-03-31  Bruno Haible  <bruno@clisp.org>
60175
60176         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60177         the function is not present.
60178
60179 2007-03-31  Bruno Haible  <bruno@clisp.org>
60180
60181         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60182         the function is not present.
60183
60184 2007-03-31  Bruno Haible  <bruno@clisp.org>
60185
60186         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60187         a bug in HP-UX iconv_open().
60188
60189 2007-03-31  Bruno Haible  <bruno@clisp.org>
60190
60191         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60192         (Mathematics <math.h>): New section, add fpieee.
60193         (Input/output <stdio.h>): Add fseterr.
60194         (Mathematics <math.h>): New section, add printf-frexp.
60195         (Container data structures): Add sublist.
60196         (Core language properties): Add fpucw, inline.
60197         (Functions for greatest-width integer types <inttypes.h>): Add
60198         imaxabs, imaxdiv, inttypes.
60199         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60200         isnanl-nolibm, ldexp.
60201         (Mathematics <math.h>): New section, add printf-frexpl.
60202         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60203         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60204         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60205         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60206         (Unicode string functions): Add unistr/u*-mbtoucr.
60207         (Java): Add javacomp-script, javaexec-script.
60208         (C#): Add csharpcomp-script, csharpexec-script.
60209         (Support for building libraries and executables): Add havelib,
60210         relocatable-*.
60211         (Support for maintaining and releasing projects): Renamed from
60212         'Support for maintaining and release projects'. Add announce-gen.
60213
60214 2007-03-31  Bruno Haible  <bruno@clisp.org>
60215
60216         * README: Talk primarily about git.
60217         (git and CVS): Renamed from CVS.
60218         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60219         gnulib is available through git.
60220         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60221
60222 2007-03-30  Bruno Haible  <bruno@clisp.org>
60223
60224         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60225         * lib/poll_.h: Likewise.
60226         * lib/stat_.h: Likewise.
60227         * lib/sys_time_.h: Likewise.
60228         * lib/sysexit_.h: Likewise.
60229         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60230         * lib/stdbool_.h: Likewise.
60231         * lib/byteswap_.h: Add double-inclusion guard.
60232
60233 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60234
60235         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60236
60237 2007-03-30  Karl Berry  <karl@gnu.org>
60238
60239         * config/srclist-update: double space after USA in the license
60240         substitution, since that's how it's usually (?) written.
60241
60242 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60245         reported by Bruno Haible.
60246
60247 2007-03-29  Bruno Haible  <bruno@clisp.org>
60248
60249         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60250         a bug in AIX iconv().
60251
60252 2007-03-29  Bruno Haible  <bruno@clisp.org>
60253
60254         * modules/ldexpl-tests: New file.
60255         * tests/test-ldexpl.c: New file.
60256
60257 2007-03-29  Bruno Haible  <bruno@clisp.org>
60258
60259         * lib/ldexpl.c: Include fpucw.h.
60260         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60261         multiplication.
60262         * modules/ldexpl (Depends-on): Add fpucw.
60263
60264 2007-03-29  Bruno Haible  <bruno@clisp.org>
60265
60266         * modules/ldexpl: New file.
60267         * m4/ldexpl.m4: New file.
60268         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60269         set.
60270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60271         REPLACE_LDEXPL.
60272         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60273         REPLACE_LDEXPL.
60274         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60275         gl_FUNC_LDEXPL_WORKS.
60276         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60277         * modules/mathl (Files): Remove lib/ldexpl.c.
60278         (Depends-on): Add ldexpl.
60279
60280 2007-03-29  Bruno Haible  <bruno@clisp.org>
60281
60282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60283
60284 2007-03-29  Bruno Haible  <bruno@clisp.org>
60285
60286         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60287         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60288         and possibly also HP-UX.
60289         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60290         work on AIX, IRIX, HP-UX, OSF/1.
60291         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60292         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60293         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60294         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60295         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60296         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60297
60298 2007-03-29  Bruno Haible  <bruno@clisp.org>
60299
60300         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60301
60302 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60303
60304         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60305         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60306
60307 2007-03-29  Eric Blake  <ebb9@byu.net>
60308
60309         * lib/acl-internal.h: Remove redundant include.
60310         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60311         Cygwin when a file is locked.
60312
60313 2007-03-29  Bruno Haible  <bruno@clisp.org>
60314
60315         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60316         file.
60317         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60318
60319 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60320
60321         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60322         try to remove a parent directory if the child couldn't be removed
60323         (except for the first rmdir, which could fail because the child
60324         doesn't exist).  Problem reported by Jeff Blaine in
60325         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60326
60327 2007-03-28  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/striconveh.c (utf8conv_carefully): New function.
60330         (mem_cd_iconveh_internal): Invoke it.
60331
60332 2007-03-28  Bruno Haible  <bruno@clisp.org>
60333
60334         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60335         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60336         input.
60337         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60338         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60339         unistr/u8-uctomb.
60340
60341 2007-03-28  Bruno Haible  <bruno@clisp.org>
60342
60343         * modules/unistr/u8-mbtoucr: New file.
60344         * lib/unistr/u8-mbtoucr.c: New file.
60345         * modules/unistr/u16-mbtoucr: New file.
60346         * lib/unistr/u16-mbtoucr.c: New file.
60347         * modules/unistr/u16-mbtoucr: New file.
60348         * lib/unistr/u16-mbtoucr.c: New file.
60349         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60350
60351 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60352             Bruno Haible  <bruno@clisp.org>
60353
60354         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60355         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60356         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60357
60358         * m4/stdio_h.m4: Add stubs for vasprintf too.
60359
60360         * modules/stdio: Support vasprintf in sed command.
60361
60362         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60363         vasprintf.h.  Add stdio module indicator.
60364
60365         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60366         vasprintf.h.
60367
60368         * lib/vasprintf.h: File removed.
60369
60370         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60371         * lib/vasprintf.c: Ditto.
60372         * lib/xvasprintf.c: Ditto.
60373         * tests/test-vasprintf-posix.c: Ditto.
60374         * tests/test-vasprintf.c: Ditto.
60375
60376 2007-03-27  Bruno Haible  <bruno@clisp.org>
60377
60378         Make vasnprintf multithread-safe.
60379         * lib/vasnprintf.c (decimal_point_char): New function.
60380         (VASNPRINTF): Use it.
60381         Suggested by Simon Josefsson.
60382
60383 2007-03-27  Eric Blake  <ebb9@byu.net>
60384
60385         Support sub-second birthtime on cygwin.
60386         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60387         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60388         (get_stat_birthtime): Also work with st_birthtim.
60389
60390 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60393         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60394         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60395         (get_stat_birthtime_ns): Simplify compile-time tests.
60396         (get_stat_birthtime): Change the API to look like
60397         get_stat_mtime etc., except return a negative tv_nsec on error.
60398         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60399         Don't check for "spare" fields.
60400         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60401         or for struct stat.st_birthtime, as these tests aren't used.
60402         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60403
60404 2007-03-27  Bruno Haible  <bruno@clisp.org>
60405
60406         * lib/stat-time.h: Include <sys/stat.h>.
60407
60408 2007-03-27  James Youngman  <jay@gnu.org>
60409
60410         * lib/stat-time.h (get_stat_birthtime): New function for
60411           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60412         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60413           and its variants.
60414         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60415         * modules/stat-time-test: New file.
60416         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60417
60418 2007-03-26  Bruno Haible  <bruno@clisp.org>
60419
60420         Better support of signalling NaNs.
60421         * lib/atanl.c: Include isnanl.h.
60422         (atanl): Perform test for NaN at the beginning of the function and
60423         through a call to isnanl.
60424         * lib/cosl.c: Include isnanl.h.
60425         (cosl): Perform test for NaN at the beginning of the function and
60426         through a call to isnanl.
60427         * lib/ldexpl.c: Include isnanl.h.
60428         (ldexpl): Perform test for NaN through a call to isnanl.
60429         * lib/logl.c: Include isnanl.h.
60430         (logl): Perform test for NaN at the beginning of the function and
60431         through a call to isnanl.
60432         * lib/sinl.c: Include isnanl.h.
60433         (sinl): Perform test for NaN at the beginning of the function and
60434         through a call to isnanl.
60435         * lib/sqrtl.c: Include isnanl.h.
60436         (sqrtl): Perform test for NaN at the beginning of the function and
60437         through a call to isnanl.
60438         * lib/tanl.c: Include isnanl.h.
60439         (tanl): Perform test for NaN at the beginning of the function and
60440         through a call to isnanl.
60441         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60442         * modules/mathl (Depends-on): Add isnanl.
60443
60444 2007-03-26  Eric Blake  <ebb9@byu.net>
60445
60446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60447         regression in logic sense of previous patch.
60448
60449 2007-03-26  Bruno Haible  <bruno@clisp.org>
60450
60451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60452         unportable shell command "if ! ...".
60453         Reported by Ralf Wildenhues.
60454
60455 2007-03-25  Bruno Haible  <bruno@clisp.org>
60456
60457         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60458         <sysexits.h> file, and only add EX_CONFIG.
60459         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60460         absolute file name and whether it is sufficient. Substitute also
60461         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60462         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60463         ABSOLUTE_SYSEXITS_H into sysexits.h.
60464
60465 2007-03-25  Bruno Haible  <bruno@clisp.org>
60466
60467         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60468         hints is NULL.
60469
60470 2007-03-25  Bruno Haible  <bruno@clisp.org>
60471
60472         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60473         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60474
60475 2007-03-25  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/vasnprintf.c: Include langinfo.h.
60478         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60479         multithread-safe.
60480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60481         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60483         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60484         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60486         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60487         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60488         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60489         Reported by Simon Josefsson.
60490
60491 2007-03-25  Bruno Haible  <bruno@clisp.org>
60492
60493         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60494         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60495         * modules/vasnprintf (Depends-on): Add stdint.
60496
60497 2007-03-25  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/fpieee: New file.
60500         * m4/fpieee.m4: New file.
60501         * modules/isnan-nolibm (Depends-on): Add fpieee.
60502         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60503         * modules/isnanl (Depends-on): Add fpieee.
60504
60505 2007-03-25  Bruno Haible  <bruno@clisp.org>
60506
60507         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60508
60509 2007-03-25  Bruno Haible  <bruno@clisp.org>
60510
60511         Avoid test failures on IRIX 6.5.
60512         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60513         (main): Use it.
60514         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60515         macros.
60516         (main): Use them.
60517
60518 2007-03-25  Bruno Haible  <bruno@clisp.org>
60519
60520         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60521         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60522         exists but doesn't work.
60523         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60524         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60526         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60527         math.h.
60528
60529 2007-03-25  Bruno Haible  <bruno@clisp.org>
60530
60531         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60532         returns inf. Needed on IRIX 6.5.
60533
60534 2007-03-25  Bruno Haible  <bruno@clisp.org>
60535
60536         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60537         (main): Use isnanl instead of x != x idiom.
60538         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60539
60540         * tests/test-frexp.c: Include isnan.h.
60541         (main): Use isnan instead of x != x idiom.
60542         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60543
60544 2007-03-25  Bruno Haible  <bruno@clisp.org>
60545
60546         * tests/test-frexp.c (NaN): New function/macro.
60547         (main): Use it instead of 0.0 / 0.0.
60548         * tests/test-isnan.c (NaN): New function/macro.
60549         (main): Use it instead of 0.0 / 0.0.
60550         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60551         (test_function): Use it instead of 0.0 / 0.0.
60552         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60553         (test_function): Use it instead of 0.0 / 0.0.
60554         * tests/test-snprintf-posix.h (NaN): New function/macro.
60555         (test_function): Use it instead of 0.0 / 0.0.
60556         * tests/test-sprintf-posix.h (NaN): New function/macro.
60557         (test_function): Use it instead of 0.0 / 0.0.
60558         * tests/test-fprintf-posix.h (NaN): New function/macro.
60559         (test_function): Use it instead of 0.0 / 0.0.
60560         * tests/test-printf-posix.h (NaN): New function/macro.
60561         (test_function): Use it instead of 0.0 / 0.0.
60562
60563         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60564
60565 2007-03-25  Bruno Haible  <bruno@clisp.org>
60566
60567         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60568
60569 2007-03-25  Bruno Haible  <bruno@clisp.org>
60570
60571         * lib/regexec.c (merge_state_with_log): Make static.
60572
60573 2007-03-25  Bruno Haible  <bruno@clisp.org>
60574
60575         * lib/trigl.c (kernel_rem_pio2): Make static.
60576
60577 2007-03-25  Bruno Haible  <bruno@clisp.org>
60578
60579         * lib/sincosl.c (sincosl_table): Make static.
60580
60581 2007-03-25  Bruno Haible  <bruno@clisp.org>
60582
60583         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60584         if the compiler does not support C99.
60585
60586 2007-03-25  Bruno Haible  <bruno@clisp.org>
60587
60588         * modules/time (Makefile.am): Ensure all rule action lines start with a
60589         tab.
60590
60591 2007-03-24  Bruno Haible  <bruno@clisp.org>
60592
60593         * modules/tsearch-tests: New file.
60594         * tests/test-tsearch.sh: New file.
60595         * tests/test-tsearch.c: New file, mostly copied from glibc.
60596
60597         * modules/search-tests: New file.
60598         * tests/test-search.c: New file.
60599
60600         * modules/search: New file.
60601         * lib/search_.h: New file, incorporating lib/tsearch.h.
60602         * m4/search_h.m4: New file.
60603         * lib/tsearch.h: Remove file.
60604         * lib/tsearch.c: Include search.h instead of tsearch.h.
60605         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60606         HAVE_TSEARCH.
60607         * modules/tsearch (Files): Remove lib/tsearch.h.
60608         (Depends-on): Add search.
60609         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60610         (Include): Change tsearch.h into search.h.
60611
60612 2007-03-24  Bruno Haible  <bruno@clisp.org>
60613
60614         * modules/fpucw: New file.
60615         * lib/fpucw.h: New file.
60616         * lib/frexp.c: Include fpucw.h.
60617         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60618         (FUNC): Use them.
60619         * lib/printf-frexp.c: Include fpucw.h.
60620         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60621         (FUNC): Use them.
60622         * lib/vasnprintf.c: Include fpucw.h.
60623         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60624         'long double' calculations.
60625         * tests/test-frexpl.c: Include fpucw.h.
60626         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60627         * tests/test-printf-frexpl.c: Include fpucw.h.
60628         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60629         * modules/frexpl (Depends-on): Add fpucw.
60630         * modules/printf-frexpl (Depends-on): Likewise.
60631         * modules/fprintf-posix (Depends-on): Likewise.
60632         * modules/snprintf-posix (Depends-on): Likewise.
60633         * modules/sprintf-posix (Depends-on): Likewise.
60634         * modules/vasnprintf-posix (Depends-on): Likewise.
60635         * modules/vasprintf-posix (Depends-on): Likewise.
60636         * modules/vfprintf-posix (Depends-on): Likewise.
60637         * modules/vsnprintf-posix (Depends-on): Likewise.
60638         * modules/vsprintf-posix (Depends-on): Likewise.
60639         * modules/frexpl-tests (Depends-on): Likewise.
60640         * modules/printf-frexpl-tests (Depends-on): Likewise.
60641
60642 2007-03-24  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/float+.h: New file.
60645         * lib/isnan.c: Include float+.h.
60646         (SIZE): New macro.
60647         (FUNC): Compare only SIZE bytes of the value.
60648         * lib/vasnprintf.c: Include float+.h.
60649         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60650         SIZEOF_LDBL or SIZEOF_DBL bytes.
60651         * modules/isnan-nolibm (Files): Add lib/float+.h.
60652         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60653         * modules/isnanl (Files): Add lib/float+.h.
60654         * modules/vasnprintf (Files): Add lib/float+.h.
60655
60656 2007-03-24  Bruno Haible  <bruno@clisp.org>
60657
60658         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60659         include isnanl-nolibm.h.
60660
60661 2007-03-24  Bruno Haible  <bruno@clisp.org>
60662
60663         * tests/test-read-file.c (main): Don't produce spurious output for
60664         expected situations. Make the test fail if it encountered unexpected
60665         results.
60666
60667 2007-03-24  Bruno Haible  <bruno@clisp.org>
60668
60669         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60670         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60671
60672 2007-03-24  Bruno Haible  <bruno@clisp.org>
60673
60674         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60675
60676 2007-03-24  Bruno Haible  <bruno@clisp.org>
60677
60678         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60679         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60680
60681         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60682         * modules/utf8-ucs4: Turn into a symbolic link to module
60683         unistr/u8-mbtouc.
60684
60685         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60686         utf8-ucs4-unsafe.
60687         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60688         unistr/u8-mbtouc-unsafe.
60689
60690         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60691         * modules/utf16-ucs4: Turn into a symbolic link to module
60692         unistr/u16-mbtouc.
60693
60694         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60695         utf16-ucs4-unsafe.
60696         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60697         unistr/u16-mbtouc-unsafe.
60698
60699         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60700         * modules/ucs4-utf8: Turn into a symbolic link to module
60701         unistr/u8-ubtomb.
60702
60703         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60704         * modules/ucs4-utf16: Turn into a symbolic link to module
60705         unistr/u16-ubtomb.
60706
60707 2007-03-24  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60710         Enable the function only if HAVE_INLINE.
60711         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60712         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60713         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60714         Enable the function only if HAVE_INLINE.
60715         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60716         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60717         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60718         Enable the function only if HAVE_INLINE.
60719         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60720         Enable the function only if HAVE_INLINE.
60721         * modules/utf8-ucs4: Update.
60722         * modules/utf8-ucs4-unsafe: Update.
60723         * modules/utf16-ucs4: Update.
60724         * modules/utf16-ucs4-unsafe: Update.
60725         * modules/ucs4-utf8: Update.
60726         * modules/ucs4-utf16: Update.
60727
60728 2007-03-24  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/utf8-ucs4.h: Remove file.
60731         * lib/utf8-ucs4-unsafe.h: Remove file.
60732         * lib/utf16-ucs4.h: Remove file.
60733         * lib/utf16-ucs4-unsafe.h: Remove file.
60734         * lib/ucs4-utf8.h: Remove file.
60735         * lib/ucs4-utf16.h: Remove file.
60736         * lib/unistr.h: Include their previous contents.
60737         * m4/utf-ucs4.m4: Remove file.
60738         * m4/ucs4-utf.m4: Remove file.
60739         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60740         (Depends-on): Add unistr/base.
60741         (configure.ac): Remove gl_UTF_UCS4.
60742         (Makefile.am): Update.
60743         (Include): Change to unistr.h.
60744         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60745         (Depends-on): Add unistr/base.
60746         (configure.ac): Remove gl_UTF_UCS4.
60747         (Makefile.am): Update.
60748         (Include): Change to unistr.h.
60749         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60750         (Depends-on): Add unistr/base.
60751         (configure.ac): Remove gl_UTF_UCS4.
60752         (Makefile.am): Update.
60753         (Include): Change to unistr.h.
60754         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60755         (Depends-on): Add unistr/base.
60756         (configure.ac): Remove gl_UTF_UCS4.
60757         (Makefile.am): Update.
60758         (Include): Change to unistr.h.
60759         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60760         (Depends-on): Add unistr/base.
60761         (configure.ac): Remove gl_UCS4_UTF.
60762         (Makefile.am): Update.
60763         (Include): Change to unistr.h.
60764         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60765         (Depends-on): Add unistr/base.
60766         (configure.ac): Remove gl_UCS4_UTF.
60767         (Makefile.am): Update.
60768         (Include): Change to unistr.h.
60769         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60770         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60771         utf8-ucs4-unsafe.h.
60772         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60773         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60774         utf16-ucs4-unsafe.h.
60775         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60776         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60777         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60778         * lib/unistr/u8-strchr.c: Likewise.
60779         * lib/unistr/u8-strrchr.c: Likewise.
60780         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60781         * lib/unistr/u16-strchr.c: Likewise.
60782         * lib/unistr/u16-strrchr.c: Likewise.
60783         * lib/striconveh.c: Update.
60784         * lib/linebreak.c: Update.
60785
60786 2007-03-24  Bruno Haible  <bruno@clisp.org>
60787
60788         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60789         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60790
60791 2007-03-22  Bruno Haible  <bruno@clisp.org>
60792
60793         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60794
60795 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * MODULES.html.sh (File system functions): New module write-any-file.
60798         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60799         * m4/write-any-file.m4: New files.
60800
60801 2007-03-23  Eric Blake  <ebb9@byu.net>
60802
60803         * gnulib-tool: Rearrange space-tab sequences, since some editors
60804         like to eat them.
60805
60806 2007-03-23  Eric Blake  <ebb9@byu.net>
60807
60808         * lib/version-etc.c (version_etc_va): Update license wording to
60809         be more concise.  Recommended by Richard Stallman.
60810
60811 2007-03-22  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/poll.c (MSG_PEEK): New fallback definition.
60814
60815 2007-03-22  Bruno Haible  <bruno@clisp.org>
60816
60817         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60818         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60819         (main): Update.
60820         Fixes a compilation error on BeOS.
60821
60822 2007-03-22  Bruno Haible  <bruno@clisp.org>
60823
60824         * modules/frexpl-tests: New file.
60825         * tests/test-frexpl.c: New file.
60826
60827         * modules/frexpl: New file.
60828         * m4/frexpl.m4: New file.
60829         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60830         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60832         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60833         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60834         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60835
60836 2007-03-22  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/frexpl.c: Share code with lib/frexp.c.
60839         * modules/mathl (Files): Add lib/frexp.c.
60840         (Depends-on): Add isnanl-nolibm.
60841
60842 2007-03-22  Bruno Haible  <bruno@clisp.org>
60843
60844         * modules/printf-frexp (Files): Add m4/frexp.m4.
60845         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60846         only if the found frexp function actually works.
60847
60848 2007-03-22  Bruno Haible  <bruno@clisp.org>
60849
60850         * lib/frexp.c: Remove older implementation that uses divisions.
60851
60852 2007-03-21  Bruno Haible  <bruno@clisp.org>
60853
60854         * modules/frexp-tests: New file.
60855         * tests/test-frexp.c: New file.
60856
60857         * modules/frexp: New file.
60858         * lib/frexp.c: New file.
60859         * m4/frexp.m4: New file.
60860         * lib/math_.h (frexp): New declaration.
60861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60862         REPLACE_FREXP.
60863         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60864
60865 2007-03-21  Bruno Haible  <bruno@clisp.org>
60866
60867         * modules/isnanl-tests: New file.
60868         * tests/test-isnanl.c: New file.
60869
60870         * modules/isnanl: New file.
60871         * lib/isnanl.h: New file.
60872         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60873         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60874         gl_FUNC_ISNANL_WORKS.
60875         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60876         New macros.
60877
60878 2007-03-21  Bruno Haible  <bruno@clisp.org>
60879
60880         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60881         lib/isnanl.h.
60882         (Include): Update.
60883         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60884         * lib/vasnprintf.c: Update.
60885         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60886         tests/test-isnanl.h, remove tests/test-isnanl.c.
60887         (Makefile.am): Update.
60888         * tests/test-isnanl-nolibm.c: New file.
60889         * tests/test-isnanl.h: New file.
60890         * tests/test-isnanl.c: Remove file.
60891
60892 2007-03-21  Jim Meyering  <jim@meyering.net>
60893
60894         When trying to open ".", treat ESTALE like EACCES.
60895         * lib/savewd.c (savewd_save): Resort to forking not just upon
60896         failure with EACCES, but also when errno is ESTALE.
60897
60898 2007-03-20  Bruno Haible  <bruno@clisp.org>
60899
60900         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60901         Needed on AIX 5.1. Reported by Matthew Woehlke.
60902
60903 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60904
60905         Suggestions by Bruno Haible:
60906         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60907         our own.
60908         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60909         * modules/acl (Depends-on): Add gettext.
60910
60911 2007-03-19  Bruno Haible  <bruno@clisp.org>
60912
60913         * modules/iconvme: Remove file.
60914         * lib/iconvme.h: Remove file.
60915         * lib/iconvme.c: Remove file.
60916         * m4/iconvme.m4: Remove file.
60917
60918 2007-03-19  Bruno Haible  <bruno@clisp.org>
60919
60920         * doc/relocatable-maint.texi: Break long shell script line.
60921         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60922
60923 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60926         handle file_has_acl.
60927         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60928         * lib/acl.c: Move header inclusions and related macro defns into
60929         lib/acl-internal.h.
60930         (S_ISLNK): Remove defn, since that's now done for us.
60931         (file_has_acl): Move to lib/file-has-acl.c.
60932         Call acl_trivial if available.  This is the crucial part of the fix.
60933         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60934         shared within the library.  Rewrite a bit, partly to make it compatible
60935         with the GNU coding style.
60936         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60937         Remove unnecessary double-quotes.
60938         Don't test for acl_to_text; the build will catch that.
60939         Replace acl_entries if it doesn't exist and it is needed.
60940         Check for -lsec and acl_trivial (as used on Solaris 10).
60941         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60942         lib/file-has-acl.c.
60943         (Depends-on): Add sys_stat, for S_ISLNK.
60944
60945 2007-03-19  Ben Pfaff  <blp@gnu.org>
60946
60947         * doc/gnulib.texi: Fix typos.
60948         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60949
60950 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60953         If size is zero here, buf must be zero.
60954
60955 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60956
60957         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60958         <bruno@clisp.org>.
60959
60960 2007-03-18  Bruno Haible  <bruno@clisp.org>
60961
60962         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60963         Suggested by Eric Blake.
60964
60965 2007-03-18  Ben Pfaff  <blp@gnu.org>
60966
60967         * doc/relocatable.texi: Recommend using as prefix a directory
60968         that does not exist and will never be created.  Based on
60969         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60970         and others.
60971
60972 2007-03-17  Bruno Haible  <bruno@clisp.org>
60973
60974         * lib/fchownat.c: Include lchown.h.
60975
60976 2007-03-17  Bruno Haible  <bruno@clisp.org>
60977
60978         Fix endless loop when the given allocated size was > INT_MAX.
60979         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60980         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60981         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60982         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60983         * lib/sprintf.c (sprintf): Likewise.
60984
60985 2007-03-17  Bruno Haible  <bruno@clisp.org>
60986
60987         * tests/test-argp-2.sh (func_compare): Output a context diff.
60988
60989 2007-03-17  Bruno Haible  <bruno@clisp.org>
60990
60991         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60992         locale's decimal-point character.
60993
60994 2007-03-17  Bruno Haible  <bruno@clisp.org>
60995
60996         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60997         before comparing it. Needed because on some platforms (e.g. x86) a
60998         'long double' occupies less bytes than sizeof (long double).
60999
61000 2007-03-17  Bruno Haible  <bruno@clisp.org>
61001
61002         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61003         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61004         * tests/test-getaddrinfo.c (simple): Likewise.
61005         * tests/test-read-file.c (main): Likewise.
61006
61007 2007-03-17  Bruno Haible  <bruno@clisp.org>
61008
61009         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61010
61011 2007-03-17  Bruno Haible  <bruno@clisp.org>
61012
61013         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61014         unused variable.
61015
61016 2007-03-17  Bruno Haible  <bruno@clisp.org>
61017
61018         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61019         * tests/test-c-strncasecmp.c: Likewise.
61020
61021 2007-03-17  Bruno Haible  <bruno@clisp.org>
61022
61023         * modules/stdlib (Depends-on): Add unistd.
61024         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61025         Needed for MacOS X 10.3.
61026
61027 2007-03-17  Bruno Haible  <bruno@clisp.org>
61028
61029         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61030
61031 2007-03-17  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61034
61035 2007-03-17  Bruno Haible  <bruno@clisp.org>
61036
61037         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61038         to reflect files copied from gnulib (with or without modifications).
61039         Suggested by Jim Meyering.
61040
61041 2007-03-17  Eric Blake  <ebb9@byu.net>
61042
61043         * NEWS: Document stdlib change from 2007-02-18.
61044
61045 2007-03-17  Jim Meyering  <jim@meyering.net>
61046
61047         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61048         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61049         someone uses a name containing shell meta-characters.
61050         Reported by Alfred M. Szmidt.
61051
61052         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61053
61054 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61055
61056         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61057         and copy gettext configuration files only if configure.ac contains
61058         a use of AM_GNU_GETTEXT_VERSION.
61059
61060 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61061
61062         * build-aux/bootstrap (gnulib_name): New variable.
61063         (gnulib_tool_options): Use it.
61064
61065 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61066
61067         * tests/test-des.c: Use new namespace.
61068
61069 2007-03-15  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61072         Reported by James Youngman <jay@gnu.org>.
61073
61074 2007-03-15  Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61077         declared prototype. Needed with cc on OSF/1 5.1.
61078
61079 2007-03-15  Bruno Haible  <bruno@clisp.org>
61080
61081         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61082         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61083         (struct gl_list_implementation): Add dispose_fn argument to the
61084         'create_empty', 'create' methods.
61085         (struct gl_list_impl_base): Add field 'dispose_fn'.
61086         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61087         argument.
61088         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61089         dispose_fn argument.
61090         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61091         dispose_fn on the dropped values.
61092         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61093         dispose_fn argument.
61094         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61095         dropped values.
61096         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61097         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61098         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61099         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61100         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61101         argument.
61102         (gl_tree_list_free): Call dispose_fn on the dropped values.
61103         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61104         the dropped values.
61105         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61106         Add dispose_fn argument.
61107         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61108         Call dispose_fn on the dropped values.
61109         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61110         Add dispose_fn argument.
61111         (gl_sublist_create): Initialize the 'dispose_fn' field.
61112         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61113         * tests/test-array_list.c (main): Update.
61114         * tests/test-carray_list.c (main): Update.
61115         * tests/test-avltree_list.c (main): Update.
61116         * tests/test-rbtree_list.c (main): Update.
61117         * tests/test-avltreehash_list.c (main): Update.
61118         * tests/test-rbtreehash_list.c (main): Update.
61119         * tests/test-linked_list.c (main): Update.
61120         * tests/test-linkedhash_list.c (main): Update.
61121         * tests/test-array_oset.c (main): Update.
61122
61123 2007-03-15  Bruno Haible  <bruno@clisp.org>
61124
61125         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61126         (gl_oset_create_empty): Add dispose_fn argument.
61127         (struct gl_oset_implementation): Add dispose_fn argument to
61128         'create_empty' method.
61129         (struct gl_oset_impl_base): Add dispose_fn field.
61130         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61131         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61132         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61133         values.
61134         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61135         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61136         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61137         dropped value.
61138         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61139         dropped value.
61140         * tests/test-array_oset.c (main): Update.
61141         * tests/test-avltree_oset.c (main): Update.
61142         * tests/test-rbtree_oset.c (main): Update.
61143         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61144
61145 2007-03-13  Bruno Haible  <bruno@clisp.org>
61146
61147         * tests/test-stdbool.c (i): Update after last patch.
61148
61149 2007-03-12  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61152         the iswprint macro. Needed on Solaris 2.5.1.
61153
61154 2007-03-12  Bruno Haible  <bruno@clisp.org>
61155
61156         * tests/test-printf-frexp.c (main): Declare x as volatile.
61157
61158 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61159
61160         * doc/gnulib.texi (Build robot for gnulib): New section.
61161
61162 2007-03-12  Jim Meyering  <jim@meyering.net>
61163
61164         * build-aux/bootstrap: New file.
61165         * build-aux/bootstrap.conf: New file, from coreutils.
61166
61167 2007-03-11  Bruno Haible  <bruno@clisp.org>
61168
61169         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61170
61171 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61172
61173         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61174         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61175         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61176
61177 2007-03-11  Bruno Haible  <bruno@clisp.org>
61178
61179         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61180         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61181
61182 2007-03-11  Bruno Haible  <bruno@clisp.org>
61183
61184         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61185         formula. Needed for SunPRO C 5.0.
61186
61187 2007-03-11  Bruno Haible  <bruno@clisp.org>
61188
61189         * modules/long-options (Depends-on): Add getopt.
61190
61191 2007-03-11  Bruno Haible  <bruno@clisp.org>
61192
61193         * modules/modechange (Depends-on): Add stdbool.
61194
61195 2007-03-11  Bruno Haible  <bruno@clisp.org>
61196
61197         * modules/i-ring (Depends-on): Add stdbool.
61198
61199 2007-03-11  Bruno Haible  <bruno@clisp.org>
61200
61201         * modules/gc-des (Depends-on): Add stdbool.
61202
61203 2007-03-11  Bruno Haible  <bruno@clisp.org>
61204
61205         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61206
61207 2007-03-11  Bruno Haible  <bruno@clisp.org>
61208
61209         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61210
61211 2007-03-11  Bruno Haible  <bruno@clisp.org>
61212
61213         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61214
61215 2007-03-11  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/vasnprintf.c (sprintf): Undefine.
61218
61219 2007-03-11  Bruno Haible  <bruno@clisp.org>
61220
61221         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61222         initializers in SunPRO C and Compaq C compilers.
61223
61224 2007-03-11  Bruno Haible  <bruno@clisp.org>
61225
61226         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61227         decrementing code ANSI C compliant.
61228
61229 2007-03-11  Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61232         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61233
61234 2007-03-11  Bruno Haible  <bruno@clisp.org>
61235
61236         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61237         <stdbool.h> substitute doesn't pass.
61238
61239 2007-03-11  Bruno Haible  <bruno@clisp.org>
61240
61241         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61242
61243 2007-03-11  Bruno Haible  <bruno@clisp.org>
61244
61245         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61246         script, for submission to autobuild.josefsson.org.
61247
61248 2007-03-10  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/canonicalize-lgpl-tests: New file.
61251         * tests/test-canonicalize-lgpl.sh: New file.
61252         * tests/test-canonicalize-lgpl.c: New file.
61253
61254         * modules/c-strcase-tests: New file.
61255         * tests/test-c-strcase.sh: New file.
61256         * tests/test-c-strcasecmp.c: New file.
61257         * tests/test-c-strncasecmp.c: New file.
61258
61259         * modules/atexit-tests: New file.
61260         * tests/test-atexit.sh: New file.
61261         * tests/test-atexit.c: New file.
61262
61263 2007-03-10  Bruno Haible  <bruno@clisp.org>
61264
61265         * tests/test-binary-io.sh: Use temporary filenames that are not so
61266         likely to clash with those of other tests (in a parallel make).
61267         * tests/test-binary-io.c: Likewise.
61268
61269 2007-03-10  Bruno Haible  <bruno@clisp.org>
61270
61271         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61272         fallback; use #error instead.
61273         Suggested by Simon Josefsson.
61274
61275 2007-03-10  Bruno Haible  <bruno@clisp.org>
61276
61277         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61278         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61279         first and the last.
61280
61281 2007-03-10  Bruno Haible  <bruno@clisp.org>
61282
61283         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61284
61285 2007-03-10  Bruno Haible  <bruno@clisp.org>
61286
61287         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61288         "make distcheck".
61289         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61290         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61291         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61292
61293 2007-03-10  Bruno Haible  <bruno@clisp.org>
61294
61295         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61296         variable.
61297         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61298         variable.
61299
61300 2007-03-09  Eric Blake  <ebb9@byu.net>
61301         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61302
61303         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61304         types are not being provided by gnulib.
61305         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61306         types are supported.
61307
61308 2007-03-10  Bruno Haible  <bruno@clisp.org>
61309
61310         * lib/stdio_.h (__attribute__): New macro.
61311         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61312         vsprintf): Specify __attribute__ __format__ for GCC.
61313         Suggested by Eric Blake.
61314
61315 2007-03-09  Bruno Haible  <bruno@clisp.org>
61316
61317         * modules/printf-posix-tests: New file.
61318         * tests/test-printf-posix.sh: New file.
61319         * tests/test-printf-posix.c: New file.
61320
61321         * modules/printf-posix: New file.
61322         * lib/printf.c: New file.
61323         * m4/printf-posix-rpl.m4: New file.
61324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61325         REPLACE_PRINTF.
61326         * lib/stdio_.h (printf): New declaration.
61327         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61328         ____strfmon____): New macros.
61329         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61330         REPLACE_PRINTF.
61331
61332 2007-03-09  Bruno Haible  <bruno@clisp.org>
61333
61334         * tests/test-vasnprintf-posix2.sh: New file.
61335         * tests/test-vasnprintf-posix2.c: New file.
61336         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61337         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61338         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61339
61340         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61341         a locale dependent decimal point, rather than always '.'.
61342
61343 2007-03-09  Eric Blake  <ebb9@byu.net>
61344
61345         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61346         spite of platforms like Tandem/NSK that define it to -1.
61347
61348 2007-03-08  Bruno Haible  <bruno@clisp.org>
61349
61350         * modules/vprintf-posix-tests: New file.
61351         * tests/test-vprintf-posix.sh: New file.
61352         * tests/test-vprintf-posix.c: New file.
61353         * tests/test-printf-posix.h: New file.
61354
61355         * modules/vprintf-posix: New file.
61356         * lib/vprintf.c: New file.
61357         * m4/vprintf-posix.m4: New file.
61358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61359         REPLACE_VPRINTF.
61360         * lib/stdio_.h (vprintf): New declaration.
61361         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61362         REPLACE_VPRINTF.
61363
61364 2007-03-08  Bruno Haible  <bruno@clisp.org>
61365
61366         * modules/fprintf-posix-tests: New file.
61367         * tests/test-fprintf-posix.sh: New file.
61368         * tests/test-fprintf-posix.c: New file.
61369
61370         * modules/fprintf-posix: New file.
61371         * lib/fprintf.c: New file.
61372         * m4/fprintf-posix.m4: New file.
61373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61374         REPLACE_FPRINTF.
61375         * lib/stdio_.h (fprintf): New declaration.
61376         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61377         REPLACE_FPRINTF.
61378
61379 2007-03-08  Bruno Haible  <bruno@clisp.org>
61380
61381         * modules/vfprintf-posix-tests: New file.
61382         * tests/test-vfprintf-posix.sh: New file.
61383         * tests/test-vfprintf-posix.c: New file.
61384         * tests/test-fprintf-posix.h: New file.
61385         * tests/test-fprintf-posix.out: New file.
61386
61387         * modules/vfprintf-posix: New file.
61388         * lib/vfprintf.c: New file.
61389         * m4/vfprintf-posix.m4: New file.
61390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61391         REPLACE_VFPRINTF.
61392         * lib/stdio_.h (vfprintf): New declaration.
61393         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61394         REPLACE_VFPRINTF.
61395
61396 2007-03-08  Bruno Haible  <bruno@clisp.org>
61397
61398         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61399
61400 2007-03-08  Bruno Haible  <bruno@clisp.org>
61401
61402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61403         instead of 'expr' invocations.
61404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61409         Suggested by Paul Eggert.
61410
61411 2007-03-08  Bruno Haible  <bruno@clisp.org>
61412
61413         * modules/fseterr-tests: New file.
61414         * tests/test-fseterr.c: New file.
61415
61416         * modules/fseterr: New file.
61417         * lib/fseterr.h: New file.
61418         * lib/fseterr.c: New file.
61419
61420 2007-03-08  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61423         * lib/getopt_.h: Likewise.
61424         * lib/mbswidth.h: Likewise.
61425         * lib/setenv.h: Likewise.
61426         * lib/vasnprintf.h: Likewise.
61427         * lib/vasprintf.h: Likewise.
61428         * lib/verror.h: Likewise.
61429         * lib/xsetenv.h: Likewise.
61430         * lib/xvasprintf.h: Likewise.
61431
61432 2007-03-08  Jim Meyering  <jim@meyering.net>
61433
61434         * users.txt: Add parted.
61435
61436         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61437
61438 2007-03-07  Bruno Haible  <bruno@clisp.org>
61439
61440         * m4/printf.m4: Make the shell script snippets copy&pastable.
61441
61442 2007-03-02  Bruno Haible  <bruno@clisp.org>
61443
61444         * lib/netinet_in_.h: New file.
61445         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61446         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61447         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61448         (Depends-on): Add absolute-header.
61449         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61450         into netinet/in.h.
61451
61452 2007-03-03  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/sys_select_.h: New file.
61455         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61456         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61457         * modules/sys_select (Files): Add lib/sys_select_.h.
61458         (Depends-on): Add absolute-header.
61459         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61460         into sys/select.h.
61461
61462 2007-03-02  Bruno Haible  <bruno@clisp.org>
61463
61464         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61465         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61466         values.
61467         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61468         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61469         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61470         * modules/sys_socket (Depends-on): Add absolute-header.
61471         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61472         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61473         (Include): Remove requirement of inclusion of <sys/types.h>.
61474
61475 2007-03-02  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/byteswap_.h (bswap_32): Fix formula.
61478
61479 2007-03-06  Bruno Haible  <bruno@clisp.org>
61480
61481         * modules/sprintf-posix-tests: New file.
61482         * tests/test-sprintf-posix.c: New file.
61483
61484         * modules/sprintf-posix: New file.
61485         * lib/sprintf.c: New file.
61486         * m4/sprintf-posix.m4: New file.
61487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61488         REPLACE_SPRINTF.
61489         * lib/stdio_.h (sprintf): New declaration.
61490         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61491         REPLACE_SPRINTF.
61492
61493 2007-03-06  Bruno Haible  <bruno@clisp.org>
61494
61495         * modules/vsprintf-posix-tests: New file.
61496         * tests/test-vsprintf-posix.c: New file.
61497         * tests/test-sprintf-posix.h: New file.
61498
61499         * modules/vsprintf-posix: New file.
61500         * lib/vsprintf.c: New file.
61501         * m4/vsprintf-posix.m4: New file.
61502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61503         REPLACE_VSPRINTF.
61504         * lib/stdio_.h (vsprintf): New declaration.
61505         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61506         REPLACE_VSPRINTF.
61507
61508 2007-03-06  Bruno Haible  <bruno@clisp.org>
61509
61510         * modules/vsnprintf (Depend-on): Remove minmax.
61511
61512 2007-03-06  Bruno Haible  <bruno@clisp.org>
61513
61514         * modules/snprintf-posix-tests: New file.
61515         * tests/test-snprintf-posix.c: New file.
61516
61517         * modules/snprintf-posix: New file.
61518         * m4/snprintf-posix.m4: New file.
61519         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61520         gl_FUNC_SNPRINTF.
61521         (gl_FUNC_SNPRINTF): Invoke it.
61522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61523         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61524         is set.
61525         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61526
61527 2007-03-06  Bruno Haible  <bruno@clisp.org>
61528
61529         * modules/vsnprintf-posix-tests: New file.
61530         * tests/test-vsnprintf-posix.c: New file.
61531         * tests/test-snprintf-posix.h: New file.
61532
61533         * modules/vsnprintf-posix: New file.
61534         * m4/vsnprintf-posix.m4: New file.
61535         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61536         gl_FUNC_VSNPRINTF.
61537         (gl_FUNC_VSNPRINTF): Invoke it.
61538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61539         * lib/stdio_.h (vsnprintf): Define as a replacement if
61540         REPLACE_VSNPRINTF is set.
61541         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61542
61543 2007-03-06  Bruno Haible  <bruno@clisp.org>
61544
61545         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61547
61548 2007-03-06  Bruno Haible  <bruno@clisp.org>
61549
61550         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61551         (asinl): Declare also if HAVE_DECL_ASINL is set.
61552         (atanl): Declare also if HAVE_DECL_ATANL is set.
61553         (ceill): Declare also if HAVE_DECL_CEILL is set.
61554         (cosl): Declare also if HAVE_DECL_COSL is set.
61555         (expl): Declare also if HAVE_DECL_EXPL is set.
61556         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61557         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61558         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61559         (logl): Declare also if HAVE_DECL_LOGL is set.
61560         (sinl): Declare also if HAVE_DECL_SINL is set.
61561         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61562         (tanl): Declare also if HAVE_DECL_TANL is set.
61563         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61566         declaration of frexpl, ldexpl.
61567         * modules/printf-frexpl (Depends-on): Add math.
61568         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61569
61570 2007-03-05  Bruno Haible  <bruno@clisp.org>
61571
61572         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61573         frexpl and ldexpl are declared.
61574         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61575
61576 2007-03-05  Bruno Haible  <bruno@clisp.org>
61577
61578         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61579         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61580
61581 2007-03-05  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/stdio_.h: Include <stddef.h>.
61584
61585 2007-03-05  Bruno Haible  <bruno@clisp.org>
61586
61587         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61588
61589 2007-03-05  Bruno Haible  <bruno@clisp.org>
61590
61591         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61592         NetBSD 4, from Ralf Wildenhues.
61593
61594 2007-03-04  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/vasprintf.h: Update #if logic for the case when the functions
61597         exist but are overridden.
61598
61599 2007-03-04  Bruno Haible  <bruno@clisp.org>
61600
61601         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61602         implementations: glibc-2.4 and MacOS X 10.3.
61603         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61604         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61605         * tests/test-vasprintf-posix.c (test_function): Likewise.
61606
61607 2007-03-04  Bruno Haible  <bruno@clisp.org>
61608
61609         * modules/vasprintf-posix-tests: New file.
61610         * tests/test-vasprintf-posix.c: New file.
61611
61612         * modules/vasprintf-posix: New file.
61613         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61614         defined.
61615         * m4/vasprintf-posix.m4: New file.
61616         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61617         gl_FUNC_VASPRINTF.
61618         (gl_FUNC_VASPRINTF): Invoke it.
61619         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61620         here.
61621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61622
61623 2007-03-04  Bruno Haible  <bruno@clisp.org>
61624
61625         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61626         REPLACE_GETTIMEOFDAY.
61627         * modules/sys_time (Makefile.am): Likewise.
61628         * m4/sys_time_h.m4: Likewise.
61629         * m4/gettimeofday.m4: Likewise.
61630
61631 2007-03-04  Bruno Haible  <bruno@clisp.org>
61632
61633         * modules/vasnprintf-posix-tests: New file.
61634         * tests/test-vasnprintf-posix.c: New file.
61635
61636         * modules/vasnprintf-posix: New file.
61637         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61638         printf-frexpl.h.
61639         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61640         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61641         REPLACE_VASNPRINTF is defined.
61642         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61643         gl_FUNC_VASNPRINTF.
61644         (gl_FUNC_VASNPRINTF): Invoke it.
61645         * m4/vasnprintf-posix.m4: New file.
61646         * m4/printf.m4: New file.
61647
61648 2007-03-04  Bruno Haible  <bruno@clisp.org>
61649
61650         Compile progreloc.c only if --enable-relocatable is specified.
61651         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61652         if --enable-relocatable was specified.
61653         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61654         lib_SOURCES.
61655
61656 2007-03-04  Jim Meyering  <jim@meyering.net>
61657
61658         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61659         Use it consistently, rather than enumerating errno constants.
61660
61661 2007-03-04  Bruno Haible  <bruno@clisp.org>
61662
61663         * modules/xvasprintf-tests: New file.
61664         * tests/test-xvasprintf.c: New file.
61665
61666         * modules/vasprintf-tests: New file.
61667         * tests/test-vasprintf.c: New file.
61668
61669         * modules/vasnprintf-tests: New file.
61670         * tests/test-vasnprintf.c: New file.
61671
61672         * modules/vsnprintf-tests: New file.
61673         * tests/test-vsnprintf.c: New file.
61674
61675         * modules/snprintf-tests: New file.
61676         * tests/test-snprintf.c: New file.
61677
61678 2007-03-04  Bruno Haible  <bruno@clisp.org>
61679
61680         Compile relocatable.c only if --enable-relocatable is specified.
61681         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61682         gl_RELOCATABLE_LIBRARY.
61683         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61684         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61685         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61686         gl_RELOCATABLE_LIBRARY.
61687         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61688         (Makefile.am): Remove lib_SOURCES.
61689         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61690         gl_RELOCATABLE_LIBRARY.
61691         (Makefile.am): Remove lib_SOURCES.
61692         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61693         always.
61694         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61695         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61696
61697 2007-03-04  Bruno Haible  <bruno@clisp.org>
61698
61699         * modules/argmatch-tests: New file.
61700         * tests/test-argmatch.c: New file.
61701
61702         * tests/test-allocsa.c (main): Halve the number of loop runs.
61703
61704         * modules/alloca-opt-tests: New file.
61705         * tests/test-alloca-opt.c: New file.
61706
61707 2007-03-04  Jim Meyering  <jim@meyering.net>
61708
61709         Work around difference between Linux ACLs and Solaris 10 ZFS.
61710         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61711         for EINVAL.
61712
61713 2007-03-03  Bruno Haible  <bruno@clisp.org>
61714
61715         * modules/relocatable-prog (Depends-on): Add back progreloc's
61716         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61717
61718 2007-03-03  Bruno Haible  <bruno@clisp.org>
61719
61720         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61721         * modules/relocatable-lib: New file.
61722
61723 2007-03-03  Bruno Haible  <bruno@clisp.org>
61724
61725         * modules/relocatable-prog: Renamed from modules/relocatable.
61726         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61727
61728 2007-03-03  Bruno Haible  <bruno@clisp.org>
61729
61730         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61731         m4/relocatable-lib.m4.
61732         (Depends-on): Remove 'relocatable'.
61733         (configure.ac): Add gl_RELOCATABLE_NOP.
61734
61735 2007-03-03  Bruno Haible  <bruno@clisp.org>
61736
61737         * modules/relocatable-prog-wrapper: New file.
61738         * modules/relocatable (Depends-on): Add it. Remove all other
61739         dependencies except progname.
61740         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61741
61742         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61743         (gl_FUNC_STRERROR): Nop.
61744         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61745
61746         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61747         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61748
61749         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61750         (gl_FUNC_READLINK): Update.
61751
61752         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61753
61754 2007-03-03  Bruno Haible  <bruno@clisp.org>
61755
61756         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61757         * modules/xreadlink (Depends-on): Add unistd.
61758         * modules/xreadlink-with-size (Depends-on): Likewise.
61759
61760 2007-03-03  Bruno Haible  <bruno@clisp.org>
61761
61762         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61763         extracted from gt_FUNC_SETENV.
61764         (gt_FUNC_SETENV): Remove macro.
61765         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61766         remove gt_FUNC_SETENV.
61767
61768 2007-03-03  Bruno Haible  <bruno@clisp.org>
61769
61770         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61771         ENABLE_RELOCATABLE here.
61772         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61773
61774 2007-03-03  Bruno Haible  <bruno@clisp.org>
61775
61776         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61777         * tests/test-rbtreehash_list.c: Include progname.h.
61778         (main): Call set_program_name.
61779
61780         * modules/rbtree-oset-tests (Depends-on): Add progname.
61781         * tests/test-rbtree_oset.c: Include progname.h.
61782         (main): Call set_program_name.
61783
61784         * modules/rbtree-list-tests (Depends-on): Add progname.
61785         * tests/test-rbtree_list.c: Include progname.h.
61786         (main): Call set_program_name.
61787
61788         * modules/linked-list-tests (Depends-on): Add progname.
61789         * tests/test-linked_list.c: Include progname.h.
61790         (main): Call set_program_name.
61791
61792 2007-03-03  Bruno Haible  <bruno@clisp.org>
61793
61794         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61795         All uses of __restrict changed to _Restrict_.
61796         * lib/glob_.h (__restrict): Remove macro.
61797
61798 2007-03-02  Bruno Haible  <bruno@clisp.org>
61799
61800         * modules/gettext (configure.ac): Require gettext infrastructure
61801         from version 0.16.1.
61802
61803 2007-03-02  Bruno Haible  <bruno@clisp.org>
61804
61805         * modules/linkedhash-list-tests (Depends-on): Add progname.
61806         * tests/test-linkedhash_list.c: Include progname.h.
61807         (main): Call set_program_name.
61808
61809         * modules/carray-list-tests (Depends-on): Add progname.
61810         * tests/test-carray_list.c: Include progname.h.
61811         (main): Call set_program_name.
61812
61813         * modules/avltreehash-list-tests (Depends-on): Add progname.
61814         * tests/test-avltreehash_list.c: Include progname.h.
61815         (main): Call set_program_name.
61816
61817         * modules/avltree-oset-tests (Depends-on): Add progname.
61818         * tests/test-avltree_oset.c: Include progname.h.
61819         (main): Call set_program_name.
61820
61821         * modules/avltree-list-tests (Depends-on): Add progname.
61822         * tests/test-avltree_list.c: Include progname.h.
61823         (main): Call set_program_name.
61824
61825         * modules/array-oset-tests (Depends-on): Add progname.
61826         * tests/test-array_oset.c: Include progname.h.
61827         (main): Call set_program_name.
61828
61829         * modules/array-list-tests (Depends-on): Add progname.
61830         * tests/test-array_list.c: Include progname.h.
61831         (main): Call set_program_name.
61832
61833         * modules/argp-tests (Depends-on): Add progname.
61834         * tests/test-argp.c: Include argp.h first. Include progname.h.
61835         (main): Call set_program_name.
61836
61837 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61838
61839         * doc/gnulib-tool.texi (Initial import): Reword description of
61840         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61841         limited effect even if defined after the first system include.
61842
61843 2007-03-01  Bruno Haible  <bruno@clisp.org>
61844
61845         * build-aux/config.libpath: Update to libtool-1.5.22.
61846         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61847
61848 2007-03-01  Bruno Haible  <bruno@clisp.org>
61849
61850         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61851         foo_CFLAGS.
61852         Reported by Ralf Wildenhues.
61853
61854 2007-03-01  Bruno Haible  <bruno@clisp.org>
61855
61856         * build-aux/install-reloc: Remove object files left over by some
61857         compilers.
61858         Reported by Ralf Wildenhues.
61859
61860 2007-03-01  Bruno Haible  <bruno@clisp.org>
61861
61862         * build-aux/install-reloc: Break long lines.
61863
61864 2007-03-01  Bruno Haible  <bruno@clisp.org>
61865
61866         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61867         Reported by Ralf Wildenhues.
61868
61869 2007-03-01  Bruno Haible  <bruno@clisp.org>
61870
61871         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61872         include ordering constraints.
61873
61874 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61878         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61879         as another example.
61880         * lib/time_.h: Fix misspelling.
61881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61882         Require gl_HEADER_TIME_H_DEFAULTS.
61883         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61884         * m4/time_r.m4 (gl_TIME_R): Likewise.
61885         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61886
61887 2007-03-01  Bruno Haible  <bruno@clisp.org>
61888
61889         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61890         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61891
61892 2007-03-01  Jim Meyering  <jim@meyering.net>
61893
61894         * modules/xreadlink (Maintainer): Add my name.
61895         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61896
61897 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61898             Bruno Haible  <bruno@clisp.org>
61899
61900         * build-aux/install-reloc: Compile also c-ctype.c.
61901         * build-aux/relocatable.sh.in: New file.
61902         * doc/relocatable.texi: New file.
61903         * doc/relocatable-maint.texi: New file.
61904         * doc/gnulib.texi: Include relocatable-maint.texi.
61905         * lib/progreloc.c: Include unistd.h unconditionally.
61906         * lib/relocwrapper.c: Include unistd.h unconditionally.
61907         Include c-ctype.h.
61908         (add_dotbin): Use c_tolower.
61909         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61910         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61911         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61912         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61913         to m4/relocatable-lib.m4.
61914         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61915         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61916         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61917         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61918         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61919         * modules/relocatable: New file.
61920         * modules/relocatable-lib: New file.
61921         * modules/relocatable-script: New file.
61922
61923 2007-02-28  Bruno Haible  <bruno@clisp.org>
61924
61925         Import --enable-relocatable infrastructure.
61926         * build-aux/config.libpath: New file, from GNU gettext.
61927         * build-aux/install-reloc: New file, from GNU gettext.
61928         * build-aux/reloc-ldflags: New file, from GNU gettext.
61929         * lib/relocatable.h: New file, from GNU gettext.
61930         * lib/relocatable.c: New file, from GNU gettext.
61931         * lib/relocwrapper.c: New file, from GNU gettext.
61932         * m4/relocatable.m4: New file, from GNU gettext.
61933
61934 2007-02-28  Bruno Haible  <bruno@clisp.org>
61935
61936         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61937
61938         * modules/xreadlink: New file, from GNU gettext with modifications.
61939         * lib/xreadlink.c: New file, from GNU gettext.
61940         * lib/xreadlink.h: Add comments.
61941         (xreadlink): New declaration.
61942
61943         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61944         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61945         lib/xreadlink-with-size.c.
61946         (configure.ac): Remove gl_XREADLINK invocation.
61947         (Makefile.am): Augment lib_SOURCES.
61948         * m4/xreadlink.m4: Remove file.
61949         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61950         (xreadlink_with_size): Renamed from xreadink.
61951         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61952         * modules/canonicalize (Depends-on): Replace xreadlink with
61953         xreadlink-with-size.
61954         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61955
61956 2007-02-25  Jim Meyering  <jim@meyering.net>
61957
61958         * build-aux/announce-gen: When complaining about excess arguments,
61959         list them.
61960
61961 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * README: Document signed integer overflow situation more
61964         accurately.
61965
61966 2007-02-25  Bruno Haible  <bruno@clisp.org>
61967
61968         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61969         'a' or 'A' conversion.
61970
61971 2007-02-25  Bruno Haible  <bruno@clisp.org>
61972
61973         * modules/filename: Renamed from modules/pathname.
61974         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61975         lib/concatpath.c with lib/concat-filename.c.
61976         (Makefile.am): Update.
61977         (Include): Replace pathname.h with filename.h.
61978         * lib/filename.h: Renamed from lib/pathname.h.
61979         (concatenated_filename): Renamed from concatenated_pathname.
61980         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61981         (concatenated_filename): Renamed from concatenated_pathname.
61982         * lib/findprog.c: Include filename.h instead of pathname.h.
61983         (find_in_path): Update.
61984         * lib/javacomp.c: Include filename.h instead of pathname.h.
61985         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61986         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61987         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61988         is_oldgcj_14_13_usable, is_javac_usable): Update.
61989         * lib/javaexec.c: Include filename.h instead of pathname.h.
61990         (execute_java_class): Update.
61991         * modules/findprog: Update.
61992         * modules/javacomp: Update.
61993         * modules/javaexec: Update.
61994         * MODULES.html.sh (File system functions): Add 'filename', remove
61995         'pathname'.
61996
61997 2007-02-25  Bruno Haible  <bruno@clisp.org>
61998
61999         * modules/printf-frexpl-tests: New file.
62000         * tests/test-printf-frexpl.c: New file.
62001
62002         * modules/printf-frexpl: New file.
62003         * lib/printf-frexpl.h: New file.
62004         * lib/printf-frexpl.c: New file.
62005         * m4/printf-frexpl.m4: New file.
62006
62007 2007-02-25  Bruno Haible  <bruno@clisp.org>
62008
62009         * modules/printf-frexp-tests: New file.
62010         * tests/test-printf-frexp.c: New file.
62011
62012         * modules/printf-frexp: New file.
62013         * lib/printf-frexp.h: New file.
62014         * lib/printf-frexp.c: New file.
62015         * m4/printf-frexp.m4: New file.
62016
62017 2007-02-25  Bruno Haible  <bruno@clisp.org>
62018
62019         Assume automake >= 1.10 for the tests.
62020         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62021         * modules/arctwo-tests: Likewise.
62022         * modules/argp-tests: Likewise.
62023         * modules/avltree-list-tests: Likewise.
62024         * modules/avltree-oset-tests: Likewise.
62025         * modules/avltreehash-list-tests: Likewise.
62026         * modules/carray-list-tests: Likewise.
62027         * modules/crc-tests: Likewise.
62028         * modules/des-tests: Likewise.
62029         * modules/gc-arcfour-tests: Likewise.
62030         * modules/gc-arctwo-tests: Likewise.
62031         * modules/gc-des-tests: Likewise.
62032         * modules/gc-hmac-md5-tests: Likewise.
62033         * modules/gc-hmac-sha1-tests: Likewise.
62034         * modules/gc-md2-tests: Likewise.
62035         * modules/gc-md4-tests: Likewise.
62036         * modules/gc-md5-tests: Likewise.
62037         * modules/gc-pbkdf2-sha1-tests: Likewise.
62038         * modules/gc-rijndael-tests: Likewise.
62039         * modules/gc-sha1-tests: Likewise.
62040         * modules/gc-tests: Likewise.
62041         * modules/getaddrinfo-tests: Likewise.
62042         * modules/hmac-md5-tests: Likewise.
62043         * modules/hmac-sha1-tests: Likewise.
62044         * modules/linked-list-tests: Likewise.
62045         * modules/linkedhash-list-tests: Likewise.
62046         * modules/lock-tests: Likewise.
62047         * modules/md2-tests: Likewise.
62048         * modules/md4-tests: Likewise.
62049         * modules/md5-tests: Likewise.
62050         * modules/rbtree-list-tests: Likewise.
62051         * modules/rbtree-oset-tests: Likewise.
62052         * modules/rbtreehash-list-tests: Likewise.
62053         * modules/read-file-tests: Likewise.
62054         * modules/rijndael-tests: Likewise.
62055         * modules/stdint-tests: Likewise.
62056         * modules/tls-tests: Likewise.
62057
62058 2007-02-24  Bruno Haible  <bruno@clisp.org>
62059
62060         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62061         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62062         function; instead check whether isnan with a double argument links.
62063         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62064         function; instead check whether isnan with a 'long double' argument
62065         links.
62066         Reported by Eric Blake <ebb9@byu.net>.
62067
62068 2007-02-24  Bruno Haible  <bruno@clisp.org>
62069
62070         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62071         defined.
62072         * lib/isnanl.c: Remove all code. Just include isnan.c.
62073         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62074
62075 2007-02-25  Jim Meyering  <jim@meyering.net>
62076
62077         Avoid conflicting types for 'unsetenv' on FreeBSD.
62078         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62079         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62080         in stdlib.h.
62081
62082 2007-02-24  Bruno Haible  <bruno@clisp.org>
62083
62084         * modules/isnanl-nolibm-tests: New file.
62085         * tests/test-isnanl.c: New file.
62086
62087         * modules/isnanl-nolibm: New file.
62088         * lib/isnanl.h: New file.
62089         * lib/isnanl.c: New file.
62090         * m4/isnanl.m4: New file.
62091
62092 2007-02-24  Bruno Haible  <bruno@clisp.org>
62093
62094         * modules/isnan-nolibm-tests: New file.
62095         * tests/test-isnan.c: New file.
62096
62097         * modules/isnan-nolibm: New file.
62098         * lib/isnan.h: New file.
62099         * lib/isnan.c: New file.
62100         * m4/isnan.m4: New file.
62101
62102 2007-02-24  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62105         assume that an exponent fits in 20 bits.
62106
62107 2007-02-24  Jim Meyering  <jim@meyering.net>
62108
62109         * m4/regex.m4: Update the description of the configure-time option,
62110         --without-included-regex, to state accurately what the defaults are,
62111         and perhaps to give people an idea why using this option is risky.
62112
62113 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62116         loops on small arguments.  This attempts to avoid the problem
62117         Bruno Haible reported for AIX 4.3.2 in
62118         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62119
62120 2007-02-23  Bruno Haible  <bruno@clisp.org>
62121
62122         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62123         Needed for help2man.
62124
62125 2007-02-23  Karl Berry  <karl@gnu.org>
62126
62127         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62128         exists, foo.h should be cvs-ignored, not committed.
62129
62130 2007-02-23  Eric Blake  <ebb9@byu.net>
62131
62132         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62133         * lib/stat-time.h (includes): Likewise.
62134         * lib/utimecmp.c (includes): Likewise.
62135         * lib/utimens.h (includes): Likewise.
62136         * lib/getdate.y (includes): Also include "timespec.h" for use
62137         internal to the module.
62138         * modules/utimens (Depends-on): Revert yesterday's patch.
62139         * modules/nanosleep (Depends-on): Add missing dependency.
62140
62141 2007-02-22  Bruno Haible  <bruno@clisp.org>
62142
62143         * lib/glob.c: Don't include getlogin_r.h.
62144
62145 2007-02-22  Jim Meyering  <jim@meyering.net>
62146
62147         * modules/utimens (Depends-on): Add timespec, required for
62148         utimens.h's inclusion of timespec.h.
62149
62150 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62151
62152         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62153         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62154         Schwab in
62155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62156         I'll try to think of a better way to fix the Solaris problem.
62157
62158         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62159         like glibc; on Solaris 10, it fails with errno == EINVAL.
62160         POSIX says the behavior is unspecified if the first argument is NULL,
62161         so play it safe and never pass NULL to the system getcwd.
62162
62163 2007-02-21  Jim Meyering  <jim@meyering.net>
62164
62165         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62166         of gettimeofday.  It would conflict with the one now always
62167         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62168         an IRIX 6.5 build failure.
62169
62170 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62171
62172         Minor fixups to port to Solaris 10 with Sun C 5.8.
62173         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62174         * modules/getcwd (Depends-on): Add dirfd.
62175         * lib/putenv.c (putenv): #undef it.
62176         (rpl_putenv): New decl.
62177         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62178
62179 2007-02-20  Bruno Haible  <bruno@clisp.org>
62180
62181         * modules/stdio-tests: New file.
62182         * tests/test-stdio.c: New file.
62183
62184         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62185         (Depends-on): Add stdio.
62186         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62187         (Include): Use <stdio.h> instead of vsnprintf.h.
62188         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62189         HAVE_DECL_VSNPRINTF.
62190         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62191
62192         * modules/snprintf (Files): Remove lib/snprintf.h.
62193         (Depends-on): Add stdio.
62194         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62195         (Include): Use <stdio.h> instead of snprintf.h.
62196         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62197         HAVE_DECL_SNPRINTF.
62198         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62199         * lib/getaddrinfo.c: Likewise.
62200
62201         * modules/stdio: New file.
62202         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62203         * lib/snprintf.h: Remove file.
62204         * lib/vsnprintf.h: Remove file.
62205         * lib/.cppi-disable: Remove snprintf.h.
62206         * m4/stdio_h.m4: New file.
62207         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62208
62209 2007-02-20  Jim Meyering  <jim@meyering.net>
62210
62211         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62212         used by e.g., mingw.  From Bruno Haible.
62213
62214 2007-02-19  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62217         warnings.
62218         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62219
62220 2007-02-19  Bruno Haible  <bruno@clisp.org>
62221
62222         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62223         from mingw users.
62224
62225 2007-02-19  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62228         warnings.
62229         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62230
62231 2007-02-19  Jim Meyering  <jim@meyering.net>
62232
62233         Don't use FD after a successful "fdopendir (fd)".
62234         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62235         Reset it by calling dirfd on the just-obtained DIR*.
62236
62237         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62238         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62239
62240 2007-02-18  Bruno Haible  <bruno@clisp.org>
62241
62242         * lib/readlink.c: Include <unistd.h>.
62243         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62244         HAVE_READLINK.
62245         * modules/readlink (Depends-on): Add unistd.
62246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62247         (Include): Add <unistd.h>.
62248
62249         * lib/getlogin_r.h: Remove file.
62250         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62251         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62252         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62253         HAVE_DECL_GETLOGIN_R.
62254         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62256         (Include): Use <unistd.h> instead of getlogin_r.h.
62257
62258         * lib/getcwd.h: Remove file.
62259         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62260         * lib/xgetcwd.c: Likewise.
62261         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62262         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62263         * modules/getcwd (Files): Remove lib/getcwd.h.
62264         (Depends-on): Add unistd.
62265         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62266         (Include): Use <unistd.h> instad of getcwd.h.
62267
62268         * lib/ftruncate.c: Include <unistd.h> first.
62269         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62270         Set HAVE_FTRUNCATE.
62271         * modules/ftruncate (Depends-on): Add unistd.
62272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62273
62274         * lib/fchdir.c: Include <unistd.h> first.
62275         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62277         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62278         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62279         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62280
62281         * lib/dup2.c: Include <unistd.h> first.
62282         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62283         HAVE_DUP2.
62284         * modules/dup2 (Depends-on): Add unistd.
62285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62286
62287         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62288         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62289         REPLACE_CHOWN. Don't define chown as a macro here.
62290         * modules/chown (Depends-on): Add unistd.
62291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62292
62293         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62294         Add definition for GL_LINK_WARNING.
62295         (chown, dup2): New declarations.
62296         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62297         link warning.
62298         (ftruncate): New declaration.
62299         (getcwd): New declaration, taken from old getcwd.h.
62300         (getlogin_r): New declaration, taken from old getlogin_r.h.
62301         (readlink): New declaration.
62302         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62303         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62304         (gl_PREREQ_UNISTD): Remove macro.
62305         (gl_UNISTD_MODULE_INDICATOR): New macro.
62306         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62307         many new variables. Don't set UNISTD_H.
62308         * modules/unistd (Description): Change.
62309         (Depends-on): Add link-warning.
62310         (configure.ac): Update.
62311         (Makefile.am): Create unistd.h always. Substitute many new variables
62312         into it.
62313
62314 2007-02-18  Bruno Haible  <bruno@clisp.org>
62315
62316         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62317         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62318         HAVE_GETSUBOPT.
62319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62320         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62321         * lib/getsubopt.h: Remove file.
62322         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62323         (Depends-on): Add stdlib.
62324         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62325         (Includes): Use <stdlib.h> instead of getsubopt.h.
62326         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62327         Set HAVE_GETSUBOPT.
62328         * lib/getsubopt.c: Don't include getsubopt.h.
62329
62330 2007-02-18  Bruno Haible  <bruno@clisp.org>
62331
62332         * modules/fchdir (Depends-on): Add dup2.
62333
62334 2007-02-18  Bruno Haible  <bruno@clisp.org>
62335
62336         * lib/stdlib_.h: Handle glibc's special invocation convention
62337         specially.
62338
62339 2007-02-18  Bruno Haible  <bruno@clisp.org>
62340
62341         * modules/stdlib-tests: New file.
62342         * tests/test-stdlib.c: New file.
62343
62344         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62345         (Depends-on): Add stdlib.
62346         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62347         (Includes): Use <stdlib.h> instead of mkstemp.h.
62348         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62349         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62350         * lib/mkstemp.c: Don't include mkstemp.h.
62351         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62352         * lib/stdlib--.h: Don't include mkstemp.h.
62353
62354         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62355         (Depends-on): Add stdlib.
62356         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62357         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62358         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62359         HAVE_MKDTEMP.
62360         * lib/mkdtemp.c: Don't include mkdtemp.h.
62361         * lib/clean-temp.c: Don't include mkdtemp.h.
62362
62363         * modules/exit (Files): Remove lib/exit.h.
62364         (Depends-on): Add stdlib.
62365         (Makefile.am): Remove lib_SOURCES.
62366         (Include): Use <stdlib.h> instead of exit.h.
62367         * lib/argmatch.c: Don't include exit.h.
62368         * lib/execute.c: Likewise.
62369         * lib/pagealign_alloc.c: Likewise.
62370         * lib/pipe.c: Likewise.
62371         * lib/wait-process.c: Likewise.
62372         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62373         * lib/exitfail.c: Likewise.
62374         * lib/savewd.c: Likewise.
62375         * lib/xsetenv.c: Likewise.
62376
62377         * modules/stdlib: New file.
62378         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62379         and extra comments about mkstemp().
62380         * lib/exit.h: Remove file.
62381         * lib/mkdtemp.h: Remove file.
62382         * lib/mkstemp.h: Remove file.
62383         * m4/stdlib_h.m4: New file.
62384         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62385
62386 2007-02-18  Bruno Haible  <bruno@clisp.org>
62387
62388         * modules/math-tests: New file.
62389         * tests/test-math.c: New file.
62390
62391         * modules/math: New file.
62392         * modules/mathl (Files): Remove lib/mathl.h.
62393         (Depends-on): Add math.
62394         (Makefile.am): Don't mention mathl.h.
62395         (Include): Use <math.h> instead of mathl.h.
62396         * lib/math_.h: New file.
62397         * lib/mathl.h: Remove file.
62398         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62399         mathl.h.
62400         * lib/asinl.c: Likewise.
62401         * lib/atanl.c: Likewise.
62402         * lib/ceill.c: Likewise.
62403         * lib/cosl.c: Likewise.
62404         * lib/expl.c: Likewise.
62405         * lib/floorl.c: Likewise.
62406         * lib/frexpl.c: Likewise.
62407         * lib/ldexpl.c: Likewise.
62408         * lib/logl.c: Likewise.
62409         * lib/sincosl.c: Likewise.
62410         * lib/sinl.c: Likewise.
62411         * lib/sqrtl.c: Likewise.
62412         * lib/tanl.c: Likewise.
62413         * lib/trigl.c: Likewise.
62414         * m4/math_h.m4: New file.
62415         * MODULES.html.sh (Mathematics): Add math.
62416
62417 2007-02-17  Bruno Haible  <bruno@clisp.org>
62418
62419         * modules/wctype-tests: New file.
62420         * tests/test-wctype.c: New file.
62421
62422         * modules/wchar-tests: New file.
62423         * tests/test-wchar.c: New file.
62424
62425         * modules/unistd-tests: New file.
62426         * tests/test-unistd.c: New file.
62427
62428         * modules/time-tests: New file.
62429         * tests/test-time.c: New file.
62430
62431         * modules/sysexits-tests: New file.
62432         * tests/test-sysexits.c: New file.
62433
62434         * modules/sys_time-tests: New file.
62435         * tests/test-sys_time.c: New file.
62436
62437         * modules/sys_stat-tests: New file.
62438         * tests/test-sys_stat.c: New file.
62439
62440         * modules/sys_socket-tests: New file.
62441         * tests/test-sys_socket.c: New file.
62442
62443         * modules/sys_select-tests: New file.
62444         * tests/test-sys_select.c: New file.
62445
62446         * modules/string-tests: New file.
62447         * tests/test-string.c: New file.
62448
62449         * modules/stdbool-tests: New file.
62450         * tests/test-stdbool.c: New file.
62451
62452         * modules/netinet_in-tests: New file.
62453         * tests/test-netinet_in.c: New file.
62454
62455         * modules/inttypes-tests: New file.
62456         * tests/test-inttypes.c: New file.
62457
62458         * modules/fcntl-tests: New file.
62459         * tests/test-fcntl.c: New file.
62460
62461         * modules/byteswap-tests: New file.
62462         * tests/test-byteswap.c: New file.
62463
62464         * modules/arpa_inet-tests: New file.
62465         * tests/test-arpa_inet.c: New file.
62466
62467 2007-02-17  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62470         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62471         if the corresponding module is not enabled. Emit link warnings if
62472         the function is used nevertheless.
62473         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62474         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62475         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62476         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62477         * modules/inttypes (Depends-on): Add link-warning.
62478         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62479         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62480         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62481         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62482         * modules/imaxdiv (configure.ac): Likewise.
62483         * modules/strtoimax (configure.ac): Likewise.
62484         * modules/strtoumax (configure.ac): Likewise.
62485
62486 2007-02-17  Bruno Haible  <bruno@clisp.org>
62487
62488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62489         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62490         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62491         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62492
62493 2007-02-17  Bruno Haible  <bruno@clisp.org>
62494
62495         * modules/link-warning: New file.
62496         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62497         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62498         * modules/string (Depends-on): Add link-warning.
62499         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62500         string.h.
62501         * MODULES.html.sh (Support for building libraries and executables): Add
62502         link-warning.
62503
62504 2007-02-17  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62507         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62508         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62509         long lines.
62510
62511 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62512             Bruno Haible  <bruno@clisp.org>
62513
62514         * modules/tmpfile: New file.
62515         * lib/tmpfile.c: New file.
62516         * m4/tmpfile.m4: New file.
62517         * MODULES.html.sh (func_all_modules): New section "Input/output".
62518
62519 2007-02-15  Bruno Haible  <bruno@clisp.org>
62520
62521         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62522         (supports_delete_on_close): New function.
62523         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62524
62525 2007-02-14  Bruno Haible  <bruno@clisp.org>
62526
62527         * modules/mbspcasecmp-tests: New file.
62528         * tests/test-mbspcasecmp.sh: New file.
62529         * tests/test-mbspcasecmp.c: New file.
62530
62531         New module mbspcasecmp.
62532         * modules/mbspcasecmp: New file.
62533         * lib/mbspcasecmp.c: New file.
62534         * lib/string_.h (strncasecmp): Change warning message.
62535         (mbspcasecmp): New declaration.
62536         * m4/mbspcasecmp.m4: New file.
62537         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62538         GNULIB_MBSPCASECMP.
62539         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62540         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62541
62542 2007-02-14  Bruno Haible  <bruno@clisp.org>
62543
62544         * modules/mbsncasecmp-tests: New file.
62545         * tests/test-mbsncasecmp.sh: New file.
62546         * tests/test-mbsncasecmp.c: New file.
62547
62548         New module mbsncasecmp.
62549         * modules/mbsncasecmp: New file.
62550         * lib/mbsncasecmp.c: New file.
62551         * lib/string_.h (mbsncasecmp): New declaration.
62552         * m4/mbsncasecmp.m4: New file.
62553         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62554         GNULIB_MBSNCASECMP.
62555         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62556         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62557
62558 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62559
62560         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62561         Verify that it doesn't overlap with our flags.
62562         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62563         do not have the desired effect in multibyte locales; instead, use
62564         mbscasecmp.
62565         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62566         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62567         we don't require GNU fnmatch ourselves (if our users require it, they
62568         should do so explicitly).
62569
62570         Fix regex code so it doesn't rely on strcasecmp.
62571         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62572         Otherwise, include gnulib's langinfo.h.
62573         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62574         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62575         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62576         * modules/regex (FILES): Remove m4/codeset.m4.
62577         (Depends-on): Add localcharset.  Remove strcase.
62578
62579 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62580
62581         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62582         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62583
62584 2007-02-13  Bruno Haible  <bruno@clisp.org>
62585
62586         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62588
62589 2007-02-12  Bruno Haible  <bruno@clisp.org>
62590
62591         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62592         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62593         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62594         time warning rather than a link error.
62595
62596 2007-02-12  Bruno Haible  <bruno@clisp.org>
62597
62598         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62599         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62600         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62601
62602 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62603
62604         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62605         args, not 2.
62606
62607 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62608
62609         New module 'time', so that apps can include <time.h> as per
62610         POSIX and GNU instead of separate include files like time_r.h
62611         and timegm.h.  This implementation tries out a simpler approach
62612         for replacing decls in standard include files (as compared to
62613         the string module), somewhat as an experiment.
62614
62615         * config/srclist.txt: Comment out mktime.c for now.
62616         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62617         since it doesn't apply any more.  Use generic wording instead.
62618         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62619         'time'.
62620         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62621         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62622         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62623         Don't include <sys/types.h>; no longer needed since we assume C89.
62624         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62625         * lib/strftime.c: Likewise.
62626         * lib/time_r.c: Likewise.
62627         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62628         * lib/nanosleep.c: Include <time.h> first, to check interface.
62629         * lib/strptime.c: Likewise.
62630         * lib/time_r.c: Likewise.
62631         * lib/timegm.c: Likewise.
62632         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62633         needed.
62634         * lib/timegm.c: Don't include timegm.h; no longer needed.
62635         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62636         time.h now handles any problems in that area.
62637         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62638         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62639         that time.h defines struct timespec.
62640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62641         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62642         handles that.
62643         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62644         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62645         needed.  Set REPLACE_LOCALTIME.
62646         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62647         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62648         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62649         nanosleep; time_h.m4 now does that.  Don't require
62650         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62651         module handles this now.
62652         * modules/getdate (Depends-on): Remove timespec.  Add time.
62653         * modules/nanosleep (Depends-on): Likewise.
62654         * modules/stat-time (Depends-on): Likewise.
62655         * modules/nanosleep (Include): Include time.h, not timespec.h.
62656         * modules/strptime (Files): Remove lib/strptime.h.
62657         (Depends-on): Add extensions, time.
62658         (Include): Include time.h, not strptime.h.
62659         * modules/time_r (Files): Remove lib/time_r.h.
62660         (Depends-on): Add time.
62661         (Include): Include time.h, not time_r.h.
62662         * modules/timegm: Likewise.
62663         * modules/timespec (Description): Now does timespec-related decls
62664         of our own, instead of struct timespec itself.
62665         (Depends-on): Add time; remove extensions.
62666         (Maintainer): Add self.
62667         * modules/utimecmp (Depends-on): Add time; remove timespec.
62668         * modules/utimens (Depends-on): Likewise.
62669         * modules/xnanosleep (Depends-on): Likewise.
62670
62671 2007-02-11  Bruno Haible  <bruno@clisp.org>
62672
62673         * lib/c-strstr.c: Include allocsa.h.
62674         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62675         * lib/c-strcasestr.c: Include allocsa.h.
62676         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62677         * lib/strcasestr.c: Include allocsa.h.
62678         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62679         * lib/mbsstr.c: Include allocsa.h.
62680         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62681         allocsa/freesa instead of malloc/free.
62682         * lib/mbscasestr.c: Include allocsa.h.
62683         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62684         allocsa/freesa instead of malloc/free.
62685         * modules/c-strstr (Depends-on): Add allocsa.
62686         * modules/c-strcasestr (Depends-on): Likewise.
62687         * modules/strcasestr (Depends-on): Likewise.
62688         * modules/mbsstr (Depends-on): Likewise.
62689         * modules/mbscasestr (Depends-on): Likewise.
62690
62691 2007-02-11  Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62694
62695         * modules/mbsspn-tests: New file.
62696         * tests/test-mbsspn.sh: New file.
62697         * tests/test-mbsspn.c: New file.
62698
62699 2007-02-11  Bruno Haible  <bruno@clisp.org>
62700
62701         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62702
62703         * modules/mbspbrk-tests: New file.
62704         * tests/test-mbspbrk.sh: New file.
62705         * tests/test-mbspbrk.c: New file.
62706
62707 2007-02-11  Bruno Haible  <bruno@clisp.org>
62708
62709         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62710         unneeded cast.
62711
62712         * modules/mbscspn-tests: New file.
62713         * tests/test-mbscspn.sh: New file.
62714         * tests/test-mbscspn.c: New file.
62715
62716 2007-02-11  Bruno Haible  <bruno@clisp.org>
62717
62718         * modules/mbscasecmp-tests: New file.
62719         * tests/test-mbscasecmp.sh: New file.
62720         * tests/test-mbscasecmp.c: New file.
62721
62722 2007-02-11  Bruno Haible  <bruno@clisp.org>
62723
62724         Ensure O(n) worst-case complexity of mbscasestr.
62725         * lib/mbscasestr.c: Include stdbool.h.
62726         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62727         functions.
62728         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62729         the bookkeeping indicates that it's worth it.
62730         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62731
62732         * modules/mbscasestr-tests: New file.
62733         * tests/test-mbscasestr1.c: New file.
62734         * tests/test-mbscasestr2.sh: New file.
62735         * tests/test-mbscasestr2.c: New file.
62736         * tests/test-mbscasestr3.sh: New file.
62737         * tests/test-mbscasestr3.c: New file.
62738         * tests/test-mbscasestr4.sh: New file.
62739         * tests/test-mbscasestr4.c: New file.
62740         * m4/locale-tr.m4: New file.
62741
62742 2007-02-11  Bruno Haible  <bruno@clisp.org>
62743
62744         Ensure O(n) worst-case complexity of mbsstr.
62745         * lib/mbsstr.c: Include stdbool.h.
62746         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62747         functions.
62748         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62749         bookkeeping indicates that it's worth it.
62750         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62751
62752         * modules/mbsstr-tests: New file.
62753         * tests/test-mbsstr1.c: New file.
62754         * tests/test-mbsstr2.sh: New file.
62755         * tests/test-mbsstr2.c: New file.
62756         * tests/test-mbsstr3.sh: New file.
62757         * tests/test-mbsstr3.c: New file.
62758         * m4/locale-fr.m4: New file.
62759
62760 2007-02-11  Bruno Haible  <bruno@clisp.org>
62761
62762         * lib/mbsrchr.c (mbsrchr): Fix bug.
62763
62764         * modules/mbsrchr-tests: New file.
62765         * tests/test-mbsrchr.sh: New file.
62766         * tests/test-mbsrchr.c: New file.
62767
62768 2007-02-11  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/mbschr.c (mbschr): Fix bug.
62771
62772         * modules/mbschr-tests: New file.
62773         * tests/test-mbschr.sh: New file.
62774         * tests/test-mbschr.c: New file.
62775         * m4/locale-zh.m4: New file.
62776
62777 2007-02-11  Bruno Haible  <bruno@clisp.org>
62778
62779         Support for copying multibyte string iterators.
62780         * lib/mbiter.h: Include <string.h>.
62781         (mbiter_multi_copy): New function.
62782         (mbi_copy): New macro.
62783         * lib/mbuiter.h: Include <string.h>.
62784         (mbuiter_multi_copy): New function.
62785         (mbui_copy): New macro.
62786
62787 2007-02-11  Bruno Haible  <bruno@clisp.org>
62788
62789         New module mbslen.
62790         * modules/mbslen: New file.
62791         * lib/mbslen.c: New file.
62792         * lib/string_.h (mbslen): New declaration.
62793         * m4/mbslen.m4: New file.
62794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62795         GNULIB_MBSLEN.
62796         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62797         * MODULES.html.sh (Internationalization functions): Add mbslen.
62798
62799 2007-02-11  Bruno Haible  <bruno@clisp.org>
62800
62801         Ensure O(n) worst-case complexity of strcasestr substitute.
62802         * lib/strcasestr.c: Include stdbool.h.
62803         (knuth_morris_pratt): New function.
62804         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62805         bookkeeping indicates that it's worth it.
62806         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62807
62808         * modules/strcasestr-tests: New file.
62809         * tests/test-strcasestr.c: New file.
62810
62811 2007-02-11  Bruno Haible  <bruno@clisp.org>
62812
62813         Ensure O(n) worst-case complexity of c_strcasestr.
62814         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62815         (knuth_morris_pratt): New function.
62816         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62817         the bookkeeping indicates that it's worth it.
62818         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62819
62820         * modules/c-strcasestr-tests: New file.
62821         * tests/test-c-strcasestr.c: New file.
62822
62823 2007-02-11  Bruno Haible  <bruno@clisp.org>
62824
62825         Ensure O(n) worst-case complexity of c_strstr.
62826         * lib/c-strstr.c: Include stdbool.h, string.h.
62827         (knuth_morris_pratt): New function.
62828         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62829         bookkeeping indicates that it's worth it.
62830         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62831
62832         * lib/c-strstr.c: Complete rewrite for maintainability.
62833
62834         * modules/c-strstr-tests: New file.
62835         * tests/test-c-strstr.c: New file.
62836
62837 2007-02-11  Bruno Haible  <bruno@clisp.org>
62838
62839         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62840         5.2.1 and earlier, whereby \055 was treated just like the range
62841         delimiter '-'.
62842         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62843
62844 2007-02-08  Bruno Haible  <bruno@clisp.org>
62845
62846         * modules/regex (Depends-on): Add stdbool.
62847         Reported by Dalibor Topic <robilad@kaffe.org>.
62848
62849 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62852         Prefer returning from main to exiting from it.
62853         Remove unnecessary parens after sizeof.
62854
62855 2007-02-05  Bruno Haible  <bruno@clisp.org>
62856
62857         New module mbssep.
62858         * modules/mbssep: New file.
62859         * lib/mbssep.c: New file.
62860         * lib/string_.h (strsep): Add a conditional link warning.
62861         (mbssep): New declaration.
62862         * m4/mbssep.m4: New file.
62863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62864         GNULIB_MBSSEP.
62865         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62866         * MODULES.html.sh (Internationalization functions): Add mbssep.
62867
62868 2007-02-05  Bruno Haible  <bruno@clisp.org>
62869
62870         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62871         Optimize search in case of 1 delimiter.
62872
62873 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62874
62875         * lib/acl.h: Include sys/types.h before sys/acl.h.
62876
62877 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62878
62879         Merge upstream fix for glibc bugzilla #3957:
62880
62881         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62882
62883         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62884         bit for RE_HAT_LISTS_NOT_NEWLINE.
62885         (build_charclass_op): Remove bogus comment.
62886
62887 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62888
62889         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62890
62891 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62892
62893         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62894         * lib/memmem.c [!defined _LIBC]: Include config.h.
62895
62896 2007-02-04  Bruno Haible  <bruno@clisp.org>
62897
62898         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62899         warning message.
62900
62901 2007-02-04  Bruno Haible  <bruno@clisp.org>
62902
62903         New module mbstok_r.
62904         * modules/mbstok_r: New file.
62905         * lib/mbstok_r.c: New file.
62906         * lib/string_.h (strtok_r): Change argument names to match the
62907         comments. Add a conditional link warning.
62908         (mbstok_r): New declaration.
62909         * m4/mbstok_r.m4: New file.
62910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62911         GNULIB_MBSTOK_R.
62912         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62913         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62914
62915 2007-02-04  Bruno Haible  <bruno@clisp.org>
62916
62917         New module mbsspn.
62918         * modules/mbsspn: New file.
62919         * lib/mbsspn.c: New file.
62920         * lib/string_.h (strspn): Add a conditional link warning.
62921         (mbsspn): New declaration.
62922         * m4/mbsspn.m4: New file.
62923         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62924         GNULIB_MBSSPN.
62925         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62926         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62927
62928 2007-02-04  Bruno Haible  <bruno@clisp.org>
62929
62930         New module mbspbrk.
62931         * modules/mbspbrk: New file.
62932         * lib/mbspbrk.c: New file.
62933         * lib/string_.h (strpbrk): Add a conditional link warning.
62934         (mbspbrk): New declaration.
62935         * m4/mbspbrk.m4: New file.
62936         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62937         GNULIB_MBSPBRK.
62938         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62939         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62940
62941 2007-02-04  Bruno Haible  <bruno@clisp.org>
62942
62943         New module mbscspn.
62944         * modules/mbscspn: New file.
62945         * lib/mbscspn.c: New file.
62946         * lib/string_.h (strcspn): Add a conditional link warning.
62947         (mbscspn): New declaration.
62948         * m4/mbscspn.m4: New file.
62949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62950         GNULIB_MBSCSPN.
62951         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62952         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62953
62954 2007-02-04  Bruno Haible  <bruno@clisp.org>
62955
62956         New module mbscasestr, reduced goal of strcasestr.
62957         * modules/mbscasestr: New file.
62958         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62959         (mbscasestr): Renamed from strcasestr.
62960         * lib/strcasestr.c: Don't include mbuiter.h.
62961         (strcasestr): Remove support for multibyte locales.
62962         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62963         Change the conditional link warning.
62964         (mbscasestr): New declaration.
62965         * m4/mbscasestr.m4: New file.
62966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62967         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62968         REPLACE_STRCASESTR.
62969         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62971         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62972         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62973         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62974         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62975         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62976         (Depends-on): Remove mbuiter.
62977         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62978
62979 2007-02-04  Bruno Haible  <bruno@clisp.org>
62980
62981         Simplify handling of strncasecmp.
62982         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62983         the conditional link warning.
62984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62985         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62986         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62987         * modules/strcase (configure.ac): Don't invoke
62988         gl_STRING_MODULE_INDICATOR.
62989         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62990
62991 2007-02-04  Bruno Haible  <bruno@clisp.org>
62992
62993         New module mbscasecmp, reduced goal of strcasecmp.
62994         * modules/mbscasecmp: New file.
62995         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62996         (mbscasecmp): Renamed from strcasecmp.
62997         * lib/strcasecmp.c: Don't include mbuiter.h.
62998         (strcasecmp): Remove support for multibyte locales.
62999         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63000         Change the conditional link warning.
63001         (mbscasecmp): New declaration.
63002         * m4/mbscasecmp.m4: New file.
63003         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63004         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63005         REPLACE_STRCASECMP.
63006         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63008         GNULIB_MBSCASECMP.
63009         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63010         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63011         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63012         (Depends-on): Remove mbuiter.
63013         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63014
63015 2007-02-04  Bruno Haible  <bruno@clisp.org>
63016
63017         New module mbsstr. Remove module strstr.
63018         * modules/mbsstr: New file.
63019         * modules/strstr: Remove file.
63020         * lib/mbsstr.c: Renamed from lib/strstr.c.
63021         (mbsstr): Renamed from strstr.
63022         * lib/string_.h (strstr): Remove declaration. Change the conditional
63023         link warning.
63024         (mbsstr): New declaration.
63025         * m4/mbsstr.m4: New file.
63026         * m4/strstr.m4: Remove file.
63027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63028         REPLACE_STRSTR.
63029         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63030         Don't initialize GNULIB_STRSTR.
63031         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63032         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63033         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63034         (Support for systems lacking ANSI C 89): Remove strstr.
63035
63036 2007-02-04  Bruno Haible  <bruno@clisp.org>
63037
63038         New module mbsrchr.
63039         * modules/mbsrchr: New file.
63040         * lib/mbsrchr.c: New file.
63041         * lib/string_.h (strrchr): Add a conditional link warning.
63042         (mbsrchr): New declaration.
63043         * m4/mbsrchr.m4: New file.
63044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63045         GNULIB_MBSRCHR.
63046         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63047         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63048
63049 2007-02-04  Bruno Haible  <bruno@clisp.org>
63050
63051         New module mbschr.
63052         * modules/mbschr: New file.
63053         * lib/mbschr.c: New file.
63054         * lib/string_.h (strchr): Add a conditional link warning.
63055         (mbschr): New declaration.
63056         * m4/mbschr.m4: New file.
63057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63058         GNULIB_MBSCHR.
63059         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63060         * MODULES.html.sh (Internationalization functions): Add mbschr.
63061
63062 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63063
63064         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63065
63066         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63067
63068 2007-02-04  Bruno Haible  <bruno@clisp.org>
63069
63070         New module description section 'configure.ac-early'.
63071         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63072         (func_get_autoconf_early_snippet): New function.
63073         (func_import, func_create_testdir): Use it. Remove special cases for
63074         modules 'extensions' and 'lock'.
63075         * modules/extensions (configure.ac-early): Require
63076         gl_USE_SYSTEM_EXTENSIONS.
63077         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63078
63079 2007-02-04  Bruno Haible  <bruno@clisp.org>
63080
63081         Make use of gcj-4.3's -fsource and -ftarget option.
63082         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63083         and if so try the options -fsource and -ftarget.
63084         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63085         source_version, ftarget_option, target_version arguments.
63086         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63087         (is_envjavac_oldgcj_14_14_usable): Renamed from
63088         is_envjavac_gcj_14_14_usable.
63089         (is_envjavac_oldgcj_14_13_usable): Renamed from
63090         is_envjavac_gcj_14_13_usable.
63091         (is_gcj_present): Update.
63092         (is_gcj_43, is_gcj43_usable): New functions.
63093         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63094         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63095         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63096         try the options -fsource and -ftarget.
63097
63098 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63101         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63102         larger value.
63103
63104 2007-02-03  Jim Meyering  <jim@meyering.net>
63105
63106         Give tools a better chance to allocate space for very large buffers.
63107         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63108
63109         Make pwd and readlink work also when run with an unreadable parent dir
63110         on systems with openat support.
63111         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63112         provided getcwd function, even when we have openat support.
63113         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63114
63115 2007-02-02  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63118         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63119         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63120         portability problems if one of these functions is only used on specific
63121         platforms.
63122         Reported by Paul Eggert.
63123
63124 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63125
63126         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63127         is causing more trouble than it's curing.
63128         * lib/regex_internal.h (__mempcpy): Remove.
63129         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63130         (and make the code a tad smaller to boot).
63131         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63132
63133 2007-02-02  Jim Meyering  <jim@meyering.net>
63134
63135         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63136         section, not in the Makefile.am: one.
63137
63138 2007-02-02  Eric Blake  <ebb9@byu.net>
63139
63140         * lib/strchrnul.c: Always include config.h first.
63141
63142         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63143         gnulib strstr is not necessary here.
63144
63145 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63146
63147         * m4/socklen.m4: Fix typo.
63148
63149 2007-02-02  Eric Blake  <ebb9@byu.net>
63150
63151         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63152         * modules/netinet_in (Makefile.am): Likewise.
63153
63154 2007-02-01  Bruno Haible  <bruno@clisp.org>
63155
63156         * lib/string_.h (GL_LINK_WARNING): New macro.
63157         (strcasecmp, strstr, strcasestr): If provided by the system,
63158         conditionally define as a macro that leads to a warning instead of to
63159         an error.
63160         (strncasecmp): Conditionally define as a macro that leads to a warning.
63161
63162 2007-02-01  Karl Berry  <karl@gnu.org>
63163
63164         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63165
63166 2007-02-01  Bruno Haible  <bruno@clisp.org>
63167
63168         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63169         renamings.
63170
63171 2007-02-01  Eric Blake  <ebb9@byu.net>
63172
63173         * modules/regex (Depends-on): Revert dependence on mempcpy.
63174         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63175         module's definition of mempcpy.
63176         Reported by Paul Eggert.
63177
63178 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63181         the symbol XYZ before redefining it.  This fixes a problem with
63182         programs that don't use XYZ, when compiled on systems that define
63183         XYZ to something else.
63184
63185 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63186
63187         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63188         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63189         writeable to group or other and (2) is intended to have a special
63190         mode bit that is set or cleared.  In such a case, the directory
63191         should be neither group- nor other-writeable until the special
63192         mode bits are right.
63193
63194 2007-01-31  Eric Blake  <ebb9@byu.net>
63195
63196         * modules/mountlist (Depends-on): Add strstr.
63197
63198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63199         bug.
63200         * modules/string (Makefile.am): Remove redundant replacement.
63201         * modules/regex (Depends-on): Add mempcpy.
63202
63203 2007-01-31  Bruno Haible  <bruno@clisp.org>
63204
63205         New module description field 'Link'.
63206         * gnulib-tool (func_usage): Document --extract-link-directive.
63207         (sed_extract_prog): Recognize 'Link' directive.
63208         (func_get_link_directive): New function.
63209         (func_import): Show summary of link directives.
63210         Handle --extract-link-directive option.
63211         * modules/acl (Link): New section.
63212         * modules/clock-time (Link): New section.
63213         * modules/euidaccess (Link): New section.
63214         * modules/gettext (Link): New section.
63215         * modules/iconv (Link): New section.
63216         * modules/lock (Link): New section.
63217         * modules/nanosleep (Link): New section.
63218         * modules/readline (Link): New section.
63219
63220 2007-01-27  Bruno Haible  <bruno@clisp.org>
63221
63222         Enforce the use of gnulib modules for unportable <string.h> functions.
63223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63224         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63225         (gl_HEADER_STRING_H_BODY): Require it.
63226         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63227         the symbol XYZ to one that gives a link error.
63228         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63229         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63230         * modules/mempcpy (configure.ac): Likewise.
63231         * modules/memrchr (configure.ac): Likewise.
63232         * modules/stpcpy (configure.ac): Likewise.
63233         * modules/stpncpy (configure.ac): Likewise.
63234         * modules/strcase (configure.ac): Likewise.
63235         * modules/strcasestr (configure.ac): Likewise.
63236         * modules/strchrnul (configure.ac): Likewise.
63237         * modules/strdup (configure.ac): Likewise.
63238         * modules/strndup (configure.ac): Likewise.
63239         * modules/strnlen (configure.ac): Likewise.
63240         * modules/strpbrk (configure.ac): Likewise.
63241         * modules/strsep (configure.ac): Likewise.
63242         * modules/strstr (configure.ac): Likewise.
63243         * modules/strtok_r (configure.ac): Likewise.
63244
63245 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63246
63247         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63248
63249 2007-01-30  Jim Meyering  <jim@meyering.net>
63250
63251         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63252
63253 2007-01-29  Bruno Haible  <bruno@clisp.org>
63254
63255         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63256         * lib/execute.c: Likewise.
63257         * lib/pipe.c: Likewise.
63258         * lib/printf-args.h: Likewise.
63259         * lib/printf-args.c: Likewise.
63260         * lib/printf-parse.c: Likewise.
63261         * lib/vasnprintf.c: Likewise.
63262
63263 2007-01-29  Eric Blake  <ebb9@byu.net>
63264
63265         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63266         declaration.
63267
63268 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * lib/strptime.h (strptime): Use 'restrict' for args where
63271         POSIX requires this.
63272         * lib/strptime.c (strptime): Likewise.
63273         Change license notice from LGPL to GPL, since gnulib-tool will
63274         change this as needed.
63275         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63276         defined.
63277         Include "strptime.h" first, to check interface.
63278         Do not #undef _LIBC and _NL_CURRENT.
63279         Do not include <stdlib.h>; no longer needed.
63280         Include "time_r.h" and declare ptime_locale_status
63281         only if _LIBC is not defined.
63282         (__P): Remove unused macro.
63283         (match_string): Bring back glibc version, but use it only if _LIBC
63284         is defined.
63285         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63286         Remove unnecessary assertion and abort() call.
63287         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63288         * m4/strptime.m4: Fix serial number comment.
63289         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63290         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63291         (Depends-on): Add time_r.
63292
63293 2007-01-29  Bruno Haible  <bruno@clisp.org>
63294
63295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63296         strptime.
63297         * modules/strptime (Depends-on): Add stdbool.
63298         * lib/strptime.h: Include <time.h> always. Add comments.
63299
63300 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63301
63302         * modules/strptime: New file.
63303         * lib/strptime.h: New file.
63304         * lib/strptime.c: New file.
63305         * m4/strptime.m4: New file.
63306
63307 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63308
63309         * MODULES.html.sh: New module mpsort.
63310         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63311
63312         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63313         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63315         All uses changed.
63316         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63317         All uses changed.
63318         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63319         to _Restrict_.
63320         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63321         the parameter matches the prototype.
63322
63323 2007-01-28  Jim Meyering  <jim@meyering.net>
63324
63325         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63326         sys/time.h here, reverting that part of the previous patch:
63327         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63328
63329 2007-01-28  Bruno Haible  <bruno@clisp.org>
63330
63331         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63332         value of $(SYS_TIME_H).
63333         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63334         remove it conditionally, too. [added by Jim Meyering]
63335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63337         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63338         GETTIMEOFDAY_REPLACEMENT to 1.
63339
63340 2007-01-28  Bruno Haible  <bruno@clisp.org>
63341
63342         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63343         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63345         Set UNISTD_H instead of UNISTD_H2.
63346         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63347
63348 2007-01-28  Bruno Haible  <bruno@clisp.org>
63349
63350         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63351         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63352
63353 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63354
63355         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63356         (func_create_testdir): Ensure C locale for `grep' and `tr'
63357         character ranges.
63358         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63359         ACLOCAL_AMFLAGS parsing state machine.
63360
63361 2007-01-27  Bruno Haible  <bruno@clisp.org>
63362
63363         * modules/unistr/base: Update.
63364
63365 2007-01-27  Bruno Haible  <bruno@clisp.org>
63366
63367         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63368         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63369         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63370         modules/unistr/u32-mbtouc.
63371         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63372         * lib/unistr.h: Update.
63373         * lib/linebreak.c: Update.
63374         * modules/unistr/u32-mbtouc: Renamed from
63375         modules/unistr/u32-mbtouc-safe.
63376         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63377         * lib/unistr.h: Update.
63378         * lib/unistr/u32-to-u8.c: Update.
63379         * lib/unistr/u32-to-u16.c: Update.
63380
63381 2007-01-27  Bruno Haible  <bruno@clisp.org>
63382
63383         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63384         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63385         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63386         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63387         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63388         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63389         modules/unistr/u16-mbtouc.
63390         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63391         * lib/unistr.h: Update.
63392         * lib/linebreak.c: Update.
63393         * modules/linebreak: Update.
63394         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63395         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63396         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63397         * modules/unistr/u16-mbtouc: Renamed from
63398         modules/unistr/u16-mbtouc-safe.
63399         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63400         * lib/unistr.h: Update.
63401         * lib/unistr/u16-to-u8.c: Update.
63402         * modules/unistr/u16-to-u8: Update.
63403         * lib/unistr/u16-to-u32.c: Update.
63404         * modules/unistr/u16-to-u32: Update.
63405
63406 2007-01-27  Bruno Haible  <bruno@clisp.org>
63407
63408         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63409         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63410         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63411         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63412         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63413         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63414         modules/unistr/u8-mbtouc.
63415         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63416         * lib/unistr.h: Update.
63417         * lib/striconveh.c: Update.
63418         * modules/striconveh: Update.
63419         * lib/linebreak.c: Update.
63420         * modules/linebreak: Update.
63421         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63422         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63423         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63424         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63425         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63426         * lib/unistr.h: Update.
63427         * lib/striconveh.c: Update.
63428         * modules/striconveh: Update.
63429         * lib/unistr/u8-to-u16.c: Update.
63430         * modules/unistr/u8-to-u16: Update.
63431         * lib/unistr/u8-to-u32.c: Update.
63432         * modules/unistr/u8-to-u32: Update.
63433
63434 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63435
63436         Sync from Libtool.
63437         * lib/argz.c: Do not include strings.h nor memory.h, include
63438         string.h unconditionally.  Patch by Simon Josefsson.
63439
63440 2007-01-27  Bruno Haible  <bruno@clisp.org>
63441
63442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63443         from gl_HEADER_STRING_H_BODY.
63444         (gl_HEADER_STRING_H_BODY): Require it.
63445         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63446         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63447         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63448         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63449         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63450         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63452         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63453         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63454         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63455         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63456         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63457         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63458         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63459         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63460
63461 2007-01-27  Bruno Haible  <bruno@clisp.org>
63462
63463         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63464         check_PROGRAMS into noinst_PROGRAMS.
63465         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63466         check_PROGRAMS in this case.
63467         (func_import): Set for_test to false.
63468         (func_create_testdir): Set for_test to true.
63469
63470 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63471             Bruno Haible  <bruno@clisp.org>
63472
63473         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63474         (Depends-on): Add string.
63475         (Includes): Use <string.h> instead of strcasestr.h.
63476         * modules/string (Makefile.am): Also substitute the value of
63477         REPLACE_STRCASESTR.
63478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63479         assume strcasestr is declared in <string.h> not <strings.h>. Also
63480         set REPLACE_STRCASESTR.
63481         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63482         REPLACE_STRCASESTR.
63483         * lib/strcasestr.h: Remove file.
63484         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63485         * lib/string_.h (strcasestr): New declaration.
63486
63487 2007-01-27  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/string_.h: Use 'extern'.
63490
63491 2007-01-27  Jim Meyering  <jim@meyering.net>
63492
63493         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63494         of set-but-not-used local, "q".
63495
63496         * lib/mempcpy.c: Include <config.h> before <string.h>.
63497         This fixes a compilation error on HP-UX, due to the system's
63498         "restrict"-using mempcpy prototype.
63499
63500 2007-01-26  Bruno Haible  <bruno@clisp.org>
63501
63502         Small optimization.
63503         * lib/javacomp.c: Include c-strstr.h.
63504          (is_envjavac_gcj): Use c_strstr instead of strstr.
63505         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63506
63507 2007-01-26  Bruno Haible  <bruno@clisp.org>
63508
63509         * MODULES.html.sh (Unicode string functions): Add the new modules.
63510
63511         * modules/uniconv/u32-strconv-to-locale: New file.
63512         * lib/uniconv/u32-strconv-to-locale.c: New file.
63513
63514         * modules/uniconv/u16-strconv-to-locale: New file.
63515         * lib/uniconv/u16-strconv-to-locale.c: New file.
63516
63517         * modules/uniconv/u8-strconv-to-locale: New file.
63518         * lib/uniconv/u8-strconv-to-locale.c: New file.
63519
63520         * modules/uniconv/u32-strconv-from-locale: New file.
63521         * lib/uniconv/u32-strconv-from-locale.c: New file.
63522
63523         * modules/uniconv/u16-strconv-from-locale: New file.
63524         * lib/uniconv/u16-strconv-from-locale.c: New file.
63525
63526         * modules/uniconv/u8-strconv-from-locale: New file.
63527         * lib/uniconv/u8-strconv-from-locale.c: New file.
63528
63529         * modules/uniconv/u32-strconv-to-enc: New file.
63530         * lib/uniconv/u32-strconv-to-enc.c: New file.
63531         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63532         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63533
63534         * modules/uniconv/u16-strconv-to-enc: New file.
63535         * lib/uniconv/u16-strconv-to-enc.c: New file.
63536         * lib/uniconv/u-strconv-to-enc.h: New file.
63537         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63538         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63539
63540         * modules/uniconv/u8-strconv-to-enc: New file.
63541         * lib/uniconv/u8-strconv-to-enc.c: New file.
63542         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63543         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63544
63545         * modules/uniconv/u32-strconv-from-enc: New file.
63546         * lib/uniconv/u32-strconv-from-enc.c: New file.
63547         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63548         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63549
63550         * modules/uniconv/u16-strconv-from-enc: New file.
63551         * lib/uniconv/u16-strconv-from-enc.c: New file.
63552         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63553         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63554
63555         * modules/uniconv/u8-strconv-from-enc: New file.
63556         * lib/uniconv/u8-strconv-from-enc.c: New file.
63557         * lib/uniconv/u-strconv-from-enc.h: New file.
63558         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63559         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63560
63561         * modules/uniconv/u32-conv-from-enc: New file.
63562         * lib/uniconv/u32-conv-from-enc.c: New file.
63563         * modules/uniconv/u32-conv-from-enc-tests: New file.
63564         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63565
63566         * modules/uniconv/u16-conv-from-enc: New file.
63567         * lib/uniconv/u16-conv-from-enc.c: New file.
63568         * lib/uniconv/u-conv-from-enc.h: New file.
63569         * modules/uniconv/u16-conv-from-enc-tests: New file.
63570         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63571
63572         * modules/uniconv/u8-conv-from-enc: New file.
63573         * lib/uniconv/u8-conv-from-enc.c: New file.
63574         * modules/uniconv/u8-conv-from-enc-tests: New file.
63575         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63576
63577         * modules/uniconv/base: New file.
63578         * lib/uniconv.h: New file.
63579
63580 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63581
63582         * doc/gnulib-tool.texi (Initial import): Update to match current
63583         behavior with strdup module.
63584         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63585         * lib/memmem.h: Remove; all uses removed.  This is now done
63586         by <string.h>.
63587         * lib/mempcpy.h: Likewise.
63588         * lib/memrchr.h: Likewise.
63589         * lib/stpcpy.h: Likewise.
63590         * lib/stpncpy.h: Likewise.
63591         * lib/strcase.h: Likewise.
63592         * lib/strchrnul.h: Likewise.
63593         * lib/strdup.h: Likewise.
63594         * lib/strndup.h: Likewise.
63595         * lib/strnlen.h: Likewise.
63596         * lib/strpbrk.h: Likewise.
63597         * lib/strsep.h: Likewise.
63598         * lib/strstr.h: Likewise.
63599         * lib/strtok_r.h: Likewise.
63600         * lib/string_.h: New file.
63601         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63602         Rely on <string.h> instead.
63603         * lib/canon-host.c: Likewise.
63604         * lib/chdir-long.c: Likewise.
63605         * lib/concatpath.c: Likewise.
63606         * lib/exclude.c: Likewise.
63607         * lib/fchdir.c: Likewise.
63608         * lib/getaddrinfo.c: Likewise.
63609         * lib/getcwd.c: Likewise.
63610         * lib/getsubopt.c: Likewise.
63611         * lib/glob.c: Likewise.
63612         * lib/hard-locale.c: Likewise.
63613         * lib/iconvme.c: Likewise.
63614         * lib/javacomp.c: Likewise.
63615         * lib/mempcpy.c: Likewise.
63616         * lib/memrchr.c: Likewise.
63617         * lib/regex_internal.h: Likewise.
63618         * lib/stpncpy.c: Likewise.
63619         * lib/strcasecmp.c: Likewise.
63620         * lib/strchrnul.c: Likewise.
63621         * lib/strdup.c: Likewise.
63622         * lib/striconv.c: Likewise.
63623         * lib/striconveh.c: Likewise.
63624         * lib/striconveha.c: Likewise.
63625         * lib/strncasecmp.c: Likewise.
63626         * lib/strndup.c: Likewise.
63627         * lib/strnlen.c: Likewise.
63628         * lib/strsep.c: Likewise.
63629         * lib/strstr.c: Likewise.
63630         * lib/strtok_r.c: Likewise.
63631         * lib/userspec.c: Likewise.
63632         * lib/w32spawn.h: Likewise.
63633         * lib/xstrndup.c: Likewise.
63634         * lib/mountlist.c (strstr): Remove decl.
63635         * m4/string_h.m4: New file.
63636         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63637         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63638         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63639         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63640         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63641         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63642         Set REPLACE_STRCASECMP if necessary.
63643         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63644         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63645         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63646         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63647         HAVE_DECL_STRDUP if necessary.
63648         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63649         since gl_FUNC_STRNDUP does that now.
63650         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63651         Check for decl here...
63652         (gl_PREREQ_STRNLEN): ... not here.
63653         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63654         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63655         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63656         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63657         necessary.
63658         * modules/string: New file.
63659         * modules/memmem (Files): Remove special-purpose include file.
63660         (Depends-on): Add string.
63661         (Include): Include <string.h>, not the removed file.
63662         * modules/mempcpy: Likewise.
63663         * modules/memrchr: Likewise.
63664         * modules/stpcpy: Likewise.
63665         * modules/stpncpy: Likewise.
63666         * modules/strcase: Likewise.
63667         * modules/strchrnul: Likewise.
63668         * modules/strdup: Likewise.
63669         * modules/strndup: Likewise.
63670         * modules/strnlen: Likewise.
63671         * modules/strpbrk: Likewise.
63672         * modules/strsep: Likewise.
63673         * modules/strstr: Likewise.
63674         * modules/strtok_r: Likewise.
63675         * tests/test-dirname.c: Don't include "strdup.h", since
63676         <string.h> now suffices.
63677         * tests/test-memmem.c: Don't include "memmem.h", since
63678         <string.h> now suffices.
63679
63680 2007-01-25  Bruno Haible  <bruno@clisp.org>
63681
63682         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63683         *resultp is 0.
63684
63685         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63686         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63687         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63688         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63689
63690         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63691         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63692         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63693         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63694         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63695         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63696
63697 2007-01-24  Bruno Haible  <bruno@clisp.org>
63698
63699         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63700         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63701         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63702         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63703         gl_FUNC_FTS_CORE.
63704         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63705         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63706         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63707         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63708         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63709         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63710         gl_FUNC_FCHOWNAT.
63711         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63712         gl_FUNC_STRFTIME.
63713         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63714         Reported by Ralf Wildenhues.
63715
63716 2007-01-24  Bruno Haible  <bruno@clisp.org>
63717
63718         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63719         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63720         gl_GETADDRINFO.
63721         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63722         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63723         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63724
63725 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63726
63727         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63728         Don't use 'exit'; just return from 'main'.
63729         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63730
63731         * lib/fnmatch_.h: Readjust white space and comments to match
63732         glibc, to avoid spurious diffs.
63733
63734 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63735
63736         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63737         2004-12-01 change by Jakub Jelinek, since this code won't compile
63738         if !LIBC.  Problem reported by Bob Proulx.
63739
63740 2007-01-23  Bruno Haible  <bruno@clisp.org>
63741
63742         * lib/striconveh.c: Include c-strcaseeq.h.
63743         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63744         * modules/striconveh (Depends-on): Add c-strcaseeq.
63745
63746 2007-01-23  Bruno Haible  <bruno@clisp.org>
63747
63748         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63749
63750         * modules/c-strcaseeq: New file.
63751         * lib/c-strcaseeq.h: New file.
63752
63753         * modules/streq: New file.
63754         * lib/streq.h: New file.
63755
63756 2007-01-23  Bruno Haible  <bruno@clisp.org>
63757
63758         * modules/striconveha-tests: New file.
63759         * tests/test-striconveha.c: New file.
63760
63761         * lib/striconveha.h: Include <stdbool.h>.
63762         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63763         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63764         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63765         (mem_iconveha): New function.
63766         (str_iconveha_notranslit): Renamed from str_iconveha.
63767         (str_iconveha): New function.
63768         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63769         c-strcase.
63770
63771 2007-01-23  Bruno Haible  <bruno@clisp.org>
63772
63773         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63774         encodings without forgiving before trying any encoding with handler.
63775         (str_iconveha): Try all encodings without forgiving before trying any
63776         encoding with handler.
63777
63778 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63779
63780         Import the following changes from libc.
63781
63782         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63783
63784         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63785
63786         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63787
63788         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63789         normal_bracket label.
63790
63791         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63792
63793         [BZ #361]
63794         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63795         to normal_bracket after fetching the next character.
63796
63797 2007-01-22  Bruno Haible  <bruno@clisp.org>
63798
63799         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63800         argument.
63801         * lib/striconveh.c (iconv_carefully_1): New function.
63802         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63803         argument.
63804         (str_cd_iconveh): Update.
63805         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63806         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63807         * tests/test-striconveh.c (MAGIC): New macro.
63808         (new_offsets): New function.
63809         (main): Test call with and without offsets.
63810
63811 2007-01-22  Bruno Haible  <bruno@clisp.org>
63812
63813         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63814         * modules/sys_select (Makefile.am): Likewise.
63815         * modules/sys_socket (Makefile.am): Likewise.
63816         * modules/sys_time (Makefile.am): Likewise.
63817
63818 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63819
63820         * modules/gettimeofday (License): Change from GPL to LGPL, since
63821         gettimeofday is a library function.
63822
63823 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63824
63825         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63826
63827 2007-01-21  Bruno Haible  <bruno@clisp.org>
63828
63829         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63830
63831 2007-01-21  Bruno Haible  <bruno@clisp.org>
63832
63833         * modules/striconveha: New file.
63834         * lib/striconveha.h: New file.
63835         * lib/striconveha.c: New file.
63836         * MODULES.html.sh (Internationalization functions): Add striconveha.
63837         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63838         string.
63839         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63840
63841 2007-01-21  Bruno Haible  <bruno@clisp.org>
63842
63843         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63844         * lib/striconveh.c (str_iconveh): Likewise.
63845
63846 2007-01-21  Bruno Haible  <bruno@clisp.org>
63847
63848         * lib/striconveh.h (mem_iconveh): New declaration.
63849         * lib/striconveh.c (mem_iconveh): New function.
63850         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63851
63852 2007-01-21  Bruno Haible  <bruno@clisp.org>
63853
63854         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63855
63856         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63857         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63858         original result buffer.
63859         (str_cd_iconveh): Update.
63860         * tests/test-striconveh.c (main): Update.
63861
63862         * lib/striconv.h (mem_cd_iconv): Change specification.
63863         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63864         result buffer.
63865         (str_cd_iconv): Update.
63866         * tests/test-striconv.c (main): Update.
63867
63868 2007-01-21  Bruno Haible  <bruno@clisp.org>
63869
63870         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63871
63872 2007-01-20  Jim Meyering  <jim@meyering.net>
63873
63874         * lib/userspec.c (parse_with_separator): If a user or group string
63875         starts with "+", skip the corresponding name-to-ID look-up, since
63876         such a look-up must fail: user and group names may not include "+".
63877
63878 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63879
63880         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63881         since we now assume the sys_time module.
63882         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63883         check for sys/time.h; no longer needed.
63884         * modules/poll (Depends-on): Depend on sys_time.
63885
63886 2007-01-18  Bruno Haible  <bruno@clisp.org>
63887
63888         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63889         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63890
63891         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63892         gettimeofday.
63893
63894         * tests/test-gettimeofday.c: Include <time.h>.
63895         (dummy): Remove variable.
63896
63897         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63898         gl_HEADER_SYS_TIME_H.
63899         (gl_HEADER_SYS_TIME_H): New macro.
63900
63901         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63902         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63903         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63904         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63905         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63906         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63907         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63908         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63909         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63910         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63911         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63912
63913         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63914         last change; it caused a compilation error when cross-compiling to
63915         Cygwin.
63916
63917 2007-01-18  Jim Meyering  <jim@meyering.net>
63918
63919         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63920         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63921         than the race-prone "test -d sys || mkdir sys".
63922         (configure.ac): Use AC_PROG_MKDIR_P.
63923         * modules/sys_select: Likewise.
63924         * modules/sys_socket: Likewise.
63925         * modules/sys_time: Likewise.
63926
63927 2007-01-18  Eric Blake  <ebb9@byu.net>
63928
63929         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63930         replace gettimeofday.
63931         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63932         name, to avoid infinite recursion.
63933
63934 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63935
63936         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63937         module sys_time.
63938         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63939         assume timespec.h defines struct timeval.
63940         * lib/settime.c: Likewise.
63941         * lib/utimens.c: Likewise.
63942         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63943         since we now assume the gettimeofday module.
63944         * lib/tempname.c (__gen_tempname): Likewise.
63945         * lib/gettimeofday.h: Remove.
63946         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63947         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63948         Include <time.h>, for 'time()'.
63949         (localtime_buffer_addr): Also use this workaround if
63950         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63951         to simplify the uses.  All uses changed.
63952         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63953         that #undef is inside {}, and 'const' follows type name consistently.
63954         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63955         (gettimeofday): Do not use the maximum possible value for
63956         tv->tv_usec, since that might break usages other than ls.c.
63957         Instead, we'll leave ls.c alone.  This undoes today's patch
63958         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63959         we've never observed the problem but might as well keep the
63960         canary.
63961         * lib/nanosleep.c: Include timespec.h first, for interface check.
63962         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63963         now assume the sys_time module.
63964         * lib/tempname.c: Likewise.
63965         * lib/timespec.h: Likewise.
63966         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63967         needed.
63968         * lib/strftime.c: Likewise.
63969         * lib/timespec.h: Likewise.
63970         * lib/posixtm.c: Include posixtm.h first, for interface check.
63971         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63972         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63973         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63974         * lib/sys_time_.h: New file.
63975         * lib/timespec.h (struct timespec): Use long int, not long.
63976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63977         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63978         Remove obsolescent call to AC_HEADER_TIME.
63979         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63981         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63982         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63983         Likewise.
63984         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63985         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63986         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63987         into the sys_time module.  Check for gettimeofday just once.
63988         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63989         for gettimeofday signature to just check the signature.  Merely
63990         compile it, since linking doesn't test signature.  Improve test for
63991         whether gettimeofday.o is actually needed.
63992         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63993         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63994         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63995         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63996         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63997         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63998         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63999         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64000         than worrying about sys/time.h.
64001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64002         Don't bother worrying about TIME_WITH_SYS_TIME.
64003         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64004         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64005         * m4/sys_time_h.m4: New file.
64006         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64007         Don't include sys/time.h.  Return from main rather than exiting.
64008         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64009         all uses changed.
64010         * modules/gethrxtime (Depends-on): Add sys_time.
64011         * modules/gettime (Depends-on): Likewise.
64012         * modules/gettimeofday (Depends-on): Likewise.
64013         * modules/nanosleep (Depends-on): Likewise.
64014         * modules/settime (Depends-on): Likewise.
64015         * modules/tempname (Depends-on): Likewise.
64016         * modules/utimens (Depends-on): Likewise.
64017         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64018         (Include): Change back to <sys/time.h>.
64019         (Maintainer): Add self.
64020         * modules/sys_time: New file.
64021         * modules/tempname (Depends-on): Add gettimeofday.
64022         * tests/test-gettimeofday.c: Include <sys/time.h>
64023         rather than gettimeofday.h.
64024
64025 2007-01-17  Bruno Haible  <bruno@clisp.org>
64026
64027         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64028         the license default to GPL.
64029         (func_create_testdir): Don't complain if a module is LGPL and its
64030         tests module depends on GPLed modules.
64031
64032 2007-01-17  Bruno Haible  <bruno@clisp.org>
64033
64034         * lib/gettimeofday.c (gettimeofday): Add code for the case
64035         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64036         maximum possible value for tv->tv_usec, rather than the minimum one.
64037
64038 2005-10-08  Martin Lambers  <marlam@marlam.de>
64039 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64040 2007-01-16  Bruno Haible  <bruno@clisp.org>
64041
64042         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64043         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64044         gl_FUNC_GETTIMEOFDAY.
64045         (Include): Add gettimeofday.h.
64046         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64047         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64048         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64049         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64050         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64051         * lib/gettimeofday.h: New file.
64052         * lib/gettimeofday.c: Include <sys/timeb.h>.
64053         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64054         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64055         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64056         fall back on time().
64057
64058         * tests/test-gettimeofday.c: New file.
64059         * modules/gettimeofday-tests: New file.
64060
64061 2007-01-16  Eric Blake  <ebb9@byu.net>
64062
64063         * modules/fnmatch (Depends-on): Depend on wchar.
64064         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64065         * m4/fnmatch.m4: Likewise.
64066         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64067         * m4/mbchar.m4: Likewise.
64068         * modules/mbswidth (Depends-on): Depend on wchar.
64069         * lib/mbswidth.c: Assume <wchar.h>.
64070         * m4/mbswidth.m4: Likewise.
64071         * modules/quotearg (Depends-on): Depend on wchar.
64072         * lib/quotearg.c: Assume <wchar.h>.
64073         * m4/quotearg.m4: Likewise.
64074         * modules/regex (Depends-on): Depend on wchar.
64075         * lib/regex_internal.h: Assume <wchar.h>.
64076         * m4/regex.m4: Likewise.
64077         * modules/stdint (Depends-on): Depend on wchar.
64078         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64079         * m4/stdint.m4: Likewise.
64080         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64081         * modules/strftime (Depends-on): Depend on wchar.
64082         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64083         * modules/strtol (Depends-on): Depend on wchar.
64084         * lib/strtol.c: Assume <wchar.h>.
64085         * modules/wcwidth (Depends-on): Depend on wchar.
64086         * lib/wcwidth.h: Assume <wchar.h>.
64087         * m4/wcwidth.m4: Likewise.
64088
64089 2007-01-16  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/csharpexec-script: New, created from...
64092         * modules/csharpexec: ... this.
64093
64094 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64095
64096         * modules/javaexec-script: New, created from...
64097         * modules/javaexec: ... this.
64098
64099 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64100
64101         * modules/poll (Dependencies): Add sys_select.
64102
64103 2007-01-15  Jim Meyering  <jim@meyering.net>
64104
64105         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64106         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64107         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64108         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64109
64110 2007-01-15  Bruno Haible  <bruno@clisp.org>
64111
64112         * modules/striconveh: New file.
64113         * lib/striconveh.h: New file.
64114         * lib/striconveh.c: New file.
64115         * MODULES.html.sh (Internationalization functions): Add striconveh.
64116
64117         * modules/striconveh-tests: New file.
64118         * tests/test-striconveh.c: New file.
64119
64120 2007-01-15  Bruno Haible  <bruno@clisp.org>
64121
64122         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64123         not from GNU libiconv or GNU libc.
64124
64125 2007-01-15  Bruno Haible  <bruno@clisp.org>
64126
64127         * doc/gnulib-intro.texi (Copyright): Explain the different license
64128         terms for module descriptions, autoconf macros, tests, documentation.
64129
64130 2007-01-14  Bruno Haible  <bruno@clisp.org>
64131
64132         * modules/striconv-tests: New file.
64133         * tests/test-striconv.c: New file.
64134
64135 2007-01-14  Bruno Haible  <bruno@clisp.org>
64136
64137         * modules/iconv-tests: New file.
64138         * tests/test-iconv.c: New file.
64139
64140 2007-01-14  Bruno Haible  <bruno@clisp.org>
64141
64142         * gnulib-tool (func_get_license): For test modules, use the license of
64143         the main module.
64144
64145 2007-01-14  Bruno Haible  <bruno@clisp.org>
64146
64147         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64148         if iconv is found to exist.
64149
64150 2007-01-14  Bruno Haible  <bruno@clisp.org>
64151
64152         * modules/c-ctype-tests: New file.
64153         * tests/test-c-ctype.c: New file.
64154
64155 2007-01-14  Bruno Haible  <bruno@clisp.org>
64156
64157         * modules/binary-io-tests: New file.
64158         * tests/test-binary-io.sh: New file.
64159         * tests/test-binary-io.c: New file.
64160
64161 2007-01-14  Bruno Haible  <bruno@clisp.org>
64162
64163         * modules/array-oset-tests: New file.
64164         * tests/test-array_oset.c: New file.
64165
64166 2007-01-14  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/array-list-tests: New file.
64169         * tests/test-array_list.c: New file.
64170
64171 2007-01-14  Bruno Haible  <bruno@clisp.org>
64172
64173         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64174         and make.
64175         Reported by Simon Josefsson in
64176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64177
64178 2007-01-14  Bruno Haible  <bruno@clisp.org>
64179
64180         * modules/allocsa-tests: New file.
64181         * tests/test-allocsa.c: New file.
64182
64183 2007-01-14  Bruno Haible  <bruno@clisp.org>
64184
64185         * modules/fchdir (Depends-on): Add absolute-header.
64186         * modules/unistd (Depends-on): Likewise.
64187
64188 2006-12-30  Bruno Haible  <bruno@clisp.org>
64189
64190         * modules/fchdir: New file.
64191         * modules/unistd (Files): Add lib/unistd_.h.
64192         (Makefile.am): Generate unistd.h from unistd_.h.
64193         * lib/fchdir.c: New file.
64194         * lib/dirent_.h: New file.
64195         * lib/unistd_.h: New file.
64196         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64197         * m4/fchdir.m4: New file.
64198         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64199         (gl_HEADER_UNISTD): Invoke it.
64200         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64201         function.
64202         * lib/backupfile.c (opendir, closedir): Undefine.
64203         * lib/chown.c (open, close): Undefine.
64204         * lib/clean-temp.c (open, close): Undefine.
64205         * lib/copy-file.c (open, close): Undefine.
64206         * lib/execute.c (open, close): Undefine.
64207         * lib/fsusage.c (open, close): Undefine.
64208         * lib/gc-gnulib.c (open, close): Undefine.
64209         * lib/getcwd.c (opendir, closedir): Undefine.
64210         * lib/glob.c (opendir, closedir): Undefine.
64211         * lib/javacomp.c (open, close): Undefine.
64212         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64213         * lib/openat-proc.c (open, close): Undefine.
64214         * lib/pagealign_alloc.c (open, close): Undefine.
64215         * lib/pipe.c (open, close): Undefine.
64216         * lib/progreloc.c (open, close): Undefine.
64217         * lib/savedir.c (opendir, closedir): Undefine.
64218         * lib/utime.c (open, close): Undefine.
64219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64220
64221 2007-01-10  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64224
64225 2007-01-12  Eric Blake  <ebb9@byu.net>
64226
64227         Provide a robust <wchar.h>.  Further simplifications are now
64228         possible in other modules, but not included here.
64229         * modules/wchar: New module.
64230         * m4/wchar.m4: New file.
64231         * lib/wchar_.h: Likewise.
64232         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64233         of the new module.
64234         * MODULES.html.sh (Extended multibyte and wide character utilities):
64235         New section.
64236
64237 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64238
64239         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64240         to a reasonable default for memory allocation.
64241         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64242         file system that reports garbage st_size values for symlinks.
64243         Problem reported by Liyang Hu.
64244
64245 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64246
64247         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64248         Emacs .#* auto-save files).
64249
64250 2007-01-11  Bruno Haible  <bruno@clisp.org>
64251
64252         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64253         directory.
64254
64255 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64256
64257         Use @...@ consistently in lib/wctype_.h.
64258         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64259         on it being set to 1 or 0.
64260         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64261         go back to AC_SUBSTing it.
64262         * modules/wctype (Makefile.am): Undo previous change.
64263
64264 2007-01-10  Eric Blake  <ebb9@byu.net>
64265
64266         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64267         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64268         * modules/wctype (Makefile.am): Likewise.
64269         Reported by Chris McGuire.
64270
64271 2007-01-10  Jim Meyering  <jim@meyering.net>
64272
64273         fts.c: a small readability/maintainability improvement
64274         * lib/fts.c (fts_read): Make this code slightly more readable and
64275         maintainable by hoisting the "sp->fts_cur = p" assignments to
64276         immediately follow the statements that set P.  Derived from
64277         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64278
64279 2007-01-10  Eric Blake  <ebb9@byu.net>
64280
64281         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64282         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64284         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64285         Reported by Chris McGuire.
64286
64287 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64288
64289         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64290         in sed script.
64291
64292 2007-01-09  Bruno Haible  <bruno@clisp.org>
64293
64294         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64295         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64296         variables.
64297         (func_module): Use them.
64298
64299 2007-01-09  Bruno Haible  <bruno@clisp.org>
64300
64301         * modules/unistr/base: New file.
64302         * lib/unistr.h: New file.
64303
64304         * modules/unistr/u8-to-u16: New file.
64305         * lib/unistr/u8-to-u16.c: New file.
64306
64307         * modules/unistr/u8-to-u32: New file.
64308         * lib/unistr/u8-to-u32.c: New file.
64309
64310         * modules/unistr/u16-to-u8: New file.
64311         * lib/unistr/u16-to-u8.c: New file.
64312
64313         * modules/unistr/u16-to-u32: New file.
64314         * lib/unistr/u16-to-u32.c: New file.
64315
64316         * modules/unistr/u32-to-u8: New file.
64317         * lib/unistr/u32-to-u8.c: New file.
64318
64319         * modules/unistr/u32-to-u16: New file.
64320         * lib/unistr/u32-to-u16.c: New file.
64321
64322         * modules/unistr/u8-check: New file.
64323         * modules/unistr/u16-check: New file.
64324         * modules/unistr/u32-check: New file.
64325         * lib/unistr/u8-check.c: New file.
64326         * lib/unistr/u16-check.c: New file.
64327         * lib/unistr/u32-check.c: New file.
64328
64329         * modules/unistr/u8-chr: New file.
64330         * modules/unistr/u16-chr: New file.
64331         * modules/unistr/u32-chr: New file.
64332         * lib/unistr/u8-chr.c: New file.
64333         * lib/unistr/u16-chr.c: New file.
64334         * lib/unistr/u32-chr.c: New file.
64335
64336         * modules/unistr/u8-cmp: New file.
64337         * modules/unistr/u16-cmp: New file.
64338         * modules/unistr/u32-cmp: New file.
64339         * lib/unistr/u8-cmp.c: New file.
64340         * lib/unistr/u16-cmp.c: New file.
64341         * lib/unistr/u32-cmp.c: New file.
64342
64343         * modules/unistr/u8-cpy: New file.
64344         * modules/unistr/u16-cpy: New file.
64345         * modules/unistr/u32-cpy: New file.
64346         * lib/unistr/u8-cpy.c: New file.
64347         * lib/unistr/u16-cpy.c: New file.
64348         * lib/unistr/u32-cpy.c: New file.
64349         * lib/unistr/u-cpy.h: New file.
64350
64351         * modules/unistr/u8-cpy-alloc: New file.
64352         * modules/unistr/u16-cpy-alloc: New file.
64353         * modules/unistr/u32-cpy-alloc: New file.
64354         * lib/unistr/u8-cpy-alloc.c: New file.
64355         * lib/unistr/u16-cpy-alloc.c: New file.
64356         * lib/unistr/u32-cpy-alloc.c: New file.
64357         * lib/unistr/u-cpy-alloc.h: New file.
64358
64359         * modules/unistr/u8-endswith: New file.
64360         * modules/unistr/u16-endswith: New file.
64361         * modules/unistr/u32-endswith: New file.
64362         * lib/unistr/u8-endswith.c: New file.
64363         * lib/unistr/u16-endswith.c: New file.
64364         * lib/unistr/u32-endswith.c: New file.
64365         * lib/unistr/u-endswith.h: New file.
64366
64367         * modules/unistr/u8-mblen: New file.
64368         * modules/unistr/u16-mblen: New file.
64369         * modules/unistr/u32-mblen: New file.
64370         * lib/unistr/u8-mblen.c: New file.
64371         * lib/unistr/u16-mblen.c: New file.
64372         * lib/unistr/u32-mblen.c: New file.
64373
64374         * modules/unistr/u8-mbtouc: New file.
64375         * modules/unistr/u16-mbtouc: New file.
64376         * modules/unistr/u32-mbtouc: New file.
64377         * lib/unistr/u8-mbtouc.c: New file.
64378         * lib/unistr/u16-mbtouc.c: New file.
64379         * lib/unistr/u32-mbtouc.c: New file.
64380
64381         * modules/unistr/u8-mbtouc-safe: New file.
64382         * modules/unistr/u16-mbtouc-safe: New file.
64383         * modules/unistr/u32-mbtouc-safe: New file.
64384         * lib/unistr/u8-mbtouc-safe.c: New file.
64385         * lib/unistr/u16-mbtouc-safe.c: New file.
64386         * lib/unistr/u32-mbtouc-safe.c: New file.
64387
64388         * modules/unistr/u8-move: New file.
64389         * modules/unistr/u16-move: New file.
64390         * modules/unistr/u32-move: New file.
64391         * lib/unistr/u8-move.c: New file.
64392         * lib/unistr/u16-move.c: New file.
64393         * lib/unistr/u32-move.c: New file.
64394         * lib/unistr/u-move.h: New file.
64395
64396         * modules/unistr/u8-next: New file.
64397         * modules/unistr/u16-next: New file.
64398         * modules/unistr/u32-next: New file.
64399         * lib/unistr/u8-next.c: New file.
64400         * lib/unistr/u16-next.c: New file.
64401         * lib/unistr/u32-next.c: New file.
64402
64403         * modules/unistr/u8-prev: New file.
64404         * modules/unistr/u16-prev: New file.
64405         * modules/unistr/u32-prev: New file.
64406         * lib/unistr/u8-prev.c: New file.
64407         * lib/unistr/u16-prev.c: New file.
64408         * lib/unistr/u32-prev.c: New file.
64409
64410         * modules/unistr/u8-set: New file.
64411         * modules/unistr/u16-set: New file.
64412         * modules/unistr/u32-set: New file.
64413         * lib/unistr/u8-set.c: New file.
64414         * lib/unistr/u16-set.c: New file.
64415         * lib/unistr/u32-set.c: New file.
64416         * lib/unistr/u-set.h: New file.
64417
64418         * modules/unistr/u8-startswith: New file.
64419         * modules/unistr/u16-startswith: New file.
64420         * modules/unistr/u32-startswith: New file.
64421         * lib/unistr/u8-startswith.c: New file.
64422         * lib/unistr/u16-startswith.c: New file.
64423         * lib/unistr/u32-startswith.c: New file.
64424         * lib/unistr/u-startswith.h: New file.
64425
64426         * modules/unistr/u8-stpcpy: New file.
64427         * modules/unistr/u16-stpcpy: New file.
64428         * modules/unistr/u32-stpcpy: New file.
64429         * lib/unistr/u8-stpcpy.c: New file.
64430         * lib/unistr/u16-stpcpy.c: New file.
64431         * lib/unistr/u32-stpcpy.c: New file.
64432         * lib/unistr/u-stpcpy.h: New file.
64433
64434         * modules/unistr/u8-stpncpy: New file.
64435         * modules/unistr/u16-stpncpy: New file.
64436         * modules/unistr/u32-stpncpy: New file.
64437         * lib/unistr/u8-stpncpy.c: New file.
64438         * lib/unistr/u16-stpncpy.c: New file.
64439         * lib/unistr/u32-stpncpy.c: New file.
64440         * lib/unistr/u-stpncpy.h: New file.
64441
64442         * modules/unistr/u8-strcat: New file.
64443         * modules/unistr/u16-strcat: New file.
64444         * modules/unistr/u32-strcat: New file.
64445         * lib/unistr/u8-strcat.c: New file.
64446         * lib/unistr/u16-strcat.c: New file.
64447         * lib/unistr/u32-strcat.c: New file.
64448         * lib/unistr/u-strcat.h: New file.
64449
64450         * modules/unistr/u8-strchr: New file.
64451         * modules/unistr/u16-strchr: New file.
64452         * modules/unistr/u32-strchr: New file.
64453         * lib/unistr/u8-strchr.c: New file.
64454         * lib/unistr/u16-strchr.c: New file.
64455         * lib/unistr/u32-strchr.c: New file.
64456
64457         * modules/unistr/u8-strcmp: New file.
64458         * modules/unistr/u16-strcmp: New file.
64459         * modules/unistr/u32-strcmp: New file.
64460         * lib/unistr/u8-strcmp.c: New file.
64461         * lib/unistr/u16-strcmp.c: New file.
64462         * lib/unistr/u32-strcmp.c: New file.
64463
64464         * modules/unistr/u8-strcpy: New file.
64465         * modules/unistr/u16-strcpy: New file.
64466         * modules/unistr/u32-strcpy: New file.
64467         * lib/unistr/u8-strcpy.c: New file.
64468         * lib/unistr/u16-strcpy.c: New file.
64469         * lib/unistr/u32-strcpy.c: New file.
64470         * lib/unistr/u-strcpy.h: New file.
64471
64472         * modules/unistr/u8-strcspn: New file.
64473         * modules/unistr/u16-strcspn: New file.
64474         * modules/unistr/u32-strcspn: New file.
64475         * lib/unistr/u8-strcspn.c: New file.
64476         * lib/unistr/u16-strcspn.c: New file.
64477         * lib/unistr/u32-strcspn.c: New file.
64478         * lib/unistr/u-strcspn.h: New file.
64479
64480         * modules/unistr/u8-strdup: New file.
64481         * modules/unistr/u16-strdup: New file.
64482         * modules/unistr/u32-strdup: New file.
64483         * lib/unistr/u8-strdup.c: New file.
64484         * lib/unistr/u16-strdup.c: New file.
64485         * lib/unistr/u32-strdup.c: New file.
64486         * lib/unistr/u-strdup.h: New file.
64487
64488         * modules/unistr/u8-strlen: New file.
64489         * modules/unistr/u16-strlen: New file.
64490         * modules/unistr/u32-strlen: New file.
64491         * lib/unistr/u8-strlen.c: New file.
64492         * lib/unistr/u16-strlen.c: New file.
64493         * lib/unistr/u32-strlen.c: New file.
64494         * lib/unistr/u-strlen.h: New file.
64495
64496         * modules/unistr/u8-strmblen: New file.
64497         * modules/unistr/u16-strmblen: New file.
64498         * modules/unistr/u32-strmblen: New file.
64499         * lib/unistr/u8-strmblen.c: New file.
64500         * lib/unistr/u16-strmblen.c: New file.
64501         * lib/unistr/u32-strmblen.c: New file.
64502
64503         * modules/unistr/u8-strmbtouc: New file.
64504         * modules/unistr/u16-strmbtouc: New file.
64505         * modules/unistr/u32-strmbtouc: New file.
64506         * lib/unistr/u8-strmbtouc.c: New file.
64507         * lib/unistr/u16-strmbtouc.c: New file.
64508         * lib/unistr/u32-strmbtouc.c: New file.
64509
64510         * modules/unistr/u8-strncat: New file.
64511         * modules/unistr/u16-strncat: New file.
64512         * modules/unistr/u32-strncat: New file.
64513         * lib/unistr/u8-strncat.c: New file.
64514         * lib/unistr/u16-strncat.c: New file.
64515         * lib/unistr/u32-strncat.c: New file.
64516         * lib/unistr/u-strncat.h: New file.
64517
64518         * modules/unistr/u8-strncmp: New file.
64519         * modules/unistr/u16-strncmp: New file.
64520         * modules/unistr/u32-strncmp: New file.
64521         * lib/unistr/u8-strncmp.c: New file.
64522         * lib/unistr/u16-strncmp.c: New file.
64523         * lib/unistr/u32-strncmp.c: New file.
64524
64525         * modules/unistr/u8-strncpy: New file.
64526         * modules/unistr/u16-strncpy: New file.
64527         * modules/unistr/u32-strncpy: New file.
64528         * lib/unistr/u8-strncpy.c: New file.
64529         * lib/unistr/u16-strncpy.c: New file.
64530         * lib/unistr/u32-strncpy.c: New file.
64531         * lib/unistr/u-strncpy.h: New file.
64532
64533         * modules/unistr/u8-strnlen: New file.
64534         * modules/unistr/u16-strnlen: New file.
64535         * modules/unistr/u32-strnlen: New file.
64536         * lib/unistr/u8-strnlen.c: New file.
64537         * lib/unistr/u16-strnlen.c: New file.
64538         * lib/unistr/u32-strnlen.c: New file.
64539         * lib/unistr/u-strnlen.h: New file.
64540
64541         * modules/unistr/u8-strpbrk: New file.
64542         * modules/unistr/u16-strpbrk: New file.
64543         * modules/unistr/u32-strpbrk: New file.
64544         * lib/unistr/u8-strpbrk.c: New file.
64545         * lib/unistr/u16-strpbrk.c: New file.
64546         * lib/unistr/u32-strpbrk.c: New file.
64547         * lib/unistr/u-strpbrk.h: New file.
64548
64549         * modules/unistr/u8-strrchr: New file.
64550         * modules/unistr/u16-strrchr: New file.
64551         * modules/unistr/u32-strrchr: New file.
64552         * lib/unistr/u8-strrchr.c: New file.
64553         * lib/unistr/u16-strrchr.c: New file.
64554         * lib/unistr/u32-strrchr.c: New file.
64555
64556         * modules/unistr/u8-strspn: New file.
64557         * modules/unistr/u16-strspn: New file.
64558         * modules/unistr/u32-strspn: New file.
64559         * lib/unistr/u8-strspn.c: New file.
64560         * lib/unistr/u16-strspn.c: New file.
64561         * lib/unistr/u32-strspn.c: New file.
64562         * lib/unistr/u-strspn.h: New file.
64563
64564         * modules/unistr/u8-strstr: New file.
64565         * modules/unistr/u16-strstr: New file.
64566         * modules/unistr/u32-strstr: New file.
64567         * lib/unistr/u8-strstr.c: New file.
64568         * lib/unistr/u16-strstr.c: New file.
64569         * lib/unistr/u32-strstr.c: New file.
64570         * lib/unistr/u-strstr.h: New file.
64571
64572         * modules/unistr/u8-strtok: New file.
64573         * modules/unistr/u16-strtok: New file.
64574         * modules/unistr/u32-strtok: New file.
64575         * lib/unistr/u8-strtok.c: New file.
64576         * lib/unistr/u16-strtok.c: New file.
64577         * lib/unistr/u32-strtok.c: New file.
64578         * lib/unistr/u-strtok.h: New file.
64579
64580         * modules/unistr/u8-uctomb: New file.
64581         * modules/unistr/u16-uctomb: New file.
64582         * modules/unistr/u32-uctomb: New file.
64583         * lib/unistr/u8-uctomb.c: New file.
64584         * lib/unistr/u16-uctomb.c: New file.
64585         * lib/unistr/u32-uctomb.c: New file.
64586
64587         * MODULES.html.sh (Unicode string functions): Add the new modules.
64588
64589 2007-01-08  Bruno Haible  <bruno@clisp.org>
64590
64591         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64592         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64593         subdirectories.
64594
64595 2007-01-08  Karl Berry  <karl@gnu.org>
64596
64597         * doc/error.texi: mention that main() fns must set program_name
64598         when progname is used.
64599
64600 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64603         WCTYPE_H is empty, for the benefit of builds from non-distclean
64604         directories.  Problem reported by Eric Blake in
64605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64606
64607 2007-01-08  Bruno Haible  <bruno@clisp.org>
64608
64609         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64610         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64611         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64612         PROVIDE_CANONICALIZE_FILENAME_MODE.
64613         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64614
64615 2007-01-08  Bruno Haible  <bruno@clisp.org>
64616
64617         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64618         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64619         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64620         * lib/fts.c: Likewise.
64621         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64622
64623 2006-12-25  Bruno Haible  <bruno@clisp.org>
64624
64625         * modules/utf8-ucs4-safe: New file.
64626         * lib/utf8-ucs4-safe.h: New file.
64627         * lib/unistr/utf8-ucs4-safe.c: New file.
64628
64629         * modules/utf16-ucs4-safe: New file.
64630         * lib/utf16-ucs4-safe.h: New file.
64631         * lib/unistr/utf16-ucs4-safe.c: New file.
64632
64633         * MODULES.html.sh (Unicode string functions): Add the new modules.
64634
64635 2007-01-08  Bruno Haible  <bruno@clisp.org>
64636
64637         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64638         (Depends-on): Add unitypes.
64639         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64640         (u8_mbtouc_aux): Move out to separate file.
64641         (u8_mbtouc): Use ucs4_t, uint8_t types.
64642         * lib/unistr/utf8-ucs4.c: New file.
64643
64644         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64645         (Depends-on): Add unitypes.
64646         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64647         (u16_mbtouc_aux): Move out to separate file.
64648         (u16_mbtouc): Use ucs4_t, uint16_t types.
64649         * lib/unistr/utf16-ucs4.c: New file.
64650
64651         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64652         (Depends-on): Add unitypes.
64653         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64654         (u8_uctomb_aux): Move out to separate file.
64655         (u8_uctomb): Use ucs4_t, uint8_t types.
64656         * lib/unistr/ucs4-utf8.c: New file.
64657
64658         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64659         (Depends-on): Add unitypes.
64660         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64661         (u16_uctomb_aux): Move out to separate file.
64662         (u16_uctomb): Use ucs4_t, uint16_t types.
64663         * lib/unistr/ucs4-utf16.c: New file.
64664
64665 2006-12-25  Bruno Haible  <bruno@clisp.org>
64666
64667         * modules/unitypes: New file.
64668         * lib/unitypes.h: New file.
64669         * MODULES.html.sh (func_all_modules): New section "Unicode string
64670         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64671         this section. Add unitypes.
64672
64673 2007-01-08  Bruno Haible  <bruno@clisp.org>
64674
64675         Avoid variable names that conflict with those from libtool.
64676         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64677         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64678         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64679         library_names_spec to acl_library_names_spec, hardcode_* to
64680         acl_hardcode_*.
64681         Reported by Ralf Wildenhues.
64682
64683 2007-01-08  Bruno Haible  <bruno@clisp.org>
64684
64685         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64686         definition.
64687         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64688         definition.
64689         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64690         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64691         definition.
64692         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64693         definition.
64694         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64695         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64696         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64697         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64698         definition.
64699         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64700         definition.
64701         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64702         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64703         GC_USE_<algorithm>.
64704         * lib/gc-libgcrypt.c: Likewise.
64705         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64706         * modules/gc-arctwo (configure.ac): Likewise.
64707         * modules/gc-des (configure.ac): Likewise.
64708         * modules/gc-hmac-md5 (configure.ac): Likewise.
64709         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64710         * modules/gc-md2 (configure.ac): Likewise.
64711         * modules/gc-md4 (configure.ac): Likewise.
64712         * modules/gc-md5 (configure.ac): Likewise.
64713         * modules/gc-random (configure.ac): Likewise.
64714         * modules/gc-rijndael (configure.ac): Likewise.
64715         * modules/gc-sha1 (configure.ac): Likewise.
64716
64717 2007-01-08  Bruno Haible  <bruno@clisp.org>
64718
64719         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64720         macro definition.
64721         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64722         definition.
64723         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64724         definition.
64725         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64726         * modules/fcntl-safer (configure.ac): Likewise.
64727         * modules/fopen-safer (configure.ac): Likewise.
64728         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64729         GNULIB_FWRITEERROR macro definition.
64730
64731 2007-01-08  Bruno Haible  <bruno@clisp.org>
64732
64733         * m4/gnulib-common.m4: New file.
64734         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64735         (func_get_filelist): Add m4/gnulib-common.m4.
64736
64737 2007-01-08  Bruno Haible  <bruno@clisp.org>
64738
64739         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64740         command.
64741
64742 2007-01-08  Jim Meyering  <jim@meyering.net>
64743
64744         Use a more robust test for a "can't happen" condition.
64745         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64746         narrowed the st_size value.  Presuming the "can't happen" condition
64747         is true, that narrowing could conceivably convert an invalid st_size
64748         value into a valid one.  Instead, use a change based on Matthew
64749         Woehlke's original patch.
64750
64751         Slight readability improvement: use an assert-like macro
64752         in place of literal "abort ()" uses.
64753         * lib/fts.c (fts_assert): Define.
64754         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64755         Use this macro instead of a bare 'abort'.
64756
64757 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64758
64759         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64760         simply work around them.
64761         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64762         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64763         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64764         declaring.
64765         Don't bother to define as macros, since the standard doesn't require it.
64766         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64767         longer worry about IRIX 5.3.
64768         (HAVE_WCTYPE_CTMP_BUG): Remove.
64769
64770 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64773         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64774         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64775         Problems reported by Georg Schwarz for IRIX 5.3.
64776
64777         * gnulib-tool (autoconf_minversion): Take the maximum version number
64778         found, not the minimum.  Problem reported by James Youngman.
64779
64780 2007-01-03  Karl Berry  <karl@gnu.org>
64781
64782         * doc/error.texi: new file, explaining interaction with progname.
64783         * doc/gnulib.texi: include it.  Update copyright.
64784
64785 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64786
64787         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64788         AC_CANONICAL_HOST, to improve autobuild outputs.
64789
64790 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64791             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64792
64793         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64794         sockets, server sockets, and other file descriptors.  Count errors
64795         to compute the return value.  Reorder the code a bit to be easier
64796         to follow.  Don't set event bits that were not requested (except
64797         POLLERR and POLLHUP).
64798
64799 2007-01-01  Bruno Haible  <bruno@clisp.org>
64800
64801         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64802
64803 2007-01-03  Jim Meyering  <jim@meyering.net>
64804
64805         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64806
64807 2007-01-02  Bruno Haible  <bruno@clisp.org>
64808
64809         * modules/settime (Include): Require timespec.h.
64810         * modules/nanosleep (Include): Likewise.
64811
64812 2007-01-01  Bruno Haible  <bruno@clisp.org>
64813
64814         * gnulib-tool (func_emit_copyright_notice): Bump year.
64815         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64816
64817 2007-01-01  Bruno Haible  <bruno@clisp.org>
64818
64819         Improve support for OpenBSD.
64820         * build-aux/config.rpath (libname_spec): Export.
64821         (library_names_spec): New variable. Export.
64822         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64823         library_names_spec from the config.rpath output. Locate shared library
64824         through the name pattern in library_names_spec.
64825
64826 2007-01-01  Eric Blake  <ebb9@byu.net>
64827
64828         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64829
64830 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64831
64832         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64833         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64834         assume the C locale, and avoid an "eval" that could cause trouble.
64835         Problem with SORT reported by Bob Proulx.
64836
64837         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64838         Define.  Trivial patch from Henning Nielsen Lund, originally
64839         sent to bug-grep@gnu.org today.
64840
64841 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64842
64843         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64844         struct stat.  Problem reported by Henning Nielsen Lund.
64845         * lib/acl.c: Include acl.h first, to check interface.  Don't
64846         bother to include sys/types.h and sys/stat.h again.
64847
64848 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         Import the following change from libc; problem reported by
64851         Sven Verdoolaege.
64852
64853         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64854
64855         [BZ #1373]
64856         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64857
64858 2006-12-28  Jim Meyering  <jim@meyering.net>
64859
64860         * build-aux/announce-gen: Do not assume that the package
64861         builds any of tar.gz, tar.bz2, and .xdelta files.
64862         Suggestion from Simon Josefsson.
64863
64864 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64865
64866         * modules/announce-gen: New file.
64867
64868 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64871         handles its gotchas now.
64872         * lib/mbswidth.c: Likewise.
64873         * lib/wcwidth.h: Likewise.
64874         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64875         and iswcntrl; the wctype module does this stuff now.
64876         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64878         * modules/mbchar (Depends-on): Add wctype.
64879         * modules/mbswidth (Depends-on): Likewise.
64880         * modules/wcwidth (Depends-on): Likewise.
64881
64882 2006-12-27  Eric Blake  <ebb9@byu.net>
64883
64884         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64885         module uses more than what <wctype.h> is required to provide.
64886
64887 2006-12-26  Eric Blake  <ebb9@byu.net>
64888
64889         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64890
64891 2006-12-26  Eric Blake  <ebb9@byu.net>
64892
64893         * modules/absolute-header: New module.
64894         * modules/fcntl (Depends-on): Depend on it.
64895         * modules/inttypes (Depends-on): Likewise.
64896         * modules/stdint (Depends-on): Likewise.
64897         * modules/sys_stat (Depends-on): Likewise.
64898         * modules/wctype (Depends-on): Likewise.
64899         * MODULES.html.sh (Support for building libraries and
64900         executables): Document it.
64901
64902 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64903
64904         * gnulib-tool (SED): Remove, undoing previous change.
64905         The problem was that it broke coreutils on Solaris, because
64906         "sed --posix" leaked into a makefile.
64907         (sed): New alias, if 'alias' and GNU sed.
64908
64909 2006-12-24  Jim Meyering  <jim@meyering.net>
64910
64911         Work around an fchownat bug in glibc-2.4:
64912         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64913         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64914         in spite of the -P option.
64915         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64916         New macros.
64917         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64918         * modules/openat (Files): Add lib/fchownat.c.
64919         * lib/openat.c (fchownat): Don't define here.  Move to...
64920         * lib/fchownat.c: ...this new file.
64921
64922 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         Fix bug reported by Bruno Haible in
64925         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64926         where quotearg.c didn't compile on Mac OS X 10.2 because it
64927         lacks <wchar.h> and wint_t.
64928         * lib/wctype_.h (__wctype_wint_t): New type.
64929         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64930         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64931         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64932         Arg is now of type __wctype_wint_t, not wint_t.
64933         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64934         substitute HAVE_WINT_T.
64935         * modules/wctype (Files): Add m4/wint_t.m4.
64936         (wctype.h): Substitute HAVE_WINT_T.
64937
64938 2006-12-23  Bruno Haible  <bruno@clisp.org>
64939
64940         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64941
64942 2006-12-23  Bruno Haible  <bruno@clisp.org>
64943
64944         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64945         S_ISLNK.
64946         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64947         mingw.
64948
64949 2006-12-22  Bruno Haible  <bruno@clisp.org>
64950
64951         * lib/copy-file.c: Include acl.h.
64952         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64953         Close the file descriptors only after being done with copy_acl.
64954         * modules/copy-file (Depends-on): Add acl.
64955
64956 2006-12-22  Bruno Haible  <bruno@clisp.org>
64957
64958         * gnulib-tool (SED): New variable.
64959         Use $SED instead of sed everywhere.
64960
64961 2006-12-22  Bruno Haible  <bruno@clisp.org>
64962
64963         * modules/no-c++: New file.
64964         * m4/no-c++.m4: New file.
64965         * MODULES.html.sh (Support for building libraries and executables):
64966         Add no-c++.
64967
64968 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64969
64970         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64971         Include <limits.h>, and use its INT_MAX to rewrite the
64972         j loop so that it does not overflow 'int'.  Problem reported by
64973         Ralf Wildenhues in
64974         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64975         Play it safe by shifting left by 1 rather than multiplying by 2,
64976         as GCC is less likely to optimize this away when the value
64977         is signed (when it assumes overflow leads to undefined behavior).
64978         Also, don't assume time_t uses two's complement.
64979
64980 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64981
64982         * MODULES.html.sh: New module wctype.
64983         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64984         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64985         <wctype.h>, since the new wctype module should fix this.
64986         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64987         the wctype module should arrange for it.
64988         * lib/regex_internal.h: Likewise.
64989         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64990         since the wctype module should handle this now.
64991         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64992         * modules/fnmatch (Depends-on): Add wctype.
64993         * modules/quotearg (Depends-on): Likewise.
64994         * modules/regex (Depends-on): Likewise.
64995
64996 2006-12-19  Bruno Haible  <bruno@clisp.org>
64997
64998         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64999         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65000
65001 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65002
65003         * modules/savewd (Depends-on): Fix dependency on fcntl.
65004
65005 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65006
65007         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65008         conforms to C99, rather than relying on the user's environment
65009         setting of STDINT_H.
65010
65011 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65012         and Eric Blake  <ebb9@byu.net>
65013
65014         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65015         This is more consistent with the other defines here.
65016         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65017         Port to z/OS.  Problem reported by Paul Gilmartin.
65018         Change local vars to use gl_ prefix rather than ac_.
65019         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65020         with other defines.
65021         * modules/double-slash-root: New module.
65022         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65023         (Depends-on): Add double-slash-root.
65024         * MODULES.html.sh (File system functions): Mention new module.
65025
65026 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65029         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65030         This is for the benefit of gzip, which doesn't do i18n.
65031
65032 2006-12-12  Jim Meyering  <jim@meyering.net>
65033
65034         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65035         Reported by Andreas Schwab <schwab@suse.de>.
65036
65037 2006-12-12  Bruno Haible  <bruno@clisp.org>
65038
65039         Merge these changes.
65040         2006-09-05  Bruno Haible  <bruno@clisp.org>
65041         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65042         iconv_alloc succeeded.
65043         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65044         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65045         test for " && dest " at the end - dest is always != NULL there. Call
65046         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65047         with 2xNULL arguments, also to flush the state storage. Handle the
65048         IRIX iconv behaviour. Realloc the final result, to throw away unused
65049         memory.
65050
65051 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65054         and fchmodat unconditionally, since glibc 2.4 has them.
65055         Problem reported by Arkadiusz Miskiewicz.
65056
65057 2006-12-10  Bruno Haible  <bruno@clisp.org>
65058
65059         * gnulib-tool (func_import): Show the include files only for those
65060         modules that are copied and specified.
65061         Reported by Karl Berry.
65062
65063 2006-12-08  Jim Meyering  <jim@meyering.net>
65064
65065         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65066         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65067
65068         * build-aux/announce-gen: Add two new options, both optional:
65069         --bootstrap-tools=TOOL_LIST
65070               a comma-separated list of tools, e.g.,
65071               autoconf,automake,bison,gnulib
65072         --gnulib-snapshot-date=DATE
65073               if gnulib is in the bootstrap tool list,
65074               then report this as the snapshot date.
65075               If not specified, use the current date/time.
65076               If you specify a date here, be sure it's UTC.
65077
65078 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65079
65080         * tests/test-argp-2.sh: Fix test to match actual output.
65081         (func_compare): Fix sed script to be portable.
65082
65083 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65084
65085         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65086         workaround for this case.  It is not autoconfigured now; offhand
65087         it's hard to see how to autoconfigure it.
65088
65089 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65092         a directory that is about to be chowned.  Such a directory's
65093         initial file permissions should permit the owner only and this
65094         should not be changed until after the chown, since the group and
65095         other bits would be incorrect if they granted permission before
65096         the chown.
65097
65098         Fix porting problem for iswctype reported by Georg Schwarz in:
65099         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65100         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65101         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65102         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65103         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65104
65105 2006-12-03  Jim Meyering  <jim@meyering.net>
65106
65107         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65108         p->fts_statp may not yet be defined.
65109         (fts_read): Instead, set it in the caller, once p->fts_statp is
65110         sure to be defined, and corresponds to a top-level directory.
65111         This bug made du -x fail.  Here's the coreutils test case:
65112         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65113         Reported by Mike Frysinger.
65114
65115 2006-12-01  Jim Meyering  <jim@meyering.net>
65116
65117         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65118         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65119         Reported by Simon Josefsson.
65120
65121 2006-11-30  Jim Meyering  <jim@meyering.net>
65122
65123         * m4/warning.m4: Use the all-permissive copyright notice
65124         recommended by RMS (rather than LGPL).
65125         * m4/vararrays.m4: Likewise.
65126         * m4/flexmember.m4: Likewise.
65127
65128 2006-11-29  Bruno Haible  <bruno@clisp.org>
65129
65130         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65131         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65132         using +=.
65133         Reported by Simon Josefsson <simon@josefsson.org>.
65134
65135 2006-11-28  James Youngman <jay@gnu.org>
65136
65137         * README: Advise users that they might find the bug-gnulib@gnu.org
65138         and autotools-announce@gnu.org mailing lists useful.
65139
65140 2006-11-28  Bruno Haible  <bruno@clisp.org>
65141
65142         * m4/ptrdiff_max.m4: Remove file.
65143
65144 2006-11-21  Bruno Haible  <bruno@clisp.org>
65145
65146         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65147         _AC_COMPUTE_INT.
65148         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65149         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65150         _AC_COMPUTE_INT.
65151         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65152         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65153         _AC_COMPUTE_INT.
65154         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65155
65156 2006-11-28  Jim Meyering  <jim@meyering.net>
65157
65158         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65159         warning from "gcc -Wshadow" about shadowing the builtin.
65160
65161 2006-11-27  Bruno Haible  <bruno@clisp.org>
65162
65163         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65164         _AC_COMPUTE_INT.
65165         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65166
65167 2006-11-27  Bruno Haible  <bruno@clisp.org>
65168             Paul Eggert  <eggert@cs.ucla.edu>
65169
65170         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65171
65172 2006-11-26  Bruno Haible  <bruno@clisp.org>
65173
65174         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65175         noinst_LTLIBRARIES.
65176
65177 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65178             Bruno Haible  <bruno@clisp.org>
65179
65180         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65181         if compiling with "gcc -ansi".
65182
65183 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         Fix some incompatibilities with gcc -ansi -pedantic.
65186         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65187         if compiling pedantically with GCC, unless it's C99 or later.
65188         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65189         it mishandles gcc -ansi -pedantic as well.
65190         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65191         if gcc -pedantic.
65192         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65193         initializers for struct if -pedantic, unless it's C99 or later.
65194
65195 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65196
65197         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65198         Don't close an fd more than once. Identical atimes indicate
65199         success, not failure.
65200
65201 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65202
65203         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65204
65205 2006-11-23  Jim Meyering  <jim@meyering.net>
65206
65207         * build-aux/announce-gen: New file.  From coreutils.
65208
65209 2006-11-22  Jim Meyering  <jim@meyering.net>
65210
65211         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65212         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65213         (fts_read): Use a temporary to narrow the overused st_size member
65214         before using it in a switch statement.  Reported by Matthew Woehlke.
65215
65216         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65217         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65218
65219 2006-11-20  Bruno Haible  <bruno@clisp.org>
65220
65221         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65222         changequote instead of pairs of brackets.
65223         Reported by Andreas Schwab <schwab@suse.de>.
65224
65225 2006-11-21  Jim Meyering  <jim@meyering.net>
65226
65227         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65228         so as to remain compatible with older compilers.
65229         Patch from Michael Deutschmann.
65230
65231 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * MODULES.html.sh (File system functions): Add openat.
65234
65235         * lib/openat.h (rpl_fstatat): New macro, if
65236         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65237         (fstatat): Define to rpl_fstatat under the same conditions,
65238         unless COMPILING_FSTATAT.
65239         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65240         seems to have the bug.
65241         * lib/fstatat.c: New file.
65242         * modules/openat (Files): Add it.
65243
65244 2006-11-20  Bruno Haible  <bruno@clisp.org>
65245
65246         * Makefile: New file.
65247
65248 2006-11-20  Jim Meyering  <jim@meyering.net>
65249
65250         The beginnings of syntax-related checks for gnulib.
65251         * lib/Makefile: New file.
65252         * lib/t-idcache: New script.  Ensure that the two halves of
65253         idcache.c stay in sync.
65254
65255         * lib/idcache.c: Adjust comments in user- and group- portions to
65256         be more accurate, and to be consistent with one another.
65257
65258 2006-11-20  Jim Meyering  <jim@meyering.net>
65259
65260         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65261         continue using the flexible array member (thus, this module performs
65262         half as many malloc calls), with the addition that...
65263         (getgroup, getuser): Consistently record a non-match via an empty
65264         "name" string, and map an empty string match to a NULL return value.
65265         * modules/idcache (Depends-on): Re-add flexmember.
65266
65267         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65268         (getuidbyname, getgroup, getgidbyname): Likewise.
65269
65270         Use cleaner syntax: NULL rather than 0.
65271         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65272
65273 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65274
65275         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65276         It mishandled the case where the group was missing.
65277         Problem reported by Greg Schafer.
65278         * modules/idcache: Likewise.
65279
65280 2006-11-18  Jim Meyering  <jim@meyering.net>
65281
65282         * check-module (%exempt_header): Add exception for some
65283         conditionally-included headers.
65284
65285         * modules/i-ring (Depends-on): Add verify.
65286         (License): Change to LGPL.
65287
65288 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65289
65290         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65291         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65292         and inttostr.h.  Use snprintf rather than uinttostr, so that
65293         LGPLed code doesn't depend on GPLed.
65294
65295 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65296
65297         * modules/inline (License): Change from GPL to LGPL.
65298
65299 2006-11-17  Jim Meyering  <jim@meyering.net>
65300
65301         * modules/d-type (License): Switch to LGPL.
65302
65303 2006-11-15  Bruno Haible  <bruno@clisp.org>
65304
65305         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65306
65307 2006-11-15  Eric Blake  <ebb9@byu.net>
65308
65309         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65310         the module dependency.
65311
65312 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65313             Bruno Haible  <bruno@clisp.org>
65314
65315         * gnulib-tool (func_create_testdir): Add license consistency check.
65316
65317 2006-11-15  Eric Blake  <ebb9@byu.net>
65318
65319         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65320         random "(cached)" in configure output.
65321
65322 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65323
65324         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65325         test for conforming inttypes.h is both announced and cached.
65326
65327         * MODULES.html.sh (seen_modules, seen_files): New variables.
65328         (func_module): Rewrite to use a few less gnulib-tool and sed
65329         invocations.  Avoid a couple of quadratic algorithms for ...
65330         (missed_modules, missed_files): ... these, with ...
65331         (func_append, func_tmpdir): ... these new functions, from
65332         gnulib-tool.  Analogously, install traps for cleanup.
65333
65334         * tests/test-gc.c (main): Remove unused variables.
65335         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65336
65337 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65338
65339         * modules/inttostr (License): Change to LGPL.
65340
65341 2006-11-14  Eric Blake  <ebb9@byu.net>
65342
65343         * modules/tempname (License): Change to LGPL.
65344
65345 2006-11-14  Eric Blake  <ebb9@byu.net>
65346
65347         * doc/functions.texi (Function Portability): *printf functions on
65348         Cygwin now understand all POSIX size specifiers.
65349
65350 2006-11-14  Bruno Haible  <bruno@clisp.org>
65351
65352         * modules/c-ctype (License): Change to LGPL.
65353
65354 2006-11-12  Bruno Haible  <bruno@clisp.org>
65355
65356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65357         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65358         for GNOME libraries, for which the include files are installed in
65359         subdirectories of $prefix/include.
65360
65361 2006-11-12  Bruno Haible  <bruno@clisp.org>
65362
65363         * m4/lib-link.m4: Require at least autoconf-2.54.
65364         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65365         name to underscores for the --with option.
65366
65367 2006-11-13  Bruno Haible  <bruno@clisp.org>
65368
65369         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65370         the tests directory.
65371         Reported by Ralf Wildenhues.
65372
65373 2006-11-13  Bruno Haible  <bruno@clisp.org>
65374
65375         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65376         (func_emit_initmacro_end): Undo the override here.
65377         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65378         Works around the famous automake error in coreutils.
65379
65380 2006-11-13  Eric Blake  <ebb9@byu.net>
65381
65382         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65383         element, not its node.
65384
65385 2006-11-12  Bruno Haible  <bruno@clisp.org>
65386
65387         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65388         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65389
65390 2006-11-12  Bruno Haible  <bruno@clisp.org>
65391
65392         * gnulib-tool: New option --local-symlink.
65393         (func_usage): Document it.
65394         (lsymbolic): New variable.
65395         (func_import, func_create_testdir): If --symlink was not specified,
65396         test whether --local-symlink was specified and the file comes from
65397         the local_gnulib_dir.
65398
65399 2006-11-12  Bruno Haible  <bruno@clisp.org>
65400
65401         * gnulib-tool (func_ln): New function.
65402         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65403
65404 2006-11-12  Bruno Haible  <bruno@clisp.org>
65405
65406         Finish support for source files in subdirectories.
65407         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65408         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65409         AUTOMAKE_OPTIONS.
65410         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65411
65412 2006-11-12  Bruno Haible  <bruno@clisp.org>
65413
65414         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65415         EXTRA_lib_SOURCES augmentation.
65416         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65417
65418 2006-11-12  Jim Meyering  <jim@meyering.net>
65419
65420         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65421         file descriptors.  This also averts a failure on systems with
65422         native openat support when a traversed directory lacks "x" access.
65423         * lib/fts_.h: Include "i-ring.h"
65424         (struct FTS) [fts_fd_ring]: New member.
65425         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65426         (FCHDIR): Add parentheses.
65427         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65428         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65429         When descending, rather than simply closing the previous
65430         fts_cwd_fd value, push that file descriptor onto the ring.
65431         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65432         (fts_open): Initialize the new fd_ring member.
65433         (fts_close): Clear the ring.
65434         (fts_safe_changedir): When possible, use our new fd_ring to skip
65435         the diropen and fstat and dev/ino comparison that would normally
65436         accompany a virtual `chdir ("..")'.
65437
65438         * modules/fts (Depends-on): Add i-ring.
65439         * modules/i-ring: New module.
65440         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65441         * m4/i-ring.m4: New file.
65442
65443 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65444
65445         * gnulib-tool (func_create_testdir): Fix replacement of
65446         `build-aux' in configure.ac.  Run autotools in gltests
65447         subdirectory.
65448         (func_create_testdir, func_create_megatestdir, test): There is
65449         no need for '--force' in most autotool invocations in a new
65450         tree.  Actually fail the whole test if any of the tools, or the
65451         configure or make stages fail.
65452
65453         Sync from Automake.
65454         * build-aux/gnupload: Revert last change.  Add pointer to upload
65455         instructions of the GNU Maintenance Instructions.
65456         Suggestion by Karl Berry.
65457
65458 2006-11-10  Jim Meyering  <jim@meyering.net>
65459
65460         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65461
65462 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65465         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65466         (bind_textdomain_codeset) [! ENABLE_NLS]:
65467         Evaluate all the arguments.  That way, callers get compatible behavior
65468         if the arguments have side effects.  Also, it avoids some GCC
65469         diagnostics in some cases; Joel E. Denny reported problems when Bison
65470         was configured with --enable-gcc-warnigs.
65471
65472 2006-11-10  Jim Meyering  <jim@meyering.net>
65473
65474         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65475         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65476         account.
65477
65478 2006-11-10  Jim Meyering  <jim@meyering.net>
65479
65480         * modules/inline: New file/module.
65481         * modules/xalloc (Files): Remove m4/inline.m4.
65482         (Depends-on): Add inline, instead.
65483         * modules/oset: Likewise.
65484         * modules/list: Likewise.
65485
65486 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65489         Problem reported by Matthew Woehlke.
65490
65491 2006-11-09  Bruno Haible  <bruno@clisp.org>
65492
65493         * lib/tempname.c (gen_tempname): Remove variant that invokes
65494         __gen_tempname.
65495         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65496         __gen_tempname.
65497
65498 2006-11-08  Bruno Haible  <bruno@clisp.org>
65499
65500         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65501         to 'yes' instead of 'cross-compiling'.
65502
65503 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         * lib/quotearg.h (quotearg_free): New decl.
65506         * lib/quotearg.c (quotearg_free): New function.
65507         (slot0, nslots, slotvec0, slotvec):
65508         Now file-scope so that quotearg_free can get at them.
65509
65510 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65511
65512         Sync from Automake.
65513         * build-aux/gnupload: Add missing 'gnu' to example URL.
65514         Report by Karl Berry.
65515
65516 2006-11-08  Bruno Haible  <bruno@clisp.org>
65517
65518         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65519         Suggested by Paul Eggert.
65520
65521 2006-11-08  Jim Meyering  <jim@meyering.net>
65522
65523         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65524         It's already included if !_LIBC.
65525         (fts_safe_changedir): Add a comment.
65526
65527 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65530         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65531         Matthew Woehlke.
65532
65533         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65534         definitions up, to avoid colliding with change below.
65535         (static_inline) [HAVE_INLINE]: New macro.
65536         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65537         Provide extern decls when !HAVE_INLINE.  Do not define unless
65538         static_inline is defined, either by us or by xmalloc.c.  Use
65539         static_inline rather than static inline.
65540         (XCALLOC): Optimize sizeof(T) = 1 case.
65541         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65542
65543 2006-11-07  Bruno Haible  <bruno@clisp.org>
65544
65545         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65546         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65547         AC_C_INLINE.
65548         * modules/xalloc (Files): Add m4/inline.m4.
65549
65550 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65551
65552         * README: Fix typo.
65553         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65554         (Miscellanous Notes): ...from this.
65555
65556 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65559         Mention that offsetof should be used instead of sizeof.
65560         From Bruno Haible.
65561
65562 2006-11-07  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65565
65566 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65567
65568         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65569         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65570         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65571         (gl_tree_add_before, gl_tree_add_after):
65572         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65573         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65574         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65575         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65576         (gl_linked_add_after, gl_linked_add_at): Likewise.
65577         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65578         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65579         (gl_tree_add_before, gl_tree_add_after): Likewise.
65580         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65581         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65582         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65583
65584 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65585
65586         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65587
65588 2006-11-06  Bruno Haible  <bruno@clisp.org>
65589
65590         * m4/inline.m4: New file.
65591         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65592         * modules/list (Files): Add m4/inline.m4.
65593         * modules/oset (Files): Likewise.
65594
65595 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         * lib/idcache.c: Include <stddef.h>, for offsetof.
65598         (struct userid.name): Change from char * to a flexible array member.
65599         All uses changed.
65600         * modules/idcache (Depends-on): Add flexmember.
65601
65602         * MODULES.html.sh (Core language properties): New module flexmember.
65603         * modules/flexmember, m4/flexmember.m4: New files.
65604
65605         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65606         inline functions that are identical with the old xnmalloc_inline,
65607         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65608         that we can avoid some unnecessary integer multiplications and
65609         divisions in the common case where the element size is known at
65610         compile time.
65611         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65612         needed.
65613         (xnboundedmalloc): Remove.
65614         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65615         arguments, for consistency with rest of this header.
65616         (xcharalloc): Rewrite using XNMALLOC.
65617         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65618         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65619         versions have been moved to lib/xalloc.h and renamed to be the
65620         non-*_inline versions.
65621         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65622         and xnrealloc functions, since those functions are now inline and
65623         now call us.
65624         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65625         renaming described above.
65626         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65627         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65628         captures the dependency in AC_C_INLINE.
65629
65630         New module canonicalize-lgpl, proposed by Charles Wilson in
65631         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65632         with a few small changes afterwards.
65633         * MODULES.html.sh (File system functions): New module
65634         canonicalize-lgpl.
65635         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65636         and canonicalize_file_name.
65637         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65638         * modules/canonicalize-lgpl: New files.
65639
65640 2006-11-05  Bruno Haible  <bruno@clisp.org>
65641
65642         * gnulib-tool (func_import, func_create_testdir): Create directories
65643         also for files in subdirectories of lib/.
65644
65645 2006-11-05  Bruno Haible  <bruno@clisp.org>
65646
65647         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65648         ANSI C compliant.
65649
65650 2006-11-03  Bruno Haible  <bruno@clisp.org>
65651
65652         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65653         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65654         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65655         (xnboundedmalloc): New inline function.
65656         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65657         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65658         xmalloc.
65659         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65660         xmalloc.
65661         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65662         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65663         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65664         xmalloc.
65665         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65666         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65667         xmalloc.
65668         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65669         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65670         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65671         xmalloc.
65672         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65673         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65674         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65675         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65676         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65677         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65678         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65679
65680 2006-11-03  Bruno Haible  <bruno@clisp.org>
65681
65682         * lib/c-ctype.h [C++]: Define functions without name mangling.
65683         * lib/fwriteerror.h [C++]: Likewise.
65684         * lib/gcd.h [C++]: Likewise.
65685         * lib/linebreak.h [C++]: Likewise.
65686
65687 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65688
65689         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65690         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65691         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65692         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65693         Check for functions and headers just once.
65694         Check for declaration of canonicalize_file_name.
65695         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65696
65697 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65698
65699         * gnulib-tool (func_import): Fix typo in actioncmd.
65700
65701 2006-11-02  Bruno Haible  <bruno@clisp.org>
65702
65703         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65704         newline sequence in the Makefile.am snippet as a space, like "make"
65705         does.
65706         Reported by Roger Persson <perrog@gmail.com>.
65707
65708 2006-11-01  Bruno Haible  <bruno@clisp.org>
65709
65710         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65711         already declared in <string.h>.
65712         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65713
65714 2006-11-01  Bruno Haible  <bruno@clisp.org>
65715
65716         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65717         * lib/strcase.h: Include <string.h>.
65718         (strcasecmp): Define to rpl_strcasecmp here.
65719
65720 2006-11-01  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65723
65724 2006-11-01  Eric Blake  <ebb9@byu.net>
65725
65726         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65727
65728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65729
65730 2006-10-29  Bruno Haible  <bruno@clisp.org>
65731
65732         Make it compile in C++ mode.
65733         * lib/full-write.c (full_rw): Add a cast.
65734
65735 2006-11-01  Bruno Haible  <bruno@clisp.org>
65736
65737         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65738         be POSIX compliant.
65739         Reported by Roger Persson <perrog@gmail.com>.
65740
65741 2006-11-01  Eric Blake  <ebb9@byu.net>
65742
65743         * lib/getopt_.h: Fix comments.
65744
65745 2006-10-31  Eric Blake  <ebb9@byu.net>
65746
65747         * modules/tmpdir (Depends-on): Add sys_stat.
65748         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65749         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65750         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65751         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65752         tempname.
65753
65754 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65755
65756         Avoid some C++ diagnostics reported by Bruno Haible.
65757         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65758         xmalloc.
65759         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65760         (struct slotvec): Move to top level.
65761         (quotearg_n_options): Rewrite to avoid xmalloc.
65762         * lib/xalloc.h (xcharalloc): New function.
65763         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65764         [defined __cplusplus]: Add function template that provides result
65765         type propagation.  This part of the change is from Bruno Haible.
65766
65767 2006-10-29  Bruno Haible  <bruno@clisp.org>
65768
65769         Make it compile in C++ mode.
65770         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65771         * lib/strnlen1.c (strnlen1): Cast memchr result.
65772         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65773         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65774         (create_temp_dir): Rename local variable 'template'.
65775         (compile_csharp_using_sscli): Add cast.
65776         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65777         * lib/findprog.c (find_in_path): Likewise.
65778         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65779         * lib/wait-process.c (register_slave_subprocess): Likewise.
65780
65781 2006-10-22  Bruno Haible  <bruno@clisp.org>
65782
65783         * modules/tsearch: New file.
65784         * lib/tsearch.h: New file.
65785         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65786         * m4/tsearch.m4: New file.
65787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65788
65789 2006-10-29  Eric Blake  <ebb9@byu.net>
65790
65791         * lib/arcfour.c: Assume config.h.
65792         * lib/arctwo.c: Likewise.
65793         * lib/base64.c: Likewise.
65794         * lib/check-version.c: Likewise.
65795         * lib/crc.c: Likewise.
65796         * lib/des.c: Likewise.
65797         * lib/gc-gnulib.c: Likewise.
65798         * lib/gc-libgcrypt.c: Likewise.
65799         * lib/gc-pbkdf2-sha1.c: Likewise.
65800         * lib/getaddrinfo.c: Likewise.
65801         * lib/getdelim.c: Likewise.
65802         * lib/getline.c: Likewise.
65803         * lib/hmac-md5.c: Likewise.
65804         * lib/hmac-sha1.c: Likewise.
65805         * lib/iconvme.c: Likewise.
65806         * lib/md2.c: Likewise.
65807         * lib/md4.c: Likewise.
65808         * lib/memxor.c: Likewise.
65809         * lib/read-file.c: Likewise.
65810         * lib/readline.c: Likewise.
65811         * lib/rijndael-alg-fst.c: Likewise.
65812         * lib/rijndael-api-fst.c: Likewise.
65813         * lib/xgetdomainname.c: Likewise.
65814
65815 2006-10-28  Eric Blake  <ebb9@byu.net>
65816
65817         * lib/xstrndup.c: Assume config.h.
65818
65819 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65822         stat-macros.h is now for our own macros, whereas stat_h is for
65823         macros in the <sys/stat.h> name space.
65824         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65825         (STAT_MACROS_H): Remove.
65826         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65827         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65828         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65829         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65830         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65831         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65832         Move these macros to ...
65833         * lib/stat_.h: here.  Don't include stat-macros.h.
65834         * lib/canonicalize.c: Don't include stat-macros.h.
65835         * lib/chown.c: Likewise.
65836         * lib/euidaccess.c: Likewise.
65837         * lib/file-type.c: Likewise.
65838         * lib/filemode.c: Likewise.
65839         * lib/glob.c: Likewise.
65840         * lib/isapipe.c: Likewise.
65841         * lib/lchown.c: Likewise.
65842         * lib/lstat.c: Likewise.
65843         * lib/mkdir-p.c: Likewise.
65844         * lib/rmdir.c: Likewise.
65845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65846         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65847         unless mkdir isn't declared, to speed up 'configure'.
65848         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65849         would define all the S_* symbols.
65850         * modules/canonicalize (Depends-on):
65851         Depend on sys_stat, not stat-macros.
65852         * modules/chown: Likewise.
65853         * modules/euidaccess: Likewise.
65854         * modules/filemode: Likewise.
65855         * modules/file-type: Likewise.
65856         * modules/glob: Likewise.
65857         * modules/isapipe: Likewise.
65858         * modules/lchown: Likewise.
65859         * modules/lstat: Likewise.
65860         * modules/mkancesdirs: Likewise.
65861         * modules/rmdir: Likewise.
65862         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65863         * modules/modechange: Likewise.
65864         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65865         (configure.ac): Remove gl_STAT_MACROS.
65866         * modules/sys_stat (Depends-on): Remove stat-macros.
65867
65868 2006-10-27  Bruno Haible  <bruno@clisp.org>
65869
65870         * m4/signed.m4: Remove file.
65871         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65872         invocation.
65873         * modules/vasnprintf (Files): Remove m4/signed.m4.
65874
65875 2006-10-27  Bruno Haible  <bruno@clisp.org>
65876
65877         Update to GNU gettext 0.16.
65878         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65879         m4/inttypes-h.m4, m4/signed.m4.
65880         * m4/gettext.m4: Update to GNU gettext 0.16.
65881         * m4/intl.m4: New file, from GNU gettext.
65882         * m4/intldir.m4: New file, from GNU gettext.
65883         * config/srclist.txt: Update
65884
65885 2006-10-27  Eric Blake  <ebb9@byu.net>
65886
65887         * MODULES.html.sh: Document tempname.
65888         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65889         dependencies.
65890         (Files): Move lib/tempname.c...
65891         * modules/tempname: ...to this new module.
65892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65893         (gl_PREREQ_TEMPNAME): Move...
65894         * m4/tempname.m4: ...to this new file.
65895         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65896         * modules/sys_stat (Depends-on): Add stat-macros.
65897         * lib/stat_.h (includes): Pick up stat macros.
65898         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65899         if stat macros are broken.
65900         * lib/tempname.c (includes): No need to include "stat-macros.h".
65901         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65902         (direxists, __path_search) [!_LIBC]: Don't compile these in
65903         gnulib; the tmpdir module covers that.
65904         * lib/tempname.h: New file.
65905
65906 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65907
65908         * COPYING: Explain how gnulib-tool converts licence headers.
65909         Almost all wording by Eric Blake.
65910
65911 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65912
65913         * lib/mbchar.h (is_basic_table): Make read-only.
65914         * lib/mbchar.c (is_basic_table): Likewise.
65915         Reported by John Darrington.
65916
65917 2006-10-25  Bruno Haible  <bruno@clisp.org>
65918
65919         * lib/progname.h (set_program_name): Undefine before defining.
65920
65921 2006-10-25  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65924         false for non-gcc C++ compilers.
65925         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65926
65927 2006-10-24  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65930         iconv implementations like Irix iconv.
65931
65932 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65933
65934         * modules/vararrays: New file.
65935         * m4/vararrays.m4: New file, taken from diffutils.
65936         * MODULES.html.sh: New module vararrays.
65937
65938 2006-10-24  Karl Berry  <karl@gnu.org>
65939
65940         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65941         Don't call GNU Unix.
65942
65943 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65944
65945         * users.txt: Add Libtool.
65946
65947         Sync from Libtool:
65948
65949         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65950
65951         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65952         to gnulib's policy of including config.h unconditionally.
65953
65954 2006-10-24  Bruno Haible  <bruno@clisp.org>
65955
65956         * modules/wcwidth (Files): Add m4/wint_t.m4.
65957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65958         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65959
65960 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65961
65962         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65963         to pacify GCC with some -W flags enabled.  Problem reported by
65964         Bruno Haible.
65965
65966 2006-10-24  Jim Meyering  <jim@meyering.net>
65967
65968         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65969         Reported by Karl Berry.
65970
65971 2006-10-23  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65974
65975 2006-10-24  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/gl_list.h: Use C comment style, not C++ comment style.
65978
65979 2006-10-23  Eric Blake  <ebb9@byu.net>
65980
65981         * lib/getaddrinfo.c (includes): Add missing include.
65982
65983 2006-10-23  Bruno Haible  <bruno@clisp.org>
65984             Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         Ability to rename obstack_free.
65987         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65988         obstack_free.
65989         (obstack_free): Invoke the __obstack_free macro.
65990         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65991
65992 2006-10-23  Bruno Haible  <bruno@clisp.org>
65993             Paul Eggert  <eggert@cs.ucla.edu>
65994
65995         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65996         __argc, __argv from the declaration. (They are defined as macros on
65997         mingw.)
65998
65999 2006-10-22  Bruno Haible  <bruno@clisp.org>
66000
66001         * doc/gnulib-intro.texi: New file.
66002         * doc/gnulib.texi: Include it.
66003
66004 2006-10-21  Bruno Haible  <bruno@clisp.org>
66005
66006         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66007         "Introduction", "Miscellanous Notes", "Particular Modules".
66008
66009 2006-10-21  Bruno Haible  <bruno@clisp.org>
66010
66011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66012         Change mostlyclean-local rule to avoid sh syntax error from bash
66013         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66014
66015 2006-10-23  Jim Meyering  <jim@meyering.net>
66016
66017         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66018         in place of snprintf.
66019
66020         * modules/inttostr (Files): Add lib/uinttostr.c.
66021         * lib/uinttostr.c (inttostr): New file/function.
66022         * lib/inttostr.h (uinttostr): Declare.
66023         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66024         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66025         Add uinttostr.
66026         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66027
66028 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         * lib/canonicalize.c (ELOOP): Define if not already defined.
66031         Problem reported by Bruno Haible in
66032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66033
66034 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66035
66036         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66037         Problem reported by Perry Smith and Ville Laurikari.
66038
66039         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66040         uses.
66041
66042 2006-10-19  Bruno Haible  <bruno@clisp.org>
66043
66044         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66045         for mingw.
66046
66047 2006-10-19  Bruno Haible  <bruno@clisp.org>
66048
66049         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66050         Needed for mingw.
66051
66052 2006-10-19  Bruno Haible  <bruno@clisp.org>
66053
66054         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66055
66056 2006-10-19  Bruno Haible  <bruno@clisp.org>
66057
66058         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66059         it.
66060
66061 2006-10-19  Bruno Haible  <bruno@clisp.org>
66062
66063         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66064         invocation.
66065
66066 2006-10-19  Bruno Haible  <bruno@clisp.org>
66067
66068         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66069         mountlist by default.
66070
66071 2006-10-16  Bruno Haible  <bruno@clisp.org>
66072
66073         * lib/c-strstr.c: Include c-strstr.h.
66074
66075 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66076
66077         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66078         in a slash.
66079
66080 2006-10-18  Bruno Haible  <bruno@clisp.org>
66081
66082         * lib/lock.h [C++]: Wrap definitions in extern "C".
66083
66084 2006-10-18  Bruno Haible  <bruno@clisp.org>
66085
66086         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66087         gl_LIBOBJS list.
66088
66089 2006-10-18  Bruno Haible  <bruno@clisp.org>
66090
66091         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66092
66093 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * lib/xstrtol.h: Include gettext.h.
66096         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66097         Problem reported by Eric Blake.
66098         * modules/xstrtol (Depends-on): Add gettext-h.
66099
66100 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66101
66102         * lib/strftime.c (advance): New macro.
66103         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66104         incomplete type, so you can't add 0 to it.  Problem and patch
66105         reported by Eelco Dolstra for dietlibc.
66106
66107 2006-10-18  Jim Meyering  <jim@meyering.net>
66108
66109         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66110         type for a local, and rename it: s/up/user_proc/.
66111
66112 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66113
66114         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66115         READ_UTMP_USER_PROCESS.
66116         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66117
66118 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66121         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66122
66123 2006-10-17  Eric Blake  <ebb9@byu.net>
66124
66125         * lib/sigprocmask.c (sigprocmask): Fix typo.
66126
66127         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66128
66129         * modules/clean-temp (Makefile.am): Don't add to make output...
66130         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66131         config.h.
66132
66133 2006-10-17  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66136         differently if DEFAULT_TEXT_DOMAIN is set.
66137
66138 2006-10-16  Bruno Haible  <bruno@clisp.org>
66139
66140         * lib/clean-temp.c: Include fwriteerror.h.
66141
66142 2006-10-16  Bruno Haible  <bruno@clisp.org>
66143
66144         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66145
66146 2006-10-16  Bruno Haible  <bruno@clisp.org>
66147
66148         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66149         * lib/sigprocmask.h: Include <sys/types.h>.
66150         (sigset_t): Use the system's definition if present.
66151
66152 2006-10-17  Eric Blake  <ebb9@byu.net>
66153
66154         * lib/xvasprintf.c (includes): Assume config.h.
66155         * lib/xasprintf.c (includes): Likewise.
66156
66157 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66158
66159         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66160         at least as wide as intmax_t.
66161
66162 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66163
66164         (Imported from Automake.)
66165         * build-aux/gnupload: Update to version 1.1 of directive file.
66166
66167 2006-10-16  Eric Blake  <ebb9@byu.net>
66168
66169         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66170         match Automake 1.10a.
66171
66172 2006-10-14  Bruno Haible  <bruno@clisp.org>
66173
66174         * modules/sigprocmask: New file.
66175         * lib/sigprocmask.h: New file.
66176         * lib/sigprocmask.c: New file.
66177         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66178         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66179         request sigprocmask.o.
66180         (gl_PREREQ_SIGPROCMASK): New macro.
66181         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66182         (Depends-on): Add sigprocmask.
66183         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66184         gt_SIGNALBLOCKING. Test for 'raise' only once.
66185         * lib/fatal-signal.c: Include sigprocmask.h.
66186         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66187         unblock_fatal_signals): Define always.
66188         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66189         sigprocmask.
66190
66191 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66192
66193         Sync from Automake.
66194         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66195         which incorrectly sets the mode of an existing destination
66196         directory.  In some cases the unpatched install-sh could do the
66197         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66198         system.  We hope this is rare in practice, but it's clearly worth
66199         fixing.  Problem reported by Alex Unleashed in
66200         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66201         Also, don't bother to check for -m bugs unless we're using -m;
66202         suggested by Stepan Kasal.
66203
66204 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66205
66206         Sync from Automake.
66207         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66208         `-c' flag, so they appear at the same position as in %FASTDEP%
66209         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66210         which ignores unknown options only after the first non-option.
66211         Bug report against M4 by Nelson H. F. Beebe.
66212
66213 2006-10-13  Jim Meyering  <jim@meyering.net>
66214
66215         Fix a bug in yesterday's change.
66216         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66217         p->fts_statp->st_dev would be used uninitialized.
66218         Ensures that we always call fts_stat on the very first entry.
66219         Miklos Szeredi reported that find -xdev stopped working.
66220
66221 2006-10-12  Bruno Haible  <bruno@clisp.org>
66222
66223         * gnulib-tool (func_get_automake_snippet): Append an automatically
66224         computed EXTRA_DIST augmentation.
66225         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66226         * modules/alloca-opt (Makefile.am): Likewise.
66227         * modules/allocsa (Makefile.am): Likewise.
66228         * modules/arcfour (Makefile.am): Likewise.
66229         * modules/arctwo (Makefile.am): Likewise.
66230         * modules/argmatch (Makefile.am): Likewise.
66231         * modules/argz (Makefile.am): Likewise.
66232         * modules/atexit (Makefile.am): Likewise.
66233         * modules/backupfile (Makefile.am): Likewise.
66234         * modules/byteswap (Makefile.am): Likewise.
66235         * modules/c-strtod (Makefile.am): Likewise.
66236         * modules/c-strtold (Makefile.am): Likewise.
66237         * modules/calloc (Makefile.am): Likewise.
66238         * modules/canon-host (Makefile.am): Likewise.
66239         * modules/canonicalize (Makefile.am): Likewise.
66240         * modules/chdir-long (Makefile.am): Likewise.
66241         * modules/chdir-safer (Makefile.am): Likewise.
66242         * modules/check-version (Makefile.am): Likewise.
66243         * modules/chown (Makefile.am): Likewise.
66244         * modules/cloexec (Makefile.am): Likewise.
66245         * modules/close-stream (Makefile.am): Likewise.
66246         * modules/closeout (Makefile.am): Likewise.
66247         * modules/crc (Makefile.am): Likewise.
66248         * modules/csharpexec (Makefile.am): Likewise.
66249         * modules/cycle-check (Makefile.am): Likewise.
66250         * modules/des (Makefile.am): Likewise.
66251         * modules/dev-ino (Makefile.am): Likewise.
66252         * modules/dirfd (Makefile.am): Likewise.
66253         * modules/dirname (Makefile.am): Likewise.
66254         * modules/dup2 (Makefile.am): Likewise.
66255         * modules/eealloc (Makefile.am): Likewise.
66256         * modules/error (Makefile.am): Likewise.
66257         * modules/euidaccess (Makefile.am): Likewise.
66258         * modules/exclude (Makefile.am): Likewise.
66259         * modules/exitfail (Makefile.am): Likewise.
66260         * modules/fcntl-safer (Makefile.am): Likewise.
66261         * modules/fcntl (Makefile.am): Likewise.
66262         * modules/file-type (Makefile.am): Likewise.
66263         * modules/fileblocks (Makefile.am): Likewise.
66264         * modules/filemode (Makefile.am): Likewise.
66265         * modules/filenamecat (Makefile.am): Likewise.
66266         * modules/fnmatch (Makefile.am): Likewise.
66267         * modules/fopen-safer (Makefile.am): Likewise.
66268         * modules/fpending (Makefile.am): Likewise.
66269         * modules/fprintftime (Makefile.am): Likewise.
66270         * modules/free (Makefile.am): Likewise.
66271         * modules/fsusage (Makefile.am): Likewise.
66272         * modules/ftruncate (Makefile.am): Likewise.
66273         * modules/fts (Makefile.am): Likewise.
66274         * modules/gc-arcfour (Makefile.am): Likewise.
66275         * modules/gc-des (Makefile.am): Likewise.
66276         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66277         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66278         * modules/gc-md4 (Makefile.am): Likewise.
66279         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66280         * modules/gc-sha1 (Makefile.am): Likewise.
66281         * modules/gc (Makefile.am): Likewise.
66282         * modules/getaddrinfo (Makefile.am): Likewise.
66283         * modules/getcwd (Makefile.am): Likewise.
66284         * modules/getdelim (Makefile.am): Likewise.
66285         * modules/getdomainname (Makefile.am): Likewise.
66286         * modules/getgroups (Makefile.am): Likewise.
66287         * modules/gethostname (Makefile.am): Likewise.
66288         * modules/gethrxtime (Makefile.am): Likewise.
66289         * modules/getline (Makefile.am): Likewise.
66290         * modules/getloadavg (Makefile.am): Likewise.
66291         * modules/getlogin_r (Makefile.am): Likewise.
66292         * modules/getndelim2 (Makefile.am): Likewise.
66293         * modules/getopt (Makefile.am): Likewise.
66294         * modules/getpagesize (Makefile.am): Likewise.
66295         * modules/getpass-gnu (Makefile.am): Likewise.
66296         * modules/getpass (Makefile.am): Likewise.
66297         * modules/getsubopt (Makefile.am): Likewise.
66298         * modules/gettime (Makefile.am): Likewise.
66299         * modules/gettimeofday (Makefile.am): Likewise.
66300         * modules/getugroups (Makefile.am): Likewise.
66301         * modules/getusershell (Makefile.am): Likewise.
66302         * modules/glob (Makefile.am): Likewise.
66303         * modules/group-member (Makefile.am): Likewise.
66304         * modules/hard-locale (Makefile.am): Likewise.
66305         * modules/hash (Makefile.am): Likewise.
66306         * modules/hmac-md5 (Makefile.am): Likewise.
66307         * modules/hmac-sha1 (Makefile.am): Likewise.
66308         * modules/human (Makefile.am): Likewise.
66309         * modules/idcache (Makefile.am): Likewise.
66310         * modules/imaxabs (Makefile.am): Likewise.
66311         * modules/imaxdiv (Makefile.am): Likewise.
66312         * modules/inet_ntop (Makefile.am): Likewise.
66313         * modules/inet_pton (Makefile.am): Likewise.
66314         * modules/intprops (Makefile.am): Likewise.
66315         * modules/inttostr (Makefile.am): Likewise.
66316         * modules/inttypes (Makefile.am): Likewise.
66317         * modules/isapipe (Makefile.am): Likewise.
66318         * modules/javaversion (Makefile.am): Likewise.
66319         * modules/lchmod (Makefile.am): Likewise.
66320         * modules/lchown (Makefile.am): Likewise.
66321         * modules/localcharset (Makefile.am): Likewise.
66322         * modules/long-options (Makefile.am): Likewise.
66323         * modules/lstat (Makefile.am): Likewise.
66324         * modules/malloc (Makefile.am): Likewise.
66325         * modules/mathl (Makefile.am): Likewise.
66326         * modules/mbchar (Makefile.am): Likewise.
66327         * modules/md2 (Makefile.am): Likewise.
66328         * modules/md4 (Makefile.am): Likewise.
66329         * modules/md5 (Makefile.am): Likewise.
66330         * modules/memcasecmp (Makefile.am): Likewise.
66331         * modules/memchr (Makefile.am): Likewise.
66332         * modules/memcmp (Makefile.am): Likewise.
66333         * modules/memcoll (Makefile.am): Likewise.
66334         * modules/memcpy (Makefile.am): Likewise.
66335         * modules/memmem (Makefile.am): Likewise.
66336         * modules/memmove (Makefile.am): Likewise.
66337         * modules/mempcpy (Makefile.am): Likewise.
66338         * modules/memrchr (Makefile.am): Likewise.
66339         * modules/memset (Makefile.am): Likewise.
66340         * modules/memxor (Makefile.am): Likewise.
66341         * modules/mkancesdirs (Makefile.am): Likewise.
66342         * modules/mkdir-p (Makefile.am): Likewise.
66343         * modules/mkdir (Makefile.am): Likewise.
66344         * modules/mkdtemp (Makefile.am): Likewise.
66345         * modules/mkstemp (Makefile.am): Likewise.
66346         * modules/mktime (Makefile.am): Likewise.
66347         * modules/modechange (Makefile.am): Likewise.
66348         * modules/mountlist (Makefile.am): Likewise.
66349         * modules/nanosleep (Makefile.am): Likewise.
66350         * modules/obstack (Makefile.am): Likewise.
66351         * modules/openat (Makefile.am): Likewise.
66352         * modules/pagealign_alloc (Makefile.am): Likewise.
66353         * modules/pathmax (Makefile.am): Likewise.
66354         * modules/physmem (Makefile.am): Likewise.
66355         * modules/poll (Makefile.am): Likewise.
66356         * modules/posixtm (Makefile.am): Likewise.
66357         * modules/posixver (Makefile.am): Likewise.
66358         * modules/putenv (Makefile.am): Likewise.
66359         * modules/quote (Makefile.am): Likewise.
66360         * modules/quotearg (Makefile.am): Likewise.
66361         * modules/raise (Makefile.am): Likewise.
66362         * modules/read-file (Makefile.am): Likewise.
66363         * modules/readline (Makefile.am): Likewise.
66364         * modules/readlink (Makefile.am): Likewise.
66365         * modules/readtokens (Makefile.am): Likewise.
66366         * modules/readutmp (Makefile.am): Likewise.
66367         * modules/realloc (Makefile.am): Likewise.
66368         * modules/regex (Makefile.am): Likewise.
66369         * modules/rename-dest-slash (Makefile.am): Likewise.
66370         * modules/rename (Makefile.am): Likewise.
66371         * modules/rijndael (Makefile.am): Likewise.
66372         * modules/rmdir (Makefile.am): Likewise.
66373         * modules/rpmatch (Makefile.am): Likewise.
66374         * modules/safe-read (Makefile.am): Likewise.
66375         * modules/safe-write (Makefile.am): Likewise.
66376         * modules/same-inode (Makefile.am): Likewise.
66377         * modules/same (Makefile.am): Likewise.
66378         * modules/save-cwd (Makefile.am): Likewise.
66379         * modules/savedir (Makefile.am): Likewise.
66380         * modules/setenv (Makefile.am): Likewise.
66381         * modules/settime (Makefile.am): Likewise.
66382         * modules/sha1 (Makefile.am): Likewise.
66383         * modules/sig2str (Makefile.am): Likewise.
66384         * modules/snprintf (Makefile.am): Likewise.
66385         * modules/stat-macros (Makefile.am): Likewise.
66386         * modules/stat-time (Makefile.am): Likewise.
66387         * modules/stdbool (Makefile.am): Likewise.
66388         * modules/stdint (Makefile.am): Likewise.
66389         * modules/stdlib-safer (Makefile.am): Likewise.
66390         * modules/stpcpy (Makefile.am): Likewise.
66391         * modules/stpncpy (Makefile.am): Likewise.
66392         * modules/strcase (Makefile.am): Likewise.
66393         * modules/strcasestr (Makefile.am): Likewise.
66394         * modules/strchrnul (Makefile.am): Likewise.
66395         * modules/strcspn (Makefile.am): Likewise.
66396         * modules/strdup (Makefile.am): Likewise.
66397         * modules/strerror (Makefile.am): Likewise.
66398         * modules/strftime (Makefile.am): Likewise.
66399         * modules/strndup (Makefile.am): Likewise.
66400         * modules/strnlen (Makefile.am): Likewise.
66401         * modules/strpbrk (Makefile.am): Likewise.
66402         * modules/strsep (Makefile.am): Likewise.
66403         * modules/strstr (Makefile.am): Likewise.
66404         * modules/strtod (Makefile.am): Likewise.
66405         * modules/strtoimax (Makefile.am): Likewise.
66406         * modules/strtok_r (Makefile.am): Likewise.
66407         * modules/strtol (Makefile.am): Likewise.
66408         * modules/strtoll (Makefile.am): Likewise.
66409         * modules/strtoul (Makefile.am): Likewise.
66410         * modules/strtoull (Makefile.am): Likewise.
66411         * modules/strtoumax (Makefile.am): Likewise.
66412         * modules/strverscmp (Makefile.am): Likewise.
66413         * modules/sys_socket (Makefile.am): Likewise.
66414         * modules/sys_stat (Makefile.am): Likewise.
66415         * modules/sysexits (Makefile.am): Likewise.
66416         * modules/time_r (Makefile.am): Likewise.
66417         * modules/timegm (Makefile.am): Likewise.
66418         * modules/timespec (Makefile.am): Likewise.
66419         * modules/tmpfile-safer (Makefile.am): Likewise.
66420         * modules/trim (Makefile.am): Likewise.
66421         * modules/unistd-safer (Makefile.am): Likewise.
66422         * modules/unlinkdir (Makefile.am): Likewise.
66423         * modules/unlocked-io (Makefile.am): Likewise.
66424         * modules/userspec (Makefile.am): Likewise.
66425         * modules/utime (Makefile.am): Likewise.
66426         * modules/utimecmp (Makefile.am): Likewise.
66427         * modules/utimens (Makefile.am): Likewise.
66428         * modules/vasnprintf (Makefile.am): Likewise.
66429         * modules/vasprintf (Makefile.am): Likewise.
66430         * modules/vsnprintf (Makefile.am): Likewise.
66431         * modules/xalloc (Makefile.am): Likewise.
66432         * modules/xgetcwd (Makefile.am): Likewise.
66433         * modules/xnanosleep (Makefile.am): Likewise.
66434         * modules/xreadlink (Makefile.am): Likewise.
66435         * modules/xstrtod (Makefile.am): Likewise.
66436         * modules/xstrtol (Makefile.am): Likewise.
66437         * modules/xstrtold (Makefile.am): Likewise.
66438         * modules/yesno (Makefile.am): Likewise.
66439         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66440
66441 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * modules/error (Makefile.am): Distribute files through
66444         EXTRA_DIST, not lib_SOURCES.
66445
66446 2006-10-12  Eric Blake  <ebb9@byu.net>
66447
66448         * modules/error (Makefile.am): Distribute files in /lib.
66449         * modules/obstack (Makefile.am): Likewise.
66450
66451 2006-10-12  Bruno Haible  <bruno@clisp.org>
66452
66453         * modules/acl (Makefile.am): Distribute all files in lib/ through
66454         EXTRA_DIST.
66455         * modules/arcfour (Makefile.am): Likewise.
66456         * modules/arctwo (Makefile.am): Likewise.
66457         * modules/argmatch (Makefile.am): Likewise.
66458         * modules/argz (Makefile.am): Likewise.
66459         * modules/atexit (Makefile.am): Likewise.
66460         * modules/backupfile (Makefile.am): Likewise.
66461         * modules/c-strtod (Makefile.am): Likewise.
66462         * modules/c-strtold (Makefile.am): Likewise.
66463         * modules/calloc (Makefile.am): Likewise.
66464         * modules/canon-host (Makefile.am): Likewise.
66465         * modules/canonicalize (Makefile.am): Likewise.
66466         * modules/chdir-long (Makefile.am): Likewise.
66467         * modules/chdir-safer (Makefile.am): Likewise.
66468         * modules/check-version (Makefile.am): Likewise.
66469         * modules/chown (Makefile.am): Likewise.
66470         * modules/cloexec (Makefile.am): Likewise.
66471         * modules/close-stream (Makefile.am): Likewise.
66472         * modules/closeout (Makefile.am): Likewise.
66473         * modules/crc (Makefile.am): Likewise.
66474         * modules/cycle-check (Makefile.am): Likewise.
66475         * modules/des (Makefile.am): Likewise.
66476         * modules/dirfd (Makefile.am): Likewise.
66477         * modules/dirname (Makefile.am): Likewise.
66478         * modules/dup2 (Makefile.am): Likewise.
66479         * modules/euidaccess (Makefile.am): Likewise.
66480         * modules/exclude (Makefile.am): Likewise.
66481         * modules/exitfail (Makefile.am): Likewise.
66482         * modules/fcntl-safer (Makefile.am): Likewise.
66483         * modules/file-type (Makefile.am): Likewise.
66484         * modules/fileblocks (Makefile.am): Likewise.
66485         * modules/filemode (Makefile.am): Likewise.
66486         * modules/filenamecat (Makefile.am): Likewise.
66487         * modules/fnmatch (Makefile.am): Likewise.
66488         * modules/fopen-safer (Makefile.am): Likewise.
66489         * modules/fpending (Makefile.am): Likewise.
66490         * modules/fprintftime (Makefile.am): Likewise.
66491         * modules/free (Makefile.am): Likewise.
66492         * modules/fsusage (Makefile.am): Likewise.
66493         * modules/ftruncate (Makefile.am): Likewise.
66494         * modules/fts (Makefile.am): Likewise.
66495         * modules/gc (Makefile.am): Likewise.
66496         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66497         * modules/getaddrinfo (Makefile.am): Likewise.
66498         * modules/getcwd (Makefile.am): Likewise.
66499         * modules/getdelim (Makefile.am): Likewise.
66500         * modules/getdomainname (Makefile.am): Likewise.
66501         * modules/getgroups (Makefile.am): Likewise.
66502         * modules/gethostname (Makefile.am): Likewise.
66503         * modules/gethrxtime (Makefile.am): Likewise.
66504         * modules/getline (Makefile.am): Likewise.
66505         * modules/getloadavg (Makefile.am): Likewise.
66506         * modules/getlogin_r (Makefile.am): Likewise.
66507         * modules/getopt (Makefile.am): Likewise.
66508         * modules/getpass (Makefile.am): Likewise.
66509         * modules/getpass-gnu (Makefile.am): Likewise.
66510         * modules/getsubopt (Makefile.am): Likewise.
66511         * modules/gettime (Makefile.am): Likewise.
66512         * modules/gettimeofday (Makefile.am): Likewise.
66513         * modules/getugroups (Makefile.am): Likewise.
66514         * modules/getusershell (Makefile.am): Likewise.
66515         * modules/glob (Makefile.am): Likewise.
66516         * modules/group-member (Makefile.am): Likewise.
66517         * modules/hard-locale (Makefile.am): Likewise.
66518         * modules/hash (Makefile.am): Likewise.
66519         * modules/hmac-md5 (Makefile.am): Likewise.
66520         * modules/hmac-sha1 (Makefile.am): Likewise.
66521         * modules/human (Makefile.am): Likewise.
66522         * modules/idcache (Makefile.am): Likewise.
66523         * modules/imaxabs (Makefile.am): Likewise.
66524         * modules/imaxdiv (Makefile.am): Likewise.
66525         * modules/inet_ntop (Makefile.am): Likewise.
66526         * modules/inet_pton (Makefile.am): Likewise.
66527         * modules/inttostr (Makefile.am): Likewise.
66528         * modules/isapipe (Makefile.am): Likewise.
66529         * modules/lchown (Makefile.am): Likewise.
66530         * modules/long-options (Makefile.am): Likewise.
66531         * modules/lstat (Makefile.am): Likewise.
66532         * modules/malloc (Makefile.am): Likewise.
66533         * modules/mathl (Makefile.am): Likewise.
66534         * modules/mbchar (Makefile.am): Likewise.
66535         * modules/md2 (Makefile.am): Likewise.
66536         * modules/md4 (Makefile.am): Likewise.
66537         * modules/md5 (Makefile.am): Likewise.
66538         * modules/memcasecmp (Makefile.am): Likewise.
66539         * modules/memchr (Makefile.am): Likewise.
66540         * modules/memcmp (Makefile.am): Likewise.
66541         * modules/memcoll (Makefile.am): Likewise.
66542         * modules/memcpy (Makefile.am): Likewise.
66543         * modules/memmem (Makefile.am): Likewise.
66544         * modules/memmove (Makefile.am): Likewise.
66545         * modules/mempcpy (Makefile.am): Likewise.
66546         * modules/memrchr (Makefile.am): Likewise.
66547         * modules/memset (Makefile.am): Likewise.
66548         * modules/memxor (Makefile.am): Likewise.
66549         * modules/mkancesdirs (Makefile.am): Likewise.
66550         * modules/mkdir (Makefile.am): Likewise.
66551         * modules/mkdir-p (Makefile.am): Likewise.
66552         * modules/mkdtemp (Makefile.am): Likewise.
66553         * modules/mkstemp (Makefile.am): Likewise.
66554         * modules/mktime (Makefile.am): Likewise.
66555         * modules/modechange (Makefile.am): Likewise.
66556         * modules/mountlist (Makefile.am): Likewise.
66557         * modules/nanosleep (Makefile.am): Likewise.
66558         * modules/openat (Makefile.am): Likewise.
66559         * modules/pagealign_alloc (Makefile.am): Likewise.
66560         * modules/physmem (Makefile.am): Likewise.
66561         * modules/poll (Makefile.am): Likewise.
66562         * modules/posixtm (Makefile.am): Likewise.
66563         * modules/posixver (Makefile.am): Likewise.
66564         * modules/putenv (Makefile.am): Likewise.
66565         * modules/quote (Makefile.am): Likewise.
66566         * modules/quotearg (Makefile.am): Likewise.
66567         * modules/raise (Makefile.am): Likewise.
66568         * modules/read-file (Makefile.am): Likewise.
66569         * modules/readline (Makefile.am): Likewise.
66570         * modules/readlink (Makefile.am): Likewise.
66571         * modules/readtokens (Makefile.am): Likewise.
66572         * modules/readutmp (Makefile.am): Likewise.
66573         * modules/realloc (Makefile.am): Likewise.
66574         * modules/regex (Makefile.am): Likewise.
66575         * modules/rename (Makefile.am): Likewise.
66576         * modules/rename-dest-slash (Makefile.am): Likewise.
66577         * modules/rijndael (Makefile.am): Likewise.
66578         * modules/rmdir (Makefile.am): Likewise.
66579         * modules/rpmatch (Makefile.am): Likewise.
66580         * modules/safe-read (Makefile.am): Likewise.
66581         * modules/safe-write (Makefile.am): Likewise.
66582         * modules/same (Makefile.am): Likewise.
66583         * modules/save-cwd (Makefile.am): Likewise.
66584         * modules/savedir (Makefile.am): Likewise.
66585         * modules/setenv (Makefile.am): Likewise.
66586         * modules/settime (Makefile.am): Likewise.
66587         * modules/sha1 (Makefile.am): Likewise.
66588         * modules/sig2str (Makefile.am): Likewise.
66589         * modules/snprintf (Makefile.am): Likewise.
66590         * modules/stdlib-safer (Makefile.am): Likewise.
66591         * modules/stpcpy (Makefile.am): Likewise.
66592         * modules/stpncpy (Makefile.am): Likewise.
66593         * modules/strcase (Makefile.am): Likewise.
66594         * modules/strcasestr (Makefile.am): Likewise.
66595         * modules/strchrnul (Makefile.am): Likewise.
66596         * modules/strcspn (Makefile.am): Likewise.
66597         * modules/strdup (Makefile.am): Likewise.
66598         * modules/strerror (Makefile.am): Likewise.
66599         * modules/strftime (Makefile.am): Likewise.
66600         * modules/strndup (Makefile.am): Likewise.
66601         * modules/strnlen (Makefile.am): Likewise.
66602         * modules/strpbrk (Makefile.am): Likewise.
66603         * modules/strsep (Makefile.am): Likewise.
66604         * modules/strstr (Makefile.am): Likewise.
66605         * modules/strtod (Makefile.am): Likewise.
66606         * modules/strtoimax (Makefile.am): Likewise.
66607         * modules/strtok_r (Makefile.am): Likewise.
66608         * modules/strtol (Makefile.am): Likewise.
66609         * modules/strtoll (Makefile.am): Likewise.
66610         * modules/strtoul (Makefile.am): Likewise.
66611         * modules/strtoull (Makefile.am): Likewise.
66612         * modules/strtoumax (Makefile.am): Likewise.
66613         * modules/strverscmp (Makefile.am): Likewise.
66614         * modules/time_r (Makefile.am): Likewise.
66615         * modules/timegm (Makefile.am): Likewise.
66616         * modules/tmpfile-safer (Makefile.am): Likewise.
66617         * modules/unistd-safer (Makefile.am): Likewise.
66618         * modules/unlinkdir (Makefile.am): Likewise.
66619         * modules/userspec (Makefile.am): Likewise.
66620         * modules/utime (Makefile.am): Likewise.
66621         * modules/utimecmp (Makefile.am): Likewise.
66622         * modules/utimens (Makefile.am): Likewise.
66623         * modules/vasnprintf (Makefile.am): Likewise.
66624         * modules/vasprintf (Makefile.am): Likewise.
66625         * modules/vsnprintf (Makefile.am): Likewise.
66626         * modules/xalloc (Makefile.am): Likewise.
66627         * modules/xgetcwd (Makefile.am): Likewise.
66628         * modules/xnanosleep (Makefile.am): Likewise.
66629         * modules/xreadlink (Makefile.am): Likewise.
66630         * modules/xstrtod (Makefile.am): Likewise.
66631         * modules/xstrtol (Makefile.am): Likewise.
66632         * modules/xstrtold (Makefile.am): Likewise.
66633         * modules/yesno (Makefile.am): Likewise.
66634
66635 2006-10-12  Jim Meyering  <jim@meyering.net>
66636
66637         * m4/getloadavg.m4: Revert the change below.
66638
66639         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66640         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66641         fail with a symlink, which is what coreutils' ./bootstrap now
66642         creates by default.
66643
66644 2006-10-12  Bruno Haible  <bruno@clisp.org>
66645
66646         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66647         mingw.
66648         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66649         MSVC and mingw explicitly.
66650
66651 2006-10-11  Simon Josefsson  <jas@extundo.com>
66652             Bruno Haible  <bruno@clisp.org>
66653
66654         Add support for multiple gnulib-tool invocations in the scope of a
66655         single configure.ac file.
66656         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66657         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66658         with the same contents as the _LIBADD variable.
66659         (func_emit_initmacro_start, func_emit_initmacro_end,
66660         func_emit_initmacro_done): New functions.
66661         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66662         gl_LIBOBJS and gl_LTLIBOBJS.
66663
66664 2006-10-11  Bruno Haible  <bruno@clisp.org>
66665
66666         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66667         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66668         autoreconf. Instead, invoke autopoint explicitly but move back the
66669         *.m4 files from gnulib.
66670
66671 2006-10-11  Bruno Haible  <bruno@clisp.org>
66672
66673         * gnulib-tool (func_usage): Make module names after --create-testdir
66674         optional.
66675         (func_create_testdir): If no module was specified, use nearly all
66676         modules.
66677
66678 2006-10-12  Jim Meyering  <jim@meyering.net>
66679
66680         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66681         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66682         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66683         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66684         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66685         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66686         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66687         (fts_set_stat_required): New function.
66688         (fts_open): Defer the calls to fts_stat, if possible or requested.
66689         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66690         into fts_stat itself.
66691         (fts_read): Perform any required (deferred) fts_stat call.
66692         (fts_build): Likewise, for the directory we're about to open and read.
66693         In the readdir loop, carefully decide whether each entry will require
66694         an eventual call to fts_stat, using dirent.d_type info if available.
66695         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66696         a command line argument into this function.  Update all callers.
66697         Map a return value of FTS_DOT to FTS_D for a command line argument.
66698         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66699         Thanks to Miklos Szeredi for his tenacity and for the initial
66700         bug report about "find" failing on a FUSE-based file system.
66701
66702         * lib/fts.c (fts_open): Use consistent indentation.
66703
66704 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66707         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66708         reported by Jim Meyering.  All uses of cache variables renamed
66709         to match Autoconf's.
66710         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66711         the other one.
66712
66713         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66714         Fix misspelling in diagnostic.
66715
66716 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66717
66718         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66719         defined.  Problem reported by Matthew Woehlke.
66720
66721         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66722         Add support for Tandem NonStop R series.
66723         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66724         Use new macro.
66725
66726         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66727         (has_trailing_slash): Omit size arg; all callers changed.
66728         Omit 'inline', since it doesn't help performance and we'd
66729         need to configure it.
66730         Don't count //, ///, etc. as having a trailing slash.
66731         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66732         (rpl_rename_dest_slash): On failure, use rename's errno rather
66733         than (in some cases) an incorrect or junk errno.
66734         Simplify code by removing need to compute length; this does
66735         cause it to make two passes instead of one over the file name,
66736         but it's worth it.
66737
66738         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66739         change, since Autoconf's version may no longer be appropriate now
66740         that we are using CVS Autoconf's version.  Add support for Tandem.
66741
66742 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66743             Bruno Haible  <bruno@clisp.org>
66744
66745         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66746         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66747         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66748         gl_AC_TYPE_LONG_LONG.
66749
66750         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66751         instead of HAVE_LONG_LONG.
66752         * lib/printf-args.c (printf_fetchargs): Likewise.
66753         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66754         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66755         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66756         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66757         gl_AC_TYPE_LONG_LONG.
66758
66759 2006-10-11  Bruno Haible  <bruno@clisp.org>
66760
66761         * m4/longlong.m4: Add comments.
66762         * m4/ulonglong.m4: Likewise.
66763
66764 2006-10-10  Bruno Haible  <bruno@clisp.org>
66765
66766         Make it possible to #define stpcpy, strdup to aliases.
66767         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66768         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66769
66770 2006-10-10  Bruno Haible  <bruno@clisp.org>
66771
66772         Make it possible to #define gcd to an alias.
66773         * lib/gcd.c: Include config.h.
66774
66775 2006-10-10  Bruno Haible  <bruno@clisp.org>
66776
66777         Make it possible to #define c_isascii to an alias.
66778         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66779         defined. Undefine the macros before defining them, to avoid gcc
66780         warnings.
66781         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66782         define NO_C_CTYPE_MACROS early.
66783
66784 2006-10-10  Bruno Haible  <bruno@clisp.org>
66785
66786         Make it possible to #define set_program_name to an alias.
66787         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66788         ENABLE_RELOCATABLE early.
66789
66790 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66791
66792         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66793         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66794         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66795         More generally, don't assume that 64-bit signed int is available
66796         if unsigned int is, and vice versa.
66797         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66798         unsigned symbols, not on their signed counterparts.
66799         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66800         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66801         (UINT64_C, UINTMAX_C):
66802         Likewise.
66803         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66804         unsigned counterparts.
66805         (Have_long_long, Unsigned): New macros.
66806         (Int): Renamed from INT.
66807         (strtoimax): Use the new macros.
66808         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66809         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66810         * modules/inttypes (inttypes.h): Substitute
66811         HAVE_UNSIGNED_LONG_LONG_INT.
66812         * modules/stdint (stdint.h): Likewise.
66813         (Files): Add m4/ulonglong.m4.
66814
66815 2006-10-10  Bruno Haible  <bruno@clisp.org>
66816
66817         Fix a gcc -Wshadow warning.
66818         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66819         to 'bucket'.
66820         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66821         gl_linked_indexof_from_to): Likewise.
66822         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66823         Likewise.
66824         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66825         Likewise.
66826         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66827         Reported by Eric Blake.
66828
66829 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66832         for NetBSD.  Problem reported by Bruno Haible.
66833
66834 2006-10-09  Jim Meyering  <jim@meyering.net>
66835
66836         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66837         Patch from Bruno Haible.
66838
66839 2006-10-09  Jim Meyering  <jim@meyering.net>
66840
66841         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66842         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66843         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66844
66845 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         Don't include <config.h> twice; this doesn't work in some cases,
66848         e.g., when config.h has "#define intmax_t long long int" and
66849         we include <config.h>, <inttypes.h>, <config.h> in that order.
66850         Problem reported by Matthew Woehlke in:
66851         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66852         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66853         * lib/fts-cycle.c: Don't include config.h.
66854         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66855         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66856         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66857         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66858         inttypes.h.
66859         * lib/xstrtoumax.c: Likewise.
66860         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66861         __strtol and the like, so that this module is more like its siblings.
66862         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66863         Remove; no longer needed now that we assume gnulib inttypes.h.
66864
66865 2006-10-08  Bruno Haible  <bruno@clisp.org>
66866
66867         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66868         option.
66869
66870 2006-10-07  Jim Meyering  <jim@meyering.net>
66871
66872         * modules/inttypes (inttypes.h): Revert what seems to have been
66873         an inadvertent part of today's change: use "|", not "/" in the
66874         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66875
66876 2006-10-07  Bruno Haible  <bruno@clisp.org>
66877
66878         * modules/sublist: New file.
66879
66880 2006-10-07  Bruno Haible  <bruno@clisp.org>
66881
66882         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66883         * modules/argz (argz.h): Likewise.
66884         * modules/arpa_inet (arpa/inet.h): Likewise.
66885         * modules/byteswap (byteswap.h): Likewise.
66886         * modules/configmake (configmake.h): Likewise.
66887         * modules/fcntl (fcntl.h): Likewise.
66888         * modules/fnmatch (fnmatch.h): Likewise.
66889         * modules/getopt (getopt.h): Likewise.
66890         * modules/glob (glob.h): Likewise.
66891         * modules/inttypes (inttypes.h): Likewise.
66892         * modules/netinet_in (netinet/in.h): Likewise.
66893         * modules/poll (poll.h): Likewise.
66894         * modules/stdbool (stdbool.h): Likewise.
66895         * modules/stdint (stdint.h): Likewise.
66896         * modules/sys_select (sys/select.h): Likewise.
66897         * modules/sys_socket (sys/socket.h): Likewise.
66898         * modules/sys_stat (sys/stat.h): Likewise.
66899         * modules/sysexits (sysexits.h): Likewise.
66900         * modules/unistd (unistd.h): Likewise.
66901         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66902         Add a "DO NOT EDIT" comment to the generated file.
66903         (func_import): Likewise for gnulib-comp.m4.
66904
66905 2006-10-07  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/gl_sublist.h: New file.
66908         * lib/gl_sublist.c: New file.
66909
66910 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66911
66912         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66913         name (relative to the original working directory) and the file
66914         name component (relative to the temporary working directory).  All
66915         callers changed.
66916         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66917         * lib/mkdir-p.c (make_dir_parents): Likewise.
66918         * lib/mkdir-p.h (make_dir_parents): Likewise.
66919
66920 2006-10-06  Eric Blake  <ebb9@byu.net>
66921
66922         Define several macros for use by the clean-temp module.
66923         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66924         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66925         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66926
66927         * lib/clean-temp.h (close_stream_temp): New declaration.
66928         * lib/clean-temp.c (includes): Pull in headers according to what
66929         other modules are in use.
66930         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66931
66932 2006-10-06  Bruno Haible  <bruno@clisp.org>
66933
66934         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66935         instead of fopen, fwriteerror.
66936
66937 2006-10-06  Bruno Haible  <bruno@clisp.org>
66938
66939         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66940         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66941         int.
66942         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66943         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66944         Return an error indicator.
66945         Suggested by Eric Blake.
66946
66947 2006-10-06  Bruno Haible  <bruno@clisp.org>
66948
66949         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66950         Reported by Eric Blake.
66951
66952 2006-10-06  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/closeout (Description): Mention stderr too.
66955
66956 2006-10-06  Bruno Haible  <bruno@clisp.org>
66957         and Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         * lib/closeout.c (close_stdout): Also close stderr.
66960         * lib/closeout.h: Update comment.
66961
66962 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66963
66964         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66965         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66966         * lib/dirchownmod.c: Include lchown.h.
66967         * lib/lchown.c: Don't include files that lchown.h now includes.
66968         Don't declare chown, since lchown.h now does that.
66969         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66970         (lchown): Define to rpl_chown if lchown is declared but
66971         does not exist.  Declare using a prototype if lchown is not
66972         declared.  Add a copyright notice.
66973         * lib/mkstemp.h: Include <unistd.h>.
66974         * lib/openat.c: Include lchown.h.
66975
66976         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66977         we now test for that separately.
66978         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66979         rather than O_NOFOLLOW, when testing whether it's possible to
66980         avoid a race condition reliably.
66981         * lib/savewd.c (savewd_chdir): Likewise.
66982
66983         Remove macros that are no longer needed now that stdint.h is
66984         reliable.
66985         * lib/fsusage.c (UINTMAX_MAX): Remove.
66986         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66987         * lib/utimecmp.c (SIZE_MAX): Remove.
66988
66989         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66990
66991         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66992         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66993         O_NOATIME works.
66994
66995 2006-10-05  Bruno Haible  <bruno@clisp.org>
66996
66997         * lib/gl_list.h (gl_sortedlist_search_from_to,
66998         gl_sortedlist_indexof_from_to): New declarations.
66999         (gl_list_implementation): New fields sortedlist_search_from_to,
67000         sortedlist_indexof_from_to.
67001         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67002         inline functions.
67003         * lib/gl_list.c (gl_sortedlist_search_from_to,
67004         gl_sortedlist_indexof_from_to): New functions.
67005         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67006         function.
67007         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67008         (gl_array_sortedlist_search_from_to): New function.
67009         (gl_array_list_implementation): Update.
67010         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67011         function.
67012         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67013         (gl_carray_sortedlist_search_from_to): New function.
67014         (gl_carray_list_implementation): Update.
67015         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67016         gl_linked_sortedlist_indexof_from_to): New functions.
67017         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67018         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67019         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67020         gl_tree_sortedlist_indexof_from_to): New functions.
67021         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67022         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67023         Update.
67024         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67025         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67026         Update.
67027
67028 2006-10-05  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67031         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67032         (struct gl_list_implementation): Add fields search_from_to,
67033         indexof_from_to. Remove fields search, indexof.
67034         (gl_list_search): Use the search_from_to method.
67035         (gl_list_search_from, gl_list_search_from_to): New functions.
67036         (gl_list_indexof): Use the indexof_from_to method.
67037         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67038         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67039         (gl_list_search_from, gl_list_search_from_to): New functions.
67040         (gl_list_indexof): Use the indexof_from_to method.
67041         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67042         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67043         gl_array_indexof. Add start_index, end_index arguments.
67044         (gl_array_search_from_to): Renamed from gl_array_search. Add
67045         start_index, end_index arguments.
67046         (gl_array_remove, gl_array_list_implementation): Update.
67047         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67048         gl_carray_indexof. Add start_index, end_index arguments.
67049         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67050         start_index, end_index arguments.
67051         (gl_carray_remove, gl_carray_list_implementation): Update.
67052         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67053         gl_linked_search. Add start_index, end_index arguments.
67054         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67055         start_index, end_index arguments.
67056         (gl_linked_remove): Update.
67057         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67058         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67059         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67060         field to 'size_t'.
67061         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67062         gl_tree_search. Add start_index, end_index arguments.
67063         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67064         start_index, end_index arguments.
67065         (gl_tree_remove): Update.
67066         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67067         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67068         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67069         function.
67070         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67071         gl_tree_search. Add start_index, end_index arguments.
67072         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67073         start_index, end_index arguments.
67074         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67075         Update.
67076         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67077
67078 2006-10-05  Bruno Haible  <bruno@clisp.org>
67079
67080         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67081
67082         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67083         fwriteerror_temp): New declarations.
67084         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67085         (descriptors): New variable.
67086         (cleanup): First, close the descriptors.
67087         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67088         fclose_temp, fwriteerror_temp): New functions.
67089
67090 2006-10-04  Jim Meyering  <jim@meyering.net>
67091
67092         * lib/fts.c (fts_open): Tiny comment change.
67093
67094 2006-10-04  Bruno Haible  <bruno@clisp.org>
67095
67096         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67097         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67098         gl_LOCK_BODY.
67099         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67100         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67101         gl_LOCK_EARLY_BODY.
67102         (gl_LOCK): Require gl_LOCK_BODY.
67103
67104 2006-10-04  Bruno Haible  <bruno@clisp.org>
67105
67106         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67107         (gl_oset_search_atleast): New declaration.
67108         (struct gl_oset_implementation): Add field 'search_atleast'.
67109         (gl_oset_search_atleast): New inline function.
67110         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67111         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67112         (gl_array_oset_implementation): Update.
67113         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67114         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67115         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67116
67117 2006-10-04  Bruno Haible  <bruno@clisp.org>
67118
67119         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67120
67121 2006-10-03  Bruno Haible  <bruno@clisp.org>
67122
67123         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67124         from gl_avltreehash_list_implementation.
67125
67126 2006-10-03  Bruno Haible  <bruno@clisp.org>
67127
67128         * lib/gl_oset.c (gl_oset_add): Fix return type.
67129
67130 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67131
67132         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67133
67134 2006-10-02  Eric Blake  <ebb9@byu.net>
67135
67136         * modules/strnlen (Depends-on): Add extensions.
67137
67138 2006-10-02  Eric Blake  <ebb9@byu.net>
67139
67140         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67141         definition in 2.60+.
67142
67143 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67144
67145         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67146         checks.
67147
67148 2006-10-02  Bruno Haible  <bruno@clisp.org>
67149
67150         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67151         to the AUTOMAKE_OPTIONS.
67152         Reported by Jim Meyering.
67153
67154 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67155
67156         Work around bug in Solaris 10 /proc file system:
67157         /proc/self/fd/NNN/.. isn't the parent directory of
67158         the directory whose file descriptor is NNN.  This needs to
67159         be worked around at run time, not compile time, since a
67160         program might be built on Solaris 8, where things work, and
67161         run on Solaris 10.
67162         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67163         to use the following interface instead:
67164         (OPENAT_BUFFER_SIZE): New macro.
67165         (openat_proc_name): New function.
67166         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67167         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67168         Likewise.
67169         * lib/openat-proc.c: New file.
67170         * modules/openat (Files): Add lib/openat-proc.c.
67171         (Depends-on): Add same-inode, stdbool.
67172         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67173
67174 2006-09-29  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67177         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67178         argument. Set stdout_closed before testing for ferror, not after.
67179         (fwriteerror, fwriteerror_no_ebadf): New functions.
67180
67181 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67182
67183         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67184
67185 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67186
67187         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67188         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67189
67190 2006-09-28  Jim Meyering  <jim@meyering.net>
67191
67192         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67193         Include <unistd.h>.
67194
67195 2006-09-28  Bruno Haible  <bruno@clisp.org>
67196
67197         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67198         * modules/linkedhash-list (Depends-on): Likewise.
67199         * modules/rbtreehash-list (Depends-on): Likewise.
67200
67201 2006-09-28  Bruno Haible  <bruno@clisp.org>
67202
67203         * lib/strndup.h: Simplify the redefinition of strndup.
67204         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67205         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67206
67207 2006-09-28  Bruno Haible  <bruno@clisp.org>
67208
67209         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67210         * lib/gl_linkedhash_list.c: Likewise.
67211         * lib/gl_rbtreehash_list.c: Likewise.
67212
67213 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67214
67215         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67216         getaddrinfo.
67217
67218         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67219         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67220         it causes <stdio_ext.h> to cause a compile-time error.
67221         Problem reported by Nelson H. F. Beebe.
67222         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67223         of HAVE_DECL___PENDING.
67224
67225         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67226         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67227         declaration.
67228
67229 2006-09-27  Jim Meyering  <jim@meyering.net>
67230
67231         This file could end up with a definition for a function
67232         named __strndup, rather than rpl_strndup on a system with
67233         incomplete weak_alias support.
67234         * lib/strndup.c (strndup): Rename from __strndup.
67235         Remove #defines that used to map __strndup to strndup.
67236         Don't use K&R prototypes.
67237         Remove LIBC-related code, since this file is not sync'd with glibc.
67238         * lib/strndup.h: Revamp, accordingly.
67239         * m4/strndup.m4: Modernize.
67240
67241 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67242
67243         * modules/savewd (Depends-on): Add 'raise'.
67244         * lib/savewd.c: Include <signal.h>, for 'raise'.
67245
67246 2006-09-26  Jim Meyering  <jim@meyering.net>
67247
67248         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67249         when we detect Darwin 8.7.0's acl_get_file bug.
67250         Rearrange to perform the new (below) run-test while $LIBS
67251         contains any acl-related library.  Set USE_ACL at the end.
67252         (gl_ACL_GET_FILE): New function.
67253
67254 2006-09-26  Eric Blake  <ebb9@byu.net>
67255
67256         * lib/verror.c: Include <config.h> unconditionally.
67257
67258 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67259
67260         * modules/clock-time (Maintainer): Add self.
67261         * modules/getlogin_r (Depends-on): Add extensions.
67262
67263 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67264
67265         * modules/clock-time: New module.
67266         * modules/nanosleep (Depends-on): Add clock-time.
67267         * modules/gethrxtime (Depends-on): Likewise.
67268         * modules/gettime (Depends-on): Likewise.
67269         * modules/settime (Depends-on): Likewise.
67270
67271         * modules/fts-lgpl: Depend on openat.
67272         * modules/mkancesdirs: Depend on savewd.
67273         * modules/mkdir-p: Likewise.
67274
67275 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67276
67277         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67278
67279         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67280         `gl_have_arbitrary_file_name_length_limit' to
67281         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67282         actually works between configure runs.
67283
67284 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67285             Bruno Haible  <bruno@clisp.org>
67286
67287         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67288
67289 2006-09-25  Jim Meyering  <jim@meyering.net>
67290
67291         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67292         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67293
67294 2006-09-25  Eric Blake  <ebb9@byu.net>
67295
67296         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67297         exec's in 2006-09-18 patch when shuffling fds.
67298
67299 2006-09-25  Bruno Haible  <bruno@clisp.org>
67300
67301         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67302         Reported by Jim Meyering.
67303
67304 2006-09-24  Jim Meyering  <jim@meyering.net>
67305
67306         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67307         compare a pointer against a literal "0".  That caused failures with
67308         at least HP-UX's hpcc.
67309
67310 2006-09-22  Simon Josefsson  <jas@extundo.com>
67311
67312         * modules/gc-sha1:
67313         * modules/gc-md4:
67314         * modules/gc-hmac-sha1:
67315         * modules/gc-hmac-md5:
67316         * modules/gc-des:
67317         * modules/gc-arcfour: Distribute more files.
67318
67319 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67320
67321         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67322         (gl_linked_iterator_from_to): Initialize struct completely.
67323         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67324         (gl_tree_iterator_from_to): Likewise
67325         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67326         * lib/gl_array_list.c [lint] (gl_array_iterator)
67327         (gl_array_iterator_from_to): Likewise.
67328         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67329         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67330         (gl_carray_iterator_from_to): Likewise.
67331
67332         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67333         * lib/md4.c (md4_process_block): Remove unused variable.
67334         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67335         parentheses for clarity.
67336
67337 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67338
67339         * modules/bison-i18n (Depends-on): Add gettext.
67340
67341 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67342
67343         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67344         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67345         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67346         also add missing comma that caused broken test.
67347         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67348         stdlib.h, for `abort'.
67349         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67350         variables.
67351         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67352         include unistd.h if present, for `rmdir'.
67353         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67354         variables.
67355         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67356         in the process include standard headers for prototypes.
67357         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67358         gets declared on GNU/Linux.
67359         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67360         unistd.h, for `rmdir'.
67361         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67362
67363         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67364         always true.
67365         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67366
67367         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67368
67369 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67370
67371         * gnulib-tool (func_version): Create output all at once.  This
67372         may help avoid triggering unnecessary SIGPIPEs, and at any
67373         rate it doesn't hurt.
67374
67375 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67376             Bruno Haible  <bruno@clisp.org>
67377
67378         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67379         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67380         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67381
67382         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67383         (gl_FUNC_VASPRINTF): Invoke it.
67384
67385 2006-09-22  Bruno Haible  <bruno@clisp.org>
67386
67387         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67388         getloadavg.c as first argument.
67389
67390 2006-09-22  Bruno Haible  <bruno@clisp.org>
67391
67392         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67393         at the beginning of the gl_INIT macro.
67394         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67395         gl_GETLOADAVG.
67396
67397 2006-09-22  Bruno Haible  <bruno@clisp.org>
67398
67399         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67400         module.
67401         Suggested by Ralf Wildenhues.
67402
67403 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67404
67405         Import this patch from libc:
67406
67407         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67408
67409         * lib/regex_internal.c (re_string_reconstruct): Handle
67410         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67411         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67412         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67413         re_string_context_at.
67414
67415         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67416         now requires it.
67417         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67418         gl_REGEX now does it for us.
67419         (gl_REGEX): Add test taken from
67420         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67421
67422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67423         Check that large offsets work.  Modernize Autoconf usages.
67424         Prefer "yes" to mean a good thing rather than a bad.
67425         Don't put "#define mkstemp" in config.h, as this might interfere
67426         with standard system headers that "#define mkstemp mkstemp64".
67427
67428         * modules/mkstemp (Depends-on): Add extensions, so that
67429         mkstemp is visible on some platforms.
67430         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67431         (Include): Change to "mkstemp.h" from <stdlib.h>.
67432         (Files): Add mkstemp.h.
67433
67434         * lib/mkstemp.h: New file, since some standard headers
67435         #define mkstemp.
67436         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67437         Include "mkstemp.h".
67438         Make the _LIBC code resemble glibc original more,
67439         e.g., use K&R style.
67440         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67441         (mkstemp): Remove, since mkstemp.h does this for us.
67442         * lib/stdlib--.h: Include mkstemp.h.
67443
67444         Import this patch from libc:
67445
67446         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67447
67448         * lib/tempname.c (__gen_tempname): Change attempts_min
67449         into a macro.  Use preprocessor to decide how to initialize
67450         attempts [Coverity CID 67].
67451
67452 2006-09-20  Bruno Haible  <bruno@clisp.org>
67453
67454         * lib/mkdtemp.c: Import from libc.
67455         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67456                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67457                 attempts_min into a macro.  Use preprocessor to decide how to
67458                 initialize attempts [Coverity CID 67].
67459         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67460                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67461                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67462
67463 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67464
67465         * gnulib-tool (func_exit): New function, to allow to pass the
67466         exit status portably through the trap.  Use everywhere.
67467         (--help, --version): Signal a write error.
67468         (trap): catch SIGPIPE, for write errors.
67469         Exit at the end of the trap, with the correct exit status.
67470
67471 2006-09-19  Karl Berry  <karl@gnu.org>
67472
67473         * doc/gnulib.texi: note about the license texinfo files.
67474
67475 2006-09-19  Eric Blake  <ebb9@byu.net>
67476
67477         * gnulib-tool: Avoid space-tab.
67478
67479 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67480
67481         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67482         that prevented coreutils 6.1 from building.  Problem reported
67483         by Petter Reinholdtsen.
67484
67485 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * gnulib-tool (avoidlist): Fix typo that broke options like
67488         --avoid=lock that are used by coreutils bootstrap.
67489
67490 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67491
67492         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67493         more systematically.
67494
67495 2006-09-18  Jim Meyering  <jim@meyering.net>
67496
67497         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67498
67499 2006-09-18  Bruno Haible  <bruno@clisp.org>
67500
67501         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67502
67503 2006-09-18  Bruno Haible  <bruno@clisp.org>
67504
67505         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67506         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67507         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67508         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67509         * m4/gettext.m4: Require autoconf >= 2.52.
67510         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67511         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67512         of gl_cv_header_inttypes_h.
67513
67514 2006-09-18  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/javaversion.c: Include configmake.h.
67517
67518 2006-09-18  Bruno Haible  <bruno@clisp.org>
67519
67520         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67521         avoid that the while loops be executed in a subshell.
67522
67523 2006-09-18  Bruno Haible  <bruno@clisp.org>
67524
67525         * MODULES.html.sh (func_module): Break long lines.
67526         Suggested by Bruce Korb <bkorb@gnu.org>.
67527
67528 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67529
67530         Speed up by a factor of 1.12.
67531         * gnulib-tool (nl): New variable.
67532         (func_import): Rewrite include directive extraction to only read each
67533         directive once.
67534
67535 2006-09-17  Bruno Haible  <bruno@clisp.org>
67536
67537         * modules/javaversion (Makefile.am): Remove DEFS setting.
67538         (Depends-on): Add configmake, for PKGDATADIR definition.
67539
67540 2006-09-17  Bruno Haible  <bruno@clisp.org>
67541
67542         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67543
67544 2006-09-17  Bruno Haible  <bruno@clisp.org>
67545
67546         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67547         (func_modules_transitive_closure, func_modules_add_dummy,
67548         func_modules_to_filelist, func_import, func_create_testdir,
67549         func_create_megatestdir, ...): Use it wherever possible.
67550         Suggested by Ralf Wildenhues.
67551
67552 2006-09-16  Karl Berry  <karl@gnu.org>
67553
67554         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67555         to avoid sectioning errors.
67556         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67557         [ifinfo]: blank line after @center-ed titles.
67558         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67559         Spell FSF address consistently with others.
67560         (These changes approved by rms.)
67561
67562 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67563
67564         Speed up by a factor of 1.61.
67565         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67566         already checked module names again.
67567
67568 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67569
67570         Speed up by a factor of 1.13.
67571         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67572         for new_files, and the input to func_add_or_update.
67573
67574 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67575
67576         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67577         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67578
67579 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         * modules/mkancesdirs (Depends-on): Add fcntl.
67582         * modules/savewd: New file.
67583         * MODULES.html.sh (File system functions): Add savewd.
67584
67585         * modules/configmake (Makefile.am): Add support for the
67586         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67587
67588 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * m4/savewd.m4: New file.
67591
67592 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67593
67594         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67595         (dirchownmod): New arg FD.  All callers changed.
67596         Use FD rather than opening the directory ourself, as opening is
67597         now the caller's responsibility.
67598         * lib/dirchownmod.h: Likewise.
67599         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67600         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67601         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67602         (test_dir): Remove.
67603         (mkancesdirs): Return length of prefix of FILE that has already
67604         been made, or -2 if there is a child doing the work.  Redo
67605         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67606         ".", and treat ".." specially since it might stray back into
67607         already-created areas.  Use a subprocess if necessary.  New arg
67608         WD; all users changed.  MAKE_DIR function should now return 1
67609         if it creates a directory that is not readable.  Return -2 if
67610         a child process is spun off.
67611         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67612         Adjust signature to match code.
67613         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67614         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67615         all users changed.
67616         * lib/savewd.c, lib/savewd.h: New files.
67617
67618 2006-09-15  Jim Meyering  <jim@meyering.net>
67619
67620         * modules/rename-dest-slash: New module.
67621         * MODULES.html.sh (posix_compat): Add it here.
67622
67623         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67624
67625 2006-09-15  Jim Meyering  <jim@meyering.net>
67626
67627         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67628         file.
67629
67630         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67631
67632 2006-09-15  Jim Meyering  <jim@meyering.net>
67633
67634         * lib/rename-dest-slash.c (has_trailing_slash): Use
67635         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67636         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67637         test before testing whether SRC is a directory.
67638         Suggestions from Bruno Haible.
67639
67640         Avoid a warning about an unused variable.
67641         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67642         into the #ifdef block where it's used.
67643
67644         * lib/rename-dest-slash.c: New file.
67645
67646 2006-09-14  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/allocsa.c: Include <config.h> unconditionally.
67649         * lib/asnprintf.c: Likewise.
67650         * lib/asprintf.c: Likewise.
67651         * lib/c-strcasecmp.c: Likewise.
67652         * lib/c-strcasestr.c: Likewise.
67653         * lib/c-strncasecmp.c: Likewise.
67654         * lib/c-strstr.c: Likewise.
67655         * lib/classpath.c: Likewise.
67656         * lib/clean-temp.c: Likewise.
67657         * lib/concatpath.c: Likewise.
67658         * lib/copy-file.c: Likewise.
67659         * lib/csharpcomp.c: Likewise.
67660         * lib/csharpexec.c: Likewise.
67661         * lib/execute.c: Likewise.
67662         * lib/fatal-signal.c: Likewise.
67663         * lib/findprog.c: Likewise.
67664         * lib/fwriteerror.c: Likewise.
67665         * lib/gl_array_list.c: Likewise.
67666         * lib/gl_array_oset.c: Likewise.
67667         * lib/gl_avltree_list.c: Likewise.
67668         * lib/gl_avltree_oset.c: Likewise.
67669         * lib/gl_avltreehash_list.c: Likewise.
67670         * lib/gl_carray_list.c: Likewise.
67671         * lib/gl_linked_list.c: Likewise.
67672         * lib/gl_linkedhash_list.c: Likewise.
67673         * lib/gl_list.c: Likewise.
67674         * lib/gl_oset.c: Likewise.
67675         * lib/gl_rbtree_list.c: Likewise.
67676         * lib/gl_rbtree_oset.c: Likewise.
67677         * lib/gl_rbtreehash_list.c: Likewise.
67678         * lib/imaxabs.c: Likewise.
67679         * lib/imaxdiv.c: Likewise.
67680         * lib/javacomp.c: Likewise.
67681         * lib/javaexec.c: Likewise.
67682         * lib/javaversion.c: Likewise.
67683         * lib/linebreak.c: Likewise.
67684         * lib/localcharset.c: Likewise.
67685         * lib/lock.c: Likewise.
67686         * lib/mbchar.c: Likewise.
67687         * lib/mbswidth.c: Likewise.
67688         * lib/mkdtemp.c: Likewise.
67689         * lib/pipe.c: Likewise.
67690         * lib/printf-args.c: Likewise.
67691         * lib/printf-parse.c: Likewise.
67692         * lib/progname.c: Likewise.
67693         * lib/progreloc.c: Likewise.
67694         * lib/readlink.c: Likewise.
67695         * lib/sh-quote.c: Likewise.
67696         * lib/stpcpy.c: Likewise.
67697         * lib/stpncpy.c: Likewise.
67698         * lib/strcasecmp.c: Likewise.
67699         * lib/strcasestr.c: Likewise.
67700         * lib/strcspn.c: Likewise.
67701         * lib/striconv.c: Likewise.
67702         * lib/strncasecmp.c: Likewise.
67703         * lib/strnlen1.c: Likewise.
67704         * lib/strstr.c: Likewise.
67705         * lib/strtok_r.c: Likewise.
67706         * lib/tls.c: Likewise.
67707         * lib/tmpdir.c: Likewise.
67708         * lib/unicodeio.c: Likewise.
67709         * lib/unsetenv.c: Likewise.
67710         * lib/vasnprintf.c: Likewise.
67711         * lib/vasprintf.c: Likewise.
67712         * lib/wait-process.c: Likewise.
67713         * lib/xallocsa.c: Likewise.
67714         * lib/xsetenv.c: Likewise.
67715         * lib/xstriconv.c: Likewise.
67716
67717 2006-09-13  Simon Josefsson  <jas@extundo.com>
67718
67719         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67720         that internally, suggested by Ralf Wildenhues
67721         <Ralf.Wildenhues@gmx.de>.
67722
67723 2006-09-13  Simon Josefsson  <jas@extundo.com>
67724
67725         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67726         @LIBOBJS@.
67727         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67728
67729 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67730
67731         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67732         longer worry about uses that don't define HAVE_CONFIG_H.
67733         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67734         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67735         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67736         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67737         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67738         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67739         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67740         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67741         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67742         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67743         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67744         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67745         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67746         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67747         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67748         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67749         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67750         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67751         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67752         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67753         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67754         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67755         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67756         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67757         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67758         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67759         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67760         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67761         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67762         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67763         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67764         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67765         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67766         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67767         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67768         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67769         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67770         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67771         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67772         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67773         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67774         Likewise.
67775
67776 2006-09-13  Eric Blake  <ebb9@byu.net>
67777
67778         * lib/getopt.c: Fix typo in last commit.
67779
67780 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67781
67782         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67783         dgettext.
67784
67785 2006-09-12  Jim Meyering  <jim@meyering.net>
67786
67787         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67788         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67789         Reported by Nelson H. F. Beebe.
67790
67791 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67792
67793         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67794         program_invocation_name and program_invocation_short_name are
67795         initialized.
67796         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67797         and program_invocation_short_name to argp.h, so they are visible
67798         to user programs.
67799         * lib/argp.h: Likewise
67800
67801 2006-09-10  Bruno Haible  <bruno@clisp.org>
67802
67803         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67804         m4/inttypes_h.m4, m4/uintmax_t.m4.
67805
67806 2006-09-10  Bruno Haible  <bruno@clisp.org>
67807
67808         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67809         gl_AC_TYPE_UINTMAX_T.
67810
67811 2006-09-10  Bruno Haible  <bruno@clisp.org>
67812
67813         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67814
67815 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67816
67817         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67818         convention.  Text proposed by Bruno Haible.
67819         (struct argp_option): Document the use of N_() wrappers.
67820
67821         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67822         '\v', and translate the two parts separately, instead of feeding
67823         the whole string to gettext.  This allows to exclude
67824         '\v' from the strings visible to the translator by writing doc
67825         strings as N_("..") "\v" N_("..").
67826
67827 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67828
67829         * config/srclist.txt: Undo latest change; the bug was fixed.
67830
67831 2006-09-09  Bruno Haible  <bruno@clisp.org>
67832
67833         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67834         assignments if building a library without libtool.
67835         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67836         in func_emit_lib_Makefile_am.
67837         (func_import): When building a static library libfoo.a, arrange to
67838         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67839         (func_create_testdir): Likewise.
67840         * modules/gc (configure.ac, Makefile.am): If building statically,
67841         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67842         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67843         * modules/striconv (configure.ac, Makefile.am): Likewise.
67844         Based on a suggestion by Ralf Wildenhues.
67845
67846 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67847
67848         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67849         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67850         Also:
67851
67852         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67853         Add year_2050_test to catch glibc bug 2821
67854         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67855
67856         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67857         Prefer #ifdef to #if.
67858
67859         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67860         Return from 'main' instead of calling 'exit'.
67861
67862 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67865         returned the maximum time_t value rather than (time_t) -1.
67866         Problem originally reported by William Bardwell
67867         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67868
67869         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67870         Moved to here ...
67871         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67872         ... from here.
67873
67874 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67877         2821 is fixed.
67878
67879 2006-09-08  Jim Meyering  <jim@meyering.net>
67880
67881         Don't make generated files read-only.  That would bother too many
67882         people.  However, do retain the ability to work when targets are
67883         read-only: remove the destination and temporary files before writing
67884         them (when generated via sed or echo), or by using the -f option for
67885         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67886         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67887         * modules/byteswap, modules/configmake, modules/fcntl:
67888         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67889         * modules/localcharset, modules/netinet_in, modules/poll:
67890         * modules/stdbool, modules/stdint, modules/sys_select:
67891         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67892
67893 2006-09-08  Jim Meyering  <jim@meyering.net>
67894
67895         Avoid new build failure on FreeBSD 6.0.
67896         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67897         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67898         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67899
67900 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67901
67902         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67903
67904 2006-09-07  Jim Meyering  <jim@meyering.net>
67905
67906         Fix global typo in last change: use chmod u-w, not chmod u-x.
67907         Spotted by Paul Eggert and Bruce Korb.
67908         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67909         * modules/byteswap, modules/configmake, modules/fcntl:
67910         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67911         * modules/localcharset, modules/netinet_in, modules/poll:
67912         * modules/stdbool, modules/stdint, modules/sys_select:
67913         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67914
67915 2006-09-06  Jim Meyering  <jim@meyering.net>
67916
67917         Make generated files be read-only.
67918         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67919         Ensure that each generated file is now read-only.
67920         * modules/argz: Likewise.
67921         * modules/arpa_inet: Likewise.
67922         * modules/byteswap: Likewise.
67923         * modules/configmake: Likewise.
67924         * modules/fcntl: Likewise.
67925         * modules/fnmatch: Likewise.
67926         * modules/getopt: Likewise.
67927         * modules/glob: Likewise.
67928         * modules/inttypes: Likewise.
67929         * modules/netinet_in: Likewise.
67930         * modules/poll: Likewise.
67931         * modules/stdbool: Likewise.
67932         * modules/stdint: Likewise.
67933         * modules/sys_select: Likewise.
67934         * modules/sys_socket: Likewise.
67935         * modules/sys_stat: Likewise.
67936         * modules/sysexits: Likewise.
67937         * modules/localcharset: Same as above, but continue using temporary
67938         file named "t-$@" (why different?) rather than the "$@-t" used
67939         everywhere else.
67940
67941         * modules/sysexits (Makefile.am): Replace literal occurrences
67942         of "sysexit.h" more readable, and more consistent, "$@".
67943
67944 2006-09-06  Bruno Haible  <bruno@clisp.org>
67945
67946         * modules/striconv: New file.
67947         * modules/xstriconv: New file.
67948         * MODULES.html.sh (Internationalization functions): Add striconv,
67949         xstriconv.
67950
67951 2006-09-06  Bruno Haible  <bruno@clisp.org>
67952
67953         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67954         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67955         not using libtool correctly.
67956
67957 2006-09-06  Bruno Haible  <bruno@clisp.org>
67958
67959         * lib/striconv.h: New file.
67960         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67961         iconvstring.c.
67962         * lib/xstriconv.h: New file.
67963         * lib/xstriconv.c: New file.
67964
67965 2006-09-06  Bruno Haible  <bruno@clisp.org>
67966
67967         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67968         lib_..._LDFLAGS.
67969
67970 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67971
67972         * lib/argz_.h: Sync from Libtool.
67973
67974         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67975                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67976
67977         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67978
67979 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67980
67981         * modules/trim: New file.
67982
67983 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67984
67985         * lib/trim.h: New file.
67986         * lib/trim.c: New file.
67987
67988 2006-09-05  Bruno Haible  <bruno@clisp.org>
67989
67990         * MODULES.html.sh (String handling): Add trim.
67991
67992 2006-09-04  Karl Berry  <karl@gnu.org>
67993
67994         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67995         until next release.
67996
67997 2006-09-03  Bruno Haible  <bruno@clisp.org>
67998
67999         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68000         correctly.
68001
68002 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68003
68004         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68005         not gl_GETLOADAVG.  Omit unneeded semicolons.
68006         Problems reported by Ralf Wildenhues in
68007         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68008         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68009         at the end, which is the usual gnulib style.
68010
68011         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68012         of doing all the work ourselves.
68013         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68014         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68015
68016 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68019         Problem reported by Ralf Wildenhues in
68020         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68021
68022         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68023         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68024
68025 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68028         yesterday's patch by changing test -n to test -z.
68029
68030 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68033         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68034         the former is now obsolescent.
68035
68036         * modules/chdir-long (Depends-on): Add fcntl.
68037
68038 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68039
68040         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68041         obsolescent, and programs should use gnulib instead.
68042         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68043         but with prefixes changed.
68044
68045 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68046
68047         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68048         or stdbool.h, because they might not exist while configuring.
68049
68050         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68051         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68052         does that for us.
68053         (O_DIRECTORY): Remove.
68054
68055 2006-08-31  Eric Blake  <ebb9@byu.net>
68056
68057         * gnulib-tool: Don't let emacs change spaces to TAB.
68058
68059 2006-08-31  Bruno Haible  <bruno@clisp.org>
68060
68061         * gnulib-tool: When calling func_import more than once, do it in a
68062         subshell.
68063         Reported by Eric Blake <ebb9@byu.net>.
68064
68065 2006-08-31  Bruno Haible  <bruno@clisp.org>
68066
68067         * gnulib-tool (nl): Remove variable.
68068         (sed_transform_lib_file): Use more robust test for config-h module.
68069         (func_import): Fix typo in 2006-08-25 patch.
68070
68071 2006-08-31  Bruno Haible  <bruno@clisp.org>
68072
68073         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68074         specified, augment Makefile.am variables instead of assigning them.
68075
68076 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         Work around a bug in both the Linux and SunOS 64-bit kernels:
68079         nanosleep mishandles sleeps for longer than 2**31 seconds.
68080         Problem reported by Frank v Waveren in
68081         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68083         Check for nanosleep bug.
68084         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68085
68086 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68087
68088         Work around a bug in both the Linux and SunOS 64-bit kernels:
68089         nanosleep mishandles sleeps for longer than 2**31 seconds.
68090         Problem reported by Frank v Waveren in
68091         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68092         * lib/nanosleep.c (BILLION): New constant.
68093         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68094         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68095         implementation.
68096
68097 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * modules/nanosleep (Depends-on): Add gettime.
68100
68101 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68102         and Simon Josefsson  <jas@extundo.com>
68103         and Oskar Liljeblad  <oskar@osk.mine.nu>
68104
68105         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68106         * gnulib-tool (func_import): New license type 'unmodifiable license
68107         text'.
68108         * modules/fdl: Use it.  Longer description.
68109         * module/gpl, module/lgpl: New files.
68110
68111 2006-08-30  Jim Meyering  <jim@meyering.net>
68112
68113         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68114         shadowing the parameter.
68115
68116 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68117
68118         Sync from Libtool:
68119
68120         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68121
68122         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68123         sharing with gnulib.  Report by Eric Blake.
68124
68125 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68126
68127         * modules/isapipe: New file.
68128         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68129
68130 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * modules/configmake (Makefile.am): Add a comment, and omit
68133         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68134         by Bruno Haible.
68135
68136 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68137
68138         * m4/isapipe.m4: New file.
68139
68140 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68141
68142         * lib/isapipe.c, lib/isapipe.h: New files.
68143
68144 2006-08-29  Jim Meyering  <jim@meyering.net>
68145
68146         * modules/configmake (Makefile.am): Make configmake.h depend on
68147         Makefile.  Otherwise, a stale configmake.h could hang around.
68148
68149 2006-08-29  Eric Blake  <ebb9@byu.net>
68150
68151         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68152         resolution of upstream bug 3044.
68153
68154 2006-08-29  Bruno Haible  <bruno@clisp.org>
68155
68156         * modules/localcharset (Depends-on): Add configmake.
68157         (Makefile.am): Remove setting of LIBDIR through DEFS.
68158
68159 2006-08-29  Bruno Haible  <bruno@clisp.org>
68160
68161         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68162         defined.
68163
68164 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68165
68166         * modules/fcntl: New file.
68167         * modules/chdir-safer (Depends-on): Add fcntl.
68168         * modules/fts: Likewise.
68169         * modules/mkdir-p: Likewise.
68170
68171         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68172         This undoes the most recent change, since we're now addressing the
68173         problem in a different way.
68174
68175         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68176         into output, since the output might be called Makefile.am even
68177         if $makefile_name is something different.
68178         (func_import): Use $makefile_am rather than
68179         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68180         empty.
68181
68182         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68183
68184 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68185
68186         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68187         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68188         recent change to stdint.m4, since we're now addressing the problem in a
68189         different way.
68190
68191 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * m4/fcntl_h.m4: New file.
68194
68195 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * lib/fcntl_.h: New file.
68198         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68199         the fcntl module.
68200         * lib/dirchownmod.c: Likewise.
68201         * lib/fts.c: Likewise.
68202
68203         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68204         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68205         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68206         just before including <inttypes.h>, to avoid circular inclusion.
68207
68208 2006-08-28  Jim Meyering  <jim@meyering.net>
68209
68210         * doc/visibility.texi: Actually read and correct the grammar of the
68211         sentence affected by yesterday's change.
68212
68213 2006-08-28  Eric Blake  <ebb9@byu.net>
68214
68215         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68216         needs wrapper.
68217
68218 2006-08-28  Eric Blake  <ebb9@byu.net>
68219
68220         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68221
68222 2006-08-28  Eric Blake  <ebb9@byu.net>
68223
68224         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68225
68226 2006-08-28  Bruno Haible  <bruno@clisp.org>
68227
68228         * modules/c-strstr: New file, from GNU gettext.
68229         * MODULES.html.sh (String handling): Add c-strstr.
68230
68231 2006-08-28  Bruno Haible  <bruno@clisp.org>
68232
68233         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68234         macros.
68235         Reported by Eric Blake.
68236
68237 2006-08-28  Bruno Haible  <bruno@clisp.org>
68238
68239         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68240         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68241         * lib/vasprintf.c: Include errno.h, limits.h.
68242         (EOVERFLOW): New fallback definition.
68243         (vasprintf): Test here whether the string length is > INT_MAX.
68244         * lib/vsnprintf.c: Include errno.h, limits.h.
68245         (EOVERFLOW): New fallback definition.
68246         (vsnprintf): Fix bug when generated string was too long for the buffer.
68247         Test here whether the string length is > INT_MAX.
68248
68249 2006-08-28  Bruno Haible  <bruno@clisp.org>
68250
68251         * lib/inttypes_.h (SCNX*): Remove definitions.
68252         Reported by Eric Blake.
68253
68254 2006-08-28  Bruno Haible  <bruno@clisp.org>
68255
68256         * lib/c-strstr.h: New file, from GNU gettext.
68257         * lib/c-strstr.c: New file, from GNU gettext.
68258
68259 2006-08-28  Bruno Haible  <bruno@clisp.org>
68260
68261         * gnulib-tool: Reorder some statements.
68262
68263 2006-08-28  Bruno Haible  <bruno@clisp.org>
68264
68265         * gnulib-tool: New option --makefile-name.
68266         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68267         $makefile_name.
68268         (func_import): Write $makefile_name to the cache file, and read it from
68269         there unless explicitly specified. Use $makefile_name as file name
68270         instead of Makefile.am. Adjust the recommendations accordingly.
68271
68272 2006-08-28  Bruno Haible  <bruno@clisp.org>
68273
68274         * gnulib-tool (func_verify_module): Check against misapplying patch.
68275
68276 2006-08-28  Bruno Haible  <bruno@clisp.org>
68277
68278         * gnulib-tool (func_relativize, func_relconcat): New functions.
68279         Give an error if --local-dir is given with --update.
68280         Remove trailing slashes from $local_gnulib_dir.
68281         (func_import): Store the relativized $local_gnulib_dir in
68282         gnulib-cache.m4, and read it from there if not specified explicitly.
68283
68284 2006-08-28  Bruno Haible  <bruno@clisp.org>
68285
68286         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68287         is the current directory. Respect also $local_gnulib_dir.
68288
68289 2006-08-28  Bruno Haible  <bruno@clisp.org>
68290             Simon Josefsson  <jas@extundo.com>
68291
68292         BeOS portability.
68293         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68294
68295 2006-08-27  Jim Meyering  <jim@meyering.net>
68296
68297         * doc/visibility.texi: Remove duplicate word: "pointer".
68298
68299 2006-08-26  Bruno Haible  <bruno@clisp.org>
68300
68301         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68302         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68303         (Makefile.am): Create inttypes.h from inttypes_.h.
68304         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68305
68306         * modules/imaxabs: New file.
68307
68308         * modules/imaxdiv: New file.
68309
68310 2006-08-26  Bruno Haible  <bruno@clisp.org>
68311
68312         * m4/inttypes.m4: New file.
68313         * m4/_inttypes_h.m4: Remove file.
68314         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68315         PRI_MACROS_BROKEN.
68316         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68317
68318         * m4/imaxabs.m4: New file.
68319
68320         * m4/imaxdiv.m4: New file.
68321
68322 2006-08-26  Bruno Haible  <bruno@clisp.org>
68323
68324         * lib/inttypes_.h: New file.
68325         * lib/inttypes.h: Remove file.
68326         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68327
68328         * lib/imaxabs.c: New file.
68329
68330         * lib/imaxdiv.c: New file.
68331
68332 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68333
68334         New config-h module, so that "make" output needn't be cluttered
68335         by -DHAVE_CONFIG_H.
68336         * MODULES.html.sh (Support for building libraries and executables):
68337         Add config-h.
68338         * modules/config-h: New file.
68339         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68340         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68341         the config-h module is used.
68342
68343         New configmake module, so that "make" output needn't be cluttered
68344         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68345         * MODULES.html.sh (Support for building libraries and executables):
68346         Add configmake.
68347         * modules/configmake: New file.
68348
68349 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68350
68351         * m4/config-h.m4: New file.
68352
68353 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68354
68355         * config/srclist.txt: Add elisp-comp.
68356
68357 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68358
68359         * MODULES.html.sh (Support for building libraries and executables):
68360         Add elisp-comp.
68361         * build-aux/elisp-comp: New file.
68362         * modules/elisp-comp: New file.
68363
68364 2006-08-24  Bruno Haible  <bruno@clisp.org>
68365
68366         * gnulib-tool (func_create_testdir): Use non-default values of
68367         sourcebase and m4base.
68368
68369 2006-08-24  Bruno Haible  <bruno@clisp.org>
68370
68371         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68372         HTML structure.
68373
68374 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68375
68376         * modules/openat (Depends-on): Add lchown.
68377
68378 2006-08-23  Bruno Haible  <bruno@clisp.org>
68379
68380         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68381         of gl_LOCK_EARLY instead of gl_LOCK.
68382
68383 2006-08-23  Bruno Haible  <bruno@clisp.org>
68384
68385         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68386         on OSF/1 to no.
68387         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68388
68389 2006-08-23  Bruno Haible  <bruno@clisp.org>
68390
68391         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68392         as unusable.
68393
68394         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68395         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68396         (gl_LOCK): New macro.
68397
68398 2006-08-22  Simon Josefsson  <jas@extundo.com>
68399
68400         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68401         to md5 module.
68402
68403 2006-08-22  Simon Josefsson  <jas@extundo.com>
68404
68405         * MODULES.html.sh: Add "Support for maintaining and release
68406         projects".
68407
68408         * build-aux/gnupload: New file, from coreutils.
68409
68410 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         Avoid the need for AC_LIBSOURCES in m4 macros.
68413         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68414         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68415         * modules/check-version (EXTRA_DIST): Add check-version.h.
68416         * modules/crc (EXTRA_DIST): Add crc.h.
68417         * modules/des (EXTRA_DIST): Add des.h.
68418         * modules/gc (EXTRA_DIST): Add gc.h.
68419         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68420         * modules/getline (EXTRA_DIST): Add getline.h.
68421         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68422         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68423         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68424         * modules/md2 (EXTRA_DIST): Add md2.h.
68425         * modules/md4 (EXTRA_DIST): Add md4.h.
68426         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68427         * modules/read-file (EXTRA_DIST): Add read-file.h.
68428         * modules/readline (EXTRA_DIST): Add readline.h.
68429         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68430         rijndael-api-fst.h.
68431
68432 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * m4/rijndael.m4 (gl_ARCFOUR):
68435         * m4/arctwo.m4 (gl_ARCTWO):
68436         * m4/check-version.m4 (gl_CHECK_VERSION):
68437         * m4/crc.m4 (gl_CRC):
68438         * m4/des.m4 (gl_DES):
68439         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68440         * m4/gc.m4 (gl_GC):
68441         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68442         * m4/getline.m4 (gl_FUNC_GETLINE):
68443         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68444         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68445         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68446         * m4/md2.m4 (gl_MD2):
68447         * m4/md4.m4 (gl_MD4):
68448         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68449         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68450         * m4/readline.m4 (gl_FUNC_READLINE):
68451         * m4/rijndael.m4 (gl_RIJNDAEL):
68452         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68453         to get the necessary .h files and whatnot.
68454
68455 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68456
68457         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68458         gnulib rather than the other way around.
68459         * config/srclistvars.sh (COREUTILS): Remove.
68460
68461 2006-08-22  Jim Meyering  <jim@meyering.net>
68462
68463         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68464
68465         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68466
68467 2006-08-22  Eric Blake  <ebb9@byu.net>
68468
68469         * modules/regexprops-generic: New file.
68470         * MODULES.html.sh (Support for building documentation): List it.
68471
68472 2006-08-22  Eric Blake  <ebb9@byu.net>
68473
68474         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68475         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68476         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68477         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68478
68479 2006-08-22  Bruno Haible  <bruno@clisp.org>
68480
68481         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68482         and lib_LTLIBRARIES like the other lib_* variables.
68483
68484 2006-08-22  Bruno Haible  <bruno@clisp.org>
68485
68486         * build-aux/x-to-1.in: New file, from GNU gettext.
68487
68488 2006-08-22  Bruno Haible  <bruno@clisp.org>
68489
68490         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68491         <utmpx.h> exists.
68492
68493 2006-08-22  Bruno Haible  <bruno@clisp.org>
68494
68495         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68496         <utmpx.h> exists.
68497
68498 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         BeOS portability.
68501         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68502         exist.
68503         Problem reported by Bruno Haible.
68504
68505 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68506
68507         Avoid the need for AC_LIBSOURCES in m4 macros.
68508         * modules/acl (EXTRA_DIST): Add acl.h.
68509         * modules/argmatch (Files): Add m4/argmatch.m4.
68510         (configure.ac): Add gl_ARGMATCH.
68511         (EXTRA_DIST): Renamed from lib_SOURCES, for
68512         consistency with the other modules.  Remove argmatch.c.
68513         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68514         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68515         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68516         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68517         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68518         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68519         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68520         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68521         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68522         * modules/closeout (EXTRA_DIST): Add closeout.h.
68523         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68524         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68525         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68526         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68527         dirname.h; remove basename.c and stripslash.c.
68528         * modules/exclude (EXTRA_DIST): Add exclude.h.
68529         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68530         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68531         * modules/file-type (EXTRA_DIST): Add file-type.h.
68532         * modules/filemode (EXTRA_DIST): Add filemode.h.
68533         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68534         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68535         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68536         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68537         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68538         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68539         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68540         * modules/getdate (EXTRA_DIST): Add getdate.c.
68541         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68542         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68543         * modules/getpass (EXTRA_DIST): Add getpass.h.
68544         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68545         * modules/group-member (EXTRA_DIST): Add group-member.h.
68546         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68547         * modules/hash (EXTRA_DIST): Add hash.h.
68548         * modules/human (EXTRA_DIST): Add human.h.
68549         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68550         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68551         * modules/lchown (EXTRA_DIST): Add lchown.h.
68552         * modules/long-options (EXTRA_DIST): Add long-options.h.
68553         * modules/lstat (EXTRA_DIST): Add lstat.h.
68554         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68555         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68556         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68557         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68558         * modules/memxor (EXTRA_DIST): Add memxor.h.
68559         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68560         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68561         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68562         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68563         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68564         * modules/physmem (EXTRA_DIST): Add physmem.h.
68565         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68566         * modules/posixver (EXTRA_DIST): Add posixver.h.
68567         * modules/quote (EXTRA_DIST): Add quote.h.
68568         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68569         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68570         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68571         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68572         regex_internal.h regexec.c.
68573         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68574         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68575         * modules/same (EXTRA_DIST): Add same.h.
68576         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68577         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68578         * modules/savedir (EXTRA_DIST): Add savedir.h.
68579         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68580         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68581         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68582         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68583         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68584         * modules/strdup (EXTRA_DIST): Add strdup.h.
68585         * modules/strftime (EXTRA_DIST): Add strftime.h.
68586         * modules/strndup (EXTRA_DIST): Add strndup.h.
68587         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68588         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68589         * modules/time_r (EXTRA_DIST): Add time_r.h.
68590         * modules/timespec (EXTRA_DIST): Add timespec.h.
68591         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68592         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68593         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68594         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68595         * modules/userspec (EXTRA_DIST): Add userspec.h.
68596         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68597         * modules/utimens (EXTRA_DIST): Add utimens.h.
68598         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68599         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68600         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68601         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68602         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68603         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68604         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68605         * modules/yesno (EXTRA_DIST): Add yesno.h.
68606
68607 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68608
68609         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68610
68611         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68612         * m4/dev-ino.m4, same-inode.m4: Remove.
68613
68614         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68615         * m4/acl.m4 (AC_FUNC_ACL):
68616         * m4/backupfile.m4 (gl_BACKUPFILE):
68617         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68618         * m4/canon-host.m4 (gl_CANON_HOST):
68619         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68620         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68621         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68622         * m4/cloexec.m4 (gl_CLOEXEC):
68623         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68624         * m4/closeout.m4 (gl_CLOSEOUT):
68625         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68626         * m4/dirname.m4 (gl_DIRNAME):
68627         * m4/exclude.m4 (gl_EXCLUDE):
68628         * m4/exitfail.m4 (gl_EXITFAIL):
68629         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68630         * m4/file-type.m4 (gl_FILE_TYPE):
68631         * m4/filemode.m4 (gl_FILEMODE):
68632         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68633         * m4/fpending.m4 (gl_FUNC_FPENDING):
68634         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68635         * m4/fts.m4 (gl_FUNC_FTS):
68636         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68637         * m4/getdate.m4 (gl_GETDATE):
68638         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68639         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68640         * m4/getpass.m4 (gl_FUNC_GETPASS):
68641         * m4/gettime.m4 (gl_GETTIME):
68642         * m4/getugroups.m4 (gl_GETUGROUPS):
68643         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68644         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68645         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68646         * m4/hash.m4 (gl_HASH):
68647         * m4/idcache.m4 (gl_IDCACHE):
68648         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68649         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68650         * m4/long-options.m4 (gl_LONG_OPTIONS):
68651         * m4/lstat.m4 (gl_FUNC_LSTAT):
68652         * m4/md5.m4 (gl_MD5):
68653         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68654         * m4/memcoll.m4 (gl_MEMCOLL):
68655         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68656         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68657         * m4/memxor.m4 (gl_MEMXOR):
68658         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68659         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68660         * m4/modechange.m4 (gl_MODECHANGE):
68661         * m4/mountlist.m4 (gl_MOUNTLIST):
68662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68663         * m4/openat.m4 (gl_FUNC_OPENAT):
68664         * m4/pathmax.m4 (gl_PATHMAX):
68665         * m4/physmem.m4 (gl_PHYSMEM):
68666         * m4/posixtm.m4 (gl_POSIXTM):
68667         * m4/posixver.m4 (gl_POSIXVER):
68668         * m4/quote.m4 (gl_QUOTE):
68669         * m4/quotearg.m4 (gl_QUOTEARG):
68670         * m4/readtokens.m4 (gl_READTOKENS):
68671         * m4/readutmp.m4 (gl_READUTMP):
68672         * m4/regex.m4 (gl_REGEX):
68673         * m4/safe-read.m4 (gl_SAFE_READ):
68674         * m4/safe-write.m4 (gl_SAFE_WRITE):
68675         * m4/same.m4 (gl_SAME):
68676         * m4/save-cwd.m4 (gl_SAVE_CWD):
68677         * m4/savedir.m4 (gl_SAVEDIR):
68678         * m4/settime.m4 (gl_SETTIME):
68679         * m4/sha1.m4 (gl_SHA1):
68680         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68681         * m4/stat-macros.m4 (gl_STAT_MACROS):
68682         * m4/stat-time.m4 (gl_STAT_TIME):
68683         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68684         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68685         * m4/strdup.m4 (gl_FUNC_STRDUP):
68686         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68687         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68688         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68689         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68690         * m4/time_r.m4 (gl_TIME_R):
68691         * m4/timespec.m4 (gl_TIMESPEC):
68692         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68693         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68694         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68695         * m4/userspec.m4 (gl_USERSPEC):
68696         * m4/utimecmp.m4 (gl_UTIMECMP):
68697         * m4/utimens.m4 (gl_UTIMENS):
68698         * m4/xalloc.m4 (gl_XALLOC):
68699         * m4/xgetcwd.m4 (gl_XGETCWD):
68700         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68701         * m4/xreadlink.m4 (gl_XREADLINK):
68702         * m4/xstrtod.m4 (gl_XSTRTOD):
68703         * m4/yesno.m4 (gl_YESNO):
68704         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68705         to get the necessary .h files and whatnot.
68706
68707 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68708             Bruno Haible  <bruno@clisp.org>
68709
68710         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68711         /bin/sh understanding of '!' conditional negation.
68712
68713 2006-08-21  Jim Meyering  <jim@meyering.net>
68714
68715         * modules/openat (Depends-on): Really alphabetize.
68716
68717         * modules/acl (Depends-on): Add error and quote.
68718
68719         * check-module (find_included_lib_files): Add at-func.c to the
68720         ok-to-include-more-than-once white list.
68721
68722         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68723
68724 2006-08-21  Bruno Haible  <bruno@clisp.org>
68725
68726         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68727         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68728         Reported by Martin Lambers <marlam@marlam.de>.
68729
68730 2006-08-21  Bruno Haible  <bruno@clisp.org>
68731
68732         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68733         specify an installation location, don't emit a noinst_LIBRARIES or
68734         noinst_LTLIBRARIES assignment.
68735
68736 2006-08-21  Bruno Haible  <bruno@clisp.org>
68737
68738         BeOS portability.
68739         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68740         BeOS has mbrtowc() but no <wctype.h>.
68741
68742 2006-08-21  Bruno Haible  <bruno@clisp.org>
68743
68744         BeOS portability.
68745         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68746         exist.
68747
68748 2006-08-21  Bruno Haible  <bruno@clisp.org>
68749
68750         BeOS portability.
68751         * lib/mbchar.h: Include <wctype.h> only if it exists.
68752
68753 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         Remove files that are no longer needed by their respective modules.
68756         * m4/obstack.m4: Remove.
68757         * m4/strerror_r.m4: Remove.
68758         * m4/uint32_t.m4: Remove.
68759         * m4/uintptr_t.m4: Remove.
68760         * m4/ullong_max.m4: Remove.
68761         * m4/xstrtoimax.m4: Remove.
68762         * m4/xstrtoumax.m4: Remove.
68763
68764         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68765         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68766         dependencies now capture this.
68767
68768         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68769         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68770         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68771         * m4/human.m4 (gl_HUMAN): Likewise.
68772         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68773         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68774
68775         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68776
68777         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68778         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68779         stdint.
68780         * m4/human.m4 (gl_HUMAN): Likewise.
68781         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68782         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68783         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68784         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68785         * m4/xstrtol (gl_XSTRTOL): Likewise.
68786
68787         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68788         AC_TYPE_LONG_LONG_INT.
68789         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68790         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68791         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68792         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68793
68794         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68795         on stdbool.
68796
68797         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68798         (gl_PREREQ_XSTRTOUL): Remove.
68799
68800         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68801
68802         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68803         mode.
68804
68805 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         Add and change modules to make it easier for coreutils to use
68808         gnulib-tool.
68809         * modules/backupfile (Files): Remove m4/d-ino.m4.
68810         (Depends-on): Add d-ino.
68811         * modules/cycle-check (Depends-on): Add stdint.
68812         (lib_SOURCES): Add cycle-check.h.
68813         * modules/d-ino: New module.
68814         * modules/d-type: New module.
68815         * modules/error (Files): Remove m4/strerror_r.m4.
68816         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68817         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68818         m4/inttypes_h.m4, m4/uintmax_t.m4.
68819         (Depends-on): Add stdint.
68820         (lib_SOURCES): Add fsusage.h.
68821         * modules/getcwd (Files): Remove d-ino.m4.
68822         (Depends-on): Add d-ino.
68823         * modules/getndelim2 (Depends-on): Add stdint.
68824         * modules/glob (Files): Remove m4/d-type.m4.
68825         (Depends-on): Add d-type.
68826         * modules/host-os: New module.
68827         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68828         m4/inttypes_h.m4, m4/uintmax_t.m4.
68829         * Depends-on: Add stdint.
68830         (lib_SOURCES): Add human.h.
68831         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68832         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68833         m4/uintmax_t.m4, m4/ulonglong.m4.
68834         (Depends-on): Add stdint.
68835         (EXTRA_DIST): Add inttostr.h.
68836         * modules/lchmod: New module.
68837         * modules/link-follow: New module.
68838         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68839         (Depends-on): Add lchmod.
68840         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68841         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68842         (Depends-on): Add stdint.
68843         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68844         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68845         (Depends-on): Add stdint.
68846         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68847         * modules/perl: New module.
68848         * modules/regex (Depends-on): Add stdint.
68849         * modules/rmdir-errno: New module.
68850         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68851         m4/intmax_t.m4.
68852         (Depends-on): Add stdint.
68853         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68854         m4/uintmax_t.m4.
68855         (Depends-on): Add stdint.
68856         * modules/unlink-busy: New module.
68857         * modules/utimecmp (Depends-on): Add stdint.
68858         * modules/uptime: New module.
68859         * modules/winsz-ioctl: New module.
68860         * modules/winsz-termios: New module.
68861         * modules/xnanosleep (Depends-on): Add nanosleep.
68862         * modules/ullong_max: Remove.
68863         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68864         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68865         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68866         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68867         (Depends-on): Add inttypes.
68868         (lib_SOURCES): Add xstrtol.h.
68869         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68870         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68871         * MODULES.html.sh: Move 'assert' into the assert section.
68872         Move 'dummy' into the linking section.
68873         Remove ullong_max.
68874         Add section for compatibility checks for POSIX:2001 functions,
68875         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68876         winsz-ioctl, and winsz-termios into it.
68877         Add lchmod.
68878         Add top-level Misc section and put host-os, perl, and uptime
68879         into it.
68880
68881 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68882
68883         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68884         now assume the stdint module.  Do not include inttypes.h.
68885         * lib/fsusage.h: Likewise.
68886         * lib/getndelim2.c: Likewise.
68887         * lib/human.h: Likewise.
68888         * lib/inttostr.h: Likewise.
68889         * lib/obstack.c: Likewise.
68890         * lib/regex_internal.h: Likewise.
68891         * lib/tempname.c: Likewise.
68892         * lib/utimecmp.c: Likewise.
68893         * lib/xstrtol.h: Likewise.
68894
68895         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68896
68897         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68898         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68899         * lib/xtime.h: Likewise.
68900
68901 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         * modules/openat (Files): Add lib/fchmodat.c.
68904         Fixes problem reported by Jay Youngman.
68905
68906 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68909         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68910
68911 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68912             Bruno Haible  <bruno@clisp.org>
68913
68914         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68915         and is a script that invokes bison. Tighten the code. Add comments.
68916
68917 2006-08-18  Jim Meyering  <jim@meyering.net>
68918
68919         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68920         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68921         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68922         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68923
68924 2006-08-18  Bruno Haible  <bruno@clisp.org>
68925
68926         * modules/bison-i18n: New file.
68927         * MODULES.html.sh (Internationalization functions): Add it.
68928
68929 2006-08-18  Bruno Haible  <bruno@clisp.org>
68930
68931         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68932         sys/statvfs.h. When getmntinfo was found, check its declaration and
68933         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68934
68935 2006-08-18  Bruno Haible  <bruno@clisp.org>
68936
68937         * m4/bison-i18n.m4: New file, from bison.
68938
68939 2006-08-18  Bruno Haible  <bruno@clisp.org>
68940
68941         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68942         (ME_DUMMY): Treat "kernfs" as a dummy.
68943         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68944
68945 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         Update from coreutils.
68948
68949         2006-08-15  Jim Meyering  <jim@meyering.net>
68950
68951         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68952
68953         2006-01-17  Jim Meyering  <jim@meyering.net>
68954
68955         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68956
68957         2006-01-11  Jim Meyering  <jim@meyering.net>
68958
68959         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68960         Check for the lchmod function.
68961
68962 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68963
68964         Update from coreutils.
68965
68966         * lib/__fpending.h: Add copyright notice.
68967         * lib/fprintftime.h: Likewise.
68968         * lib/savedir.c: Use (C) in copyright notice.
68969         * lib/savedir.h: Likewise.
68970
68971         2006-08-15  Jim Meyering  <jim@meyering.net>
68972
68973         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68974         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68975         in support of the EXPECTED_ERRNO macro.
68976         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68977         definitions.  Instead, define the appropriate symbols and include
68978         "at-func.c".
68979         * lib/mkdirat.c (mkdirat): Likewise.
68980         * lib/fchmodat.c (fchmodat): Likewise.
68981         (ENOSYS): Remove definition.
68982         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68983         it.  Don't include "unistd--.h" -- it wasn't ever used.
68984
68985         2006-01-17  Jim Meyering  <jim@meyering.net>
68986
68987         Rewrite fts.c not to change the current working directory,
68988         by using openat, fstatat, fdopendir, etc..
68989
68990         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68991         (HAVE_OPENAT_SUPPORT): Define.
68992         [_LIBC] (fchdir): Don't undef or define; no longer used.
68993         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68994         Now, this `function' always succeeds, and consumes its file descriptor
68995         parameter -- so callers must not close such FDs.  Update callers.
68996         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68997         (diropen): Add parameter, SP.  Adjust all callers.
68998         Implement using diropen_fd, rather than open.
68999         (fts_open): Initialize new member, fts_cwd_fd.
69000         Remove fts_rft-setting code.
69001         (fts_close): Close fts_cwd_fd, if necessary.
69002         (__opendir2): Define in terms of opendir or opendirat,
69003         depending on whether the FST_NOCHDIR flag is set.
69004         (fts_build): Since fts_safe_changedir consumes its FD, and since
69005         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69006         and close the dup'd file descriptor upon failure.
69007         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69008         (fts_safe_changedir): Tweak semantics to reflect that this function
69009         now calls cwd_advance_fd and hence consumes its FD argument.
69010         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69011         [struct FTS] (fts_rft): Remove now-unused member.
69012         [struct FTS] (fts_cycle.state): Improve comment.
69013
69014         * lib/openat.c (openat_needs_fchdir): New function.
69015         * lib/openat.h (openat_needs_fchdir): Declare it.
69016
69017 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69020         Problem and fix reported by Pádraig Brady in
69021         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69022
69023 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69026
69027 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * lib/memcoll.c (memcoll): Optimize for the common case where the
69030         arguments are bytewise equal.
69031
69032 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         * doc/regexprops-generic.texi: Add a copyright notice.
69035
69036 2006-08-15  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/tmpdir (License): Change to LGPL.
69039
69040 2006-08-15  Bruno Haible  <bruno@clisp.org>
69041
69042         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69043         module.
69044
69045 2006-08-14  Simon Josefsson  <jas@extundo.com>
69046
69047         * config/srclist.txt: Add gnupload.
69048
69049 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         Change copyright notice from LGPL 2 to GPL 2, since that's the
69052         standard form used in the gnulib repository.
69053         * tests/test-lock.c: Likewise.
69054         * tests/test-stdint.c: Likewise.
69055         * tests/test-tls.c: Likewise.
69056
69057         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69058         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69059         Add copyright notice.
69060
69061         * check-module: Add copyright notice.  Output a copyright
69062         notice if "--version" is specified.
69063         * modules/COPYING: New file.
69064         * tests/test-getaddrinfo.c: Add copyright notice.
69065         * tests/test-verify.c: Likewise.
69066
69067 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69068
69069         Change copyright notice from LGPL 2 to GPL 2, since that's the
69070         standard form used in the gnulib repository.
69071         * lib/lock.c: LGPL -> GPL.
69072         * lib/lock.h: Likewise.
69073         * lib/strnlen1.c: Likewise.
69074         * lib/strnlen1.h: Likewise.
69075         * lib/tls.c: Likewise.
69076         * lib/tls.h: Likewise.
69077         * lib/tmpdir.c: Likewise.
69078
69079         * lib/TODO: Remove; this belongs only in coreutils.
69080
69081 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         Add copyright notices to long-enough files that lack them, since
69084         otherwise the files aren't clearly free.  Use the same notice that
69085         getdate.texi already uses.
69086         * doc/alloca-opt.texi: Add copyright notice.
69087         * doc/alloca.texi: Likewise.
69088         * doc/ctime.texi: Likewise.
69089         * doc/functions.texi: Likewise.
69090         * doc/gcd.texi: Likewise.
69091         * doc/gnulib-tool.texi: Likewise.
69092         * doc/inet_ntoa.texi: Likewise.
69093         * doc/visibility.texi: Likewise.
69094
69095         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69096         * doc/quote.texi: Add copyright notice.
69097
69098         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69099         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69100         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69101         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69102         is now obsolete, and give a pointer to the Sun list.
69103         Add copyright notice.
69104
69105 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69106
69107         * config/srclistvars.sh: Add copyright notice.
69108
69109 2006-08-14  Eric Blake  <ebb9@byu.net>
69110
69111         Import the following change from libc:
69112
69113         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69114
69115         Upstream bug 2997.
69116         * lib/misc/error.c: Add space between program name and message if file
69117         name is missing.
69118
69119 2006-08-12  Karl Berry  <karl@gnu.org>
69120
69121         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69122         remove, these originate in gnulib now.
69123
69124 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69125
69126         * doc/Makefile (standards.info standards.html standards.dvi):
69127         Also depend on make-stds.texi.
69128
69129 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69130
69131         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69132         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69133
69134         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69135         in wchar_t.  Problem reported by Eric Blake.
69136
69137         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69138         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69139         Also, help the compiler to keep LEN in a register.
69140
69141 2006-08-11  Eric Blake  <ebb9@byu.net>
69142
69143         * users.txt: Sort.  Add tar.
69144
69145 2006-08-11  Bruno Haible  <bruno@clisp.org>
69146
69147         * users.txt: New file.
69148
69149 2006-08-11  Bruno Haible  <bruno@clisp.org>
69150
69151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69152         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69153
69154 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         * modules/snprintf (Depends-on): Remove minmax.
69157         (Maintainer): Add self and Bruno.
69158
69159 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69162         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69163         (EOVERFLOW): Define if the system does not.
69164         Do not include "minmax.h"; it wasn't used.
69165         (snprintf): Don't assume size_t promotes to an unsigned type.
69166         Fix bug when generated string was too long for the buffer: the
69167         buffer's contents are supposed to be the initial prefix of the
69168         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69169         exceeds INT_MAX; do the check ourselves.
69170
69171         Import the following changes from libc:
69172
69173         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69174
69175         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69176         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69177         set wc to the byte which couldn't be converted.
69178         (re_string_reconstruct): Don't clear valid_raw_len before calling
69179         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69180         tip_context using re_string_context_at.
69181
69182         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69183
69184         * lib/posix/regex.h: g++ still cannot handled [restrict].
69185
69186         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69187
69188         * lib/posix/regex.h: Remove special handling for VMS.
69189
69190 2006-08-10  Jim Meyering  <jim@meyering.net>
69191
69192         * modules/same-inode: New module.
69193         * modules/dev-ino: New module.
69194         * modules/cycle-check: Depend on these modules, rather than simply
69195         including their .h files.
69196         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69197         required via m4/cycle-check.m4.
69198         * modules/same: Depend on new same-inode module, rather than
69199         including same-inode.h.
69200         * modules/chdir-safer: New file.
69201
69202         * modules/chown (Depends-on): Add stat-macros.
69203
69204 2006-08-10  Jim Meyering  <jim@meyering.net>
69205
69206         * m4/cycle-check.m4: New file.
69207         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69208         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69209
69210 2006-08-10  Eric Blake  <ebb9@byu.net>
69211
69212         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69213         in from original proposal.
69214
69215 2006-08-10  Eric Blake  <ebb9@byu.net>
69216         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69217
69218         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69219         namespace.
69220
69221 2006-08-10  Bruno Haible  <bruno@clisp.org>
69222
69223         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69224         as well.
69225
69226 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         Sync from coreutils.
69229
69230         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69231
69232         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69233         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69234
69235 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69236
69237         * modules/restrict: Remove; no longer needed now that we assume
69238         Autoconf 2.59 or later.
69239         * MODULES.html.sh: Remove 'restrict'.
69240         * modules/argp (Depends-on): Remove 'restrict'.
69241         * modules/base64 (Depends-on): Likewise.
69242         * modules/gc (Depends-on): Likewise.
69243         * modules/getaddrinfo (Depends-on): Likewise.
69244         * modules/glob (Depends-on): Likewise.
69245         * modules/inet_ntop (Depends-on): Likewise.
69246         * modules/inet_pton (Depends-on): Likewise.
69247         * modules/memxor (Depends-on): Likewise.
69248         * modules/regex (Depends-on): Likewise.
69249         * modules/strtok_r (Depends-on): Likewise.
69250         * modules/time_r (Depends-on): Likewise.
69251
69252 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69253
69254         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69255         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69256         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69257         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69258         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69259         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69260         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69261         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69262
69263         Merge from coreutils.
69264         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69265         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69266         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69267         * m4/time_r.m4 (gl_TIME_R): Likewise.
69268
69269 2006-08-09  Karl Berry  <karl@gnu.org>
69270
69271         * config/srclist.txt: no more gettext-tools, per Bruno.
69272
69273 2006-08-08  Eric Blake  <ebb9@byu.net>
69274
69275         * modules/verror: New module.
69276         * MODULES.html.sh: Document it.
69277
69278 2006-08-08  Eric Blake  <ebb9@byu.net>
69279
69280         * lib/verror.h, lib/verror.c: New files.
69281
69282 2006-08-08  Eric Blake  <ebb9@byu.net>
69283
69284         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69285         verror_at_line output complies with GNU Coding Standards even when
69286         file is NULL.
69287
69288 2006-08-07  Bruno Haible  <bruno@clisp.org>
69289
69290         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69291         versions of AIX.
69292         Reported by Ralf Wildenhues.
69293
69294 2006-08-07  Bruno Haible  <bruno@clisp.org>
69295
69296         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69297         in an AC_DEFUN. Needed so that the autoconf snippets can use
69298         AC_REQUIRE.
69299
69300 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69301
69302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69303         Initialize pkgdata_DATA.
69304         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69305         overriding it.
69306
69307 2006-08-06  Eric Blake  <ebb9@byu.net>
69308
69309         * lib/error.h: Fold in some upstream changes from glibc.
69310         * lib/error.c: Likewise.
69311
69312 2006-08-04  Bruno Haible  <bruno@clisp.org>
69313
69314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69315         Make the mostlyclean-local rule depend on mostlyclean-generic.
69316         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69317
69318 2006-07-31  Bruno Haible  <bruno@clisp.org>
69319
69320         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69321         <stdlib.h>, <string.h>.
69322
69323 2006-07-30  Bruno Haible  <bruno@clisp.org>
69324
69325         * modules/readlink (License): Change to LGPL.
69326
69327 2006-07-30  Bruno Haible  <bruno@clisp.org>
69328
69329         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69330         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69331         set PKGDATADIR to point to it.
69332
69333 2006-07-30  Bruno Haible  <bruno@clisp.org>
69334
69335         * modules/csharpexec (configure.ac): Comment out macro invocation.
69336         * modules/javaexec (configure.ac): Likewise.
69337         * modules/javacomp-script (configure.ac): Likewise.
69338
69339         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69340
69341 2006-07-30  Bruno Haible  <bruno@clisp.org>
69342
69343         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69344         linked-list.
69345
69346 2006-07-30  Bruno Haible  <bruno@clisp.org>
69347
69348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69349
69350 2006-07-30  Bruno Haible  <bruno@clisp.org>
69351
69352         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69353         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69354         get removed.
69355
69356 2006-07-29  Bruno Haible  <bruno@clisp.org>
69357
69358         Make it possible for gnulib-tool to work with locally modified or
69359         augmented gnulib repositories.
69360         * gnulib-tool (func_usage): Document --local-dir option.
69361         (local_gnulib_dir): New variable.
69362         Handle --local-dir option.
69363         (func_lookup_file): New function.
69364         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69365         (func_get_description, func_get_filelist, func_get_description,
69366         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69367         func_get_automake_snippet, func_get_include_directive,
69368         func_get_license, func_get_maintainer): Use func_lookup_file.
69369         (func_import, func_create_testdir): Use func_lookup_file.
69370
69371 2006-07-29  Bruno Haible  <bruno@clisp.org>
69372
69373         * modules/setenv (Depends-on): Add unistd.
69374
69375 2006-07-29  Bruno Haible  <bruno@clisp.org>
69376
69377         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69378
69379 2006-07-29  Bruno Haible  <bruno@clisp.org>
69380
69381         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69382
69383 2006-07-29  Bruno Haible  <bruno@clisp.org>
69384
69385         * gnulib-tool (import, update): If there is no Makefile.am, look at
69386         aclocal.m4, instead of bailing out.
69387
69388 2006-07-29  Bruno Haible  <bruno@clisp.org>
69389
69390         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69391         Categorize the options by when they are useful.
69392
69393 2006-07-29  Bruno Haible  <bruno@clisp.org>
69394
69395         * gnulib-tool (func_usage): Document option --no-libtool.
69396         Handle option --no-libtool.
69397         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69398         for changed semantics of $libtool variable.
69399         (func_import): Likewise. If libtool is not used, show this through
69400         an option --no-libtool.
69401         (func_create_testdir): Update.
69402
69403 2006-07-29  Bruno Haible  <bruno@clisp.org>
69404
69405         * gnulib-tool (func_import): Extend error message about missing
69406         --doc-base.
69407
69408 2006-07-29  Bruno Haible  <bruno@clisp.org>
69409
69410         * gnulib-tool (func_import): Don't create the $docbase directory if
69411         there is no file to store there.
69412
69413 2006-07-29  Bruno Haible  <bruno@clisp.org>
69414
69415         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69416         relevant, look for configure.ac there, not in the current directory.
69417         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69418
69419 2006-07-29  Bruno Haible  <bruno@clisp.org>
69420
69421         * gnulib-tool (SORT): New variable.
69422         (func_usage): Undocument --assume-autoconf option.
69423         Remove --assume-autoconf option handling.
69424         (autoconf_minversion): Determine from the contents of configure.ac.
69425         (func_import): Remove autoconf_minversion handling.
69426         Suggested by Eric Blake.
69427
69428 2006-07-29  Bruno Haible  <bruno@clisp.org>
69429
69430         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69431
69432 2006-07-29  Bruno Haible  <bruno@clisp.org>
69433
69434         * config/srclist.txt (*setenv.[ch]): Remove rules.
69435
69436 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69437
69438         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69439
69440 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69441
69442         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69443         arpa/inet.h.
69444
69445 2006-07-28  Simon Josefsson  <jas@extundo.com>
69446
69447         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69448         * modules/inet_pton (Depends-on): Likewise.
69449
69450 2006-07-28  Simon Josefsson  <jas@extundo.com>
69451
69452         * m4/netinet_in_h.m4: New file.
69453
69454 2006-07-28  Simon Josefsson  <jas@extundo.com>
69455
69456         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69457         #include's.
69458
69459 2006-07-28  Simon Josefsson  <jas@extundo.com>
69460
69461         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69462         #include's.
69463
69464 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69467         setgid on directories only if they set these bits.
69468         * lib/modechange.h: Remove obsolete comment about masks.
69469
69470 2006-07-28  Eric Blake  <ebb9@byu.net>
69471
69472         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69473         macro expansion.
69474
69475 2006-07-28  Bruno Haible  <bruno@clisp.org>
69476
69477         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69478
69479 2006-07-28  Bruno Haible  <bruno@clisp.org>
69480
69481         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69482
69483 2006-07-28  Bruno Haible  <bruno@clisp.org>
69484
69485         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69486         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69487         Define fallbacks.
69488         Avoids link error on FreeBSD 4.x.
69489         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69490
69491         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69492         encoding.
69493         * lib/mbswidth.c (iswcntrl): Likewise.
69494
69495 2006-07-27  Bruno Haible  <bruno@clisp.org>
69496
69497         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69498         test.
69499
69500 2006-07-27  Bruno Haible  <bruno@clisp.org>
69501
69502         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69503         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69504         defined.
69505
69506 2006-07-26  Eric Blake  <ebb9@byu.net>
69507
69508         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69509
69510 2006-07-26  Eric Blake  <ebb9@byu.net>
69511
69512         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69513         like mingw that lack mkstemp.
69514         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69515         avoid compilation warning on mingw.
69516
69517 2006-07-26  Bruno Haible  <bruno@clisp.org>
69518
69519         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69520         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69521         INT_FAST*_MIN, INTPTR_MIN.
69522
69523 2006-07-25  Bruno Haible  <bruno@clisp.org>
69524
69525         * modules/version-etc (Depends-on): Add stdarg.
69526
69527 2006-07-25  Bruno Haible  <bruno@clisp.org>
69528
69529         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69530         complex commands.
69531
69532 2006-07-25  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69535         defined in <stdarg.h> or config.h.
69536
69537 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69540         (gl_STDIO_SAFER): Remove.
69541
69542 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * MODULES.html.sh (File stream based Input/Output):
69545         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69546         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69547         * modules/fopen-safer, modules/tmpfile-safer: New files.
69548         * modules/stdio-safer: Remove.
69549
69550 2006-07-24  Bruno Haible  <bruno@clisp.org>
69551
69552         * modules/tmpdir: New file.
69553         * MODULES.html.sh (File system functions): Add it.
69554
69555 2006-07-24  Bruno Haible  <bruno@clisp.org>
69556
69557         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69558         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69559
69560 2006-07-24  Bruno Haible  <bruno@clisp.org>
69561
69562         * modules/clean-temp: New file.
69563
69564 2006-07-24  Bruno Haible  <bruno@clisp.org>
69565
69566         * m4/tmpdir.m4: New file, from GNU gettext.
69567
69568 2006-07-24  Bruno Haible  <bruno@clisp.org>
69569
69570         * lib/tmpdir.h: New file, from GNU gettext.
69571         * lib/tmpdir.c: New file, from GNU gettext.
69572
69573 2006-07-24  Bruno Haible  <bruno@clisp.org>
69574
69575         * lib/clean-temp.h: New file, from GNU gettext.
69576         * lib/clean-temp.c: New file, from GNU gettext.
69577
69578 2006-07-23  Eric Blake  <ebb9@byu.net>
69579
69580         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69581         (Depends-on): Add binary-io.
69582
69583 2006-07-23  Eric Blake  <ebb9@byu.net>
69584
69585         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69586
69587 2006-07-23  Eric Blake  <ebb9@byu.net>
69588
69589         * lib/tmpfile-safer.c: New file.
69590         * lib/stdio-safer.h (fopen_safer): Add prototype.
69591         * lib/stdio--.h (tmpfile): Make safer.
69592
69593 2006-07-23  Bruno Haible  <bruno@clisp.org>
69594
69595         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69596         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69597         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69598         gl_linked_remove_at): Use it.
69599
69600 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69601         and Simon Josefsson <jas@extundo.com>
69602
69603         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69604
69605         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69606
69607 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * modules/close-stream: New file.
69610         * modules/closeout (Description): Make it clear that it exits
69611         with a diagnostic on error.
69612         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69613         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69614
69615 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * m4/close-stream.m4: New file.
69618
69619 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69620
69621         * lib/close-stream.c, lib/close-stream.h: New files.
69622
69623 2006-07-22  Bruno Haible  <bruno@clisp.org>
69624
69625         Merge from GNU gettext 0.15.
69626
69627         2006-05-01  Bruno Haible  <bruno@clisp.org>
69628
69629                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69630
69631         2006-07-22  Bruno Haible  <bruno@clisp.org>
69632
69633                 * modules/javaversion: New file.
69634                 * MODULES.html.sh (Java): Add javaversion.
69635
69636         2006-03-12  Bruno Haible  <bruno@clisp.org>
69637
69638                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69639
69640         2005-12-04  Bruno Haible  <bruno@clisp.org>
69641
69642                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69643                 (untested).
69644
69645         2006-06-21  Bruno Haible  <bruno@clisp.org>
69646
69647                 Avoid warnings from recent versions of mcs.
69648                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69649                 -o, -L, -r any more. Use options documented since mcs-1.0
69650                 instead. Similarly for -g.
69651
69652         2005-12-04  Bruno Haible  <bruno@clisp.org>
69653
69654                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69655                 .resources, not .resource.
69656
69657         2005-07-09  Bruno Haible  <bruno@clisp.org>
69658
69659                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69660                 add a .dll suffix.
69661                 Reported by Mark Junker <mjscod@gmx.de>.
69662
69663         2006-07-22  Bruno Haible  <bruno@clisp.org>
69664
69665                 * modules/gettext: Upgrade to gettext-0.15.
69666                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69667                 m4/visibility.m4.
69668                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69669
69670 2006-07-22  Bruno Haible  <bruno@clisp.org>
69671
69672         Merge from GNU gettext 0.15.
69673
69674         2006-03-25  Bruno Haible  <bruno@clisp.org>
69675
69676                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69677
69678         2006-07-21  Bruno Haible  <bruno@clisp.org>
69679
69680                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69681                 "1.1".
69682
69683         2006-05-09  Bruno Haible  <bruno@clisp.org>
69684
69685                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69686                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69687                 for the conftestver execution.
69688
69689         2006-05-01  Bruno Haible  <bruno@clisp.org>
69690
69691                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69692                 optional target-version argument. Verify that the compiler
69693                 groks source of the specified source-version, or add -source
69694                 option as necessary. Verify that the compiler produces
69695                 bytecode in the specified target-version, or add -target and
69696                 -source options as necessary. Make the result of the test
69697                 available as variable CONF_JAVAC. Also log error output in
69698                 config.log.
69699
69700         2006-03-11  Bruno Haible  <bruno@clisp.org>
69701
69702                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69703
69704         2006-05-09  Bruno Haible  <bruno@clisp.org>
69705
69706                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69707                 CLASSPATH_SEPARATOR to a semicolon.
69708
69709         2006-03-12  Bruno Haible  <bruno@clisp.org>
69710
69711                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69712                 available as variable CONF_JAVA, for subsequent autoconf
69713                 tests. Also log error output in config.log.
69714
69715         2006-07-19  Bruno Haible  <bruno@clisp.org>
69716
69717                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69718                 that getline works on glibc2 systems. Needed to avoid trouble
69719                 in relocatable.c.
69720                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69721
69722         2005-12-04  Bruno Haible  <bruno@clisp.org>
69723
69724                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69725                 launcher (untested).
69726
69727         2005-12-04  Bruno Haible  <bruno@clisp.org>
69728
69729                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69730
69731         2006-07-22  Bruno Haible  <bruno@clisp.org>
69732
69733                 * gettext.m4: Update from GNU gettext-0.15.
69734                 * nls.m4: Likewise.
69735                 * po.m4: Likewise.
69736                 * inttypes-pri.m4: Likewise.
69737                 * inttypes-h.m4: Renamed from inttypes.m4.
69738                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69739
69740 2006-07-22  Bruno Haible  <bruno@clisp.org>
69741
69742         Merge from GNU gettext 0.15.
69743
69744         2005-07-05  Bruno Haible  <bruno@clisp.org>
69745
69746                 * printf-args.c (printf_fetchargs): Work around broken
69747                 definition of wint_t on mingw.
69748
69749         2005-02-12  Bruno Haible  <bruno@clisp.org>
69750
69751                 * xallocsa.h: Add extern "C" for C++.
69752
69753         2006-05-17  Bruno Haible  <bruno@clisp.org>
69754
69755                 Cygwin portability.
69756                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69757
69758         2006-04-30  Bruno Haible  <bruno@clisp.org>
69759
69760                 * progreloc.c: Include <mach-o/dyld.h> if available.
69761                 (find_executable): Use _NSGetExecutablePath when possible.
69762
69763         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69764
69765                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69766                 function.
69767
69768         2005-12-29  Bruno Haible  <bruno@clisp.org>
69769
69770                 * progreloc.c (set_program_name_and_installdir): Fix
69771                 compilation error.
69772
69773         2005-12-04  Bruno Haible  <bruno@clisp.org>
69774
69775                 Cygwin portability.
69776                 * progreloc.c: Include <windows.h> also on Cygwin.
69777                 (find_executable): Add support for Cygwin.
69778                 (set_program_name_and_installdir): Handle also platforms with
69779                 nonempty EXEEXT.
69780
69781         2006-07-11  Bruno Haible  <bruno@clisp.org>
69782
69783                 * javacomp.c: Fix a comment.
69784                 Reported by Jim Meyering.
69785
69786         2006-04-30  Bruno Haible  <bruno@clisp.org>
69787
69788                 * javacomp.h (compile_java_class): Add source_version,
69789                 target_version arguments.
69790                 * javacomp.c: Rewritten to choose only a compiler that
69791                 respects the specified source_version and target_version.
69792
69793         2006-06-27  Bruno Haible  <bruno@clisp.org>
69794
69795                 Assume correct S_ISDIR macro.
69796                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69797
69798         2006-07-22  Bruno Haible  <bruno@clisp.org>
69799
69800                 * javaversion.h: New file, from GNU gettext.
69801                 * javaversion.c: New file, from GNU gettext.
69802                 * javaversion.java: New file, from GNU gettext.
69803                 * javaversion.class: New file, from GNU gettext.
69804
69805         2006-05-17  Bruno Haible  <bruno@clisp.org>
69806
69807                 Cygwin portability.
69808                 * javaexec.c (execute_java_class): Test for jview program
69809                 also on Cygwin.
69810
69811         2006-04-09  Bruno Haible  <bruno@clisp.org>
69812
69813                 * fatal-signal.c: Don't include string.h.
69814                 (at_fatal_signal): Use a copying loop instead of memcpy.
69815
69816         2005-12-04  Bruno Haible  <bruno@clisp.org>
69817
69818                 * csharpexec.c: Add support for 'clix' launcher (untested).
69819                 (execute_csharp_using_sscli): New function.
69820                 (execute_csharp_program): Call it.
69821
69822         2006-06-21  Bruno Haible  <bruno@clisp.org>
69823
69824                 Avoid warnings from recent versions of mcs.
69825                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69826                 -o, -L, -r any more. Use options documented since mcs-1.0
69827                 instead. Similarly for -g.
69828
69829         2005-07-09  Bruno Haible  <bruno@clisp.org>
69830
69831                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69832                 add a .dll suffix.
69833                 Reported by Mark Junker <mjscod@gmx.de>.
69834
69835         2006-06-17  Bruno Haible  <bruno@clisp.org>
69836
69837                 * config.charset: Update for NetBSD 3.0.
69838
69839         2006-05-17  Bruno Haible  <bruno@clisp.org>
69840
69841                 Cygwin portability.
69842                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69843
69844         2006-05-16  Bruno Haible  <bruno@clisp.org>
69845
69846                 * localcharset.c [CYGWIN]: Include <windows.h>.
69847                 (get_charset_aliases): For Cygwin, return the same CPxxx
69848                 aliases list as under WIN32.
69849                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69850                 the environment variables. Fall back to GetACP().
69851
69852         2006-04-05  Bruno Haible  <bruno@clisp.org>
69853
69854                 * config.charset: Update Juan Manuel Guerrero's address.
69855
69856         2005-02-12  Bruno Haible  <bruno@clisp.org>
69857
69858                 * allocsa.h: Add extern "C" for C++.
69859
69860         2005-02-10  Bruno Haible  <bruno@clisp.org>
69861
69862                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69863                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69864
69865         2006-07-22  Bruno Haible  <bruno@clisp.org>
69866
69867                 * gettext.h: Update to GNU gettext-0.15.
69868
69869 2006-07-22  Bruno Haible  <bruno@clisp.org>
69870
69871         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69872         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69873         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69874
69875 2006-07-21  Eric Blake  <ebb9@byu.net>
69876
69877         * modules/stdlib-safer: New file.
69878         * MODULES.html.sh (File stream based Input/Output): Add
69879         stdlib-safer.
69880
69881 2006-07-21  Eric Blake  <ebb9@byu.net>
69882
69883         * lib/stdlib-safer.h: New file from coreutils, required by
69884         stdlib--.h.
69885
69886 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69887
69888         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69889
69890 2006-07-20  Bruno Haible  <bruno@clisp.org>
69891
69892         * gnulib-tool: Recognize new option --assume-autoconf.
69893         (autoconf_minversion): New variable.
69894         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69895
69896 2006-07-20  Bruno Haible  <bruno@clisp.org>
69897
69898         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69899
69900 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69901
69902         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69903         Reindent and repaginate.
69904
69905 2006-07-19  Derek Price  <derek@ximbiot.com>
69906
69907         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69908         Correct grammar.
69909
69910 2006-07-17  Bruno Haible  <bruno@clisp.org>
69911
69912         * modules/list: New file.
69913         * modules/array-list: New file.
69914         * modules/carray-list, modules/carray-list-tests: New files.
69915         * modules/linked-list, modules/linked-list-tests: New files.
69916         * modules/avltree-list, modules/avltree-list-tests: New files.
69917         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69918         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69919         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69920         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69921         * modules/oset: New file.
69922         * modules/array-oset: New file.
69923         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69924         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69925         * tests/test-carray_list.c: New file.
69926         * tests/test-linked_list.c: New file.
69927         * tests/test-avltree_list.c: New file.
69928         * tests/test-rbtree_list.c: New file.
69929         * tests/test-linkedhash_list.c: New file.
69930         * tests/test-avltreehash_list.c: New file.
69931         * tests/test-rbtreehash_list.c: New file.
69932         * tests/test-avltree_oset.c: New file.
69933         * tests/test-rbtree_oset.c: New file.
69934         * MODULES.html.sh (Container data structures): New section.
69935
69936 2006-07-17  Bruno Haible  <bruno@clisp.org>
69937
69938         * m4/gl_list.m4: New file.
69939
69940 2006-07-17  Bruno Haible  <bruno@clisp.org>
69941
69942         * lib/gl_list.h: New file.
69943         * lib/gl_list.c: New file.
69944         * lib/gl_array_list.h: New file.
69945         * lib/gl_array_list.c: New file.
69946         * lib/gl_carray_list.h: New file.
69947         * lib/gl_carray_list.c: New file.
69948         * lib/gl_linked_list.h: New file.
69949         * lib/gl_linked_list.c: New file.
69950         * lib/gl_anylinked_list1.h: New file.
69951         * lib/gl_anylinked_list2.h: New file.
69952         * lib/gl_avltree_list.h: New file.
69953         * lib/gl_avltree_list.c: New file.
69954         * lib/gl_anyavltree_list1.h: New file.
69955         * lib/gl_anyavltree_list2.h: New file.
69956         * lib/gl_rbtree_list.h: New file.
69957         * lib/gl_rbtree_list.c: New file.
69958         * lib/gl_anyrbtree_list1.h: New file.
69959         * lib/gl_anyrbtree_list2.h: New file.
69960         * lib/gl_anytree_list1.h: New file.
69961         * lib/gl_anytree_list2.h: New file.
69962         * lib/gl_linkedhash_list.h: New file.
69963         * lib/gl_linkedhash_list.c: New file.
69964         * lib/gl_anyhash_list1.h: New file.
69965         * lib/gl_anyhash_list2.h: New file.
69966         * lib/gl_avltreehash_list.h: New file.
69967         * lib/gl_avltreehash_list.c: New file.
69968         * lib/gl_rbtreehash_list.h: New file.
69969         * lib/gl_rbtreehash_list.c: New file.
69970         * lib/gl_anytreehash_list1.h: New file.
69971         * lib/gl_anytreehash_list2.h: New file.
69972
69973         * lib/gl_oset.h: New file.
69974         * lib/gl_oset.c: New file.
69975         * lib/gl_array_oset.h: New file.
69976         * lib/gl_array_oset.c: New file.
69977         * lib/gl_avltree_oset.h: New file.
69978         * lib/gl_avltree_oset.c: New file.
69979         * lib/gl_rbtree_oset.h: New file.
69980         * lib/gl_rbtree_oset.c: New file.
69981         * lib/gl_anytree_oset.h: New file.
69982
69983 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * m4/mkancesdirs.m4: New file.
69986         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69987         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69988         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69989         it.
69990
69991 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69994         * lib/mkancesdirs.h: New files.
69995         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69996         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69997         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69998         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69999         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70000         callers changed.  Revamp internals significantly, by not
70001         attempting to create directories that are temporarily more
70002         permissive than the final results.  Do not attempt to use
70003         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70004         This removes some race conditions, fixes some bugs, and simplifies
70005         things.  Use new dirchownmod function to do owner and mode changes.
70006         * lib/mkdir-p.h: Likewise.
70007         * lib/modechange.c (octal_to_mode): New function.
70008         (struct mode_change): New member mentioned.
70009         (make_node_op_equals): New arg mentioned.  All callers changed.
70010         (mode_compile): Keep track of which mode bits the user has explicitly
70011         mentioned.
70012         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70013         New arg PMODE_BITS, to keep track of which mode bits the user
70014         mentioned; it treats S_ISUID and S_ISGID speciall.
70015         All callers changed.
70016         * lib/modechange.h: Likewise.
70017
70018 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70019
70020         * MODULES.html.sh: Add mkancestors.
70021         * modules/mkancesdirs: New module.
70022         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70023         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70024         The chdir-safer and afs files are now orphans; I'll remove them
70025         unless someone speaks up.
70026         Add lib/dirchownmod.c, lib/dirchownmod.h.
70027         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70028         Add lchown, mkancesdirs.
70029         (Maintainer): Add self.
70030
70031 2006-07-15  Karl Berry  <karl@gnu.org>
70032
70033         * gnulib-tool: help message wording/arrangement.
70034
70035 2006-07-14  Simon Josefsson  <jas@extundo.com>
70036
70037         * doc/gnulib.texi (Libtool and Windows): New section.
70038
70039 2006-07-12  Simon Josefsson  <jas@extundo.com>
70040
70041         * modules/gendocs (License): Fix license, approved by Karl.
70042
70043 2006-07-12  Eric Blake  <ebb9@byu.net>
70044
70045         * MODULES.html.sh: Add gendocs.
70046
70047 2006-07-11  Eric Blake  <ebb9@byu.net>
70048
70049         * modules/fdl: New module, to install doc/fdl.texi.
70050         * MODULES.html.sh: Add new section for documentation modules.
70051         * gnulib-tool: Avoid space-tab.
70052         (--doc-base): New option, to manage files from doc.
70053
70054 2006-07-11  Eric Blake  <ebb9@byu.net>
70055
70056         * m4/absolute-header.m4: Fix comments to match recent change.
70057
70058 2006-07-11  Eric Blake  <ebb9@byu.net>
70059
70060         * gnulib-tool: List --doc-base before --tests-base.
70061
70062 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70063
70064         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70065
70066 2006-07-11  Bruno Haible  <bruno@clisp.org>
70067
70068         * README: Mention where to put documentation.
70069
70070 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70071
70072         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70073
70074 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70077         to stdint.m4.
70078
70079 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70082         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70083         "no/such/file/stdint.h" when there is no such file, so that
70084         the resulting C code can be parsed by dodgy compilers.
70085         Problems reported by Bob Proulx.
70086
70087 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70088
70089         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70090         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70091         macros into the GNU _D_EXACT_NAMLEN.
70092         * lib/savedir.c:  Likewise.
70093         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70094
70095 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70096         and Paul Eggert  <eggert@cs.ucla.edu>
70097
70098         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70099         * m4/savedir.m4:
70100         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70101         macros into the GNU _D_EXACT_NAMLEN.
70102
70103 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70104
70105         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70106         around the absolute name, to work around a problem with the HP-UX
70107         11.23 native C compiler, reported by Bob Proulx.
70108
70109 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70110
70111         * doc/maintain.texi, make-stds.texi: Sync from
70112         <http://savannah.gnu.org/projects/gnustandards>.
70113
70114 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70115
70116         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70117
70118 2006-07-09  Jim Meyering  <jim@meyering.net>
70119
70120         * m4/glob.m4: Remove a doubled word in a comment.
70121
70122 2006-07-09  Jim Meyering  <jim@meyering.net>
70123
70124         * lib/argp-pv.c: Remove a doubled word in a comment.
70125         * lib/check-version.c (check_version): Likewise.
70126         * lib/javacomp.c (compile_java_class): Likewise.
70127
70128 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70129
70130         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70131         for the benefit of people using Autoconf 2.60.  If you want to
70132         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70133         (or m4/onceonly.m4, if pre-2.57) manually.
70134
70135 2006-07-08  Jim Meyering  <jim@meyering.net>
70136
70137         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70138         comment.
70139         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70140         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70141         comment.
70142
70143 2006-07-08  Jim Meyering  <jim@meyering.net>
70144
70145         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70146
70147 2006-07-07  Simon Josefsson  <jas@extundo.com>
70148
70149         * tests/test-crc.c: Change expected crc value, the test vector
70150         were probably computed using the old broken crc.c?
70151
70152 2006-07-06  Simon Josefsson  <jas@extundo.com>
70153
70154         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70155         now the canonical place for the M4 file).
70156
70157         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70158         from the sys_socket dependency now.
70159
70160         * modules/inet_pton (Files): Ditto.
70161
70162         * modules/inet_ntop (Files): Ditto.
70163
70164 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70165
70166         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70167         not gl_PREREQ_GETUSERSHELL.
70168
70169 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70170
70171         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70172         with only one argument, for Autoconf 2.60.
70173         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70174         expand to nothing, so add a shell command to avoid syntax error.
70175         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70176
70177 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70178
70179         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70180
70181 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70184         no longer needed.  Check for isblank decl.
70185         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70186         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70187         of existence.
70188
70189 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         * lib/getloadavg.c: Use __VMS, not VMS.
70192         * lib/getopt.c: Likewise.
70193         * lib/getpagesize.h: Likewise.
70194         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70195         and probably does not work.
70196
70197 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70198
70199         * lib/.cppi-disable: Add wcwidth.
70200         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70201         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70202         (ISGRAPH): Remove.  All uses changed to isgraph.
70203         (FOLD) [!defined _LIBC]: Remove special case.
70204         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70205         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70206         HAVE_ISBLANK.
70207         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70208         case.
70209
70210 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70211
70212         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70213         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70214         brackets.  Other minor changes to suppress some compiler
70215         warnings.
70216
70217 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70218         and Paul Eggert  <eggert@cs.ucla.edu>
70219
70220         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70221         of invoking obsolescent AC_HEADER_DIRENT macro.
70222         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70223         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70224         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70226         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70227         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70228         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70229         * m4/readdir.m4: Remove; no longer needed.
70230
70231 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70232         and Paul Eggert  <eggert@cs.ucla.edu>
70233
70234         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70235         Don't worry about this obsolete case any more.
70236         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70237         directories.
70238         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70239         worry about this obsolete case any more.
70240         * lib/fts.c: Likewise.
70241         * lib/getcwd.c: Likewise.
70242         * lib/glob.h: Likewise.
70243         * lib/savedir.c: Likewise.
70244
70245 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70246
70247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70248         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70249         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70250         needed.
70251         All uses removed.
70252         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70253         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70254         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70255         needed.
70256         * m4/getdate.m4 (gl_GETDATE): Likewise.
70257         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70258         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70259         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70260         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70261         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70262         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70263         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70264         needed.
70265
70266 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70267
70268         * lib/memcasecmp.c: Include <limits.h>.
70269         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70270         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70271         Don't assume isdigit succeeds only on '0' through '9'.
70272
70273 2006-07-05  Eric Blake  <ebb9@byu.net>
70274
70275         * modules/getaddrinfo (Depends-on): Add snprintf.
70276
70277 2006-07-05  Eric Blake  <ebb9@byu.net>
70278
70279         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70280         to avoid 'header present but could not be compiled' on cygwin.
70281
70282 2006-07-05  Eric Blake  <ebb9@byu.net>
70283
70284         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70285         missing from netdb.h.
70286         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70287
70288 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70289
70290         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70291         no longer needed.
70292         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70293         * m4/getdate.m4 (gl_GETDATE): Likewise.
70294         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70295         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70296         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70297         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70299
70300 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70301
70302         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70303         All uses of is_space replaced by isspace.
70304         * lib/exit.h: Don't talk about STDC_HEADERS.
70305         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70306         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70307         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70308         replaced by isprint etc.
70309         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70310         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70311         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70312         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70313         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70314         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70315
70316 2006-07-05  Bruno Haible  <bruno@clisp.org>
70317
70318         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70319         the function exists, before testing against AIX.
70320         Reported by Martin Lambers <marlam@marlam.de>.
70321
70322 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70325         From Mark D. Baushke.
70326
70327 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70328
70329         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70330         to the absolute name, not just one, to bypass Sun C 5.8's
70331         "warning: #include of /usr/include/... may be non-portable".
70332
70333 2006-07-04  Eric Blake  <ebb9@byu.net>
70334
70335         * modules/dirname-tests: New test module.
70336         * tests/test-dirname.c: New file, replacing dirname.c
70337         TEST_DIRNAME section that was recently deleted.
70338
70339 2006-07-04  Bruno Haible  <bruno@clisp.org>
70340
70341         Assume ANSI C header files and <ctype.h> functions.
70342         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70343         (mbsnwidth): Use isprint, iscntrl instead.
70344
70345 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         Merge from coreutils.
70348         * MODULES.html.sh: Add xstrtold.
70349         * modules/xstrtold: New file.
70350         * modules/cycle-check (Files): Add lib/same-inode.h.
70351         * modules/dirname (Files): Add m4/double-slash-root.m4.
70352         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70353         * modules/mkdir-p (Files): Add lib/same-inode.h.
70354         * modules/same (Files): Add lib/same-inode.h.
70355
70356 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70357
70358         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70359         This is to keep the terminology clean; POSIX talks about
70360         "absolute pathnames", not "full pathnames", but the GNU
70361         Coding Standards say to use "path" for something else;
70362         so use "absolute" to keep both sides happy.
70363         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70364         Set gl_absolute_header, not gl_full_header_path.
70365         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70366         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70367         All uses changed.
70368
70369         Merge from coreutils.
70370
70371         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70374         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70375         want to require the building of c-strtod.o.
70376         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70377         needs -lm directly.
70378         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70379
70380         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70383         --as-needed option if available.  Problem reported by Albert Chin in
70384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70385         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70386         cc merely issues a bunch of annoying warnings for --as-needed
70387         (this problem was reported by Bob Proulx).  Also, try linking with
70388         -lm to detect a bug in binutils 2.16 (this problem was reported
70389         by Ralf Wildenhues).
70390
70391         2006-06-18  Jim Meyering  <jim@meyering.net>
70392
70393         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70394         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70395         macro.
70396         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70397         also check for glibc-2.4's abort-inducing bug.
70398
70399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70400         Low-probability clean-up should be to use rmdir to get rid of
70401         the just-created directory, not unlink.
70402
70403         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70404         configure fail, and request a bug report to inform us about it.
70405         Add a comment that, barring reports to the contrary, in 2007 we'll
70406         assume ftruncate is universally available.
70407
70408         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70409
70410         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70411
70412         2006-03-12  Jim Meyering  <jim@meyering.net>
70413
70414         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70415         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70416         * m4/same.m4 (gl_SAME): Likewise.
70417         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70418
70419         2006-03-11  Eric Blake  <ebb9@byu.net>
70420
70421         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70422         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70423         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70424         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70425
70426 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70429         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70430         reported by Mark D. Baushke, one in
70431         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70432
70433         Merge from coreutils.
70434
70435         * lib/.cppi-disable: Add stdint_.h.
70436         * lib/.cvsignore: Add stdint.h.
70437
70438         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70441         both double and long double versions.
70442         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70443         * lib/xstrtold.c: New file.
70444         * lib/xstrtod.h (xstrtold): New decl.
70445
70446         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70447
70448         * lib/filemode.c (setst): Remove.
70449         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70450         (arguably) clearer, and the generated code is a bit smaller on my
70451         Debian GNU/Linux stable x86 host.
70452
70453         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70454
70455         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70456         Assume that filemode.h includes sys/types.h and sys/stat.h.
70457         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70458         (ftypelet): Reorder to put common cases first, for efficiency.
70459         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70460         to do 'M'.
70461         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70462         of 10, for compatibility with FreeBSD.  All callers changed.
70463         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70464         types that can't be deduced solely from st_mode.  First arg is now a
70465         const pointer.
70466         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70467         (strmode): Renamed from mode_string.
70468         (filemodestring): New decl.
70469         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70470         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70471         needed.
70472         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70473
70474         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70477         fsusage.h now does that.  Include fsusage.h first, to test interface.
70478         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70479         at most one method (the old code could have generated decls that
70480         didn't conform to C89, not that this was ever exercised).
70481         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70482
70483         2006-03-19  Jim Meyering  <jim@meyering.net>
70484
70485         Work even in a chroot where d_ino values for entries in "/"
70486         don't match the stat.st_ino values for the same names.
70487         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70488         number, iterate through all entries again, using lstat instead.
70489         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70490         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70491
70492         * lib/getcwd.c (__getcwd): Clarify a comment.
70493         Use memcpy in place of a call to strcpy.
70494
70495         2006-03-12  Jim Meyering  <jim@meyering.net>
70496
70497         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70498         matches that of the current directory (which we're about to chdir ".."
70499         out of), then save the dev-ino of the parent, instead.
70500
70501         * lib/same-inode.h (SAME_INODE): New file/macro.
70502         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70503         Include "same-inode.h", instead.
70504         * lib/same.c: Likewise.
70505         * lib/cycle-check.h: Include "same-inode.h".
70506         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70507         * lib/cycle-check.c (SAME_INODE): Remove definition.
70508         * lib/root-dev-ino.h: Include "same-inode.h".
70509
70510         2006-03-11  Eric Blake  <ebb9@byu.net>
70511
70512         * lib/same.c (same_name): s/base_name/last_component/
70513         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70514         * lib/filenamecat.c (file_name_concat): Likewise.
70515
70516         2006-03-11  Eric Blake  <ebb9@byu.net>,
70517                     Paul Eggert  <eggert@cs.ucla.edu>
70518
70519         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70520         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70521         drive prefix.
70522         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70523         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70524         (last_component): New method.
70525         * lib/dirname.c (dir_len): Determine when drive letters need a
70526         subsequent slash.  Preserve // when it is special.
70527         (dir_name): Don't append dot when drive letter is absolute.
70528         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70529         * lib/basename.c (base_name): New semantics - malloc the result.
70530         Preserve // when it is special.  Preserve relative files that look
70531         like drive letters.
70532         (base_len): Preserve // when it is special.
70533         (last_component): New method, similar to old base_name semantics.
70534         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70535         base_name.  Strip redundant slashes from ///.
70536
70537 2006-07-03  Jim Meyering  <jim@meyering.net>
70538
70539         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70540         macro is used before the first cycle_check call.
70541
70542 2006-07-03  Eric Blake  <ebb9@byu.net>
70543
70544         * modules/dirname (Depends-on): Add xstrndup.
70545
70546 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70547
70548         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70549         test cases, so that config.log is a bit easier to follow.
70550
70551 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70552
70553         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70554         both are 64 bits, since this seems to be the tradition, and this
70555         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70556         we ever run into a host that prefers long long to long in this
70557         case, we'll need another configure-time test.  Problem reported by
70558         Jim Meyering.
70559
70560 2006-07-02  Eric Blake  <ebb9@byu.net>
70561
70562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70563
70564 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70565
70566         * modules/inttypes (Depends-on): No longer depends on stdint.
70567         * modules/stdint (Description): Say more about assumptions.
70568         Say that the fast types might differ.  Say macros are used.
70569         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70570         (Makefile.am): Revise list of substituted symbols to match
70571         new stdint.m4.
70572         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70573         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70574         * tests/test-stdint.c (verify_same_types)
70575         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70576         the code conforms to C99/C89.
70577         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70578         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70579
70580 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70583         but fix a bug, by requiring at least 64 bits.
70584         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70585         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70586         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70587         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70588
70589         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70590         changes.  Make 2.59 a prerequisite.  Check and substitute for
70591         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70592         inttypes.h.  Do not use special include files; just use the
70593         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70594         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70595         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70596         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70597         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70598         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70599         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70600         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70601         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70602         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70603         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70604         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70605         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70606         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70607         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70608         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70609         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70610         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70611         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70612         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70613         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70614         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70615         not check for things that C99 does not require, e.g., int8_t.  If
70616         a test isn't needed unless <stdint.h> isn't working, and is
70617         unlikely to be needed for any other reason, then don't do it
70618         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70619         size_t, since we assume C89 freestanding at least.  Do not check
70620         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70621         the right thing even if the types are not defined.  Instead use:
70622         (gl_STDINT_TYPE_PROPERTIES): New macro.
70623         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70624         testing whether <sys/types.h> clashes, as Autoconf does this for
70625         us now.  All uses removed.
70626         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70627         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70628         (gl_CHECK_TYPE_SAME):
70629         Remove; no longer needed.
70630         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70631         exists, since we'll return 0 anyway in that case.
70632         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70633
70634 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70637         possible collision with system files.
70638         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70639         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70640         WCHAR_MIN and WCHAR_MAX in this case.
70641         (<stddef.h>): Do not include; no longer needed.
70642         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70643         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70644         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70645         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70646         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70647         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70648         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70649         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70650         !defined(__c99))]: Include in this case too, since it's harmless
70651         now.
70652         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70653         dangerous to do so.
70654         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70655         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70656         (_STDINT_MIN, _STDINT_MAX): New macros.
70657         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70658         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70659         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70660         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70661         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70662         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70663         macros, not typedefs; this simplifies things quite a bit.
70664         Use long int for all types narrower than int64_t.
70665         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70666         Define in terms of long long int or int64_t or long int,
70667         not int64_t or int32_t.  This saves some compile-time testing.
70668         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70669         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70670         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70671         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70672         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70673         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70674         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70675         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70676         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70677         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70678         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70679         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70680         undef any previous version and define our own version, for
70681         simplicity and consistency with the new macros for types.
70682         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70683         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70684         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70685         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70686         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70687         @WINT_T_SUFFIX@ to keep things simple here.
70688         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70689         Simplify by assuming typical 8/16/32/64 host, since we're
70690         already doing that elsewhere anyway.
70691         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70692         and assume long long int is 64 bits if available.  This
70693         speeds up 'configure'.
70694
70695 2006-07-01  Eric Blake  <ebb9@byu.net>
70696
70697         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70698         Reported by Andreas Buening.
70699
70700 2006-07-01  Eric Blake  <ebb9@byu.net>
70701
70702         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70703
70704 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70705
70706         * lib/getaddrinfo.c: fixed typo
70707
70708 2006-06-29  Jim Meyering  <jim@meyering.net>
70709
70710         * modules/strftime (Maintainer): Add my name, since with the
70711         FPRINTFTIME changes strftime.c has forked from glibc.
70712
70713 2006-06-29  Eric Blake  <ebb9@byu.net>
70714
70715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70716
70717 2006-06-29  Eric Blake  <ebb9@byu.net>
70718
70719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70720
70721 2006-06-29  Eric Blake  <ebb9@byu.net>
70722
70723         * lib/stat_.h: New file.
70724
70725 2006-06-29  Eric Blake  <ebb9@byu.net>
70726
70727         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70728         unused static function.
70729
70730 2006-06-29  Eric Blake  <ebb9@byu.net>
70731
70732         * doc/functions.texi (Function Portability): Document missing lstat
70733         on mingw.
70734
70735 2006-06-29  Eric Blake  <ebb9@byu.net>
70736
70737         * MODULES.html.sh: Add sys_stat.
70738         * modules/sys_stat: New module.
70739         * modules/mkstemp (Depends-on): Add sys_stat.
70740
70741 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70742
70743         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70744
70745 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70746
70747         * m4/c-bs-a.m4: Removed.
70748
70749 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70750
70751         * lib/strftime.c: Assume strftime() exists.
70752
70753 2006-06-29  Derek Price  <derek@ximbiot.com>
70754
70755         * modules/c-bs-a: Removed - \a is C89.
70756         * MODULES.html.sh: Remove c-bs-a.
70757
70758 2006-06-29  Bruno Haible  <bruno@clisp.org>
70759
70760         * modules/wcwidth (License): Change to LGPL.
70761
70762 2006-06-28  Simon Josefsson  <jas@extundo.com>
70763
70764         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70765         on _WIN32.
70766
70767         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70768         getnameinfo.
70769
70770 2006-06-28  Simon Josefsson  <jas@extundo.com>
70771
70772         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70773
70774 2006-06-28  Simon Josefsson  <jas@extundo.com>
70775
70776         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70777         functions there.  It will succeed on Windows XP, but on Windows
70778         2000 and (presumably) earlier, it will fail, and use the internal
70779         re-implementation.
70780         (use_win32_p): New function.
70781         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70782         Support AI_NUMERICSERV to disable getservbyname.
70783         (getnameinfo): New function, only supports
70784         NI_NUMERICHOST|NI_NUMERICSERV for now.
70785
70786         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70787         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70788         getnameinfo.
70789
70790 2006-06-28  Eric Blake  <ebb9@byu.net>
70791
70792         * modules/wcwidth: New file.
70793         * modules/mbchar (Depends-on): Add wcwidth.
70794         * modules/mbswidth (Depends-on): Add wcwidth.
70795         * MODULES.html.sh: Add wcwidth.
70796
70797 2006-06-28  Eric Blake  <ebb9@byu.net>
70798
70799         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70801
70802 2006-06-28  Eric Blake  <ebb9@byu.net>
70803
70804         * lib/xvasprintf.h: Fix comments.
70805
70806 2006-06-28  Eric Blake  <ebb9@byu.net>
70807
70808         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70809         * lib/mbswidth.c (wcwidth): Move from here...
70810         * lib/wcwidth.h: ...to this new file.
70811
70812 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70813
70814         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70815
70816         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70817         it's obsolete.
70818         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70819
70820 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70821
70822         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70823         Autoconf 2.60 says this stuff was obsolete.
70824
70825 2006-06-28  Bruno Haible  <bruno@clisp.org>
70826
70827         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70828
70829 2006-06-28  Bruno Haible  <bruno@clisp.org>
70830
70831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70832         gt_TYPE_WCHAR_T.
70833
70834 2006-06-28  Bruno Haible  <bruno@clisp.org>
70835
70836         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70837         declaration for wcwidth.
70838         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70839
70840 2006-06-28  Bruno Haible  <bruno@clisp.org>
70841
70842         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70843         (mkdir): Define using _mkdir.
70844
70845 2006-06-28  Bruno Haible  <bruno@clisp.org>
70846
70847         * lib/getaddrinfo.h: Fix POSIX URL.
70848         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70849         _WIN32.
70850         (use_win32_p): Make static.
70851         (getaddrinfo): Reject service name if it is empty or does not consist
70852         solely of decimal digits, or if its value is > 65535.
70853         (getnameinfo): Remove useless casts.
70854
70855 2006-06-27  Simon Josefsson  <jas@extundo.com>
70856
70857         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70858         Eggert and Martin Lambers.
70859
70860 2006-06-27  Simon Josefsson  <jas@extundo.com>
70861
70862         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70863         Eggert and Martin Lambers.
70864
70865 2006-06-27  Bruno Haible  <bruno@clisp.org>
70866
70867         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70868         result to 0, not to empty.
70869         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70870
70871 2006-06-27  Bruno Haible  <bruno@clisp.org>
70872
70873         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70874
70875 2006-06-26  Simon Josefsson  <jas@extundo.com>
70876
70877         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70878         present.
70879
70880 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70883         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70884         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70885
70886 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70887
70888         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70889
70890 2006-06-26  Bruno Haible  <bruno@clisp.org>
70891
70892         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70893
70894 2006-06-26  Bruno Haible  <bruno@clisp.org>
70895
70896         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70897
70898 2006-06-26  Bruno Haible  <bruno@clisp.org>
70899
70900         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70901         SGI C compiler in pre-C99 mode.
70902         Suggested by Mark D. Baushke and Larry Jones.
70903
70904 2006-06-26  Bruno Haible  <bruno@clisp.org>
70905
70906         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70907         WCHAR_MAX.
70908         Reported by Mark D. Baushke and Larry Jones.
70909
70910 2006-06-26  Bruno Haible  <bruno@clisp.org>
70911
70912         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70913         in pre-C99 mode.
70914         Suggested by Mark D. Baushke and Larry Jones.
70915
70916 2006-06-23  Simon Josefsson  <jas@extundo.com>
70917             Bruno Haible  <bruno@clisp.org>
70918
70919         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70920         Emit mostlyclean-local rule.
70921         (func_emit_tests_Makefile_am): Likewise.
70922         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70923
70924 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70925
70926         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70927
70928 2006-06-23  Bruno Haible  <bruno@clisp.org>
70929
70930         * tests/test-stdint.c: Update to match ISO C 99 Technical
70931         Corrigendum 1.
70932
70933 2006-06-23  Bruno Haible  <bruno@clisp.org>
70934
70935         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70936
70937 2006-06-23  Bruno Haible  <bruno@clisp.org>
70938
70939         * lib/stdint_.h: Treat IRIX like OpenBSD.
70940
70941 2006-06-23  Bruno Haible  <bruno@clisp.org>
70942
70943         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70944         ISO C 99 Technical Corrigendum 1.
70945
70946 2006-06-22  Simon Josefsson  <jas@extundo.com>
70947
70948         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70949         MinGW.
70950
70951 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70954         needed.  Some compiler complained about some of them.  Problem reported
70955         by Larry Jones in
70956         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70957
70958 2006-06-21  Simon Josefsson  <jas@extundo.com>
70959
70960         * tests/test-getaddrinfo.c: New file.
70961
70962         * modules/getaddrinfo-tests: New file.
70963
70964         * MODULES.html.sh: Add inet_pton.
70965
70966         * modules/inet_pton: New file.
70967
70968 2006-06-21  Simon Josefsson  <jas@extundo.com>
70969
70970         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70971         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70972         of using the (limited) gnulib implementation on Windows XP.
70973
70974         * m4/inet_pton.m4: New file.
70975
70976 2006-06-21  Simon Josefsson  <jas@extundo.com>
70977
70978         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70979         variable.
70980
70981         * lib/socket_.h: Don't define WINVER.
70982
70983         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70984         slightly modified to work in gnulib.
70985
70986 2006-06-21  Simon Josefsson  <jas@extundo.com>
70987
70988         * doc/gnulib.texi (Windows sockets): Add.
70989
70990 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         * lib/read-file.c (fread_file): Start with buffer allocation of
70993         0 bytes rather than 1 byte; this simplifies the code.
70994         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70995         code to free buffer and save/restore errno.
70996         (internal_read_file): Remove unused local.
70997
70998 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71001         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71002         Problem reported by Denis Excoffier in
71003         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71004
71005 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71006
71007         * modules/sys_socket, modules/socklen: Include sys/types since
71008         FreeBSD 4.x's sys/socket.h needs it.
71009
71010 2006-06-19  Simon Josefsson  <jas@extundo.com>
71011
71012         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71013
71014 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71017
71018 2006-06-19  Bruno Haible  <bruno@clisp.org>
71019
71020         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71021         and FULL_PATH_INTTYPES_H in angle brackets.
71022         Reported by Mark D. Baushke <mdb@gnu.org>.
71023
71024 2006-06-17  Eric Blake  <ebb9@byu.net>
71025
71026         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71027         errno.
71028
71029 2006-06-17  Bruno Haible  <bruno@clisp.org>
71030
71031         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71032         <sys/inttypes.h>.
71033
71034 2006-06-17  Bruno Haible  <bruno@clisp.org>
71035
71036         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71037         whether errno is declared. Assume <errno.h> declares errno.
71038
71039 2006-06-17  Bruno Haible  <bruno@clisp.org>
71040
71041         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71042
71043 2006-06-17  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71046         problem on Solaris 2.5.1.
71047
71048 2006-06-16  Eric Blake  <ebb9@byu.net>
71049
71050         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71051         * lib/unicodeio.c [!defined errno]: Likewise.
71052         * lib/strtol.c [!defined errno]: Likewise.
71053         * lib/strtod.c [!defined errno]: Likewise.
71054
71055 2006-06-15  Eric Blake  <ebb9@byu.net>
71056
71057         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71058
71059 2006-06-15  Eric Blake  <ebb9@byu.net>
71060
71061         * config/srclist.txt (ssize_t.m4): Lose sync.
71062
71063 2006-06-15  Bruno Haible  <bruno@clisp.org>
71064
71065         * modules/stdint (Files): Include m4/full-header-path.m4,
71066         m4/size_max.m4, m4/wchar_t.m4.
71067         (Makefile.am): Many more substitutions.
71068         * modules/stdint-tests: New file.
71069         * tests/test-stdint.c: New file.
71070
71071 2006-06-15  Bruno Haible  <bruno@clisp.org>
71072
71073         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71074         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71075         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71076         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71077         gl_CHECK_TYPE_SAME): New macros.
71078
71079 2006-06-15  Bruno Haible  <bruno@clisp.org>
71080
71081         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71082
71083 2006-06-15  Bruno Haible  <bruno@clisp.org>
71084
71085         * lib/stdint_.h: Rewritten to be fully auto-configured.
71086         Fixes bug on HP-UX/IA64.
71087
71088 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * lib/getdate.y (__attribute__): Don't define if already defined.
71091         Problem reported by Larry Jones.
71092         * lib/utimens.c (__attribute__): Likewise.
71093
71094 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71097         reported by Andreas Schwab.
71098
71099 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71100             Bruno Haible  <bruno@clisp.org>
71101
71102         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71103         check for the declaration of strnlen and a run test that exposes the
71104         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71105         rpl_strndup.
71106
71107 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71108             Bruno Haible  <bruno@clisp.org>
71109
71110         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71111
71112 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71113
71114         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71115         compile test, for Tru64 4.0D.
71116
71117 2006-05-28  Karl Berry  <karl@gnu.org>
71118
71119         * config/srclist.txt (printf-args.c): lose sync.
71120
71121 2006-05-26  Martin Lambers  <marlam@marlam.de>
71122
71123         * lib/getpass.c: Updates the test for the native W32 API, and adds
71124         missing includes, thus fixing compilation warnings.
71125
71126 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71127
71128         * lib/exclude.c (exclude_fnmatch): New function.
71129         (excluded_file_name): Call exclude_fnmatch.
71130         * lib/exclude.h (excluded_file_name): New prototype
71131
71132 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71133
71134         * lib/tempname.c (small_open, large_open): New macros.
71135         (__open, __open64) [!_LIBC]: Remove.
71136         (__gen_tempname): Use small_open and large_open instead of __open
71137         and __open64.  This fixes a portability bug on HP-UX 11.11i
71138         reported by Simon Wing-Tang in
71139         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71140
71141 2006-05-24  Bruno Haible  <bruno@clisp.org>
71142
71143         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71144         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71145         Reported by Thorsten Maerz <torte@netztorte.de> via
71146         Aaron Stone <aaron@serendipity.cx>.
71147
71148 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71149
71150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71151         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71152         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71153         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71154         not really conditional on the cache.
71155         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71156
71157 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71160         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71161         (my_usleep): Don't mishandle maximum value.
71162
71163 2006-05-19  Jim Meyering  <jim@meyering.net>
71164
71165         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71166
71167 2006-05-17  Bruno Haible  <bruno@clisp.org>
71168
71169         Cygwin portability.
71170         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71171
71172 2006-05-17  Bruno Haible  <bruno@clisp.org>
71173
71174         * lib/stdint_.h: Fix recognition of Cygwin.
71175
71176 2006-05-15  Bruno Haible  <bruno@clisp.org>
71177
71178         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71179         on libtool patch by Ralf Wildenhues.
71180
71181 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71184         test for C99 conformance; (bool) 0.5 is an integer constant
71185         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71186         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71187
71188 2006-05-11  Simon Josefsson  <jas@extundo.com>
71189
71190         * m4/xvasprintf.m4: Fix obvious typo.
71191
71192 2006-05-11  Jim Meyering  <jim@meyering.net>
71193
71194         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71195         James Lemley.
71196
71197 2006-05-10  Simon Josefsson  <jas@extundo.com>
71198
71199         * lib/md4.c: Typo fix, update copyright years.
71200         (K1, K2): Don't use L because it turn computations into 64-bit on
71201         64-bit platforms.
71202
71203 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71206         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71207         unwanted sign propagation, e.g., on hosts with 64-bit int.
71208         There still are some problems with reeelly weird theoretical hosts
71209         (e.g., 33-bit int) but it's not worth worrying about now.
71210         * lib/sha1.c (rol): Likewise.
71211         (K1, K2, K3, K4): Remove unnecessary L suffix.
71212
71213 2006-05-10  Bruno Haible  <bruno@clisp.org>
71214
71215         * lib/des.c: Cast to avoid warnings.
71216
71217 2006-05-09  Bruno Haible  <bruno@clisp.org>
71218
71219         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71220         (Depends-on): Depend also on xsize, stdarg.
71221         (configure.ac): Add gl_XVASPRINTF.
71222
71223 2006-05-09  Bruno Haible  <bruno@clisp.org>
71224
71225         * m4/xvasprintf.m4: New file.
71226
71227 2006-05-09  Bruno Haible  <bruno@clisp.org>
71228
71229         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71230         (EOVERFLOW): Define fallback value.
71231         (xstrcat): New function.
71232         (xvasprintf): Recognize the special case of a string concatenation.
71233
71234 2006-05-08  Eric Blake  <ebb9@byu.net>
71235
71236         * gnulib-tool (func_version): Base copyright year on CVS date.
71237         (func_emit_copyright_notice): New function.
71238         (func_emit_lib_Makefile_am): Use it.
71239         (func_emit_tests_Makefile_am): Likewise.
71240         (func_import): Likewise.
71241
71242 2006-05-08  Bruno Haible  <bruno@clisp.org>
71243
71244         * modules/stdarg: New file.
71245         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71246
71247 2006-05-08  Bruno Haible  <bruno@clisp.org>
71248
71249         * m4/stdarg.m4: New file, from GNU gettext.
71250
71251 2006-05-08  Bruno Haible  <bruno@clisp.org>
71252
71253         * config/srclist.txt (build-aux/config.rpath): different from latest
71254         release.
71255
71256 2006-05-08  Bruno Haible  <bruno@clisp.org>
71257
71258         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71259
71260 2006-05-05  Jim Meyering  <jim@meyering.net>
71261
71262         * m4/warning.m4: New file, derived from bison's file by the same name.
71263
71264 2006-05-03  Bruno Haible  <bruno@clisp.org>
71265
71266         * lib/stdint_.h: Shorter URL.
71267         * lib/inttypes.h: Likewise.
71268
71269 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71270
71271         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71272
71273 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         * lib/verify.h: Document the internals better.  Most of this change
71276         was written by Bruno Haible.
71277
71278 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71279
71280         * doc/verify.texi: New file, partly based on a proposal by
71281         Bruno Haible.
71282
71283 2006-05-02  Bruno Haible  <bruno@clisp.org>
71284
71285         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71286         test from here...
71287         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71288
71289 2006-04-29  Bruno Haible  <bruno@clisp.org>
71290
71291         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71292         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71293
71294 2006-04-29  Bruno Haible  <bruno@clisp.org>
71295
71296         * gnulib-tool: Make --update option actually work.
71297
71298 2006-04-29  Bruno Haible  <bruno@clisp.org>
71299
71300         * doc/gcd.texi: New file.
71301         * doc/gnulib.texi: Include it.
71302
71303 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * lib/getdate.y (get_date): When adding relative date, start with the
71306         initial time, not with the result of the first mktime call.
71307
71308 2006-04-25  Bruno Haible  <bruno@clisp.org>
71309
71310         * gnulib-tool (func_import): Output the include directives in three
71311         blocks, sorted separately.
71312         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71313
71314 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71315
71316         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71317         to define main with arguments, for C++.  Reported by Eric Blake.
71318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71319         Prefer 'int main ()' to 'int main (void)', for C++.
71320         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71321         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71322         for 'main', for C99 and C++.
71323
71324 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71325
71326         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71327         Don't assume that exit status -1 is valid.
71328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71329         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71330         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71331         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71332         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71333         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71334         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71335         functions can be used without declaring them, or that you can
71336         exit with status -1.
71337         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71338
71339 2006-04-24  Karl Berry  <karl@gnu.org>
71340
71341         * config/srclist.txt (longdouble.m4): sync lost.
71342
71343 2006-04-24  Eric Blake  <ebb9@byu.net>
71344
71345         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71346
71347 2006-04-24  Bruno Haible  <bruno@clisp.org>
71348
71349         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71350         poll() implementation in AIX.
71351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71352
71353 2006-04-24  Bruno Haible  <bruno@clisp.org>
71354
71355         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71356         assigned exactly once.
71357
71358 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71359             Bruno Haible  <bruno@clisp.org>
71360
71361         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71362         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71363         for AM_CPPFLAGS.
71364
71365 2006-04-23  Bruno Haible  <bruno@clisp.org>
71366
71367         * modules/copy-file: Depend on unistd.
71368         * modules/execute: Likewise.
71369         * modules/fatal-signal: Likewise.
71370         * modules/findprog: Likewise.
71371         * modules/mkdtemp : Likewise.
71372         * modules/pipe: Likewise.
71373         * modules/wait-process: Likewise.
71374
71375 2006-04-23  Bruno Haible  <bruno@clisp.org>
71376
71377         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71378         condition was already detected.
71379         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71380
71381 2006-04-23  Bruno Haible  <bruno@clisp.org>
71382
71383         * lib/copy-file.c: Include <unistd.h> unconditionally.
71384         * lib/execute.c: Likewise.
71385         * lib/fatal-signal.c: Likewise.
71386         * lib/findprog.c: Likewise.
71387         * lib/mkdtemp.c: Likewise.
71388         * lib/pipe.h: Likewise.
71389         * lib/pipe.c: Likewise.
71390         * lib/wait-process.h: Likewise.
71391
71392 2006-04-23  Bruno Haible  <bruno@clisp.org>
71393
71394         * gnulib-tool (func_usage): Fix --import description. Document
71395         --update.
71396         (func_import): Create temporary file in a temporary directory, if
71397         --dry-run is specified. Silence errors from 'grep' when there are no
71398         m4 files in $m4dir.
71399         (func_create_testdir): Silence errors from 'grep' when there are no
71400         m4 files in $m4dir.
71401         Reported by Karl Berry <karl@freefriends.org>.
71402
71403 2006-04-20  Bruno Haible  <bruno@clisp.org>
71404
71405         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71406         one argument, so that the code will be portable to Autoconf 2.60.
71407         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71408         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71409         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71410
71411 2006-04-19  Derek Price  <derek@ximbiot.com>
71412             Eric Blake  <ebb9@byu.net>
71413
71414         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71415         rather than "/full/path.h".  Update comment to match.  Shorten &
71416         generalize m4_translit call via AS_TR_CPP.
71417
71418 2006-04-19  Derek Price  <derek@ximbiot.com>
71419             Eric Blake  <ebb9@byu.net>
71420
71421         * lib/inttypes.h: Correct grammar in comment.
71422
71423 2006-04-18  Derek Price  <derek@ximbiot.com>
71424             Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * modules/inttypes: New file.
71427         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71428
71429 2006-04-18  Derek Price  <derek@ximbiot.com>
71430             Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71433         New files.
71434
71435 2006-04-18  Derek Price  <derek@ximbiot.com>
71436             Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * lib/inttypes.h: New file.
71439         * lib/strtoimax.c: Assume <inttypes.h>.
71440
71441 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71444         isn't mounted.  Problem reported by Kir Kolyshkin.
71445
71446 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71449         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71450         Derek R. Price.
71451         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71452         implementation.
71453
71454 2006-04-12  Eric Blake  <ebb9@byu.net>
71455
71456         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71457         is now done automatically by the corresponding Autoconf macro.
71458
71459 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71462         time_r.h.
71463
71464 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         Merge regex changes from libc, removing some of our
71467         POSIX-conformance changes that were rejected and redoing them in a
71468         less-intrusive way.
71469
71470         * lib/regcomp.c (re_compile_internal, init_dfa):
71471         Length arg is now size_t, not Idx.  All uses changed.
71472         (peek_token): Forward decl now says internal_function.
71473         (__re_error_msgid, __re_error_msgid_idx):
71474         Now static rather than extern with attribute_hidden.
71475         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71476         For some reason libc prefers K&R style defns for external functions.
71477         (regerror) [!defined _LIBC]: Likewise.
71478         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71479         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71480         (build_range_exp, build_collating_symbol):
71481         Use K&R-style defn.
71482         (re_compile_fastmap): Use '\0' to memset, not 0.
71483         (utf8_sb_map): Make the calculations more obvious.
71484         (init_dfa, parse_bracket_exp, build_charclass_op):
71485         Call calloc and cast result, as glibc does.
71486         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71487         (build_range_exp, build_collating_symbol):
71488         Now internal functions.
71489
71490         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71491
71492         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71493         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71494         Don't depend on VMS; depend on __VMS instead, for POSIX
71495         namespace cleanness.
71496         (regoff_t): Define to ssize_t, not long int.
71497
71498         Remove the REG_ macros named below.  Instead, make the old names
71499         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71500         __USE_GNU_REGEX.
71501         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71502         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71503         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71504         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71505         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71506         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71507         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71508         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71509         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71510         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71511         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71512         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71513         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71514         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71515         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71516         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71517         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71518         (REG_NREGS):
71519         Remove.  All uses replaced by the old RE_* names.
71520         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71521         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71522         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71523         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71524         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71525         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71526         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71527         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71528         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71529         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71530         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71531         Don't bother having these macros be independent of each others'
71532         values, since they no longer exist in the POSIX name space.
71533
71534         Rename the following member names back to their old names,
71535         unless !__USE_GNU_REGEX.  All uses changed back.
71536         (buffer): Renamed from re_buffer.
71537         (allocated): Renamed from re_allocated.
71538         (used): Renamed from re_used.
71539         (syntax): Renamed from re_syntax.
71540         (fastmap): Renamed from re_fastmap.
71541         (translate): Renamed from re_translate.
71542         (can_be_null): Renamed from re_can_be_null.
71543         (regs_allocated): Renamed from re_regs_allocated.
71544         (fastmap_accurate): Renamed from re_fastmap_accurate.
71545         (no_sub): Renamed from re_no_sub.
71546         (not_bol): Renamed from re_not_bol.
71547         (not_eol): Renamed from re_not_eol.
71548         (newline_anchor): Renamed from re_newline_anchor.
71549         (num_regs): Renamed from rm_num_regs.
71550         (start): Renamed from rm_start.
71551         (end): Renamed from rm_end.
71552
71553         (free_state): Move up a bit.
71554
71555         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71556         #define to be empty.
71557         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71558         when that is what is intended.
71559         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71560         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71561         (MAX): New macro.
71562         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71563         All uses changed back to re_malloc, etc.  It's now the caller's
71564         responsibility to check for overflow; all callers changed.
71565         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71566         (re_x2nrealloc): Remove.
71567         (free_state): Remove decl.
71568
71569         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71570         (re_set_registers, re_exec):
71571         Use K&R-style defn.
71572
71573         2006-01-31  Roland McGrath  <roland@redhat.com>
71574
71575         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71576         Reported by Mike Frysinger <vapier@gentoo.org>.
71577
71578         2006-01-15  Andreas Jaeger  <aj@suse.de>
71579
71580         [BZ #1950]
71581         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71582         build_wcs_upper_buffer change.
71583         (build_wcs_upper_buffer): Change return type.
71584
71585         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71586
71587         * lib/regex_internal.h: Include <stdint.h> if available.
71588
71589         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71590
71591         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71592
71593         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71594
71595         * lib/regcomp.c: Adjust for changed secondary hash function.
71596
71597         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71598
71599         * lib/regex.h: Pretty printing.
71600         Clean up namespace a bit.
71601
71602         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71603
71604         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71605         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71606
71607         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71608                     Ulrich Drepper  <drepper@redhat.com>
71609
71610         [BZ #1302]
71611         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71612         changed.
71613         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71614
71615         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71616
71617         [BZ #281]
71618         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71619         * lib/regcomp.c: Remove unnecessary uses of
71620         unsigned RE_TRANSLATE_TYPE.
71621         * lib/regex_internal.h: Likewise.
71622         * lib/regex_internal.c: Likewise.
71623         * lib/regexec.c: Likewise.
71624         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71625
71626         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71627
71628         * lib/regexec.c (find_recover_state): Remove unnecessary
71629         initialization.
71630         (transit_state_bkref): Make DFA a const pointer.
71631         (get_subexp): Likewise.
71632         (check_arrival): Likewise.
71633         (update_cur_sifted_state): Likewise.
71634         (re_search_internal): Likewise.
71635         (prune_impossible_nodes): Likewise.
71636         (acquire_init_state_context): Likewise.
71637         (proceed_next_node): Likewise.
71638         (set_regs): Likewise.
71639         (free_fail_stack_return): Likewise.
71640         (check_arrival_expand_ecl): Mark DFA parameter as const.
71641         (check_arrival_expand_ecl_sub): Likewise.
71642         (check_subexp_limits): Likewise.
71643         (sub_epsilon_src_nodes):  Likewise.
71644         (add_epsilon_src_nodes):  Likewise.
71645         (merge_state_array): Likewise.
71646         (update_regs): Likewise.
71647         (build_trtable): Likewise.
71648         (sift_states_backward): Mark MCTX parameter as const.
71649         (build_sifted_states): Likewise.
71650         (update_cur_sifted_state): Likewise.
71651         (sift_states_mkref): Likewise.
71652         (check_arrival_expand_ecl): Mark eclosure as const.
71653         (check_dst_limits_calc_pos_1): Likewise.
71654         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71655         pointer.
71656
71657         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71658
71659         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71660         (transit_state_sb): Likewise.
71661         (transit_state_mb): Likewise.
71662         (sift_states_iter_mb): Likewise.
71663         (check_arrival_add_next_nodes): Likewise.
71664         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71665         [_LIBC] (re_search_2_stub): Use mempcpy.
71666
71667         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71668         mbrtowc for very simple UTF-8 case.
71669
71670         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71671         a pointer-to-const.
71672         (re_acquire_state_context): Likewise.
71673         * lib/regex_internal.h: Adjust prototypes.
71674
71675         * lib/regex.c: Prevent using C++ compilers.
71676
71677         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71678         (re_acquire_state_context): Likewise.
71679
71680 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         * modules/regex (Depends-on): Add ssize_t.
71683
71684 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71687         translation table.
71688
71689 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71692
71693 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71694             Bruno Haible  <bruno@clisp.org>
71695
71696         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71697         <sys/types.h> and <inttypes.h>.
71698
71699 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71700
71701         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71702         `__error_t_defined', so argp.h will not typedef the former.
71703
71704 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71707         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71708         glibc names.  Even if glibc is changed to conform to POSIX, the
71709         traditional names will be available anyway, since regex depends on
71710         the extensions module.  Also, fix a longstanding typo in the
71711         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71712         reported by Emanuele Giaquinta.  Also, change sense of cached
71713         variable, so that the message makes sense.
71714
71715 2006-03-24  Simon Josefsson  <jas@extundo.com>
71716
71717         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71718         including some doc fixes.
71719         (base64_encode_alloc): Fix +1 bug on allocation failures.
71720
71721 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71722
71723         * lib/base64.c (base64_encode): Do not read past end of array with
71724         unsanitized input on systems with CHAR_BIT > 8.
71725
71726 2006-03-24  Eric Blake  <ebb9@byu.net>
71727
71728         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71729
71730 2006-03-22  Karl Berry  <karl@gnu.org>
71731
71732         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71733         * config/srclistvars.sh (COREUTILS): new var.
71734
71735 2006-03-17  Jim Meyering  <jim@meyering.net>
71736
71737         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71738         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71739
71740 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71741
71742         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71743         no longer needs it.  Instead, check that regoff_t is as least
71744         as wide as ptrdiff_t.
71745
71746         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71747         so that our regex.h stays compatible with the installed regex.
71748         This is helpful for installers who configure --without-included-regex.
71749         Problem reported by Emanuele Giaquinta.
71750
71751 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71752
71753         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71754         Typedef to long int, not to off_, as POSIX will likely change
71755         in that direction.
71756
71757 2006-03-15  Eric Blake  <ebb9@byu.net>
71758
71759         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71760
71761 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71762
71763         * lib/argp-help.c (validate_uparams): Fix typo
71764         * lib/argp-parse.c (argp_default_options): Consistently begin help
71765         messages with a lowercase letter.
71766
71767 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71770         overrun buffers and shouldn't be used (much as gets shouldn't be
71771         used).
71772         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71773
71774 2006-03-08  Simon Josefsson  <jas@extundo.com>
71775
71776         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71777         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71778
71779 2006-03-08  Simon Josefsson  <jas@extundo.com>
71780
71781         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71782         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71783
71784 2006-03-08  Simon Josefsson  <jas@extundo.com>
71785
71786         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71787         signal that configure disabled the device.
71788
71789 2006-03-08  Simon Josefsson  <jas@extundo.com>
71790
71791         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71792         languages.
71793
71794 2006-03-07  Simon Josefsson  <jas@extundo.com>
71795
71796         * modules/getopt (Depends-on): Add unistd.
71797
71798         * modules/unistd: New file.
71799
71800 2006-03-07  Simon Josefsson  <jas@extundo.com>
71801
71802         * modules/gc-random: New file.
71803
71804 2006-03-07  Simon Josefsson  <jas@extundo.com>
71805
71806         * m4/unistd_h.m4: New file.
71807
71808 2006-03-07  Simon Josefsson  <jas@extundo.com>
71809
71810         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71811         test to be side-effect free by storing the result in the cache
71812         variable gl_cv_lib_readline, and moving the assignment of
71813         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71814         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71815
71816 2006-03-07  Simon Josefsson  <jas@extundo.com>
71817
71818         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71819         error on missing devices (the functions will return an error).
71820
71821         * m4/gc.m4: Move random stuff to gc-random.m4
71822
71823 2006-03-07  Simon Josefsson  <jas@extundo.com>
71824
71825         * lib/unistd_.h: New file.
71826
71827 2006-03-07  Simon Josefsson  <jas@extundo.com>
71828
71829         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71830
71831 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71834         Problem reported by Juan Manuel Guerrero.
71835
71836 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71837
71838         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71839         the unistd module.
71840         * lib/getlogin_r.c: Likewise.
71841         * lib/getlogin_r.h: Likewise.
71842         * lib/glob.c: Likewise.
71843         * lib/pagealign_alloc.c: Likewise.
71844         * lib/unistd_.h: Remove; no longer needed.
71845
71846 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71849         Add unistd.
71850         * modules/c-stack (Depends-on): Add unistd.
71851         * modules/getlogin_r: Likewise.
71852         * modules/glob: Likewise.
71853         * modules/pagealign_alloc: Likewise.
71854         * modules/unistd (Files): Remove lib/unistd_.h.
71855         (EXTRA_DIST): Remove.
71856         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71857         need unistd_.h.
71858         (MOSTLYCLEANFILES): Remove unistd.h-t.
71859
71860 2006-03-03  Simon Josefsson  <jas@extundo.com>
71861
71862         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71863
71864 2006-03-03  Simon Josefsson  <jas@extundo.com>
71865
71866         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71867         libidn and bison.
71868
71869 2006-03-03  Simon Josefsson  <jas@extundo.com>
71870
71871         * build-aux/maint.mk: Add indent target.
71872
71873 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71874
71875         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71876         our replacement poll.h in any case, to avoid a differing
71877         declaration from a system header.  Seen on AIX.
71878
71879 2006-03-01  Simon Josefsson  <jas@extundo.com>
71880
71881         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71882         <kasal@ucw.cz>.
71883
71884 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * modules/gettime (Depends-on): Add extensions module.
71887         * modules/nanosleep (Depends-on): Likewise.
71888         * modules/settime (Depends-on): Likewise.
71889
71890 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71893         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71894         pedantically.
71895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71896         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71897
71898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71899         not "==".  Reported by Ralf Wildenhues.
71900
71901 2006-03-01  Karl Berry  <karl@gnu.org>
71902
71903         * doc/Copyright/request-*: new files, synced from gnuorg.
71904
71905 2006-03-01  Karl Berry  <karl@gnu.org>
71906
71907         * config/srclist.txt (Copyright/*): new entries.
71908
71909 2006-02-28  Simon Josefsson  <jas@extundo.com>
71910
71911         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71912
71913 2006-02-27  Simon Josefsson  <jas@extundo.com>
71914
71915         * lib/base64.h: Indent #define's.  From Jim Meyering
71916         <jim@meyering.net>.
71917
71918 2006-02-27  Jim Meyering  <jim@meyering.net>
71919
71920         Revert the change of 2006-02-24, so these files can continue
71921         to be sync'd from gettext.
71922         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71923         of `config.h'.
71924
71925 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * modules/intprops: New file.
71928         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71929         Add intprops.
71930         * modules/getloadavg (Files): Remove lib/intprops.h.
71931         (Depends-on): Add intprops.
71932         * modules/human: Likewise.
71933         * modules/inttostr: Likewise.
71934         * modules/openat: Likewise.
71935         * modules/sig2str: Likewise.
71936         * modules/userspec: Likewise.
71937         * modules/utimecmp: Likewise.
71938         * modules/xnanosleep: Likewise.
71939         * modules/xstrtol: Likewise.
71940
71941 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71942
71943         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71944         * modules/lock-tests (TESTS): Use $(EXEEXT).
71945         * modules/tls-tests: Likewise.
71946         * modules/argp-tests: Likewise.
71947         (check_PROGRAMS): New var, replacing...
71948         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71949
71950 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71951
71952         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71953         `config.h'.
71954
71955 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71956
71957         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71958
71959 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71960
71961         Sync from coreutils.
71962         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71963         gl_CHDIR_SAFER.
71964
71965 2006-02-22  Jim Meyering  <jim@meyering.net>
71966
71967         Sync from coreutils.
71968         * m4/chdir-safer.m4: New file.
71969
71970 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71971
71972         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71973         AT_FDCWD exceeds INT_MAX.
71974         * lib/openat.h (AT_FDCWD): Likewise.
71975
71976 2006-02-17  Eric Blake  <address@hidden>
71977
71978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71979
71980 2006-02-16  Simon Josefsson  <jas@extundo.com>
71981
71982         * modules/getaddrinfo (Depends-on): Add sys_socket.
71983
71984 2006-02-15  Simon Josefsson  <jas@extundo.com>
71985
71986         * build-aux/maint.mk: Add dsyntax-check rule.
71987
71988 2006-02-15  Eric Blake  <ebb9@byu.net>
71989
71990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71991         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71992         'present but cannot compile' warnings on cygwin.
71993         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71994         use ws2tcpip.h if sys/socket.h works.
71995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71996         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71997
71998 2006-02-14  Simon Josefsson  <jas@extundo.com>
71999
72000         * modules/maintainer-makefile (Files): Rename.
72001
72002         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72003         and (the local) Makefile.cfg to maint-cfg.mk.
72004
72005         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72006         to the latter.
72007
72008         * modules/maintainer-makefile: New module.
72009
72010         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72011         severaly stripped to make it possible to build it up from scratch
72012         with reliable tests.
72013
72014         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72015         fixes to permit overriding the default actions when configure and
72016         makefile are not available.
72017
72018 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         Sync from coreutils.
72021         * modules/lstat (Depends-on): Don't depend on xalloc.
72022         (License): Change from GPL to LGPL, since this is now simply a
72023         replacement for a libc function.
72024
72025 2006-02-14  Jim Meyering  <jim@meyering.net>
72026
72027         Sync from coreutils.
72028
72029         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72030         failure on deficient systems, and simplify gnulib lgpl dependencies.
72031         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72032         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72033
72034         * lib/xalloc-die.c: Remove unused definition of N_.
72035
72036 2006-02-14  Jim Meyering  <jim@meyering.net>
72037
72038         Sync from coreutils.
72039         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72040         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72041         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72042         double-quote uses of that variable, to accommodate the rare case in
72043         which getmntent is available in none of the libraries checked.  This
72044         happens at least on FreeBSD 5.0.
72045
72046 2006-02-13  Simon Josefsson  <jas@extundo.com>
72047
72048         * gnulib-tool (Usage): Fix --import, from
72049         karl@freefriends.org (Karl Berry).
72050
72051 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72052
72053         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72054
72055 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72056
72057         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72058         "autoupdate" on 2005-12-12.
72059
72060 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         * modules/closeout (Depends-on): Remove atexit.
72063
72064 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72067         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72068
72069 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72072         __EXTENSIONS__ if this causes compilation to fail.  Problem
72073         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72074         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72075
72076 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72079         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72080         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72081         All uses changed.
72082
72083 2006-01-26  Simon Josefsson  <jas@extundo.com>
72084
72085         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72086         prototype is visible on mingw32.
72087
72088         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72089         for mingw32.
72090
72091         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72092         mingw32).
72093
72094 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72095
72096         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72097         attempt to open for write; this always fails, at least on POSIX
72098         hosts.  This reinstates the 2006-01-09 change, which was
72099         inadvertently removed.
72100
72101 2006-01-26  Bruno Haible  <bruno@clisp.org>
72102
72103         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72104         Reported by Paul Eggert.
72105
72106 2006-01-26  Bruno Haible  <bruno@clisp.org>
72107             Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * lib/stdbool_.h (_Bool)
72110         [(! (defined __cplusplus || defined __BEOS__)
72111           && !defined __GNUC__
72112           && !(defined __HP_cc || defined __xlc__
72113                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72114                || defined __sgi))]:
72115         #define to signed char in these cases too; this simplifies
72116         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72117         etc., separately) and makes it more conservative.
72118
72119 2006-01-25  Simon Josefsson  <jas@extundo.com>
72120
72121         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72122         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72123         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72124
72125 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72126
72127         * lib/argp-namefrob.h: Bugfix. Remove stray #
72128
72129 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72130
72131         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72132         so that we test the test.
72133         Check for yet another HP-UX cc bug involving *bool |= bool.
72134
72135 2006-01-25  Karl Berry  <karl@gnu.org>
72136
72137         * config/srclist.txt (vasnprintf.c): sync lost.
72138
72139 2006-01-25  Jim Meyering  <jim@meyering.net>
72140
72141         Sync from the stable (b5) branch of coreutils:
72142
72143         * lib/fts.c (fts_children): Don't let close() clobber errno from
72144         failed fchdir().
72145
72146         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72147         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72148         a dangling symlink.  That can also happen at least for ELOOP.
72149         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72150         FYI, this bug predates the inclusion of fts.c in coreutils.
72151
72152         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72153         in their own block, so pre-c99 compilers don't object.
72154
72155         Avoid the double-free (first in fts_read, second in fts_close) that
72156         would occur when an `active' directory is made inaccessible (e.g.,
72157         via chmod a-x) during a traversal.
72158         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72159         before returning.  Reproduce this failure by
72160         mkdir -p a/b; cd a; chmod a-x . b
72161         Reported by Stavros Passas.
72162
72163 2006-01-25  Jim Meyering  <jim@meyering.net>
72164
72165         * lib/fileblocks.c: Remove more useless parentheses.
72166         * lib/readutmp.h: Likewise.
72167
72168 2006-01-25  Bruno Haible  <bruno@clisp.org>
72169
72170         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72171         warnings.
72172         Reported by Paul Eggert.
72173
72174 2006-01-25  Bruno Haible  <bruno@clisp.org>
72175
72176         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72177         rid of a trap command. For Solaris sh.
72178         Reported by Mark D. Baushke <mdb@gnu.org>.
72179
72180 2006-01-24  Simon Josefsson  <jas@extundo.com>
72181
72182         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72183         Bruno.
72184
72185 2006-01-24  Karl Berry  <karl@gnu.org>
72186
72187         * config/srclist.txt (argp-namefrob.h): sync lost.
72188
72189 2006-01-24  Jim Meyering  <jim@meyering.net>
72190
72191         * modules/openat (Files): Add lib/intprops.h.
72192         From Mark D. Baushke.
72193
72194 2006-01-24  Jim Meyering  <jim@meyering.net>
72195
72196         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72197         Reported by Mark D. Baushke.
72198
72199 2006-01-24  Jim Meyering  <jim@meyering.net>
72200
72201         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72202
72203 2006-01-24  Bruno Haible  <bruno@clisp.org>
72204
72205         * modules/strnlen (Maintainer): Change from glibc to all.
72206
72207 2006-01-24  Bruno Haible  <bruno@clisp.org>
72208
72209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72210         Patch by Paul Eggert.
72211
72212 2006-01-24  Bruno Haible  <bruno@clisp.org>
72213
72214         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72215         already has it.
72216         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72217         2005-11-26.
72218
72219         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72220         'signed char' to avoid problems with the built-in _Bool type.
72221         Reported by Paul Eggert on 2005-11-26.
72222
72223 2006-01-24  Bruno Haible  <bruno@clisp.org>
72224
72225         * gnulib-tool (func_import): Avoid constructing complicated sed
72226         expressions inside backquote.
72227         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72228
72229 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72230
72231         These changes imported from libc.
72232         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72233         test and two separate function calls.
72234         * lib/strndup.c (__strndup): Add libc_hidden_def.
72235
72236 2006-01-23  Simon Josefsson  <jas@extundo.com>
72237
72238         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72239         Remove the test_*_SOURCES variable: automake infers it by default.
72240         * modules/tls-tests: Likewise.
72241
72242 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         Work around porting bugs reported by Dieter in
72245         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72246         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72247         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72248         Include "getopt.h" first, to check interface.
72249         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72250         !HAVE_DECL_GETENV.
72251         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72252         (__strndup): Revert to K&R-style function dfns, the glibc style.
72253         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72254         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72255         Include strnlen.h first, to get prototype properly.
72256         (strnlen): Renamed from __strnlen.
72257         Remove weak alias.
72258
72259 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72260
72261         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72262
72263 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72264
72265         * config/srclist.txt: Adjust to reflect glibc reorganization.
72266         This affects only comments.
72267
72268 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72269
72270          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72271          Reported by Bruce Korb <bkorb@gnu.org>.
72272
72273 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72276         to pacify gcc -Wswitch-default.
72277
72278 2006-01-22  Bruno Haible  <bruno@clisp.org>
72279
72280         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72281         temporary buffer for sprintf, take into account the precision also
72282         for 'd', 'i', 'u', 'o', 'x', 'X'.
72283
72284 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72285
72286         * modules/argp-tests: New module
72287         * tests/test-argp.c: New file
72288         * tests/test-argp-2.sh: New file
72289
72290 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72291
72292         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72293         (__argp_base_name): Removed
72294         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72295         typo.
72296         (__argp_base_name): Provide macro definition or extern declaration
72297         depending on the configuration
72298
72299 2006-01-20  Simon Josefsson  <jas@extundo.com>
72300
72301         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72302
72303 2006-01-20  Simon Josefsson  <jas@extundo.com>
72304
72305         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72306
72307 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72310         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72311         Suggested by Bruno Haible.
72312
72313 2006-01-20  Karl Berry  <karl@gnu.org>
72314
72315         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72316         until changes propagate, I guess.
72317
72318 2006-01-19  Simon Josefsson  <jas@extundo.com>
72319
72320         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72321
72322 2006-01-19  Simon Josefsson  <jas@extundo.com>
72323
72324         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72325
72326 2006-01-19  Simon Josefsson  <jas@extundo.com>
72327
72328         * gnulib-tool: Set check_PROGRAMS.
72329
72330         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72331         modules/des-tests, modules/gc-arcfour-tests,
72332         modules/gc-arctwo-tests, modules/gc-des-tests,
72333         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72334         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72335         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72336         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72337         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72338         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72339         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72340         test_*_SOURCES.
72341
72342 2006-01-18  Simon Josefsson  <jas@extundo.com>
72343
72344         * modules/socklen (Depends-on): Depend on sys_socket.
72345
72346 2006-01-18  Simon Josefsson  <jas@extundo.com>
72347
72348         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72349         modules/des-tests, modules/gc-arcfour-tests,
72350         modules/gc-arctwo-tests, modules/gc-des-tests,
72351         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72352         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72353         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72354         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72355         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72356         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72357         $(EXEEXT) to automake TESTS variable, for mingw32.
72358
72359 2006-01-17  Simon Josefsson  <jas@extundo.com>
72360
72361         * modules/socklen (Include): Need sys/socket.h.
72362
72363 2006-01-17  Bruno Haible  <bruno@clisp.org>
72364
72365         * modules/ssize_t (Include): Add <sys/types.h>.
72366
72367 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72370         it's not portable and it doesn't work with cross-compiles.
72371         Problem reported by Bruno Haible.  Fix missing-$ typo in
72372         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72373         -zignore from being used with Sun's C compiler.
72374
72375 2006-01-12  Simon Josefsson  <jas@extundo.com>
72376
72377         * lib/base64.c: Fix warning, reported by Bruno Haible
72378         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72379
72380 2006-01-12  Bruno Haible  <bruno@clisp.org>
72381
72382         * modules/ldd: New file.
72383         * build-aux/ldd.sh.in: New file.
72384         * MODULES.html.sh (Support for building libraries and executables): Add
72385         ldd.
72386
72387 2006-01-12  Bruno Haible  <bruno@clisp.org>
72388
72389         * m4/ldd.m4: New file.
72390
72391 2006-01-12  Bruno Haible  <bruno@clisp.org>
72392
72393         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72394         endless loop while replacing $auxdir with build-aux.
72395
72396 2006-01-11  Simon Josefsson  <jas@extundo.com>
72397
72398         * lib/stdint_.h (SIZE_MAX): Add missing (.
72399
72400 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72401
72402         Sync from coreutils.
72403         * lib/md5.c: Fix commentary typos.
72404         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72405         * lib/md5.h (__attribute__): Remove; unused.
72406         * lib/sha1.c: Fix commentary to match md5 better.
72407         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72408         so that we don't need to worry about alignment.  All uses changed.
72409         This merges the 2005-10-28 md5 change into sha1.
72410
72411 2006-01-11  Jim Meyering  <jim@meyering.net>
72412
72413         Sync from coreutils.
72414         * lib/md5.c (OP): Fix spacing.
72415
72416 2006-01-11  Bruno Haible  <bruno@clisp.org>
72417
72418         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72419         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72420         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72421
72422 2006-01-11  Bruno Haible  <bruno@clisp.org>
72423
72424         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72425         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72426         the "early" section as well.
72427
72428 2006-01-11  Bruno Haible  <bruno@clisp.org>
72429
72430         Avoid "ar: no archive members specified" error on MacOS X.
72431         * gnulib-tool (func_modules_add_dummy): New function.
72432         (func_import, func_create_testdir): Invoke it.
72433
72434 2006-01-11  Bruno Haible  <bruno@clisp.org>
72435
72436         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72437         with $auxdir in AC_CONFIG_FILES statements.
72438
72439 2006-01-11  Bruno Haible  <bruno@clisp.org>
72440
72441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72442         Initialize also noinst_HEADERS to empty.
72443
72444 2006-01-11  Bruno Haible  <bruno@clisp.org>
72445
72446         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72447         variables.
72448         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72449         autoreconf.
72450
72451 2006-01-11  Bruno Haible  <bruno@clisp.org>
72452
72453         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72454         overridable by the user.
72455         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72456
72457 2006-01-10  Simon Josefsson  <jas@extundo.com>
72458
72459         * modules/sys_socket: New file.
72460
72461 2006-01-10  Simon Josefsson  <jas@extundo.com>
72462
72463         * m4/sys_socket_h.m4: New file.
72464
72465 2006-01-10  Simon Josefsson  <jas@extundo.com>
72466
72467         * lib/socket_.h: New file.
72468
72469 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * modules/readutmp (Maintainer): Add myself.
72472
72473 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72474
72475         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72476         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72477         People who are still concerned with buggy memcmp implementations
72478         can invoke gl_FUNC_MEMCMP themselves.
72479
72480 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * lib/regex_internal.h (BITSET_WORD_BITS):
72483         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72484         preprocessor mishandles large unsigned values as if they were signed.
72485         Problem reported by Claudio Fontana in
72486         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72487
72488 2006-01-10  Jim Meyering  <jim@meyering.net>
72489
72490         Avoid the double-free (first in fts_read, second in fts_close) that
72491         would occur when an `active' directory is made inaccessible (e.g.,
72492         via chmod a-x) during a traversal.
72493         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72494         before returning.  Reproduce this failure by
72495         mkdir -p a/b; cd a; chmod a-x . b
72496         Reported by Stavros Passas.
72497
72498         Sync from coreutils.
72499         * lib/sha1.c: Tweak grammar in a comment.
72500
72501 2006-01-10  Jim Meyering  <jim@meyering.net>
72502
72503         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72504         Patch by Joerg Sonnenberger.
72505
72506 2006-01-10  Bruno Haible  <bruno@clisp.org>
72507
72508         * modules/readutmp: Depend on module free.
72509         * modules/strtok_r: Depend on module restrict.
72510
72511 2006-01-10  Bruno Haible  <bruno@clisp.org>
72512
72513         * modules/gettext (configure.ac): Add an invocation of
72514         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72515
72516 2006-01-10  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72519         Reported by Werner Lemberg <wl@gnu.org>.
72520
72521 2006-01-10  Bruno Haible  <bruno@clisp.org>
72522
72523         * lib/localcharset.c: Update from GNU gettext.
72524
72525 2006-01-10  Bruno Haible  <bruno@clisp.org>
72526
72527         * lib/argp.h (__const): Remove macro. Use const instead.
72528         * lib/argp-fmtstream.h (__const): Likewise.
72529         * lib/glob_.h (__const): Remove macro.
72530         * lib/glob-libc.h: Use const instead of __const.
72531
72532 2006-01-10  Bruno Haible  <bruno@clisp.org>
72533
72534         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72535         variable.
72536         Needed to avoid an automake error regarding the 'gettext' module.
72537
72538 2006-01-09  Simon Josefsson  <jas@extundo.com>
72539
72540         * modules/inet_ntop (Depends-on): Add restrict.
72541
72542 2006-01-09  Simon Josefsson  <jas@extundo.com>
72543
72544         * modules/gc-rijndael-tests (License): Put under LGPL.
72545
72546         * modules/gc-des-tests (License): Likewise.
72547
72548         * modules/gc-arcfour-tests (License): Likewise.
72549
72550         * modules/gc-arctwo-tests (License): Likewise.
72551
72552         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72553
72554         * modules/gc-hmac-sha1-tests (Files): Likewise.
72555
72556         * modules/gc-hmac-md5-tests (License): Likewise.
72557
72558         * modules/gc-sha1-tests (License): Likewise.
72559
72560         * modules/gc-md5-tests (License): Likewise.
72561
72562         * modules/gc-md4-tests (License): Likewise.
72563
72564         * modules/gc-md2-tests (License): Likewise.
72565
72566         * modules/gc-tests (License): Likewise.
72567
72568         * modules/des-tests (License): Likewise.
72569
72570         * modules/md4-tests (License): Likewise.
72571
72572         * modules/md2-tests (License): Likewise.
72573
72574 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         Sync from coreutils:
72577
72578         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72579         * modules/lib-ignore: New file.
72580         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72581         chdir-safer.m4, lchmod.m4.
72582         * modules/openat: Add mkdirat.c, openat-priv.h.
72583
72584 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         Sync from coreutils.
72587         * m4/lib-ignore.m4: New file.
72588         * m4/lchmod.m4: New file.
72589
72590 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72591
72592         Sync from coreutils.
72593         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72594         for write access: POSIX says that must fail.
72595         * lib/fts.c (diropen): Likewise.
72596         * lib/save-cwd.c (save_cwd): Likewise.
72597         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72598         well, for minor improvements on hosts that lack O_DIRECTORY.
72599         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72600         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72601         Fall back on chown if open failed with EACCES.
72602
72603         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72604         Report an error at compile-time if only a 1-second nominal clock
72605         resolution is found.
72606
72607         * lib/lchmod.h: New file.
72608         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72609         (make_dir_parents): Use lchown rather than chown, and
72610         lchmod rather than chmod.
72611
72612         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72613         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72614         "proc" reported by n0dalus.
72615
72616         * lib/mountlist.c: Include <limits.h>.
72617         (dev_from_mount_options)
72618         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72619         New function.  It no longer assumes "dev=" has the System V meaning
72620         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72621         (read_file_system_list)
72622         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72623         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72624         dev= in that case.
72625
72626         * lib/posixtm.h (PDS_PRE_2000): New macro.
72627         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72628         allow_century.  All usages changed.  Reject dates outside the range
72629         1969-1999 if PDS_PRE_2000 is used.
72630
72631 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72632
72633         Sync from coreutils.
72634         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72635         (Time of day items): Mention the possibility of leap seconds.
72636         Problem reported by Dr. David Alan Gilbert.
72637
72638 2006-01-09  Jim Meyering  <jim@meyering.net>
72639
72640         Sync from coreutils.
72641
72642         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72643
72644         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72645
72646         * lib/modechange.c (mode_compile): Reject an invalid mode string
72647         that starts with an octal digit.  From Andreas Gruenbacher.
72648
72649         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72650         and dup to open_safer and dup_safer, respectively.
72651         (openat_permissive): Fix typo in comment.
72652
72653         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72654         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72655         (_): Remove; no longer needed.
72656         (openat): Renamed from rpl_openat; no need for rpl_openat
72657         since openat.h renames openat for us.
72658         Replace most of the body with a call to openat_permissive,
72659         to avoid duplicate code.
72660         Port to (probably hypothetical) environments were mode_t is
72661         wider than int.
72662         (openat_permissive): Require mode arg, so that we can check
72663         types better.  Put it just after flags.  Change cwd failure
72664         indicator from pointer-to-bool to pointer-to-errno-value.
72665         All callers changed.
72666         Invoke openat_save_fail and/or openat_restore_fail if
72667         cwd_errno is null, so that openat can call us.
72668         (openat_permissive, fdopendir, fstatat, unlinkat):
72669         Simplify errno handling to avoid some duplicate code,
72670         as it's OK to set errno on success.
72671         * lib/openat.h: Revamp code so that function macros depend on
72672         __OPENAT_PREFIX only, not also on AT_FDCWD.
72673         (openat_ro): Remove.  Caller changed to use openat_permissive.
72674         (openat_permissive): Now a macro, if not a function.
72675         (openat_restore_fail, openat_save_fail): Now always functions,
72676         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72677
72678         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72679         and openat.c.
72680         * lib/mkdirat.c: Include openat-priv.h.
72681         Remove definitions of macros defined therein.
72682         * lib/openat.c: Likewise.
72683
72684         * lib/mkdirat.c (mkdirat): New file and function.
72685         * lib/openat.h (mkdirat): Declare.
72686
72687         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72688
72689         * lib/openat.h (openat_permissive): Declare.
72690         (openat_ro): Define.
72691
72692         * lib/openat.c (EXPECTED_ERRNO): New macro.
72693         (openat_permissive): New function -- used in remove.c rewrite.
72694         (all functions): Set errno just before returning, only if there
72695         was an actual failure.
72696         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72697
72698         Emulate openat-family functions using Linux's procfs, if possible.
72699         Idea and some code based on Ulrich Drepper's glibc changes.
72700
72701         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72702         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72703         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72704         before falling back on save_cwd and restore_cwd.
72705         (fdopendir, fstatat, unlinkat): Likewise.
72706
72707         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72708         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72709
72710         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72711         as second argument to va_arg.  Otherwise, some versions of gcc
72712         warn that `if this code is reached, the program will abort'.
72713
72714 2006-01-09  Jim Meyering  <jim@meyering.net>
72715
72716         Sync from coreutils.
72717         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72718         Require openat-priv.h.
72719
72720 2006-01-09  Bruno Haible  <bruno@clisp.org>
72721
72722         * modules/strnlen (Include): Use strnlen.h.
72723
72724 2006-01-09  Bruno Haible  <bruno@clisp.org>
72725
72726         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72727
72728 2006-01-09  Bruno Haible  <bruno@clisp.org>
72729
72730         * lib/sysexit_.h (EX_OK): New macro.
72731         Suggested by Martin Lambers <marlam@marlam.de>.
72732
72733 2006-01-09  Bruno Haible  <bruno@clisp.org>
72734
72735         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72736         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72737
72738 2006-01-09  Bruno Haible  <bruno@clisp.org>
72739
72740         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72741         numbers.
72742
72743 2006-01-09  Bruno Haible  <bruno@clisp.org>
72744
72745         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72746         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72747         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72748         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72749
72750 2006-01-09  Bruno Haible  <bruno@clisp.org>
72751
72752         * build-aux/javacomp.sh.in: New file, moved from lib/.
72753         * modules/javacomp-script (Files): Update.
72754         (configure.ac): Add AC_CONFIG_FILES invocation.
72755         (EXTRA_DIST): Remove variable.
72756
72757         * build-aux/javaexec.sh.in: New file, moved from lib/.
72758         * modules/javaexec (Files): Update.
72759         (configure.ac): Add AC_CONFIG_FILES invocation.
72760         (EXTRA_DIST): Remove javaexec.sh.in.
72761
72762         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72763         * modules/csharpcomp-script (Files): Update.
72764         (configure.ac): Add AC_CONFIG_FILES invocation.
72765         (EXTRA_DIST): Remove variable.
72766
72767         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72768         * modules/csharpexec (Files): Update.
72769         (configure.ac): Add AC_CONFIG_FILES invocation.
72770         (EXTRA_DIST): Remove csharpexec.sh.in.
72771
72772 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72773
72774         Sync from coreutils.
72775
72776         Add POSIX ACL support
72777         * lib/acl.h (copy_acl, set_acl): Add declarations.
72778         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72779         systems other than Linux.
72780         (chmod_or_fchmod): New function: use fchmod when possible,
72781         and chmod otherwise.
72782         (file_has_acl): Add a POSIX ACL implementation, with a
72783         Linux-specific subcase.
72784         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72785         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72786         acls are unsupported.
72787         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72788         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72789         are unsupported.
72790
72791 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72792
72793         Sync from coreutils.
72794         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72795
72796 2006-01-07  Bruno Haible  <bruno@clisp.org>
72797
72798         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72799         gl_EARLY.
72800
72801 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72804         Problem reported for Mingw by Mark Junker.
72805
72806 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         * README: Gnulib normally doesn't generate a tarball.
72809
72810 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72813         long int, not int, for nanosecond counts, so that people who are
72814         used to POSIX struct timespec won't be surprised.  Reported by Jim
72815         Meyering.
72816
72817 2005-12-28  Bruno Haible  <bruno@clisp.org>
72818
72819         * build-aux/config.rpath: Update from GNU gettext.
72820
72821 2005-12-16  Jim Meyering  <jim@meyering.net>
72822
72823         * modules/fprintftime: New module.
72824         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72825
72826 2005-12-16  Jim Meyering  <jim@meyering.net>
72827
72828         * m4/fprintftime.m4: New file.
72829
72830 2005-12-16  Jim Meyering  <jim@meyering.net>
72831
72832         * lib/fprintftime.c, lib/fprintftime.h: New files.
72833
72834 2005-12-15  Simon Josefsson  <jas@extundo.com>
72835
72836         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72837         new m4/socklen.m4.
72838
72839 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72840
72841         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72842         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72843
72844 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72845
72846         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72847         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72848         struct uparams is valid. Fall back to the default values if it is
72849         not.
72850
72851 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72852
72853         * modules/argp (Files): Add argp-pin.c
72854         (Depends-on): dirname
72855         (lib_SOURCES): Add argp-pin.c
72856
72857 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72858
72859         * m4/argp.m4:  Check if program_invocation_name and
72860         program_invocation_short_name are declared and define appropriate
72861         macros if they are not.
72862
72863 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72864
72865         * lib/argp-help.c (__argp_base_name): New function
72866         (__argp_short_program_name): Rewrite using __argp_base_name
72867         * lib/argp-namefrob.h: Define program_invocation_name and
72868         program_invocation_short_name if requested
72869         (__argp_base_name): Add prototype
72870         * lib/argp-parse.c (argp_def): Use gettext wrappers
72871         (argp_default_parser): Use __argp_base_name
72872         * lib/argp-pin.c: New file. Defines program_invocation_name and
72873         program_invocation_short_name on systems that lack them.
72874
72875 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72878         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72879         porting problem reported by Georg Schwarz in
72880         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72881
72882 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72883
72884         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72885         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72886         porting problem reported by Georg Schwarz in
72887         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72888
72889 2005-12-05  Bruno Haible  <bruno@clisp.org>
72890
72891         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72892         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72893         Reported by Mark Junker <mjscod@gmx.de>.
72894
72895 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72896
72897         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72898         Use implementation from Albert Chin, with some
72899         comments/corrections by Stepan Kasal and myself.
72900
72901 2005-12-02  Bruno Haible  <bruno@clisp.org>
72902
72903         * gnulib-tool (func_import): Accept GPLed build tool modules when
72904         --lgpl is given.
72905         * modules/csharpcomp-script: New file.
72906         * modules/csharpcomp: Depend on it.
72907         * modules/javacomp-script: New file.
72908         * modules/javacomp: Depend on it.
72909         Suggested by Simon Josefsson.
72910
72911 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72914         statement, to work around an HP-UX 10.20 compiler bug reported by
72915         Peter O'Gorman.
72916
72917 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72918
72919         * modules/savedir (Depends-on): Add openat.
72920
72921 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72924         (uintmax_t) [defined uintmax_t]: Do not declare.
72925         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72926         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72927         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72928         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72929         sake of portability to weird hosts that C allows (though we don't
72930         know of any practical examples).
72931
72932         * lib/savedir.h (fdsavedir): New decl.
72933         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72934         contains most of the former guts of savedir.
72935         (savedir): Use savedirstream.
72936         Include "openat.h".
72937
72938 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72939
72940         * modules/obstack (Files): Add m4/ulonglong.m4.
72941         Problem reported by Davide Angelocola.
72942
72943 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72946         coreutils no longer futzes with rounding modes.
72947
72948 2005-11-14  Jim Meyering  <jim@meyering.net>
72949
72950         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72951         replacement of mkstemp.
72952
72953 2005-11-10  Simon Josefsson  <jas@extundo.com>
72954
72955         * lib/readline.c: Remove EOL.
72956
72957 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72958
72959         * modules/gethrxtime (Depends-on): Add gettime.
72960
72961 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72962
72963         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72964         or gettimeofday; no longer needed.
72965
72966 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72969         time business.
72970         (gethrxtime) [! (HAVE_NANOUPTIME
72971         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72972         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72973         our own approximation.
72974
72975 2005-11-08  Eric Blake  <ebb9@byu.net>
72976
72977         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72978
72979 2005-11-08  Eric Blake  <ebb9@byu.net>
72980
72981         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72982
72983 2005-11-04  Bruno Haible  <bruno@clisp.org>
72984
72985         * gnulib-tool: Implement --update mode.
72986
72987 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         Fix porting problem reported by Theodoros V. Kalamatianos.
72990         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72991         Don't assume that futimes failing means we must fail.
72992
72993 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72994
72995         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72996         variables to suggest the intended function of the PATH_MAX check.
72997
72998 2005-10-30  Kean Johnston  <jkj@sco.com>
72999
73000         Trivial changes to support SCO systems.
73001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73002         as PATH_MAX.
73003         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73004         where __ptr is null when no I/O is pending.
73005
73006 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73009         leave errno alone.  Problem reported by Dmitry V. Levin.
73010
73011 2005-10-28  Simon Josefsson  <jas@extundo.com>
73012
73013         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73014         Test more.
73015
73016         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73017
73018         * modules/md2, modules/md2-tests: New files.
73019
73020 2005-10-28  Simon Josefsson  <jas@extundo.com>
73021
73022         * m4/inet_ntop.m4: More tests.
73023
73024         * m4/gc-md2.m4, md2.m4: New file.
73025
73026 2005-10-28  Simon Josefsson  <jas@extundo.com>
73027
73028         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73029         "restrict" keywords, as per POSIX.  Protect the function
73030         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73031         Don't use K&R prototypes.  Check the sprintf return values.
73032         Re-define EAFNOSUPPORT if not present.  Indent.
73033
73034         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73035         suggested by Bruno Haible <bruno@clisp.org>.
73036
73037         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73038
73039         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73040
73041         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73042         libgcrypt).
73043
73044         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73045
73046         * lib/md2.h, lib/md2.c: New files.
73047
73048 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73049
73050         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73051         errno alone.  Problem reported by Frederic Jolliton.
73052
73053 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73054
73055         * modules/verify (License): Change from GPL to LGPL.  This is a
73056         tiny module and there are apparently near-equivalents that are
73057         under the BSD license.
73058
73059 2005-10-24  Simon Josefsson  <jas@extundo.com>
73060
73061         * modules/sha1: Relicense to LGPL.
73062
73063 2005-10-24  Simon Josefsson  <jas@extundo.com>
73064
73065         * lib/md4.h: Shrink buffer size, now that we changed the type.
73066
73067 2005-10-23  Simon Josefsson  <jas@extundo.com>
73068
73069         * gnulib-tool (func_import): Fix --tests-base.
73070
73071 2005-10-22  Simon Josefsson  <jas@extundo.com>
73072
73073         * modules/arcfour (Depends-on): Need stdint.
73074
73075 2005-10-22  Simon Josefsson  <jas@extundo.com>
73076
73077         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73078         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73079
73080 2005-10-22  Simon Josefsson  <jas@extundo.com>
73081
73082         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73083         suggested by Bruno Haible <bruno@clisp.org>.
73084
73085 2005-10-22  Simon Josefsson  <jas@extundo.com>
73086
73087         * lib/crc.h: Include stddef.h, for size_t.
73088
73089 2005-10-22  Simon Josefsson  <jas@extundo.com>
73090
73091         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73092         arcfour_context struct (simplify test vector testing in GNU
73093         Shishi).
73094
73095 2005-10-21  Simon Josefsson  <jas@extundo.com>
73096
73097         * modules/des, modules/des-tests: New files.
73098
73099         * modules/gc-des, modules/gc-des-tests: New files.
73100
73101         * tests/test-des.c, tests/test-gc-des.c: New file.
73102
73103 2005-10-21  Simon Josefsson  <jas@extundo.com>
73104
73105         * modules/arctwo, modules/arctwo-tests: New files.
73106
73107         * tests/test-arctwo.c: New file.
73108
73109         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73110
73111         * tests/test-gc-arctwo.c: New file.
73112
73113 2005-10-21  Simon Josefsson  <jas@extundo.com>
73114
73115         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73116         Bruno Haible <bruno@clisp.org>.
73117
73118         * m4/gc-des.m4: New file.
73119
73120 2005-10-21  Simon Josefsson  <jas@extundo.com>
73121
73122         * m4/arctwo.m4: New file.
73123
73124         * m4/gc-arctwo.m4: New file.
73125
73126 2005-10-21  Simon Josefsson  <jas@extundo.com>
73127
73128         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73129         block.
73130
73131 2005-10-21  Simon Josefsson  <jas@extundo.com>
73132
73133         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73134         <bruno@clisp.org>.
73135
73136         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73137
73138         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73139         Bruno Haible <bruno@clisp.org>.
73140
73141         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73142         <bruno@clisp.org>.
73143
73144 2005-10-21  Simon Josefsson  <jas@extundo.com>
73145
73146         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73147
73148 2005-10-21  Simon Josefsson  <jas@extundo.com>
73149
73150         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73151
73152 2005-10-21  Simon Josefsson  <jas@extundo.com>
73153
73154         * lib/des.h, lib/des.c: New files.
73155
73156         * lib/gc-gnulib.c: Support DES.c
73157
73158 2005-10-21  Simon Josefsson  <jas@extundo.com>
73159
73160         * lib/arctwo.h, lib/arctwo.c: New files.
73161
73162         * lib/gc-gnulib.c: Support ARCTWO.
73163
73164 2005-10-21  Simon Josefsson  <jas@extundo.com>
73165
73166         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73167         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73168
73169 2005-10-21  Simon Josefsson  <jas@extundo.com>
73170
73171         * gnulib-tool (func_import, func_create_testdir): Define automake
73172         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73173         Makefile.am snippet),
73174         suggested by Bruno Haible <bruno@clisp.org>.
73175
73176         * modules/gc (Makefile.am): Use it.
73177
73178 2005-10-21  Bruno Haible  <bruno@clisp.org>
73179
73180         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73181         patch.
73182
73183 2005-10-19  Simon Josefsson  <jas@extundo.com>
73184
73185         * tests/test-gc-rijndael.c: New file.
73186
73187         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73188
73189 2005-10-19  Simon Josefsson  <jas@extundo.com>
73190
73191         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73192         interface too.
73193
73194 2005-10-19  Simon Josefsson  <jas@extundo.com>
73195
73196         * tests/test-gc-arcfour.c: New file.
73197
73198         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73199
73200 2005-10-19  Simon Josefsson  <jas@extundo.com>
73201
73202         * modules/gc-md4, modules/gc-md4-tests: New file.
73203
73204         * tests/test-gc-md4.c: New file.
73205
73206 2005-10-19  Simon Josefsson  <jas@extundo.com>
73207
73208         * m4/gc-md4.m4: New file.
73209
73210 2005-10-19  Simon Josefsson  <jas@extundo.com>
73211
73212         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73213         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73214         <kasal@ucw.cz>.
73215
73216 2005-10-19  Simon Josefsson  <jas@extundo.com>
73217
73218         * m4/gc-arcfour.m4: New file.
73219
73220         * m4/gc-rijndael.m4: New file.
73221
73222 2005-10-19  Simon Josefsson  <jas@extundo.com>
73223
73224         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73225
73226 2005-10-19  Simon Josefsson  <jas@extundo.com>
73227
73228         * lib/gc-gnulib.c: Support ARCFOUR.
73229
73230 2005-10-19  Simon Josefsson  <jas@extundo.com>
73231
73232         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73233         support.
73234
73235         * lib/gc.h: Add ECB enum type.
73236
73237         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73238
73239 2005-10-18  Simon Josefsson  <jas@extundo.com>
73240
73241         * tests/test-md5.c: New file.
73242
73243         * modules/md5-tests: New file.
73244
73245 2005-10-18  Simon Josefsson  <jas@extundo.com>
73246
73247         * tests/test-md4.c: New file.
73248
73249         * modules/md4, modules/md4-tests: New files.
73250
73251 2005-10-18  Simon Josefsson  <jas@extundo.com>
73252
73253         * m4/md4.m4: New file.
73254
73255 2005-10-18  Simon Josefsson  <jas@extundo.com>
73256
73257         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73258
73259 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73260
73261         * gnulib-tool (func_create_testdir): Omit the second check whether
73262         BUILT_SOURCES in nonempty.
73263
73264 2005-10-17  Simon Josefsson  <jas@extundo.com>
73265
73266         * tests/test-rijndael.c: New file.
73267
73268 2005-10-17  Simon Josefsson  <jas@extundo.com>
73269
73270         * modules/sha1: Depend on stdint instead of md5.
73271
73272         * modules/md5: Depend on stdint, remove uint32_t.
73273
73274 2005-10-17  Simon Josefsson  <jas@extundo.com>
73275
73276         * modules/gc-sha1-tests: New file.
73277
73278         * tests/test-gc-sha1.c: New file.
73279
73280 2005-10-17  Simon Josefsson  <jas@extundo.com>
73281
73282         * m4/md5.m4: Remove call to uint32_t.m4.
73283
73284 2005-10-17  Simon Josefsson  <jas@extundo.com>
73285
73286         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73287
73288         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73289         md5.h.
73290
73291         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73292
73293         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73294
73295 2005-10-17  Simon Josefsson  <jas@extundo.com>
73296
73297         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73298
73299 2005-10-17  Simon Josefsson  <jas@extundo.com>
73300
73301         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73302
73303 2005-10-17  Simon Josefsson  <jas@extundo.com>
73304
73305         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73306
73307         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73308
73309 2005-10-17  Bruno Haible  <bruno@clisp.org>
73310
73311         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73312         that it can also be used in a test.
73313
73314 2005-10-16  Bruno Haible  <bruno@clisp.org>
73315
73316         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73317         TESTS_ENVIRONMENT, so that individual tests can augment it.
73318
73319         * gnulib-tool (func_create_testdir): Use an intermediate target for
73320         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73321         macros, like $(ALLOCA_H), which cannot be passed through the command
73322         line.
73323
73324 2005-10-15  Simon Josefsson  <jas@extundo.com>
73325
73326         * modules/rijndael-tests: New file.
73327
73328         * modules/rijndael: New file.
73329
73330 2005-10-15  Simon Josefsson  <jas@extundo.com>
73331
73332         * m4/rijndael.m4: New file.
73333
73334 2005-10-15  Simon Josefsson  <jas@extundo.com>
73335
73336         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73337
73338         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73339
73340 2005-10-14  Simon Josefsson  <jas@extundo.com>
73341
73342         * tests/test-arcfour.c: New file.
73343
73344         * modules/arcfour, modules/arcfour-tests: New files.
73345
73346 2005-10-14  Simon Josefsson  <jas@extundo.com>
73347
73348         * m4/arcfour.m4: New file.
73349
73350 2005-10-14  Simon Josefsson  <jas@extundo.com>
73351
73352         * lib/arcfour.h, lib/arcfour.c: New files.
73353
73354 2005-10-14  Roland McGrath  <roland@redhat.com>
73355
73356         Import from libc.  [BZ #1331]
73357         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73358         macro argument.
73359         Reported by Matej Vela <vela@debian.org>.
73360
73361 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73362
73363         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73364         include <wchar.h>; no longer needed.
73365
73366 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73367
73368         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73369
73370 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73371         and  Ulrich Drepper  <drepper@redhat.com>
73372
73373         Import from libc.
73374         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73375         instead of inline stream orientation test and two separate
73376         function calls.  Pay no attention to USE_IN_LIBIO.
73377
73378 2005-10-13  Simon Josefsson  <jas@extundo.com>
73379
73380         * modules/gc-hmac-md5-tests: New file.
73381
73382         * tests/test-gc-hmac-sha1.c: New file.
73383
73384         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73385
73386         * modules/gc-hmac-md5-tests: New file.
73387
73388         * tests/test-gc-md5.c: New file.
73389
73390         * modules/gc-md5-tests: New file.
73391
73392 2005-10-13  Simon Josefsson  <jas@extundo.com>
73393
73394         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73395         Move memory allocation outside of loop.
73396
73397 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73398
73399         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73400         intermediate directory is in a read-only file system.  Problem
73401         reported by Eric Blake.
73402
73403 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73404
73405         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73406
73407 2005-10-12  Simon Josefsson  <jas@extundo.com>
73408
73409         * tests/test-hmac-sha1.c: New file.
73410
73411         * modules/hmac-sha1-tests: New file.
73412
73413         * modules/hmac-sha1: New file.
73414
73415 2005-10-12  Simon Josefsson  <jas@extundo.com>
73416
73417         * modules/gc-sha1: New file.
73418
73419 2005-10-12  Simon Josefsson  <jas@extundo.com>
73420
73421         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73422
73423         * tests/test-gc-pbkdf2-sha1.c: New file.
73424
73425 2005-10-12  Simon Josefsson  <jas@extundo.com>
73426
73427         * modules/gc-md5, modules/gc-hmac-md5: New files.
73428
73429         * modules/gc (Files): Remove md5, memxor and hmac files.
73430
73431 2005-10-12  Simon Josefsson  <jas@extundo.com>
73432
73433         * m4/gc-pbkdf2-sha1.m4: New file.
73434
73435         * m4/gc-hmac-sha1.m4: New file.
73436
73437         * m4/gc-sha1: New file.
73438
73439         * m4/hmac-sha1.m4: New file.
73440
73441 2005-10-12  Simon Josefsson  <jas@extundo.com>
73442
73443         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73444
73445         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73446
73447 2005-10-12  Simon Josefsson  <jas@extundo.com>
73448
73449         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73450         suggested by Bruno Haible <bruno@clisp.org>.
73451
73452 2005-10-12  Simon Josefsson  <jas@extundo.com>
73453
73454         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73455
73456 2005-10-12  Simon Josefsson  <jas@extundo.com>
73457
73458         * lib/gc-pbkdf2-sha1.c: New file.
73459
73460         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73461
73462 2005-10-12  Simon Josefsson  <jas@extundo.com>
73463
73464         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73465
73466         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73467
73468 2005-10-12  Simon Josefsson  <jas@extundo.com>
73469
73470         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73471         GC_USE_HMAC_MD5, respectively.
73472
73473         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73474         (gc_md5): Fix typo.
73475
73476         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73477
73478         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73479
73480         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73481
73482 2005-10-12  Bruno Haible  <bruno@clisp.org>
73483
73484         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73485         Reported by Stepan Kasal <kasal@ucw.cz>.
73486
73487 2005-10-11  Simon Josefsson  <jas@extundo.com>
73488
73489         * tests/test-crc.c: New file.
73490
73491         * modules/crc, modules/crc-tests: New files.
73492
73493 2005-10-11  Simon Josefsson  <jas@extundo.com>
73494
73495         * m4/crc.m4: New file.
73496
73497 2005-10-11  Simon Josefsson  <jas@extundo.com>
73498
73499         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73500
73501         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73502
73503         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73504
73505 2005-10-11  Simon Josefsson  <jas@extundo.com>
73506
73507         * lib/crc.h, lib/crc.c: New files.
73508
73509         * lib/gc.h (gc_hash_buffer): Add doc.
73510
73511 2005-10-11  Bruno Haible  <bruno@clisp.org>
73512
73513         * modules/c-strcasestr: New file.
73514         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73515
73516 2005-10-11  Bruno Haible  <bruno@clisp.org>
73517
73518         * modules/c-strcase: New file.
73519         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73520
73521 2005-10-11  Bruno Haible  <bruno@clisp.org>
73522
73523         * lib/strcasecmp.c: Include limits.h.
73524         (strcasecmp): Avoid integer overflow on exotic platforms.
73525         * lib/strncasecmp.c: Include limits.h.
73526         (strncasecmp): Avoid integer overflow on exotic platforms.
73527         Reported by Paul Eggert.
73528
73529 2005-10-11  Bruno Haible  <bruno@clisp.org>
73530
73531         * lib/c-strcasestr.h: New file, from GNU gettext.
73532         * lib/c-strcasestr.c: New file, from GNU gettext.
73533
73534 2005-10-11  Bruno Haible  <bruno@clisp.org>
73535
73536         * lib/c-strcase.h: New file, from GNU gettext.
73537         * lib/c-strcasecmp.c: New file, from GNU gettext.
73538         * lib/c-strncasecmp.c: New file, from GNU gettext.
73539
73540 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * modules/mempcpy (License): GPL -> LGPL.
73543         * modules/strchrnul (License): Likewise.
73544         * modules/sysexits (License): Likewise.
73545
73546 2005-10-08  Simon Josefsson  <jas@extundo.com>
73547
73548         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73549
73550 2005-10-07  Simon Josefsson  <jas@extundo.com>
73551
73552         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73553
73554 2005-10-06  Simon Josefsson  <jas@extundo.com>
73555
73556         * tests/test-hmac-md5.c: New file.
73557
73558         * modules/hmac-md5-tests: New file.
73559
73560         * modules/hmac-md5: New file.
73561
73562 2005-10-06  Simon Josefsson  <jas@extundo.com>
73563
73564         * m4/hmac-md5.m4: New file.
73565
73566         * m4/memxor.m4: Require gl_C_RESTRICT.
73567
73568 2005-10-06  Simon Josefsson  <jas@extundo.com>
73569
73570         * lib/memxor.c (memxor): Avoid casts and warnings.
73571
73572 2005-10-06  Simon Josefsson  <jas@extundo.com>
73573
73574         * lib/hmac-md5.c: New file.
73575
73576         * lib/hmac.h: New file.
73577
73578 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73581         promotes to int, not unsigned int, to catch the AIX 5.3
73582         compiler bug.
73583
73584 2005-10-05  Simon Josefsson  <jas@extundo.com>
73585
73586         * modules/memxor: New file.
73587
73588         * modules/iconv (Files): Move config.rpath to havelib, it is used
73589         there.
73590
73591         * modules/havelib (Files): Add config.rpath.
73592
73593 2005-10-05  Simon Josefsson  <jas@extundo.com>
73594
73595         * m4/memxor.m4: New file.
73596
73597 2005-10-05  Simon Josefsson  <jas@extundo.com>
73598
73599         * lib/memxor.c (memxor): Fix compiler error.
73600
73601         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73602         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73603
73604         * lib/memxor.h, lib/memxor.c: New files.
73605
73606         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73607         we assume all systems have it, suggested by Jim Meyering
73608         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73609         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73610         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73611         same reasons.
73612
73613 2005-10-05  Simon Josefsson  <jas@extundo.com>
73614
73615         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73616
73617 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73618
73619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73620         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73621         needed, since the source code now assumes these .h files.
73622
73623 2005-10-05  Derek Price  <derek@ximbiot.com>
73624
73625         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73626
73627 2005-10-05  Bruno Haible  <bruno@clisp.org>
73628
73629         * modules/stdint (License): Change to LGPL.
73630
73631 2005-10-04  Simon Josefsson  <jas@extundo.com>
73632
73633         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73634         D. Baushke" <mdb@gnu.org>.
73635
73636 2005-10-04  Bruno Haible  <bruno@clisp.org>
73637
73638         * lib/verify.h (verify_true): Provide alternative definition for C++.
73639
73640 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73643         (SSIZE_MAX): New macro, if not already defined.
73644         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73645         than 2 GiB.
73646
73647 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73648
73649         Sync from coreutils.
73650         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73651         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73652         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73653         ULLONG_MAX doesn't work with 2.7.2.1.
73654
73655 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73656
73657         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73658         From Ben Pfaff.
73659
73660         * modules/exclude (Depends-on): Depend on verify.
73661         * modules/strtoimax (Depends-on): Likewise.
73662         * modules/utimecmp (Depends-on): Likewise.
73663
73664 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         * lib/exclude.c: Include verify.h.
73667         (verify): Remove.  All callers changed to use verify.h's version.
73668         * lib/strtoimax.c: Likewise.
73669         * lib/utimecmp.c: Likewis.e
73670
73671         Sync from coreutils.
73672         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73673         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73674         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73675         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73676         bother returning ENOSYS if settimeofday or stime fails; just let
73677         them return whatever errno they want to return.
73678         * lib/utimens.c: Include unistd.h, for dup2.
73679         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73680         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73681
73682 2005-10-02  Jim Meyering  <jim@meyering.net>
73683
73684         Sync from coreutils.
73685         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73686         from glibc-2.2.5 that fails for read-only files.
73687
73688 2005-10-02  Jim Meyering  <jim@meyering.net>
73689
73690         Sync from coreutils.
73691         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73692         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73693         `#if HAVE_CONFIG_H'.
73694         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73695         Remove AT_FDCWD test.
73696         Do not consume the fd unless successful.
73697         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73698         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73699         block, so that we don't even try to compile it if settimeofday is
73700         available.  This works around a compilation failure on OSF1 V5.1,
73701         due to stime requiring a `long int*' while tv_sec is `int'.
73702
73703 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73704
73705         Sync from coreutils.
73706         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73707         against `yes', rather than just testing for nonempty.
73708
73709 2005-10-01  Simon Josefsson  <jas@extundo.com>
73710
73711         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73712         and Darwin.
73713
73714         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73715         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73716         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73717         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73718         Check if struct addrinfo is declared.
73719
73720 2005-10-01  Simon Josefsson  <jas@extundo.com>
73721
73722         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73723         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73724         AI_* and EAI_* definitions.  Protect function declarations.
73725
73726 2005-10-01  Jim Meyering  <jim@meyering.net>
73727
73728         Sync from coreutils.
73729
73730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73731         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73732         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73733         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73734         in the inet and nsl libraries.  Required on Solaris 5.7.
73735
73736 2005-10-01  Jim Meyering  <jim@meyering.net>
73737
73738         Sync from coreutils.
73739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73740         in the inet and nsl libraries.  Required on Solaris 5.7.
73741
73742 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73743
73744         * lib/getdelim.c (getdelim): Remove unused variables.
73745
73746 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73747
73748         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73749         so that the code works even with ancient cpp.  Portability problem
73750         with GCC 2.7.2.1 reported by Thomas M.Ott.
73751
73752 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * modules/regex (Depends-on): Add strcase.
73755
73756         * modules/gethostname (Licence): Change from GPL to LGPL, since
73757         gethostname.c is a trivial implementation of a standard library
73758         function.
73759         * modules/poll (License): Change from GPL to LGPL, since it's
73760         derived from LGPL code.
73761
73762 2005-09-27  Jim Meyering  <jim@meyering.net>
73763
73764         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73765         HAVE_CONFIG_H.
73766
73767         * lib/intprops.h (signed_type_or_expr__): Define.
73768         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73769         for unsigned types.
73770
73771 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73772
73773         * lib/verify.h (verify_expr): Remove, replacing with:
73774         (verify_true): New macro that returns true instead of void.
73775         (verify_type__): Remove.
73776         (verify): Use verify_true rather than verify_type__.
73777
73778 2005-09-26  Bruno Haible  <bruno@clisp.org>
73779
73780         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73781         is necessary.
73782         (lib_SOURCES): Remove mbchar.c.
73783         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73784         (Files): Add m4/mbrtowc.m4.
73785         * modules/mbiter: Likewise.
73786         * modules/mbuiter: Likewise.
73787
73788 2005-09-26  Bruno Haible  <bruno@clisp.org>
73789
73790         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73791         compile mbchar.c if they are not both present.
73792         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73793         * m4/mbiter.m4 (gl_MBITER): Likewise.
73794         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73795         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73796         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73797
73798 2005-09-25  Jim Meyering  <jim@meyering.net>
73799
73800         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73801         also uses socklen_t.
73802
73803 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         * lib/utimens.c (ENOSYS): Define if not already defined.
73806         (futimens): Support having a null PATH if the file descriptor
73807         is nonnegative.
73808
73809         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73810         Remove.
73811         (__attribute): Define to empty unless GCC 3.1 or later.
73812         This works around a core dump on OpenBSD 3.4, which has GCC
73813         2.95.3, which dumps core when given __attribute__(()).  It also
73814         simplifies other tests, since we really don't want to bother with
73815         worrying about which ancient version of GCC supported what.
73816         Original problem reported by Yoann Vandoorselaere, with part of
73817         the fix suggested by Derek Price.
73818
73819 2005-09-24  Jim Meyering  <jim@meyering.net>
73820
73821         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73822         so we can once again use a positive bitfield width of 1 -- now we
73823         don't have to explain why we were using a bitfield width of 2.
73824
73825 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73828         and similarly for the other external symbols.  Problem reported
73829         by James Gallager.
73830
73831         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73832         bug reported by Jim Meyering.
73833
73834         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73835         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73836         not needed, since socklen is a prerequisite module.
73837
73838 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73839
73840         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73841         Problem reported by Eric Blake.
73842         (getaddrinfo): Initialize se so that it's not garbage.
73843         Redo internal storage allocation so that it doesn't make unportable
73844         assumptions about alignment.
73845         Fix a memory leak.
73846
73847         * lib/utimens.c (futimens): Use futimesat if available.
73848         Prefer it to futimes since it doesn't have the futimes bug.
73849
73850         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73851         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73852         Instead, declare a function that returns a pointer to an array,
73853         and use verify_type__ to declare the size of the array.
73854         Problem and germ of a solution reported by Bruno Haible.
73855         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73856         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73857
73858 2005-09-23  Jim Meyering  <jim@meyering.net>
73859
73860         Sync from coreutils.
73861         Correct build failure (socklen_t not defined) on at least
73862         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73863         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73864
73865 2005-09-23  Jim Meyering  <jim@meyering.net>
73866
73867         * modules/getaddrinfo (Depends-on): Add socklen.
73868
73869 2005-09-23  Bruno Haible  <bruno@clisp.org>
73870
73871         * tests/test-verify.c: New file.
73872
73873 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         Sync from coreutils.
73876
73877         * modules/argmatch (Depends-on): Add verify.
73878         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73879         unistd-safer.
73880         * modules/save-cwd (Depends-on): Likewise.
73881
73882         * modules/openat (Files): Add lib/openat-die.c.
73883         (Depends-on): Remove error, exitfail.
73884         Add dirname.
73885
73886         * modules/verify: New file.
73887         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73888         with "verify" module.
73889
73890 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73891
73892         Sync from coreutils.
73893
73894         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73895         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73896         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73897         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73898         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73899         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73900         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73901         Don't bother checking for string.h, stdlib.h, unistd.h.
73902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73903         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73904         module's job.
73905         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73906         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73907
73908         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73909         (gl_GETDATE): Use it.
73910
73911         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73912
73913 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         Sync from coreutils.
73916
73917         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73918         stat-time.h.
73919         * lib/argmatch.h: Include verify.h
73920         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73921         (ARGMATCH_ASSERT): Remove; unused.
73922         * lib/canonicalize.c: Assume STDC_HEADERS.
73923         * lib/exclude.c: Include "strcase.h".
73924         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73925         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73926         and stdio-safer.h.
73927         (getusershell): Call fopen, not fopen_safer.
73928         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73929         Do not include unistd-safer.h.
73930         (save_cwd): Don't call fd_safer; no longer needed
73931         now that we include fcntl--.h.
73932
73933         * lib/getdate.y (relative_time): New type.
73934         (RELATIVE_TIME_0): New constant.
73935         (parser_control): Use relative_time instead of doing it ourselves.
73936         (%union): Add new relative_time rel member.
73937         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73938         Now typeless.
73939         (relunit, relunit_snumber): Now of type rel.
73940         (zone, rel, relunit, get_date): Adjust to above changes.
73941
73942         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73943         Do not include unistd-safer.h.
73944         (getloadavg): Don't call fd_safer; no longer needed
73945         now that we include fcntl--.h.
73946
73947         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73948         (make_dir_parents): Treat ENOSYS like EEXIST.
73949
73950         Improve quality of diagnostics on restore_cwd failure.
73951         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73952         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73953         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73954         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73955         each time through the loop.  Do not diagnose restore_cwd failure;
73956         that is the caller's job (and perhaps the caller does not care).
73957
73958         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73959         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73960         If the file already exists but is not a directory, don't bother
73961         to try to make its parents.
73962         Close potential file descriptor leak if we can't chdir("/") (!).
73963         Don't always return true if chdir($PWD) fails; return true only
73964         if the requested action was done successfully (except for the
73965         chdir($PWD)).
73966         Don't log final directory unless we actually made it.
73967         Refactor to avoid duplicate code to fix up permissions.
73968         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73969
73970         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73971         to make it a bit faster and (I hope) clearer.
73972         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73973         Fix bug in formats like %2N.
73974
73975         * lib/verify.h: New file.
73976
73977 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73978
73979         Sync from coreutils.
73980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73981
73982 2005-09-22  Jim Meyering  <jim@meyering.net>
73983
73984         Sync from coreutils.
73985
73986         * m4/lstat.m4 (gl_FUNC_LSTAT):
73987         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73988         Remove obsolete comment.
73989         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73990         * m4/xstrtod.m4: Likewise.
73991
73992         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73993
73994 2005-09-22  Jim Meyering  <jim@meyering.net>
73995
73996         Sync from coreutils.
73997
73998         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73999
74000         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74001         the .tm_year member, since otherwise gcc-4.0 would now warn about
74002         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74003
74004         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74005         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74006
74007         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74008         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74009         when run in a time zone for which daylight savings time is in effect
74010         for the starting date.
74011
74012         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74013         stop us from restricting permissions of just-created absolute-named
74014         directories.
74015         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74016         to restore initial working directory.
74017         * lib/mkdir-p.c (make_dir_parents): New parameter:
74018         different_working_dir, to tell caller if/when we change the working
74019         directory and are unable to return to the initial one.
74020         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74021         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74022         `return false'.  This fixes a bug introduced on 2004-07-30.
74023
74024         * lib/openat.c (fdopendir): Be sure to close the supplied
74025         file descriptor before returning.  This makes our replacement
74026         implementation a little closer to Solaris's, where fdopendir
74027         ties the file descriptor to the returned DIR* pointer.
74028         * lib/openat.c (unlinkat): New function.
74029         * lib/openat.h (unlinkat): Add prototype.
74030         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74031         (openat_restore_fail): Rename from openat_restore_die.
74032         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74033
74034         Provide an alternative to exiting immediately upon save_cwd or
74035         restore_cwd failure.  Now, an application can arrange e.g.,
74036         to perform a longjump in that case.
74037         * lib/openat.c: Include dirname.h.
74038         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74039         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74040         and openat_restore_die rather than calling error directly.
74041         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74042
74043         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74044         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74045         define.
74046
74047         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74048         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74049                             int utc, int nanoseconds);
74050         Background:
74051         date should not have to allocate a megabyte of virtual memory to
74052         handle a format argument like +%1048575T.  When implemented with
74053         strftime, it must allocate such a buffer, use strftime to fill it
74054         in, print it, then free it.
74055         With fprintftime, it simply prints everything and exits.
74056         With no need for memory allocation, that's one fewer way to fail.
74057         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74058         optional field width, not before, so we accept %9:z, not %:9z.
74059         (my_strftime): Be sure to use L_('x') for literals.
74060
74061         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74062         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74063         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74064         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74065         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74066         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74067         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74068         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74069         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74070         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74071         * lib/xgethostname.c, lib/xreadlink.c:
74072         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74073
74074         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74075         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74076         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74077         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74078         and don't include <sys/file.h>).
74079
74080 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74081
74082         Sync from coreutils.
74083
74084         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74085         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74086         [!LDAV_DONE]: Avoid unused variable warning.
74087
74088 2005-09-21  Bruno Haible  <bruno@clisp.org>
74089
74090         * lib/unicodeio.h (unicode_to_mb): New declaration.
74091
74092 2005-09-20  Derek Price  <derek@ximbiot.com>
74093
74094         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74095         getaddrinfo.h.
74096
74097 2005-09-20  Bruno Haible  <bruno@clisp.org>
74098
74099         * gnulib-tool: Remove trailing slashes from the values specified for
74100         --source-base, --m4-base, --tests-base, --aux-dir.
74101         Suggested by Simon Josefsson <jas@extundo.com>.
74102
74103 2005-09-20  Bruno Haible  <bruno@clisp.org>
74104
74105         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74106         func_modules_to_filelist, func_import, func_create_testdir): Make all
74107         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74108         change when gnulib-tool is invoked in a different locale.
74109
74110 2005-09-19  Simon Josefsson  <jas@extundo.com>
74111
74112         * m4/socklen.m4: Fix typo.
74113
74114 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74115
74116         Use a consistent style for including <config.h>.
74117         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74118         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74119         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74120         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74121         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74122         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74123         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74124         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74125         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74126         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74127         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74128         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74129         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74130         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74131         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74132         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74133         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74134         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74135         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74136         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74137         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74138         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74139         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74140         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74141         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74142         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74143         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74144         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74145         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74146         lib/xstrtoumax.c, lib/yesno.c:
74147         Standardize inclusion of config.h.
74148         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74149         lib/inttostr.h:  Removed inclusion of config.h from header files.
74150         * lib/inttostr.c:  Adjusted in-tree users.
74151         * lib/timespec.h: Remove superfluous warning to include config.h.
74152         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74153         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74154         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74155         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74156         config.h with HAVE_CONFIG_H.
74157
74158 2005-09-19  Jim Meyering  <jim@meyering.net>
74159
74160         * modules/pathmax (License): Change to LGPL.
74161
74162 2005-09-19  Derek Price  <derek@ximbiot.com>
74163
74164         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74165
74166 2005-09-19  Bruno Haible  <bruno@clisp.org>
74167
74168         * gnulib-tool (import): Provide default for --tests-base.
74169
74170 2005-09-19  Bruno Haible  <bruno@clisp.org>
74171
74172         * doc/quote.texi: New file, extracted from gnulib.texi.
74173         * doc/ctime.texi: New file, extracted from gnulib.texi.
74174         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74175         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74176         * doc/gnulib.texi: Include them.
74177
74178 2005-09-18  Bruno Haible  <bruno@clisp.org>
74179
74180         Portability fix.
74181         * gnulib-tool (func_readlink): New function.
74182         (func_ln_if_changed): Use it.
74183
74184 2005-09-18  Bruno Haible  <bruno@clisp.org>
74185
74186         * gnulib-tool: Support --with-tests also with --import.
74187         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74188         (func_import): Use variables $testsbase and $inctests. Emit a
74189         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74190         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74191         SUBDIRS += $testsdir.
74192         (func_create_testdir): Update.
74193
74194 2005-09-18  Bruno Haible  <bruno@clisp.org>
74195
74196         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74197         instead of $dry_run.
74198         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74199         (func_ln_if_changed): Don't handle dry-run here.
74200         (func_import): In dry-run mode, detect more precisely which actions
74201         would be performed, and don't use "...ing" verbs.
74202
74203 2005-09-18  Bruno Haible  <bruno@clisp.org>
74204
74205         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74206         (func_import): Use join on two temporary files instead of three nested
74207         loops, in order to determine which files are new or old.
74208
74209 2005-09-18  Bruno Haible  <bruno@clisp.org>
74210
74211         * gnulib-tool (func_import): Comment out code that spits out the
74212         new files with --dry-run.
74213
74214 2005-09-18  Bruno Haible  <bruno@clisp.org>
74215
74216         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74217
74218 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         * lib/stat-time.h: New file.
74221         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74222         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74223         in a different way.
74224         (timespec_cmp): New function.
74225         * lib/utimecmp.c: Include stat-time.h.
74226         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74227         members exist, not on the obsolescent ST_MTIM_NSEC.
74228         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74229
74230 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74231
74232         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74233
74234 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74235
74236         * MODULES.html.sh (File system functions): Add stat-time.
74237         * modules/stat-time: New file.
74238         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74239         is now done in a different way, by the stat-time module.
74240         * modules/utimecmp (Depends-on): Add stat-time.
74241
74242 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74243
74244         * m4/st_mtim.m4: Remove.  Superseded by...
74245         * m4/stat-time.m4: New file.
74246         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74247         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74248
74249 2005-09-15  Derek Price  <derek@ximbiot.com>
74250
74251         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74252
74253 2005-09-15  Derek Price  <derek@ximbiot.com>
74254
74255         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74256         * lib/regex_internal.c: Ditto, using this...
74257         (__GNUC_PREREQ): ...new macro.
74258         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74259         using...
74260         (__GNUC_PREREQ): ...this new macro.
74261
74262         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74263
74264 2005-09-15  Derek Price  <derek@ximbiot.com>
74265             Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74268         changes, consolidating in...
74269         * lib/regex_internal.h: ...this file.
74270
74271 2005-09-13  Jim Meyering  <jim@meyering.net>
74272
74273         * lib/canon-host.c: Filter through gnu indent and reword comments
74274         slightly.
74275         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74276
74277 2005-09-13  Derek Price  <derek@ximbiot.com>
74278
74279         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74280         failure.
74281         Reported by Jim Meyering  <jim@meyering.net>.
74282
74283 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74284
74285         * lib/base64.c: Typo.
74286         (base64_encode): Put b64str in initialized data section.
74287
74288 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74289
74290         Merge glibc and coreutils changes into gnulib, plus a few
74291         extra fixes.
74292         * lib/md5.c: Use #error rather than a string.
74293         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74294         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74295         (__attribute__): Define to empty for non recent-GCC.
74296         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74297         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74298         Renamed from their non-__ counterparts, with new macros replacing
74299         them if not _LIBC.  Add __THROW attribute.
74300         (rol): Remove.
74301         (struct md5_ctx): Align buffer if using GCC.
74302         * lib/sha1.h (struct sha1_ctx): Likewise.
74303         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74304         The old name was backwards.
74305         (NOTSWAP): Remove; not used.
74306         (rol): New macro, moved here from md5.h.
74307         (sha1_process_block): Remove a FIXME that doesn't make sense.
74308
74309 2005-09-12  Derek Price  <derek@ximbiot.com>
74310
74311         Return usable errors from canon-host.
74312         * lib/canon-host.h: New file.
74313         * lib/canon-host.c (canon_host): Wrap...
74314         (canon_host_r): ...this new function, which now relies exclusively on
74315         getaddrinfo.
74316         (ch_strerror): New function.
74317         (last_cherror): New global.
74318         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74319         interface.
74320         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74321         void *.
74322         (freeaddrinfo): Free ai->ai_canonname when set.
74323
74324 2005-09-12  Derek Price  <derek@ximbiot.com>
74325
74326         Make canon-host require getaddrinfo.
74327         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74328         AC_LIBSOURCE canon-host.h.  Call...
74329         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74330         gl_GETADDRINFO.
74331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74332
74333 2005-09-12  Derek Price  <derek@ximbiot.com>
74334
74335         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74336         LGPL.
74337         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74338
74339 2005-09-12  Derek Price  <derek@ximbiot.com>
74340
74341         * lib/gai_strerror.c: Include config.h when available.  Include
74342         getaddrinfo.h before other headers to test interface.
74343         Reported by Larry Jones <lawrence.jones@ugs.com>.
74344
74345 2005-09-12  Derek Price  <derek@ximbiot.com>
74346             Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         * modules/glob (Files): Add glob-libc.h.
74349
74350 2005-09-12  Derek Price  <derek@ximbiot.com>
74351             Paul Eggert  <eggert@cs.ucla.edu>
74352
74353         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74354         glob_.h, glob-libc.h.
74355         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74356
74357 2005-09-12  Derek Price  <derek@ximbiot.com>
74358             Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74361         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74362         protecting things that should be done only in gnulib contexts.
74363         * lib/glob_.h: New file, containing only the glob things needed for
74364         gnulib.
74365         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74366         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74367         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74368         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74369         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74370         and to respect the namespace rules better.
74371
74372 2005-09-08  Simon Josefsson  <jas@extundo.com>
74373
74374         * modules/socklen: New file.
74375
74376 2005-09-08  Simon Josefsson  <jas@extundo.com>
74377
74378         * m4/socklen.m4: New file.
74379
74380 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         * modules/utimens (Files): Add m4/utimbuf.m4, since
74383         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74384         Reported by Sergey Poznyakoff.
74385
74386 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74389         definitions, since that's the preferred style in glibc.
74390         Fix a minor spacing issue, and update copyright notice to match
74391         glibc's.
74392
74393 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74396
74397 2005-09-06  Simon Josefsson  <jas@extundo.com>
74398
74399         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74400         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74401
74402 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74403
74404         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74405         warning.
74406
74407 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74408
74409         * config/srclist.txt: Add glibc bug 1302.
74410
74411 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74412
74413         Change bitset word type from unsigned int to unsigned long int,
74414         as this has better performance on typical 64-bit hosts.
74415         Port bitset code to hosts with unusual word sizes.
74416         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74417         (build_collating_symbol):
74418         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74419         argument is a bitset.  This is merely a style issue, but it makes
74420         it clearer that an entire array is expected.
74421         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74422         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74423         Port to the case where bitset_word is not the same as unsigned int.
74424         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74425         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74426         Likewise.
74427         * lib/regexec.c (check_dst_limits_calc_pos_1,
74428         check_subexp_matching_top):
74429         (build_trtable, group_nodes_into_DFAstates):
74430         Likewise.
74431         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74432         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74433         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74434         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74435         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74436         * lib/regcomp.c (optimize_subexps, lower_subexp):
74437         Work even if bitset_word has holes in its bitwise representation.
74438         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74439         * lib/regexec.c (check_dst_limits_calc_pos_1,
74440         check_subexp_matching_top):
74441         Likewise.
74442         * lib/regex_internal.c (re_string_reconstruct):
74443         Don't assume UCHAR_MAX == 255.
74444         * lib/regex_internal.h (bitset_set_all): Likewise.
74445         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74446         All uses changed.
74447         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74448         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74449         All uses changed.
74450         (BITSET_WORD_MAX): New macro.
74451         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74452         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74453         (bitset_empty, bitset_copy):
74454         Prefer sizeof (bitset) to multiplying it out ourselves.
74455         (bitset_not_merge): Remove; unused.
74456         (bitset_contain): Return bool, not unsigned int with one bit on.
74457         All callers changed.
74458         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74459         alignment than re_node_set; do this by defining a new internal
74460         type struct dests_alloc and using it to allocate memory.
74461
74462 2005-09-05  Bruno Haible  <bruno@clisp.org>
74463
74464         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74465         links.
74466
74467 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74468
74469         * modules/size_max (Makefile.am): Add size_max.h
74470
74471 2005-09-04  Derek Price  <derek@ximbiot.com>
74472
74473         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74474
74475 2005-09-03  Simon Josefsson  <jas@extundo.com>
74476
74477         * gnulib-tool: Fix typo.
74478
74479 2005-09-03  Simon Josefsson  <jas@extundo.com>
74480
74481         * config/srclist.txt: Add glibc bug 1293.
74482
74483 2005-09-03  Derek Price  <derek@ximbiot.com>
74484
74485         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74486         From Larry Jones <lawrence.jones@ugs.com>.
74487
74488 2005-09-02  Simon Josefsson  <jas@extundo.com>
74489
74490         * modules/socklen: New file.
74491
74492 2005-09-02  Simon Josefsson  <jas@extundo.com>
74493
74494         * modules/havelib: New module.
74495
74496         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74497         Use havelib.
74498
74499 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         Check for arithmetic overflow when calculating sizes, to prevent
74502         some buffer-overflow issues.  These patches are conservative, in the
74503         sense that when I couldn't determine whether an overflow was possible,
74504         I inserted a run-time check.
74505         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74506         macros.
74507         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74508         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74509         (re_xnrealloc, re_x2nrealloc): New inline functions.
74510         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74511         parse_bracket_exp):
74512         (build_equiv_class, build_charclass): Check for arithmetic overflow
74513         in size expression calculations.
74514         * lib/regex_internal.c (re_string_realloc_buffers):
74515         (build_wcs_upper_buffer, re_node_set_add_intersect):
74516         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74517         (re_dfa_add_node, register_state): Likewise.
74518         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74519         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74520         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74521         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74522
74523 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74524
74525         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74526         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74527
74528 2005-09-02  Bruno Haible  <bruno@clisp.org>
74529
74530         Support for lib vs. lib64 distinction on biarch platforms.
74531         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74532         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74533         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74534
74535 2005-09-02  Bruno Haible  <bruno@clisp.org>
74536
74537         * gnulib-tool (import): In the other first-use case, provide defaults
74538         as well.
74539
74540 2005-09-02  Bruno Haible  <bruno@clisp.org>
74541
74542         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74543         patches not yet found in the latest gettext release.
74544
74545 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74548         to avoid a collision with bits/local_lim.h in glibc.
74549         All uses changed.  Problem reported by Dmitry V. Levin in
74550         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74551
74552         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74553         bugs in int versus size_t comparisons.
74554         (re_string_context_at): Fix bug where the code assumed that
74555         Idx is signed.
74556
74557         Use bool where appropriate.
74558         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74559         All callers changed.
74560         (calc_eclosure_iter): Likewise, for ROOT arg.
74561         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74562         (build_charclass_op): Likewise, for NON_MATCH arg.
74563         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74564         (re_string_construct_common): Likewise, for ICASE arg.
74565         * lib/regexec.c (re_search_2_stub, re_search_stub):
74566         Likewise, for RET_LEN arg.
74567         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74568         (set_regs): Likewise, for FL_BACKTRACK arg.
74569         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74570         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74571         (calc_eclosure_iter, parse_bracket_exp):
74572         Use bool for internal variables that are booleans.
74573         * lib/regexec.c (re_search_internal, check_matching,
74574         proceed_next_node):
74575         (set_regs, build_sifted_states, sift_states_bkref):
74576         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74577         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74578         (find_collation_sequence_value):
74579         Likewise.
74580         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74581         (re_node_set_compare):
74582         Return bool, not int. All callers changed.
74583         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74584         (build_trtable, check_node_accept): Likewise.
74585         * lib/regex_internal.h: Include stdbool.h.
74586
74587         Fix bugs uncovered when converting to bool.
74588         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74589         failure instead of charging ahead blindly.
74590         * lib/regex_internal.c (register_state): Likewise.
74591         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74592         for freeing internal storage.
74593         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74594         bitset pieces used as boolean, to avoid undefined behavior
74595         on hosts that do int overflow checking.
74596
74597 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         * config/srclist.txt: Add glibc bugs 1285-1287.
74600
74601 2005-09-01  Jim Meyering  <jim@meyering.net>
74602
74603         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74604         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74605         Require gl_STAT_MACROS, too.
74606
74607 2005-09-01  Bruno Haible  <bruno@clisp.org>
74608
74609         * gnulib-tool (import): In the first-use case, provide defaults.
74610
74611 2005-09-01  Bruno Haible  <bruno@clisp.org>
74612
74613         * gnulib-tool (func_import): Remove the .tmp files.
74614
74615 2005-09-01  Bruno Haible  <bruno@clisp.org>
74616
74617         * gnulib-tool (func_import): Fix handling of symbolic links.
74618
74619 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74622         old glibc regex code mishandles strings longer than 2**31 bytes.
74623         This patch fixes this when the regex code is used in gnulib
74624         (i.e., outside glibc).
74625
74626         This patch should not affect the use of the regex code inside
74627         glibc.  No doubt this problem also needs to be handled for glibc
74628         as well, but the result will be an incompatible change to the
74629         glibc ABI, and the old ABI will have to be supported too.  That
74630         can be the the subject for another patch.
74631
74632         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74633         governing whether the rest of this patch is active.  By default,
74634         the macro is disabled and the patch has no effect.
74635         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74636         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74637         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74638         (re_match_2, re_set_registers): Use the new types.
74639         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74640         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74641         New macros.
74642         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74643         (re_string_context_at, bin_tree_t, re_dfastate_t):
74644         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74645         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74646         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74647         (re_string_char_size_at, re_string_wchar_at):
74648         (re_string_elem_size_at):
74649         Use the new types and macros to port to 64-bit hosts.
74650         Use unsigned types for internal values, so that the code
74651         mostly works even for arrays larger than SSIZE_MAX.
74652         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74653         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74654         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74655         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74656         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74657         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74658         (calc_inveclosure, parse_dup_op, build_range_exp):
74659         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74660         (fetch_number, create_token_tree, mark_opt_subexp):
74661         Likewise.
74662         * lib/regex_internal.c (re_string_construct_common,
74663         create_ci_newstate):
74664         (create_cd_newstate, re_string_allocate, re_string_construct):
74665         (re_string_realloc_buffers, build_wcs_upper_buffer):
74666         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74667         (re_string_reconstruct, re_string_peek_byte_case):
74668         (re_string_fetch_byte_case, re_string_context_at):
74669         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74670         (re_node_set_init_copy, re_node_set_add_intersect):
74671         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74672         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74673         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74674         (re_acquire_state, re_acquire_state_context, register_state):
74675         Likewise.
74676         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74677         search_cur_bkref_entry):
74678         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74679         (re_search_internal, re_search_2_stub, re_search_stub)
74680         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74681         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74682         (update_cur_sifted_state, check_dst_limits):
74683         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74684         (check_subexp_limits, sift_states_bkref, merge_state_array):
74685         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74686         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74687         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74688         (expand_bkref_cache, check_node_accept_bytes):
74689         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74690         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74691         (acquire_init_state_context, check_halt_node_context):
74692         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74693         (sift_states_backward, clean_state_log_if_needed):
74694         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74695         (find_recover_state, transit_state_sb, transit_state_mb):
74696         (transit_state_bkref, build_trtable, match_ctx_clean):
74697         Likewise.
74698         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74699         to work around an assumption that REG_MISSING is negative.
74700
74701         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74702         (seek_collating_symbol_entry) [defined _LIBC]:
74703         (lookup_collation_sequence_value) [defined _LIBC]:
74704         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74705         Use prototypes rather than old-style function definitions.
74706         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74707         (transit_state_sb) [0]:
74708         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74709
74710         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74711         rm_eo.
74712
74713         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74714         (optimize_subexps, lower_subexp):
74715         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74716         since the signed shift might overflow.  Use 1u<<31 instead.
74717         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74718         Likewise.
74719         * lib/regexec.c (check_dst_limits_calc_pos_1,
74720         check_subexp_matching_top): Likewise.
74721
74722         * lib/regcomp.c (optimize_subexps, lower_subexp):
74723         Use CHAR_BIT rather than 8, for clarity.
74724         * lib/regexec.c (check_dst_limits_calc_pos_1):
74725         (check_subexp_matching_top): Likewise.
74726         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74727         have to worry about portability issues when shifting it left.
74728         Remove no-longer-needed test for table_size > 0.
74729         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74730         in a word, as the resulting behavior is undefined.
74731         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74732         in one case, a <= should have been an <, and in another case the
74733         whole test was missing.
74734         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74735         the standard name CHAR_BIT.
74736         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74737         this is not true on one's complement and signed-magnitude hosts.
74738
74739         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74740         next_last_offset.
74741         (struct re_dfa_t): Remove unused member states_alloc.
74742         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74743
74744 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74747         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74748         and large-file glibc and in 32-bit large-file Solaris.
74749
74750 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74751
74752         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74753         lengths fit in regoff_t; this isn't true if regoff_t is the same
74754         width as size_t.
74755         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74756         (= START + RANGE) instead of RANGE.  This avoids overflow
74757         problems when regoff_t is the same width as size_t.
74758         All callers changed.
74759         (re_search_2_stub): Check for overflow when adding the
74760         sizes of the two strings.
74761         (re_search_stub): Check for overflow when adding START
74762         to RANGE; if it occurs, substitute the extreme value.
74763
74764 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74767
74768 2005-08-31  Jim Meyering  <jim@meyering.net>
74769
74770         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74771         a pointer-to-const.
74772         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74773         (register_state): Likewise.
74774         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74775         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74776         (group_nodes_into_DFAstates): Likewise.
74777
74778 2005-08-31  Jim Meyering  <jim@meyering.net>
74779
74780         * check-module: Add a FIXME comment.
74781
74782 2005-08-31  Eric Blake  <ebb9@byu.net>
74783
74784         * modules/unistd-safer (Files): Add unistd--.h.
74785         * modules/stdio-safer (Files): Add stdio--.h.
74786
74787 2005-08-31  Derek Price  <derek@ximbiot.com>
74788
74789         * lib/getdelim.c (getdelim): Return EOF on EOF.
74790         Reported by Larry Jones <lawrence.jones@ugs.com>.
74791
74792 2005-08-31  Bruno Haible  <bruno@clisp.org>
74793
74794         Avoid unnecessary diffs in the generated lib/Makefile.am.
74795         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74796         the generated files.
74797         (func_import): Don't set cmd.
74798
74799 2005-08-31  Bruno Haible  <bruno@clisp.org>
74800
74801         * lib/strstr.c: Include <stddef.h>, for NULL.
74802         * lib/strcasestr.c: Likewise.
74803         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74804
74805 2005-08-31  Bruno Haible  <bruno@clisp.org>
74806
74807         * gnulib-tool: New option --macro-prefix.
74808         (func_import): Use macro_prefix.
74809         (import): Handle option --macro-prefix.
74810
74811 2005-08-31  Bruno Haible  <bruno@clisp.org>
74812
74813         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74814         Also use new variables cached_lgpl, cached_libtool.
74815
74816 2005-08-31  Bruno Haible  <bruno@clisp.org>
74817
74818         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74819         always instantiating them.
74820
74821 2005-08-31  Bruno Haible  <bruno@clisp.org>
74822
74823         * gnulib-tool (func_import): Read the previous cached settings
74824         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74825         earlier added by gnulib but are now dropped. Warn when a gnulib file
74826         overwrites a non-gnulib file.
74827
74828 2005-08-31  Bruno Haible  <bruno@clisp.org>
74829
74830         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74831         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74832         projects that don't keep autogenerated files in CVS. Put into
74833         actioncmd only the specified modules, not the transitive closure.
74834
74835 2005-08-31  Bruno Haible  <bruno@clisp.org>
74836
74837         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74838         Create directories that shall be filled.
74839         (import): Don't look for gl_* macros in configure.ac. Recurse across
74840         all directories containing a gnulib-cache.m4 files, if meaningful.
74841
74842 2005-08-31  Bruno Haible  <bruno@clisp.org>
74843
74844         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74845         (import): Set seen_libtool when we see gl_LIBTOOL.
74846
74847 2005-08-31  Bruno Haible  <bruno@clisp.org>
74848
74849         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74850         declaration macro definitions from generated gnulib.m4.
74851
74852 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74853
74854         * lib/iconvme.h: Add prototype for iconv_alloc.
74855
74856 2005-08-29  Simon Josefsson  <jas@extundo.com>
74857
74858         * lib/iconvme.c: Fix errno.
74859
74860 2005-08-29  Bruno Haible  <bruno@clisp.org>
74861
74862         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74863         that it works when the directory contains spaces.
74864
74865 2005-08-29  Bruno Haible  <bruno@clisp.org>
74866
74867         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74868
74869 2005-08-29  Bruno Haible  <bruno@clisp.org>
74870
74871         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74872         Emit more advice.
74873
74874 2005-08-29  Bruno Haible  <bruno@clisp.org>
74875         and Stepan Kasal  <kasal@ucw.cz>
74876
74877         * check-module: If more parameters are given, check each of them
74878         separately; add more exceptions, as noted by Jim Meyering.
74879         (check_module): New procedure.
74880         (%exempt_header): Now contains all exceptions.
74881
74882 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74883
74884         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74885
74886 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74887
74888         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74889
74890 2005-08-28  Bruno Haible  <bruno@clisp.org>
74891
74892         * m4/gnulib-tool.m4: New file.
74893
74894 2005-08-27  Jim Meyering  <jim@meyering.net>
74895
74896         * modules/unistd-safer (Files): Add pipe-safer.c.
74897         * modules/fcntl-safer (Files): Add creat-safer.c.
74898
74899 2005-08-27  Jim Meyering  <jim@meyering.net>
74900
74901         * m4/stdlib-safer.m4: New file.  From coreutils.
74902         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74903         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74904         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74905         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74906         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74907
74908 2005-08-27  Jim Meyering  <jim@meyering.net>
74909
74910         * lib/fopen-safer.c: Merge minor changes from coreutils.
74911         * lib/dup-safer.c: Likewise.
74912         * lib/fd-safer.c: Likewise.
74913
74914         Merge from coreutils.
74915         * lib/stdio--.h: New file.
74916         * lib/stdlib--.h: New file.
74917         * lib/mkstemp-safer.c: New file.
74918
74919         GNU tar needs these.
74920         * lib/pipe-safer.c: New file.
74921         * lib/creat-safer.c: New file.
74922         * lib/fcntl--.h (creat): Define to creat_safer.
74923         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74924         * lib/unistd--.h (pipe): Define to pipe_safer.
74925         * lib/unistd-safer.h: Declare pipe_safer.
74926
74927 2005-08-26  Simon Josefsson  <jas@extundo.com>
74928
74929         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74930         Haible <bruno@clisp.org>.
74931
74932 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         * lib/regex_internal.h: Remove all references to
74935         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74936         or better.
74937         (bitset_not, bitset_merge, bitset_not_merge):
74938         (bitset_mask, re_string_allocate, re_string_construct):
74939         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74940         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74941         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74942         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74943         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74944         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74945         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74946         (re_acquire_state_context):
74947         Remove unnecessary forward decls.
74948         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74949         Put __attribute at function definition,
74950         now that the function decl has been removed.
74951         * lib/regex_internal.c (re_string_peek_byte_case):
74952         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74953         Likewise.
74954
74955 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74956
74957         * m4/regex.m4: Add AC_PREREQ(2.50).
74958         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74959
74960 2005-08-25  Simon Josefsson  <jas@extundo.com>
74961
74962         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74963         __fsetlocking.
74964
74965 2005-08-25  Simon Josefsson  <jas@extundo.com>
74966
74967         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74968         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74969         GLIBC specific code.
74970
74971 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         Make regex safe for g++.  This fixes one real bug (an "err"
74974         that should have been "*err").  g++ problem reported by
74975         Sam Steingold.
74976         * lib/regex_internal.h (re_calloc): New macro, consistent with
74977         re_malloc etc.  All callers of calloc changed to use re_calloc.
74978         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74979         not int.  All callers changed.
74980         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74981         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74982         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74983         (find_recover_state): Change "err" to "*err"; this fixes what
74984         appears to be a real bug.
74985         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74986         versus int.
74987
74988 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74989
74990         * modules/regex (Depends-on): Add malloc, since the code
74991         assumes that !malloc(0) means failure.
74992
74993 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74994
74995         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74996
74997         alloca modernization/simplification for regex.
74998         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74999         needs to be at the start of the file, and can be moved into
75000         regex_internal.h and simplified.
75001         * lib/regex_internal.h: Include <alloca.h>.
75002         (__libc_use_alloca) [!defined _LIBC]: New macro.
75003         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75004         now works outside glibc.
75005
75006 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75007
75008         * config/srclist.txt: Add glibc bugs 1241, 1245.
75009
75010 2005-08-25  Jim Meyering  <jim@meyering.net>
75011
75012         * lib/open-safer.c: Include <config.h>.
75013         Otherwise, we'd lose LARGEFILE support in any file using
75014         e.g. "fcntl--.h"
75015
75016 2005-08-25  Bruno Haible  <bruno@clisp.org>
75017
75018         * m4/minmax.m4: Require autoconf 2.52.
75019         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75020         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75021         alternatives of translit over the alphabet.
75022         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75023
75024 2005-08-24  Simon Josefsson  <jas@extundo.com>
75025
75026         * tests/test-getpass.c: New file.
75027
75028 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75031         for GNU regex features.
75032
75033 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75034
75035         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75036         * lib/regex.h (regerror): Likewise.
75037
75038         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75039         requires this.  (The code never needed it.)
75040
75041         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75042         All uses of recently-renamed identifiers changed to use the new,
75043         POSIX-compliant names.  The code will build and run just fine
75044         without these changes, but it's better to eat our own dog food
75045         and use the standard-conforming names.
75046
75047         * lib/regex.h: Fix a multitude of POSIX name space violations.
75048         These changes have an effect only for programs that define
75049         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75050         do not change anything for programs compiled in the normal way.
75051         Also, there is no effect on the ABI.
75052
75053         (_REGEX_SOURCE): New macro.
75054         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75055         defined and _GNU_SOURCE is not; this fixes a name space violation.
75056
75057         Rename the following macros to obey POSIX requirements.
75058         The old names are still visible as macros if _REGEX_SOURCE is defined.
75059         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75060         RE_BACKSLASH_ESCAPE_IN_LISTS.
75061         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75062         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75063         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75064         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75065         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75066         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75067         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75068         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75069         (REG_INTERVALS): renamed from RE_INTERVALS.
75070         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75071         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75072         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75073         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75074         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75075         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75076         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75077         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75078         RE_UNMATCHED_RIGHT_PAREN_ORD.
75079         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75080         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75081         (REG_DEBUG): renamed from RE_DEBUG.
75082         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75083         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75084         unusual, since we can't clash with the POSIX REG_ICASE.
75085         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75086         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75087         (REG_NO_SUB): renamed from RE_NO_SUB.
75088         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75089         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75090         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75091         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75092         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75093         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75094         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75095         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75096         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75097         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75098         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75099         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75100         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75101         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75102         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75103         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75104         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75105         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75106         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75107         (REG_FIXED): Renamed from REGS_FIXED.
75108         (REG_NREGS): Renamed from RE_NREGS.
75109
75110         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75111         of other REG_* macros, since POSIX says the user is allowed to
75112         #undef these macros selectively.
75113
75114         (reg_errcode_t): Update comment stating what other tables need
75115         to be consistent.
75116
75117         Rename the following enum values to obey POSIX requirements.
75118         The old names are still visible as macros.
75119         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75120         is not defined, since GNU is supposed to be a superset of POSIX as
75121         much as possible, and since we want reg_errcode_t to be a signed
75122         type for implementation consistency.
75123         (_REG_NOERROR): Renamed from REG_NOERROR.
75124         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75125         (_REG_BADPAT): Renamed from REG_BADPAT.
75126         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75127         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75128         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75129         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75130         (_REG_EBRACK): Renamed from REG_EBRACK.
75131         (_REG_EPAREN): Renamed from REG_EPAREN.
75132         (_REG_EBRACE): Renamed from REG_EBRACE.
75133         (_REG_BADBR): Renamed from REG_BADBR.
75134         (_REG_ERANGE): Renamed from REG_ERANGE.
75135         (_REG_ESPACE): Renamed from REG_ESPACE.
75136         (_REG_BADRPT): Renamed from REG_BADRPT.
75137         (_REG_EEND): Renamed from REG_EEND.
75138         (_REG_ESIZE): Renamed from REG_ESIZE.
75139         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75140         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75141         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75142         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75143         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75144
75145         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75146         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75147         changed.  But support the old name if the new one is not defined
75148         and if _REGEX_SOURCE.
75149
75150         Change the following member names in struct re_pattern_buffer.
75151         The old names are still supported if !_REGEX_SOURCE.
75152         The new names are always supported, regardless of _REGEX_SOURCE.
75153         (re_buffer): Renamed from buffer.
75154         (re_allocated): Renamed from allocated.
75155         (re_used): Renamed from used.
75156         (re_syntax): Renamed from syntax.
75157         (re_fastmap): Renamed from fastmap.
75158         (re_translate): Renamed from translate.
75159         (re_can_be_null): Renamed from can_be_null.
75160         (re_regs_allocated): Renamed from regs_allocated.
75161         (re_fastmap_accurate): Renamed from fastmap_accurate.
75162         (re_no_sub): Renamed from no_sub.
75163         (re_not_bol): Renamed from not_bol.
75164         (re_not_eol): Renamed from not_eol.
75165         (re_newline_anchor): Renamed from newline_anchor.
75166
75167         Change the following member names in struct re_registers.
75168         The old names are still supported if !_REGEX_SOURCE.
75169         The new names are always supported, regardless of _REGEX_SOURCE.
75170         (rm_num_regs): Renamed from num_regs.
75171         (rm_start): Renamed from start.
75172         (rm_end): Renamed from end.
75173
75174         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75175         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75176         Prepend __ to parameter names.
75177
75178         Undo yesterday's changes.
75179
75180 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75181
75182         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75183         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75184         lib/regex.c.
75185
75186 2005-08-24  Jim Meyering  <jim@meyering.net>
75187
75188         Sync from coreutils.
75189         * m4/fcntl-safer.m4: New file.
75190
75191         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75192         and object files for this module.
75193
75194 2005-08-24  Jim Meyering  <jim@meyering.net>
75195
75196         Sync from coreutils.
75197         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75198
75199 2005-08-24  Jim Meyering  <jim@meyering.net>
75200
75201         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75202         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75203
75204 2005-08-24  Jim Meyering  <jim@meyering.net>
75205
75206         * modules/fcntl-safer: New module.
75207         * modules/fts (Depends-on): Add fcntl-safer.
75208         * MODULES.html.sh (File descriptor based Input/Output):
75209         Add fcntl-safer.
75210
75211 2005-08-24  Bruno Haible  <bruno@clisp.org>
75212
75213         Support for unit test modules.
75214         * modules/README: Mention tests modules.
75215         * modules/TEMPLATE-TESTS: New file.
75216         * gnulib-tool: New options --extract-tests-module, --with-tests and
75217         --tests-base (unused for the moment).
75218         (testsbase, inctests): New variables.
75219         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75220         (func_verify_module): Exclude TEMPLATE-TESTS.
75221         (func_verify_nontests_module, func_verify_tests_module): New functions.
75222         (func_get_dependencies): Add implicit dependency for tests modules.
75223         (func_get_tests_module): New function.
75224         (func_modules_transitive_closure): When --with-tests was specified,
75225         include the unit tests as well, unless explicitly avoided.
75226         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75227         (func_emit_tests_Makefile_am): New function.
75228         (func_create_testdir): When --with-tests was specified, emit a
75229         tests/ directory.
75230         * MODULES.html.sh (Future developments): Update.
75231
75232 2005-08-24  Bruno Haible  <bruno@clisp.org>
75233
75234         * modules/tls-tests: New file.
75235         * tests/test-tls.c: New file, from GNU gettext.
75236
75237 2005-08-24  Bruno Haible  <bruno@clisp.org>
75238
75239         * modules/lock-tests: New file.
75240         * tests/test-lock.c: New file, from GNU gettext.
75241
75242 2005-08-24  Bruno Haible  <bruno@clisp.org>
75243
75244         * lib/lock.h: Add multiple inclusion guard.
75245         * lib/tls.h: Add multiple inclusion guard.
75246
75247 2005-08-24  Bruno Haible  <bruno@clisp.org>
75248
75249         * gnulib-tool: Add support for the --aux-dir option to
75250         --create-testdir, --create-megatestdir, --test, --megatest.
75251         (func_create_testdir, func_create_megatestdir): Optionally emit a
75252         AC_CONFIG_AUX_DIR directive.
75253         (create-testdir, create-megatestdir, test, megatest): Provide a
75254         default value for $auxdir.
75255
75256 2005-08-24  Bruno Haible  <bruno@clisp.org>
75257
75258         * gnulib-tool (import): Use compound statement instead of subshell
75259         where possible.
75260
75261 2005-08-24  Bruno Haible  <bruno@clisp.org>
75262
75263         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75264
75265 2005-08-24  Bruno Haible  <bruno@clisp.org>
75266
75267         * gnulib-tool (func_version): Update.
75268
75269 2005-08-24  Bruno Haible  <bruno@clisp.org>
75270
75271         * gnulib-tool (func_import, func_create_testdir,
75272         func_create_megatestdir): Quote all autoconf macro arguments.
75273
75274 2005-08-24  Bruno Haible  <bruno@clisp.org>
75275
75276         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75277         option --force, because --force causes the aclocal.m4 of each
75278         subdirectory to be newer than the corresponding config.h.in.
75279
75280 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75283         All contents moved to gl_REGEX.
75284         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75285         assume that it does.
75286
75287 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * lib/regex.h (REG_NOSYS)
75290         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75291         Define, since POSIX requires it as of 2001.
75292         (_REG_ENOSYS)
75293         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75294         New private symbol, used to keep the enum signed in all cases.
75295         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75296         Youngman in
75297         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75298
75299         * lib/regex_internal.c (re_string_skip_chars, register_state):
75300         (calc_state_hash):
75301         Remove forward decls; no longer needed now that we use prototypes.
75302         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75303         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75304         (clean_state_log_if_needed): Likewise.
75305
75306 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75307
75308         * config/srclist.txt: Add glibc bugs 1231-1233.
75309
75310 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75311
75312         Fix problems reported by Sam Steingold in
75313         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75314         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75315         assumed that reg_errcode_t is a signed type, which is not
75316         necessarily true if _XOPEN_SOURCE is not defined.
75317         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75318         since some compilers warn about it otherwise.
75319
75320 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75321
75322         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75323         (init_word_char, create_initial_state, duplicate_node_closure):
75324         (fetch_token, peek_token_bracket, build_range_exp):
75325         (build_collating_symbol): Remove forward decls; no longer needed
75326         now that we use prototypes.
75327
75328         * lib/regcomp.c:
75329         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75330         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75331         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75332         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75333         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75334         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75335         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75336         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75337         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75338         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75339         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75340         (build_charclass, build_charclass_op, fetch_number, create_tree):
75341         (create_token_tree, mark_opt_subexp, duplicate_tree):
75342         Use prototypes rather than old-style definitions.
75343
75344         * lib/regex_internal.c:
75345         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75346         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75347         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75348         (re_string_reconstruct, re_string_peek_byte_case):
75349         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75350         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75351         (re_node_set_init_copy, re_node_set_add_intersect):
75352         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75353         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75354         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75355         (re_acquire_state, re_acquire_state_context, register_state):
75356         (create_ci_newstate, create_cd_newstate, free_state):
75357         Likewise.
75358         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75359         re_search_2):
75360         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75361         (re_search_internal, prune_impossible_nodes):
75362         (acquire_init_state_context, check_matching, static):
75363         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75364         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75365         (update_regs, sift_states_backward, build_sifted_states):
75366         (clean_state_log_if_needed, merge_state_array):
75367         (update_cur_sifted_state, add_epsilon_src_nodes):
75368         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75369         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75370         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75371         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75372         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75373         (check_arrival, check_arrival_add_next_nodes):
75374         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75375         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75376         (check_node_accept_bytes, check_node_accept, extend_buffers):
75377         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75378         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75379         (sift_ctx_init):
75380         Likewise.
75381
75382         * lib/regex_internal.h:
75383         (re_string_allocate, re_string_construct, re_string_reconstruct):
75384         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75385         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75386         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75387         (re_string_context_at, re_string_peek_byte_case):
75388         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75389         is defined, since we now use prototypes always.
75390
75391         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75392         C89 or better.  All uses removed.
75393
75394 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75395
75396         * config/srclist.txt: Add glibc bugs 1220-1227.
75397
75398 2005-08-20  Jim Meyering  <jim@meyering.net>
75399
75400         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75401         of unused local, dfa.
75402
75403 2005-08-20  Bruno Haible  <bruno@clisp.org>
75404
75405         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75406
75407 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75408
75409         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75410         (re_node_set_insert_last, re_dfa_add_node):
75411         Rename local variables to avoid GCC shadowing warnings.
75412
75413 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75414
75415         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75416         [defined lint]: Suppress bogus uninitialized-variable warnings.
75417
75418         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75419         and let the caller return REG_ESPACE if out of space.  This
75420         removes an uninitialied-variable warning with GCC 4.0.1, and also
75421         avoids taking the address of a local variable.  All callers
75422         changed.
75423
75424 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75427         $LIBCSRC/posix/regexec.c.
75428         Add glibc bug 1217 for regcomp.c.
75429
75430 2005-08-19  Jim Meyering  <jim@meyering.net>
75431
75432         * lib/regexec.c (proceed_next_node): Redo local variables to
75433         avoid GCC shadowing warnings.
75434
75435 2005-08-18  Bruno Haible  <bruno@clisp.org>
75436
75437         * lib/strstr.c (strstr): Fix return value in multibyte case.
75438         * lib/strcasestr.c (strcasestr): Likewise.
75439
75440 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75441
75442         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75443
75444 2005-08-17  Jim Meyering  <jim@meyering.net>
75445
75446         Make the %s format (seconds since the epoch) work for a negative
75447         number and when used with a zero-padded field width, e.g. %015s.
75448
75449         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75450         label so that it precedes the code to set `digits'.  Otherwise,
75451         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75452         print `00-22'.  Now, it prints `-0022', as it should.
75453
75454 2005-08-17  Bruno Haible  <bruno@clisp.org>
75455
75456         * modules/strstr (Files): Add m4/mbrtowc.m4.
75457         (Depends-on): Add mbuiter.
75458
75459 2005-08-17  Bruno Haible  <bruno@clisp.org>
75460
75461         * modules/strcasestr: New file.
75462         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75463         strcasestr.
75464
75465 2005-08-17  Bruno Haible  <bruno@clisp.org>
75466
75467         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75468
75469 2005-08-17  Bruno Haible  <bruno@clisp.org>
75470
75471         * modules/mbuiter: New file.
75472         * MODULES.html.sh (Extended multibyte and wide character utilities):
75473         Add mbuiter.
75474
75475 2005-08-17  Bruno Haible  <bruno@clisp.org>
75476
75477         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75478         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75479
75480 2005-08-17  Bruno Haible  <bruno@clisp.org>
75481
75482         * m4/strcasestr.m4: New file.
75483
75484 2005-08-17  Bruno Haible  <bruno@clisp.org>
75485
75486         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75487         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75488
75489 2005-08-17  Bruno Haible  <bruno@clisp.org>
75490
75491         * lib/strcasestr.h: New file.
75492         * lib/strcasestr.c: New file.
75493
75494 2005-08-17  Bruno Haible  <bruno@clisp.org>
75495
75496         * lib/strcasecmp.c: Use mbuiter.h.
75497
75498 2005-08-17  Bruno Haible  <bruno@clisp.org>
75499
75500         * lib/mbuiter.h: New file.
75501
75502 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75505         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75506         and gl_GETOPT are both invoked via different paths (as happens
75507         with GNU tar CVS because it uses both argp and getopt), the former
75508         wins.
75509
75510 2005-08-16  Bruno Haible  <bruno@clisp.org>
75511
75512         * modules/tls: New file.
75513         * MODULES.html.sh (Multithreading): Add tls.
75514
75515 2005-08-16  Bruno Haible  <bruno@clisp.org>
75516
75517         * modules/strnlen1: New file.
75518         * MODULES.html.sh (String handling): Add strnlen1.
75519
75520 2005-08-16  Bruno Haible  <bruno@clisp.org>
75521
75522         * modules/strcase (Files): Add m4/mbrtowc.m4.
75523         (Depends-on): Add strnlen1, mbchar.
75524
75525 2005-08-16  Bruno Haible  <bruno@clisp.org>
75526
75527         * modules/mbiter: New file.
75528         * MODULES.html.sh (Extended multibyte and wide character utilities):
75529         Add mbiter.
75530
75531 2005-08-16  Bruno Haible  <bruno@clisp.org>
75532
75533         * modules/mbfile: New file.
75534         * MODULES.html.sh (Extended multibyte and wide character utilities):
75535         Add mbfile.
75536
75537 2005-08-16  Bruno Haible  <bruno@clisp.org>
75538
75539         * modules/mbchar: New file.
75540         * MODULES.html.sh (Extended multibyte and wide character utilities):
75541         New section.
75542
75543 2005-08-16  Bruno Haible  <bruno@clisp.org>
75544
75545         * m4/tls.m4: New file, from GNU gettext.
75546
75547 2005-08-16  Bruno Haible  <bruno@clisp.org>
75548
75549         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75550         always.
75551         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75552
75553 2005-08-16  Bruno Haible  <bruno@clisp.org>
75554
75555         * m4/mbiter.m4: New file.
75556
75557 2005-08-16  Bruno Haible  <bruno@clisp.org>
75558
75559         * m4/mbfile.m4: New file.
75560
75561 2005-08-16  Bruno Haible  <bruno@clisp.org>
75562
75563         * m4/mbchar.m4: New file.
75564
75565 2005-08-16  Bruno Haible  <bruno@clisp.org>
75566
75567         * lib/tls.h: New file, from GNU gettext.
75568         * lib/tls.c: New file, from GNU gettext.
75569
75570 2005-08-16  Bruno Haible  <bruno@clisp.org>
75571
75572         * lib/strnlen1.h: New file.
75573         * lib/strnlen1.c: New file.
75574
75575 2005-08-16  Bruno Haible  <bruno@clisp.org>
75576
75577         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75578         (mbi_init): Update.
75579         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75580         NUL byte, not after it.
75581
75582 2005-08-16  Bruno Haible  <bruno@clisp.org>
75583
75584         * lib/strcase.h (strcasecmp): Add note in comments.
75585         * lib/strncasecmp.c: Use code from strcasecmp.c.
75586         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75587         (strcasecmp): Work correctly in multibyte locales.
75588
75589 2005-08-16  Bruno Haible  <bruno@clisp.org>
75590
75591         * lib/mbiter.h: New file.
75592
75593 2005-08-16  Bruno Haible  <bruno@clisp.org>
75594
75595         * lib/mbfile.h: New file.
75596
75597 2005-08-16  Bruno Haible  <bruno@clisp.org>
75598
75599         * lib/mbchar.h: New file.
75600         * lib/mbchar.c: New file.
75601
75602 2005-08-16  Bruno Haible  <bruno@clisp.org>
75603
75604         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75605         the valid ones. Makes the comparison operations transitive:
75606         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75607         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75608
75609 2005-08-15  Simon Josefsson  <jas@extundo.com>
75610
75611         * modules/ssize_t (License): Change to 'unlimited'.
75612
75613         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75614
75615 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75616
75617         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75618         Add comments for each pending glibc patch.
75619
75620 2005-08-15  Bruno Haible  <bruno@clisp.org>
75621
75622         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75623         __cplusplus is defined.
75624
75625 2005-08-14  Jim Meyering  <jim@meyering.net>
75626
75627         Sync from coreutils.
75628
75629         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75630         Use the hash-table-based cycle-detection code not just when
75631         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75632         Reported by James Youngman in
75633         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75634         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75635         FTS_TIGHT_CYCLE_CHECK.
75636         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75637         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75638         once again.
75639         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75640         * lib/fts.c (fd_safer): Remove decl.
75641         Include fcntl--.h rather than unistd-safer.h
75642         (fts_safe_changedir): Don't call fd_safer; no longer needed
75643         now that we include fcntl--.h.
75644
75645 2005-08-12  Simon Josefsson  <jas@extundo.com>
75646
75647         * modules/getndelim2: Use ssize_t module.
75648         * modules/getnline: Likewise.
75649         * modules/safe-read: Likewise.
75650         * modules/xreadlink: Likewise.
75651
75652         * modules/ssize_t: New file.
75653
75654 2005-08-12  Simon Josefsson  <jas@extundo.com>
75655
75656         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75657
75658 2005-08-12  Simon Josefsson  <jas@extundo.com>
75659
75660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75661         ssize_t.
75662
75663 2005-08-12  Simon Josefsson  <jas@extundo.com>
75664
75665         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75666         readline, getdelim and check_version.
75667         (Support for systems lacking ISO C 99: Sizes of integer types):
75668         Add size_max.
75669
75670 2005-08-12  Bruno Haible  <bruno@clisp.org>
75671
75672         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75673
75674 2005-08-11  Simon Josefsson  <jas@extundo.com>
75675
75676         * modules/readline: New file.
75677
75678         * modules/strnlen (Files): Add strnlen.h.
75679
75680 2005-08-11  Simon Josefsson  <jas@extundo.com>
75681
75682         * m4/readline.m4: New file.
75683
75684 2005-08-11  Simon Josefsson  <jas@extundo.com>
75685
75686         * lib/readline.h, readline.c: New file.
75687
75688 2005-08-11  Simon Josefsson  <jas@extundo.com>
75689
75690         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75691         gl_AVOID.
75692
75693 2005-08-11  Bruno Haible  <bruno@clisp.org>
75694
75695         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75696
75697 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75698
75699         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75700
75701 2005-08-10  Simon Josefsson  <jas@extundo.com>
75702
75703         * tests/test-iconvme.c: New file.
75704
75705 2005-08-10  Simon Josefsson  <jas@extundo.com>
75706
75707         * m4/strnlen.m4: New file.
75708
75709         * m4/strndup.m4: Don't check for strnlen declaration, done in
75710         strnlen.m4.
75711
75712 2005-08-10  Simon Josefsson  <jas@extundo.com>
75713
75714         * lib/strndup.c: Use strnlen.h.
75715
75716         * lib/strnlen.h: New file.
75717
75718 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75719
75720         * README: Typos.
75721
75722 2005-08-02  Simon Josefsson  <jas@extundo.com>
75723
75724         * modules/readline: New file.
75725
75726 2005-08-02  Simon Josefsson  <jas@extundo.com>
75727
75728         * modules/getdelim: New file.
75729
75730         * modules/getline: Rewrite, don't use getndelim2.
75731
75732 2005-08-02  Simon Josefsson  <jas@extundo.com>
75733
75734         * m4/getline.m4: Separate out getdelim stuff into separate module.
75735
75736         * m4/getdelim.m4: New file.
75737
75738 2005-08-02  Simon Josefsson  <jas@extundo.com>
75739
75740         * lib/getline.h, getline.c: Rewrite.
75741
75742         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75743
75744 2005-07-31  Bruno Haible  <bruno@clisp.org>
75745
75746         * lib/lock.h (gl_lock_initializer): New macro.
75747         (gl_lock_define_initialized): Use it.
75748         (gl_rwlock_initializer): New macro.
75749         (gl_rwlock_define_initialized): Use it.
75750         (gl_recursive_lock_initializer): New macro.
75751         (gl_recursive_lock_define_initialized): Use it.
75752
75753 2005-07-30  Karl Berry  <karl@gnu.org>
75754
75755         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75756         Report from Ben Pfaff, regarding getopt.
75757
75758 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75759
75760         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75761         normal way.
75762         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75763         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75764         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75765         (gl_GETOPT): Use the new macros.  Most of the implementation
75766         is moved to the new macros.  This is for programs like Emacs
75767         that don't want all the functionality of gl_GETOPT.
75768
75769 2005-07-26  Bruno Haible  <bruno@clisp.org>
75770
75771         * m4/lock.m4: Update from GNU gettext.
75772
75773 2005-07-26  Bruno Haible  <bruno@clisp.org>
75774
75775         * lib/lock.h: Update from GNU gettext.
75776         * lib/lock.c: Update from GNU gettext.
75777
75778 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75781         obsolescent AC_TRY_RUN.  Include the default includes files, for
75782         'exit'.
75783
75784 2005-07-24  Bruno Haible  <bruno@clisp.org>
75785
75786         * modules/visibility: New file.
75787         * MODULES.html.sh (Misc): Add visibility.
75788
75789 2005-07-24  Bruno Haible  <bruno@clisp.org>
75790
75791         * m4/visibility.m4: New file.
75792
75793 2005-07-24  Bruno Haible  <bruno@clisp.org>
75794
75795         * doc/visibility.texi: New file.
75796
75797 2005-07-22  Bruno Haible  <bruno@clisp.org>
75798
75799         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75800         $(ALLOCA_H), redundant through BUILT_SOURCES.
75801         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75802         redundant through BUILT_SOURCES.
75803         * modules/byteswap (Makefile.am): Remove explicit dependency on
75804         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75805         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75806         $(FNMATCH_H), redundant through BUILT_SOURCES.
75807         * modules/getopt (Makefile.am): Remove explicit dependency on
75808         $(GETOPT_H), redundant through BUILT_SOURCES.
75809         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75810         redundant through BUILT_SOURCES.
75811         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75812         redundant through BUILT_SOURCES.
75813         * modules/stdbool (Makefile.am): Remove explicit dependency on
75814         $(STDBOOL_H), redundant through BUILT_SOURCES.
75815         * modules/stdint (Makefile.am): Remove explicit dependency on
75816         $(STDINT_H), redundant through BUILT_SOURCES.
75817         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75818         Remove explicit dependency on $(SYSEXITS_H).
75819         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75820
75821 2005-07-18  Simon Josefsson  <jas@extundo.com>
75822
75823         * lib/check-version.c (check_version): Accept identical versions too.
75824
75825 2005-07-18  Bruno Haible  <bruno@clisp.org>
75826
75827         * modules/lock: New file.
75828         * MODULES.html.sh (Multithreading): New section.
75829
75830 2005-07-18  Bruno Haible  <bruno@clisp.org>
75831
75832         * m4/lock.m4: New file, from GNU gettext.
75833
75834 2005-07-18  Bruno Haible  <bruno@clisp.org>
75835
75836         * lib/lock.h: New file, from GNU gettext.
75837         * lib/lock.c: New file, from GNU gettext.
75838
75839 2005-07-18  Bruno Haible  <bruno@clisp.org>
75840
75841         * lib/lock.h (gl_once_t): New type.
75842         (gl_once_define, gl_once): New macros.
75843         * lib/lock.c (fresh_once): New variable.
75844         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75845         functions.
75846
75847 2005-07-16  Simon Josefsson  <jas@extundo.com>
75848
75849         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75850         workaround, suggested by Bruno.
75851
75852 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * modules/xalloc (Depends-on): Add xalloc-die.
75855         * modules/xvasprintf (Depends-on): Add xalloc-die.
75856
75857 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75858
75859         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75860         with a minor change.
75861
75862 2005-07-15  Bruno Haible  <bruno@clisp.org>
75863
75864         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75865         When using lib/poll.c, define poll as rpl_poll.
75866
75867 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * modules/argp (Depends-on): Remove unlocked-io.
75870
75871 2005-07-14  Derek Price  <derek@ximbiot.com>
75872
75873         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75874         for glob symlink bug.
75875
75876 2005-07-14  Bruno Haible  <bruno@clisp.org>
75877
75878         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75879         Instead, test for *_unlocked function declarations directly.
75880
75881 2005-07-11  Simon Josefsson  <jas@extundo.com>
75882
75883         * modules/size_max: New file.
75884
75885         * modules/xsize: Depend on size_max module for size_max.m4.
75886
75887 2005-07-11  Simon Josefsson  <jas@extundo.com>
75888
75889         * lib/size_max.h: New file.
75890
75891 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75894         copyright symbol and the year.
75895         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75896         (version_etc_va): Use parameterized copyright notice.
75897         Reword to conform to the current GNU coding standards.
75898
75899 2005-07-11  Karl Berry  <karl@gnu.org>
75900
75901         * doc/gnulib.texi (Quoting): new node.
75902         (Initial import): more info, from Patrice.
75903
75904 2005-07-11  Bruno Haible  <bruno@clisp.org>
75905
75906         * gnulib-tool (func_usage): Document option --avoid.
75907         (Command line options): Handle --avoid.
75908         (func_acceptable): New function.
75909         (func_modules_transitive_closure): Use it.
75910
75911 2005-07-11  Bruno Haible  <bruno@clisp.org>
75912
75913         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75914         Reported by Jim Meyering.
75915
75916 2005-07-10  Bruno Haible  <bruno@clisp.org>
75917
75918         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75919         Needed when size_t is smaller than 'unsigned int'.
75920         Reported by Paul Eggert.
75921
75922 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75923
75924         * modules/argp (Depends-on): Add unlocked-io
75925
75926 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75927
75928         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75929         block of defines.
75930
75931 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75932
75933         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75934         fix now.
75935
75936 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75937         and Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75940         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75941
75942 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * modules/regex (Files): Add lib/regex_internal.c,
75945         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75946         (Depends-on): Add extensions.
75947         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75948
75949 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75952         pathconf.
75953         * m4/same.m4 (gl_SAME): Likewise.
75954         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75955
75956         * m4/regex.m4: Adjust to new libc regex implementation.
75957         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75958         all the .c and .h parts of (the new) regex.
75959         Quote the m4 stuff better.
75960         Check for RE_ICASE bug of old gnulib.
75961         Check for REG_STARTEND of recent libc.
75962         Rename local variables from jm_* to gl_*.
75963         Quote operand of "test -f".
75964         Say "recent enough" version of libc, not "version 2".
75965         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75966         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75967         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75968         Remove check for btowc, isascii.
75969         Require AM_LANGINFO_CODESET.
75970
75971 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * lib/regex.c, regex.h: Sync from libc.
75974         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75975         * lib/regexec.c:
75976         New files, synced from libc, except that regex_internal.h
75977         currently has a small porting fix.
75978
75979 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75982         regex_internal.c, regexec.c.
75983         Add regex_internal.h too, but as a comment, since the libc version
75984         is currently broken in gnulib mode.
75985
75986 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75987
75988         Support programs like Emacs that use gnulib but not gettext.
75989         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75990         * modules/gettext-h: New file.
75991         * modules/gettext (Files): Remove lib/gettext.h.
75992         (Depends-on): Add gettext-h.
75993         (Makefile.am): Remove lib_SOURCES.
75994         * modules/argmatch, modules/c-stack, modules/closeout:
75995         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75996         * modules/execute, modules/file-type, modules/getaddrinfo:
75997         * modules/getopt, modules/human, modules/javacomp:
75998         * modules/javaexec, modules/mkdir-p, modules/obstack:
75999         * modules/openat, modules/pagealign_alloc, modules/pipe:
76000         * modules/quotearg, modules/regex, modules/rpmatch:
76001         * modules/unicodeio, modules/userspec, modules/version-etc:
76002         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76003         * modules/xsetenv:
76004         Depend on gettext-h, not gettext.
76005
76006 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * gnulib-tool (func_import): Add support for 'public domain' license.
76009         * modules/alloca, modules/atexit, modules/memmove:
76010         Now public domain, not GPL.
76011         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76012         * modules/realloc, modules/strerror, modules/strtod:
76013         Now LGPL, not GPL.
76014
76015 2005-07-05  Bruno Haible  <bruno@clisp.org>
76016
76017         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76018         autoconf CVS. Needed for mingw.
76019
76020 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76021
76022         Remove the dependency of the strftime module on the tzset module.
76023         * modules/strftime (Depends-on): Remove dependency on tzset.
76024
76025 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76026
76027         Remove the dependency of the strftime module on the tzset module.
76028         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76029         gl_FUNC_TZSET_CLOBBER.
76030
76031 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76032
76033         Remove the dependency of the strftime module on the tzset module.
76034         * lib/strftime.c (my_strftime)
76035         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76036         Copy the input structure, to work around some of the bug with
76037         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76038         Solaris releases, you should also use the tzset module, but we won't
76039         require it as a dependency any more since we don't want LGPLed code
76040         to depend on GPLed code.
76041
76042 2005-07-02  Jim Meyering  <jim@meyering.net>
76043
76044         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76045         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76046         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76047         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76048
76049 2005-07-02  Jim Meyering  <jim@meyering.net>
76050
76051         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76052
76053 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76056         declares only 'struct timespec;' (!).
76057
76058 2005-07-01  Jim Meyering  <jim@meyering.net>
76059
76060         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76061         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76062         * lib/save-cwd.c, tempname.c:
76063         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76064         and don't include <sys/file.h>).
76065
76066 2005-06-29  Jim Meyering  <jim@meyering.net>
76067
76068         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76069         type name.  Use the variable name instead.
76070         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76071         Likewise.
76072
76073 2005-06-28  Simon Josefsson  <jas@extundo.com>
76074
76075         * modules/check-version (Files): Add check-version.m4.
76076
76077 2005-06-28  Simon Josefsson  <jas@extundo.com>
76078
76079         * m4/check-version.m4: New file, suggested by Jim Meyering
76080         <jim@meyering.net>.
76081
76082 2005-06-28  Simon Josefsson  <jas@extundo.com>
76083
76084         * lib/check-version.h, lib/check-version.c: New files.
76085
76086 2005-06-28  Simon Josefsson  <jas@extundo.com>
76087
76088         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76089         collision with global variable.  Better indentation.  Don't
76090         increment buffer pointer beyond buffer end.  Based on comments
76091         from Paul Eggert <eggert@cs.ucla.edu>.
76092
76093         * lib/base64.h: Indent.
76094
76095 2005-06-28  Simon Josefsson  <jas@extundo.com>
76096
76097         * doc/gnulib.texi (Library version handling): New section.
76098
76099 2005-06-28  Jim Meyering  <jim@meyering.net>
76100
76101         * check-module (find_included_lib_files): Hard-code another
76102         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76103         but modules/fts-lgpl (correctly) does not list those files.
76104
76105         * modules/canonicalize (Files): Add lib/pathmax.h.
76106
76107 2005-06-25  Simon Josefsson  <jas@extundo.com>
76108
76109         * modules/check-version: New file.
76110
76111 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76112
76113         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76114         initializer of struct addrinfo, as an indication that we don't
76115         care how many members the structure has.
76116
76117 2005-06-24  Derek Price  <derek@ximbiot.com>
76118         and Bruno Haible  <bruno@clisp.org>
76119
76120         Remove stat module & update lstat.
76121         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76122         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76123         * m4/stat.m4: Remove this file.
76124
76125 2005-06-24  Derek Price  <derek@ximbiot.com>
76126         and Bruno Haible  <bruno@clisp.org>
76127
76128         Remove stat module & update lstat.
76129         * lib/stat.c: Remove this file...
76130         (slash_aware_lstat): ...moving this content and its support...
76131         * lib/lstat.c (rpl_lstat): ...into here.
76132         * lib/lstat.h: New file.
76133
76134 2005-06-24  Derek Price  <derek@ximbiot.com>
76135         and Bruno Haible  <bruno@clisp.org>
76136
76137         Remove stat module & update lstat.
76138         * config/srclist.txt (libc sources): Remove stat.
76139
76140 2005-06-24  Derek Price  <derek@ximbiot.com>
76141         and Bruno Haible  <bruno@clisp.org>
76142
76143         Remove stat module & update lstat.
76144         * MODULES.html.sh (stat): Remove.
76145         * MODULES.html: Regenerated.
76146         * modules/lstat (Description): Correct function name.
76147         (Files): Add "lstat.h".
76148         (Depends-on): Remove stat, add xalloc, stat-macros.
76149         * modules/stat: Remove this file.
76150         (Include): Add "lstat.h", remove <sys/stat.h>.
76151
76152 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76155         (ranged_convert): Don't save conversion in a temporary struct.
76156         This causes a warning with GCC 4.0.0, and anyway in the typical
76157         case it's not worth the extra 100 bytes or so of code.
76158         (ranged_convert, __mktime_internal): When calling a function via a
76159         pointer P, use P () rather than (*P) (), as we now assume C89 or
76160         better.
76161
76162 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76163
76164         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76165         "who -r" failed to give output.  Problem reported by Tim Waugh.
76166
76167         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76168         (xcalloc): Use it to avoid needless tests.
76169         Problem reported by Jim Meyering.
76170
76171 2005-06-20  Derek Price  <derek@ximbiot.com>
76172
76173         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76174         unnecessary for Autoconfs > 2.59c.
76175
76176 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76177
76178         * lib/argp.h (__option_is_short): Check upper limit of
76179         __key. Isprint() requires its argument to have the value
76180         of an unsigned char or EOF.
76181
76182 2005-06-16  Jim Meyering  <jim@meyering.net>
76183
76184         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76185         when either N or S is zero.
76186
76187 2005-06-16  Derek Price  <derek@ximbiot.com>
76188
76189         * m4/bison.m4: Declare YACC & YFLAGS precious.
76190
76191 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76192
76193         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76194         multibyte string or pattern, fall back on unibyte matching.
76195         Problem reported by James Youngman.
76196
76197 2005-06-08  Bruno Haible  <bruno@clisp.org>
76198
76199         * modules/csharpcomp: New file.
76200         * MODULES.html.sh (C#): Add csharpcomp.
76201
76202 2005-06-08  Bruno Haible  <bruno@clisp.org>
76203
76204         * m4/csharpcomp.m4: New file, from GNU gettext.
76205
76206 2005-06-08  Bruno Haible  <bruno@clisp.org>
76207
76208         * lib/csharpcomp.h: New file, from GNU gettext.
76209         * lib/csharpcomp.c: New file, from GNU gettext.
76210         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76211
76212 2005-06-08  Bruno Haible  <bruno@clisp.org>
76213
76214         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76215         warning on mingw.
76216
76217 2005-06-07  Derek Price  <derek@ximbiot.com>
76218
76219         Sync from CVS.
76220         * lib/glob_.h: Indent nested #ifdef.
76221
76222 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76223
76224         Sync from coreutils.
76225         Use "file name" when talking about file names, instead of "filename"
76226         or "path", as per the GNU coding standards.
76227         * lib/mkdir-p.c: Renamed from makepath.c.
76228         (make_dir_parents): Renamed from make_path.  All callers changed.
76229         * lib/mkdir-p.h: Likewise.  All includers changed.
76230         * lib/filenamecat.c: Renamed from path-concat.c.
76231         (file_name_concat): Renamed from path_concat.  All callers changed.
76232         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76233         * lib/filenamecat.h: Likewise.  All includers changed.
76234         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76235         in comments or local variable names.
76236         * lib/basename.c: Likewise.
76237         * lib/canonicalize.c, canonicalize.h: Likewise.
76238         * lib/dirname.c, dirname.h: Likewise.
76239         * lib/euidaccess.c: Likewise.
76240         * lib/exclude.c: Likewise
76241         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76242         * lib/fsusage.c, fsuage.h: Likewise.
76243         * lib/fts.c, fts_.h: Likewise.
76244         * lib/getcwd.c: Likewise.
76245         * lib/getloadavg.c: Likewise.
76246         * lib/mkstemp.c: Likewise.
76247         * lib/mountlist.c, mountlist.h: Likewise.
76248         * lib/openat.c, openat.h: Likewise.
76249         * lib/readlink-stub.c: Likewise.
76250         * lib/readutmp.c, readutmp.h: Likewise.
76251         * lib/rename.c: Likewise.
76252         * lib/rmdir.c: Likewise.
76253         * lib/same.c: Likewise.
76254         * lib/savedir.c: Likewise.
76255         * lib/stripslash.c: Likewise.
76256         * lib/tempname.c: Likewise.
76257         * lib/xreadlink.c: Likewise.
76258         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76259         All uses changed.
76260         * lib/exclude.h: Likewise.
76261
76262         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76263         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76264         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76265         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76266         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76267         files have been getting away with it for years (MORE/BSD 4.3
76268         is extinct now).
76269         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76270         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76271
76272         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76273         Define to 256, not 255, as per modern POSIX.
76274
76275 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76276
76277         Sync from coreutils.
76278         Use "file name" when talking about file names, instead of "filename"
76279         or "path", as per the GNU coding standards.
76280         * MODULES.html.sh: mkdir-p renamed from makepath.
76281         filenamecat renamed from path-concat.
76282         * modules/filenamecat: Renamed from modules/path-concat.
76283         (Files): filenamecat.h and filenamecat.c renamed from
76284         path-concat.h and path-concat.c.
76285         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76286         (Include): filenamecat.h, not path-concat.h.
76287         * modules/mkdir-p: Renamed from modules/makepath.
76288         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76289         makepath.c.
76290         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76291         (Include): mkdir-p.h, not makepath.h.
76292
76293 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76294
76295         Sync from coreutils.
76296         * m4/mkdir-p.m4: Renamed from makepath.m4.
76297         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76298         Rename files from makepath.c to mkdir-p.c, and from
76299         makepath.h to mkdir-p.h.
76300         * m4/filenamecat.m4: Renamed from path-concat.m4.
76301         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76302         Rename files from path-concat.c to filenamecat.c,
76303         and from path-concat.h to filenamecat.h.
76304         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76305         "file name" in local variables or comments.
76306         * m4/rename.m4: Likewise.
76307
76308 2005-06-01  Bruno Haible  <bruno@clisp.org>
76309
76310         * modules/csharpexec: New file.
76311         * MODULES.html.sh (C#): New section.
76312
76313 2005-06-01  Bruno Haible  <bruno@clisp.org>
76314
76315         * m4/csharp.m4: New file, from GNU gettext.
76316         * m4/csharpexec.m4: New file, from GNU gettext.
76317
76318 2005-06-01  Bruno Haible  <bruno@clisp.org>
76319
76320         * lib/csharpexec.h: New file, from GNU gettext.
76321         * lib/csharpexec.c: New file, from GNU gettext.
76322         * lib/csharpexec.sh.in: New file, from GNU gettext.
76323
76324 2005-05-31  Derek Price  <derek@ximbiot.com>
76325             Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         Sync from cvs.
76328         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76329
76330 2005-05-31  Derek Price  <derek@ximbiot.com>
76331             Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         Sync from cvs.
76334         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76335
76336 2005-05-29  Derek Price  <derek@ximbiot.com>
76337
76338         * config/srclist.txt (glob_.h, glob.c): Add these files.
76339
76340 2005-05-29  Derek Price  <derek@ximbiot.com>
76341
76342         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76343         * modules/glob: New file.
76344         * modules/getlogin_r: Add link to POSIX spec in description.
76345
76346 2005-05-29  Derek Price  <derek@ximbiot.com>
76347             Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * m4/glob.m4: New file.
76350
76351 2005-05-29  Derek Price  <derek@ximbiot.com>
76352             Paul Eggert  <eggert@cs.ucla.edu>
76353
76354         * lib/glob_.h, lib/glob.c: New files.
76355
76356 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76359         * modules/fts-lgpl (Depends-on): Remove gettext.
76360
76361 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76364         and don't require gt_INTTYPES_PRI.
76365
76366 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76369
76370         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76371         the configuration hassle isn't worth it.
76372         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76373         (LONGEST_MODIFIER, PRIuMAX): Remove.
76374
76375 2005-05-27  Bruno Haible  <bruno@clisp.org>
76376
76377         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76378
76379 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76380
76381         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76382         _POSIX_PTHREAD_SEMANTICS for Solaris.
76383
76384 2005-05-25  Derek Price  <derek@ximbiot.com>
76385
76386         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76387
76388 2005-05-25  Derek Price  <derek@ximbiot.com>
76389             Paul Eggert  <eggert@cs.ucla.edu>
76390
76391         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76392         * lib/getlogin_r.c, getlogin_r.h: New files.
76393
76394 2005-05-25  Bruno Haible  <bruno@clisp.org>
76395             Derek Price  <derek@ximbiot.com>
76396
76397         * lib/getlogin_r.h: Simplify API documentation.
76398
76399 2005-05-23  Derek Price  <derek@ximbiot.com>
76400
76401         * modules/minmax (Files): Add m4/minmax.m4.
76402         (configure.ac): Add gl_MINMAX.
76403
76404 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76405
76406         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76407         so that unistd-safer.h (GPL'ed code) need not be included.
76408
76409 2005-05-22  Bruno Haible  <bruno@clisp.org>
76410
76411         * m4/minmax.m4: New file.
76412         Based on a patch by Derek Price <derek@ximbiot.com>.
76413
76414 2005-05-22  Bruno Haible  <bruno@clisp.org>
76415
76416         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76417         (INT64_MIN): Fix definition.
76418         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76419
76420         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76421         NEED_SIGNED_INT_TYPES.
76422
76423         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76424         HAVE_SYSTEM_INTTYPES.
76425
76426 2005-05-22  Bruno Haible  <bruno@clisp.org>
76427
76428         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76429         Also include <sys/param.h> if it defines MIN, MAX.
76430         Based on a patch by Derek Price <derek@ximbiot.com>.
76431
76432 2005-05-21  Jim Meyering  <jim@meyering.net>
76433
76434         * modules/fts (Files): Add m4/inttypes-pri.m4.
76435         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76436
76437 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         New fts module.
76440         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76441         (setup_dir, free_dir): New functions.
76442         (enter_dir, leave_dir): Define trivial
76443         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76444         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76445         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76446         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76447         Move to fts-cycle.c.
76448         (fts_open): Use setup_dir.
76449         (fts_close): Use free_dir.
76450         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76451         This adds a label and some gotos, but the alternatives were messier.
76452         Check for memory allocation failure when entering a dir.
76453         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76454         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76455         (FTS): New member fts_cycle, that is a union that contains the
76456         old active_dir_ht and cycle_state.  All uses changed to mention
76457         fts_cycle.ht and fts_cycle.state.
76458         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76459         fts.c, with the following changes:
76460         (setup_dir, free_dir): New functions.
76461         (enter_dir): Now returns bool.  Return true if successful, false
76462         if memory exhausted.  All callers changed.
76463         Do not bother partly cleaning up on
76464         memory allocation failure; that is free_dir's job.
76465         However, free ad if hash_insert fails, to avoid memory leak.
76466         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76467         fts->fts_options to see which union member to use.
76468
76469 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76472         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76473
76474 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76477
76478 2005-05-20  Jim Meyering  <jim@meyering.net>
76479
76480         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76481         Now a macro, to pacify GCC.
76482
76483 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76484
76485         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76486         of -1.
76487
76488 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76489
76490         * lib/chown.c (rpl_chown): Return -1 on failure.
76491
76492 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76493
76494         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76495         Don't check for stddef.h.
76496         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76497         don't use its results.
76498         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76499         since we include them unconditionally.  Don't require
76500         AM_STDBOOL_H, since stdbool is a prerequisite.
76501         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76502         since we assume C89 or better.
76503         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76504         as we don't use their results.
76505         Don't check for fchdir, memmove, memset, strrchr, as we use
76506         them unconditionally.
76507         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76508         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76509
76510 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76513         Include <stddef.h> unconditionally, since we assume C89 now.
76514         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76515         * lib/fts.c: Include fts_.h first, to check interface.
76516         Do not include intprops.h; no longer needed.
76517         Include cycle-check.h and hash.h, since fts_.h no longer does.
76518         Remove unnecessary casts of closedir to void.
76519         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76520         decide whether to decrement nlinks.
76521         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76522         (FTS): Use struct hash_table * instead of Hash_table, so that
76523         we no longer need to include hash.h here.
76524
76525 2005-05-18  Jim Meyering  <jim@meyering.net>
76526
76527         * modules/dirfd (License): Change to LGPL.  Most of the code
76528         is already in the public domain.
76529
76530 2005-05-18  Jim Meyering  <jim@meyering.net>
76531
76532         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76533         Reported by Yoann Vandoorselaere.
76534
76535 2005-05-17  Jim Meyering  <jim@meyering.net>
76536
76537         * m4/fts.m4: New file, from coreutils.
76538
76539 2005-05-17  Jim Meyering  <jim@meyering.net>
76540
76541         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76542
76543 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76544
76545         Sync from coreutils.
76546         * m4/unlinkdir.m4: New file.
76547
76548 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76549
76550         Sync from coreutils.
76551         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76552         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76553         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76554         White space changes only.
76555         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76556         special.
76557         * lib/yesno.c: Include getline.h, not ctype.h.
76558         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76559         Use getline to remove arbitrary restriction on response length.
76560
76561 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * config/srclist-update: Spell out "Street" in FSF postal
76564         mail address; this is the style the FSF seems to prefer.
76565
76566         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76567         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76568         this updates FSF postal mail address.
76569
76570         Sync from coreutils.
76571         * modules/unlinkdir: New file.
76572         * modules/yesno (Depends-on): Add getline.
76573         * MODULES.html.sh (File system functions): Add unlinkdir.
76574
76575 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76576
76577         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76578         lib/strsep.h:
76579         Change the initial comment to refer to GPL, not LGPL.
76580         gnulib-tool will change it to LGPL as needed.
76581
76582         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76583         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76584         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76585         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76586         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76587         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76588         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76589         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76590         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76591         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76592         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76593         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76594         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76595         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76596         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76597         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76598         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76599         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76600         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76601         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76602         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76603         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76604         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76605         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76606         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76607         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76608         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76609         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76610         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76611         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76612         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76613         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76614         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76615         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76616         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76617         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76618         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76619         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76620         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76621         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76622         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76623         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76624         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76625         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76626         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76627         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76628         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76629         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76630         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76631         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76632         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76633         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76634         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76635         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76636         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76637         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76638         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76639         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76640         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76641         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76642         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76643         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76644         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76645         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76646         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76647         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76648         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76649         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76650         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76651         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76652         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76653         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76654         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76655         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76656         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76657         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76658         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76659         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76660         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76661         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76662         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76663         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76664         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76665         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76666         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76667         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76668         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76669         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76670         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76671         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76672         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76673         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76674         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76675         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76676         lib/yesno.c, lib/yesno.h:
76677         Update FSF postal mail address.
76678
76679 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76680
76681         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76682         tests/test-memmem.c, tests/test-stpncpy.c:
76683         Update FSF postal mail address.
76684
76685 2005-05-13  Bruno Haible  <bruno@clisp.org>
76686
76687         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76688         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76689         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76690         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76691         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76692         Add support for 64-bit integers in the MSVC compiler.
76693
76694 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76695
76696         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76697
76698 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76699
76700         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76701
76702 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76703
76704         * doc/getdate.texi (General date syntax): Don't say that date
76705         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76706         Problem reported by Nic Ferrier.
76707
76708 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76709
76710         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76711         specified in ai_socktype. Fix invalid ai_protocol
76712         check. ai_protocol is usually set to 0 or depending on
76713         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76714         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76715         ai_socktype / ai_protocol in the returned addrinfo structure.
76716
76717 2005-05-10  Simon Josefsson  <jas@extundo.com>
76718
76719         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76720         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76721
76722 2005-05-10  Karl Berry  <karl@gnu.org>
76723
76724         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76725         (from http://www.gnu.org/licenses).
76726         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76727         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76728         fdl.texi suffices.
76729
76730 2005-05-10  Karl Berry  <karl@gnu.org>
76731
76732         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76733         (COPYING.DOC): remove.
76734
76735         * config/srclist-update: new FSF address.
76736
76737 2005-05-10  Derek Price  <derek@ximbiot.com>
76738
76739         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76740         possible.
76741
76742 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76743             Bruno Haible  <bruno@clisp.org>
76744
76745         * modules/inet_ntop: New file.
76746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76747         inet_ntop.
76748
76749 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76750             Bruno Haible  <bruno@clisp.org>
76751
76752         * m4/inet_ntop.m4: New file.
76753
76754 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76755             Bruno Haible  <bruno@clisp.org>
76756
76757         * lib/inet_ntop.h: New file.
76758         * lib/inet_ntop.c: New file, from glibc with modifications.
76759
76760 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76761
76762         * modules/time_r (License): Change to LGPL.
76763         * modules/extensions (License): Change to LGPL.  Actually,
76764         the license is more permissive than that, but currently gnulib-tool
76765         doesn't know how to handle more-permissive licenses.
76766
76767         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76768         Problem reported by Dave Love.
76769
76770 2005-05-08  Jim Meyering  <jim@meyering.net>
76771
76772         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76773         blank.
76774
76775 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * modules/argmatch (Depends-on): Add stdbool.
76778         * modules/backupfile (Depends-on): Likewise.
76779         * modules/chdir-long (Depends-on): Likewise.
76780         * modules/closeout (Depends-on): Likewise.
76781         * modules/cycle-check (Depends-on): Likewise.
76782         * modules/dirname (Depends-on): Likewise.
76783         * modules/fnmatch (Depends-on): Likewise.
76784         * modules/fsusage (Depends-on): Likewise.
76785         * modules/fwriteerror (Depends-on): Likewise.
76786         * modules/getcwd (Depends-on): Likewise.
76787         * modules/getloadavg (Depends-on): Likewise.
76788         * modules/hard-locale (Depends-on): Likewise.
76789         * modules/makepath (Depends-on): Likewise.
76790         * modules/mountlist (Depends-on): Likewise.
76791         * modules/nanosleep (Depends-on): Likewise.
76792         * modules/posixtm (Depends-on): Likewise.
76793         * modules/quotearg (Depends-on): Likewise.
76794         * modules/readtokens (Depends-on): Likewise.
76795         * modules/readtokens0 (Depends-on): Likewise.
76796         * modules/readutmp (Depends-on): Likewise.
76797         * modules/save-cwd (Depends-on): Likewise.
76798         * modules/strftime (Depends-on): Likewise.
76799         * modules/userspec (Depends-on): Likewise.
76800         * modules/utimecmp (Depends-on): Likewise.
76801         * modules/xgetcwd (Depends-on): Likewise.
76802         * modules/xnanosleep (Depends-on): Likewise.
76803         * modules/xstrtod (Depends-on): Likewise.
76804         * modules/yesno (Depends-on): Likewise.
76805
76806 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76809         needless checks.
76810
76811 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76812
76813         Merge from coreutils.  Among other things,
76814         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76815         * lib/fd-safer.c: New file.
76816         * lib/fcntl-safer.h, open-safer.c: Remove.
76817         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76818         * lib/dup-safer.c: Include unistd-safer.h first.
76819         Don't include errno.h.
76820         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76821         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76822         * lib/file-type.c: Rely on file-type.h change.
76823         * lib/getloadavg.c: Include unistd-safer.h.
76824         (getloadavg): Use safer open.
76825         * lib/getusershell.c: Include "stdio-safer.h".
76826         (getusershell): Use safer fopen.
76827         * lib/long-options.c (long_options): Use NULL rather than 0.
76828         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76829         'free'.
76830         * lib/modechange.c: Likewise.
76831         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76832         (MODE_DONE): New constant.
76833         (struct mode_change): Remove 'next' member.
76834         (make_node_op_equals): New function; like the old one of the
76835         same name, except it allocates an array.
76836         (mode_compile, mode_create_from_ref): Use it.
76837         (mode_compile): Allocate result as an array, not a linked list.
76838         Parse octal string ourself, so that we catch mistakes like "+0".
76839         (mode_adjust): Arg is an array, not a linked list.
76840         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76841         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76842         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76843         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76844         Remove.  This is now stat-macros.h's job.
76845         (talloc): Remove.  All callers replaced by xalloc, so that
76846         our invokers don't have to worry about reporting memory failures.
76847         (make_node_op_equals): Remove.
76848         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76849         New constants.
76850         (struct mode_change): Moved here from modechange.h.
76851         (mode_append_entry): Remove.
76852         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76853         apps to have incorrect behavior.  Use simpler algorithm for head
76854         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76855         Detect more invalid usages rather than having somewhat-random behavior.
76856         Don't insert an "a=" action, as that leads to incorrect behavior.
76857         (mode_compile, mode_create_from_ref): Return NULL on error instead
76858         of an enum, since now there's only one way to have an error.  All
76859         callers changed.
76860         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76861         at the correct time.  Simplify calculation of "+u" and its ilk.
76862         Don't mishandle "+X".
76863         (mode_free): Remove "register" and localize decls.
76864         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76865         (struct mode_change): Move to modechange.c; callers don't
76866         need to see this stuff.
76867         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76868         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76869         (mode_change, mode_adjust): Reflect the new signatures noted above.
76870         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76871         that might redefine system include files.
76872         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76873         (my_usleep): Use NULL rather than (void *) 0.
76874         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76875         Use siginterrupt to specify that system calls should be interrupted.
76876         (rpl_nanosleep): Move initialization of suspended closer to call of
76877         my_usleep.
76878         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76879         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76880         (desirable_utmp_entry): New function.
76881         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76882         using x2nrealloc, to simplify logic.
76883         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76884         size calculation.  Do not assume utmp file is a regular file.
76885         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76886         (READ_UTMP_CHECK_PIDS): New constant.
76887         * lib/save-cwd.c: Include unistd-safer.h.
76888         (save_cwd): Use fd_safer.
76889         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76890         [!_LIBC] Include "stat-macros.h" instead.
76891         * lib/unistd-safer.h (fd_safer): New decl.
76892
76893 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * modules/getloadavg (Depends-on): Add unistd-safer.
76896         * modules/getusershell (Depends-on): Add stdio-safer.
76897         * modules/lstat (Depends-on): Remove xalloc.
76898         * modules/mkstemp (Depends-on): Add stat-macros.
76899         * modules/modechange (Depends-on): Remove xstrtol.
76900         Add stat-macros, xalloc.
76901         * modules/save-cwd (Depends-on): Add unistd-safer.
76902         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76903         * modules/unistd-safer (Files): Add lib/fd-safer.c
76904         (Makefile.am): Remove lib_SOURCES.
76905
76906         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76907         Remove fcntl-safer; unistd-safer supersedes it.
76908
76909 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76912         AC_HEADER_STAT.
76913         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76914         (gl_PREREQ_CHOWN): Remove.
76915         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76916         it.  Don't require AC_HEADER_STAT.
76917         (gl_PREREQ_LSTAT): Remove.
76918         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76919         Don't require AC_HEADER_STAT.
76920         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76921         (gl_PREREQ_RMDIR): Remove.
76922         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76923         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76924         the stat-macros module a prerequisite.
76925         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76926         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76927         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76928         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76929         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76930         variable names.
76931         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76932         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76933         variable prefixes.
76934         * m4/fcntl-safer.m4: Remove.
76935         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76936         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76937         Invoke gl_PREREQ_FD_SAFER.
76938         (gl_PREREQ_FD_SAFER): New macro.
76939         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76940         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76941         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76942         Remove duplicate call to AC_LIBOBJ(readutmp).
76943         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76944
76945         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76946         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76947
76948 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         * MODULES.html.sh (Misc): Add byteswap.
76951
76952 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76953
76954         * modules/getcwd (Depends-on): Add extensions.
76955         * modules/openat (Depends-on): Likewise.
76956
76957 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76958
76959         * modules/byteswap: New file.
76960
76961 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76962
76963         * m4/byteswap.m4: New file.
76964
76965 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76966
76967         * lib/byteswap_.h: New file.
76968
76969 2005-04-25  Karl Berry  <karl@gnu.org>
76970
76971         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76972
76973 2005-04-25  Albert Chin  <china@thewrittenword.com>
76974
76975         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76976         Toolkit C bug.
76977
76978 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76979
76980         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76981         (func_ln_if_changed): Remove forcibly for no error message
76982         in case file does not exist.
76983
76984 2005-04-19  Simon Josefsson  <jas@extundo.com>
76985
76986         * gnulib-tool (Options): Make --symlink mean --symbolic.
76987
76988 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76989
76990         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76991
76992 2005-04-16  Simon Josefsson  <jas@extundo.com>
76993
76994         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76995
76996 2005-04-15  Simon Josefsson  <jas@extundo.com>
76997
76998         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76999
77000 2005-04-15  Simon Josefsson  <jas@extundo.com>
77001
77002         * gnulib-tool: Rename --symlink to --symbolic.
77003
77004 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77005
77006         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77007         symbolic links to files instead of copying/moving.  Add --aux-dir,
77008         specifying directory relative --dir where auxiliary build tools
77009         are placed.
77010
77011 2005-04-14  Bruno Haible  <bruno@clisp.org>
77012
77013         * modules/allocsa (License): Change to LGPL.
77014         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77015
77016 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77017
77018         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77019         that "UTC +1 second" continues to work.  Problem reported
77020         by Dmitry V. Levin.
77021         (relunit_snumber): New rule.
77022         (relunit): Use it.
77023
77024 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77025
77026         * lib/getdate.y (universal_time_zone_table): New constant.
77027         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77028         universal_time_zone_table.
77029         (lookup_zone): Prefer universal_time_zone_table to
77030         local_time_zone_table, so that "GMT" time stamps are allowed in
77031         London during the summer.  Problem reported by Ian Abbott.
77032
77033 2005-04-12  Jim Meyering  <jim@meyering.net>
77034
77035         * lib/human.c (humblock): Set *options even when returning due to
77036         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77037         warning from gcc-4.
77038
77039 2005-04-09  Jim Meyering  <jim@meyering.net>
77040
77041         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77042         -Wuninitialized: initialize tm0.tm_year.
77043
77044 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77047         count, since there's no maximum.  All uses changed.
77048         Add member dsts_seen.
77049         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77050         not being INT_MAX.
77051         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77052         Use pc_rels_seen to decide whther a date is absolute.
77053
77054         * lib/getdate.y (number): Don't overwrite year.
77055         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77056         check.
77057
77058 2005-04-02  Simon Josefsson  <jas@extundo.com>
77059
77060         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77061         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77062
77063 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77064
77065         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77066         where no absolute path name can be longer than PATH_MAX.
77067
77068 2005-03-27  Jim Meyering  <jim@meyering.net>
77069
77070         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77071
77072 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77073
77074         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77075         "one's complement" -> "ones' complement" in comment, as per Knuth.
77076         "value of type" -> "type or expression" in comment.
77077         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77078
77079 2005-03-26  Jim Meyering  <jim@meyering.net>
77080
77081         Comment nits.
77082         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77083         Correct typos: s/or/of/.
77084
77085 2005-03-26  Jim Meyering  <jim@meyering.net>
77086
77087         * modules/check-include-files: Move to ../ and rename to...
77088         * check-module: ...this.
77089
77090 2005-03-25  Jim Meyering  <jim@meyering.net>
77091
77092         * modules/xvasprintf (Files): Add xalloc.h.
77093
77094 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * modules/gettext (Files): config/config.rpath ->
77097         build-aux/config.rpath
77098         * modules/iconv (Files): Likewise.
77099         Problem reported by Oskar Liljeblad.
77100
77101 2005-03-23  Jim Meyering  <jim@meyering.net>
77102
77103         * modules/check-include-files: New script to check for
77104         missing dependencies, multiple includes, etc.
77105
77106         * modules/c-strtold (Depends-on): Add xalloc.
77107         * modules/c-strtod (Depends-on): Add xalloc.
77108         * modules/hash (Depends-on): Add xalloc.
77109         (Files): Remove lib/xalloc.h.
77110
77111         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77112         * modules/userspec (Files): Add lib/inttostr.h.
77113
77114 2005-03-23  Jim Meyering  <jim@meyering.net>
77115
77116         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77117
77118 2005-03-22  Jim Meyering  <jim@meyering.net>
77119
77120         * modules/stat-macros: New module.
77121         * modules/canonicalize, modules/euidaccess, modules/file-type,
77122         * modules/filemode, modules/lchown, modules/makepath,
77123         * modules/rmdir, modules/stat: Depend on new stat-macros module
77124         rather than listing lib/stat-macros.h manually.
77125         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77126
77127 2005-03-22  Jim Meyering  <jim@meyering.net>
77128
77129         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77130
77131 2005-03-22  Bruno Haible  <bruno@clisp.org>
77132
77133         * config/srclist.txt: Replace target directory 'config' with
77134         'build-aux'.
77135         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77136         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77137         ../build-aux/.
77138
77139 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         * modules/chdir-long (Depends-on): Add mempcpy.
77142
77143         * modules/acl, modules/backupfile, modules/c-strtod,
77144         modules/c-strtold, modules/canon-host, modules/canonicalize,
77145         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77146         modules/exclude, modules/exitfail, modules/file-type,
77147         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77148         modules/getdate, modules/getline, modules/getpagesize,
77149         modules/getpass, modules/getugroups, modules/group-member,
77150         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77151         modules/inttostr, modules/long-options, modules/makepath,
77152         modules/md5, modules/memcasecmp, modules/memcoll,
77153         modules/modechange, modules/mountlist, modules/path-concat,
77154         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77155         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77156         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77157         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77158         modules/strftime, modules/strndup, modules/strverscmp,
77159         modules/timespec, modules/unlocked-io, modules/userspec,
77160         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77161         modules/yesno:
77162         Remove lib_SOURCES line from Makefile.am section, as this is now
77163         done automatically by the corresponding Autoconf macro.
77164
77165 2005-03-21  Jim Meyering  <jim@meyering.net>
77166
77167         Changes imported from coreutils.
77168
77169         * lib/cycle-check.c: Don't include xalloc.h.
77170
77171         * lib/path-concat.c: Don't include assert.h.
77172         (path_concat): Remove assertion that would have triggered
77173         for ABASE starting with more than one slash.
77174         Reported by Andreas Schwab.
77175
77176         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77177         properly when ABASE is an absolute file name.
77178         Correct the description of this function.
77179         Include <assert.h>.
77180         Add an assertion and a test driver.
77181         This fixes a bug introduced on 2004-07-02.
77182         Andreas Schwab reported the resulting failure of cp --parents:
77183         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77184
77185 2005-03-21  Jim Meyering  <jim@meyering.net>
77186
77187         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77188         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77189
77190 2005-03-21  Jim Meyering  <jim@meyering.net>
77191         and  Paul Eggert  <eggert@cs.ucla.edu>
77192
77193         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77194         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77195         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77196         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77197         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77198         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77199         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77200         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77201         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77202         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77203         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77204         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77205         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77206         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77207         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77208         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77209         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77210         for these modules.
77211
77212 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77213
77214         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77215         (which shouldn't happen), generate nothing instead of returning 0
77216         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77217
77218 2005-03-16  Bruno Haible  <bruno@clisp.org>
77219
77220         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77221         HAVE_LONGLONG_64BIT.
77222
77223 2005-03-16  Bruno Haible  <bruno@clisp.org>
77224
77225         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77226         HAVE_LONGLONG_64BIT.
77227
77228 2005-03-16  Bruno Haible  <bruno@clisp.org>
77229
77230         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77231         HAVE_LONGLONG_64BIT.
77232
77233 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77234
77235         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77236         reliably distinguish strftime failure from empty output on POSIX
77237         hosts.
77238
77239 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77240
77241         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77242         (iconv_string): Don't guess a size-zero buffer, as that might cause
77243         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77244         result would be 'too large', where 'too large' is (heuristically)
77245         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77246         overflow concerns.  This will prevent some unwanted malloc failures
77247         when the inputs are very large.
77248
77249 2005-03-15  Karl Berry  <karl@gnu.org>
77250
77251         * config/srclist.txt (config.rpath): from gettext.
77252         * config/config.rpath: update.
77253
77254 2005-03-15  Bruno Haible  <bruno@clisp.org>
77255
77256         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77257         to 'negate'.
77258
77259         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77260         variable.
77261
77262         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77263         results.
77264
77265 2005-03-14  Simon Josefsson  <jas@extundo.com>
77266
77267         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77268         <fx@gnu.org>.
77269
77270 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77273         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77274         intprops.h.
77275         * lib/strtol.c: Likewise.
77276
77277 2005-03-14  Jim Meyering  <jim@meyering.net>
77278
77279         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77280         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77281         to be nonzero so that we (and caller) can detect the difference
77282         between a valid zero-length expansion and an error return, even
77283         when the underlying strftime fails before writing anything into
77284         that location.
77285
77286 2005-03-14  Bruno Haible  <bruno@clisp.org>
77287
77288         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77289         Update from GNU gettext 0.14.3.
77290
77291 2005-03-10  Jim Meyering  <jim@meyering.net>
77292
77293         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77294
77295 2005-03-10  Jim Meyering  <jim@meyering.net>
77296
77297         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77298         so that this module works on systems without fchdir.
77299
77300 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77301
77302         Factor int-properties macros into a single file, except for
77303         glibc-related files.
77304         * lib/intprops.h: New file.
77305         * lib/getloadavg.c: Include it instead of limits.h.
77306         (INT_STRLEN_BOUND): Remove.
77307         * lib/human.c: Include intprops.h.
77308         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77309         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77310         302/1000.
77311         * lib/inttostr.h: Include intprops.h instead of limits.h.
77312         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77313         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77314         for consistency with intprops.h.
77315         (time_t_is_integer, twos_complement_arithmetic): Use them.
77316         * lib/sig2str.h: Include <signal.h>, intprops.h.
77317         (INT_STRLEN_BOUND): Remove.
77318         * lib/strftime.c (TYPE_SIGNED): Remove.
77319         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77320         * lib/strtol.c: Adjust comments to match intprops.h.
77321         * lib/userspec.c: Include intprops.h.
77322         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77323         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77324         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77325         instead of rolling our own expressions.
77326         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77327
77328         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77329         instead of int.
77330         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77331         the right thing even if adding 1900 would overflow.  Similarly
77332         for tm_mon + 1 and tm_yday + 1.
77333         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77334         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77335         (DO_SIGNED_NUMBER): New macro.
77336         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77337
77338 2005-03-07  Bruno Haible  <bruno@clisp.org>
77339
77340         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77341
77342 2005-03-07  Bruno Haible  <bruno@clisp.org>
77343
77344         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77345
77346 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77347
77348         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77349         (func_import): Only replace files via --import when they have actually
77350         changed.
77351
77352 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77353
77354         * m4/mmap-anon.m4: New file.
77355         * m4/pagealign_alloc.m4: New file.
77356
77357 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77358             Bruno Haible  <bruno@clisp.org>
77359
77360         * modules/pagealign_alloc: New file.
77361         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77362
77363 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77364             Bruno Haible  <bruno@clisp.org>
77365
77366         * lib/pagealign_alloc.h: New file.
77367         * lib/pagealign_alloc.c: New file.
77368
77369 2005-03-03  Bruno Haible  <bruno@clisp.org>
77370
77371         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77372         Use an all-permissive copyright notice, recommended by RMS.
77373
77374 2005-03-02  Bruno Haible  <bruno@clisp.org>
77375
77376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77377         of AIX, the replacement has to be done only after <string.h> is
77378         included, therefore not in config.h. stpncpy.h does the replacement,
77379         and stpncpy.c uses it.
77380
77381 2005-03-02  Bruno Haible  <bruno@clisp.org>
77382
77383         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77384         stpncpy.c uses it.
77385
77386 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77389         The workaround isn't strictly needed for POSIX conformance, and
77390         it's too much of a pain to configure and maintain.  We'll ask
77391         people to fix their kernels instead.
77392         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77393         (NANOSLEEP_BUG_WORKAROUND): Remove.
77394         (xnanosleep): Remove the workaround.
77395
77396 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77399         Reported by Derek Price.
77400         (Include): Add "timespec.h".
77401
77402         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77403
77404 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77405
77406         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77407         to detect nanosleep bug.
77408
77409 2005-03-01  Bruno Haible  <bruno@clisp.org>
77410
77411         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77412
77413 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * modules/gethrxtime: New file.
77416         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77417         (Depends-on): Add gethrxtime.
77418         (configure.ac): Add gl_XNANOSLEEP.
77419         (Makefile.am): Remove lib_SOURCES line.
77420
77421 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77424         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77425
77426 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77427
77428         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77429         * lib/timespec.h (gettime): Return void, since it always
77430         succeeds now.  All uses changed.
77431         * lib/gettime.c (gettime): Likewise.
77432         [HAVE_NANOTIME]: Prefer nanotime.
77433         Assume gettimeofday succeeds, as POSIX requires.
77434         Assime time () succeeds, since other code already does.
77435         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77436         (timespec_subtract): Remove.
77437         (NANOSLEEP_BUG_WORKAROUND): New constant.
77438         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77439         things considerably.  Use it only on GNU/Linux hosts, since the
77440         workaround shouldn't be needed elsewhere.
77441
77442 2005-02-24  Bruno Haible  <bruno@clisp.org>
77443
77444         * modules/gettext (Files): Add m4/glibc2.m4.
77445
77446 2005-02-24  Bruno Haible  <bruno@clisp.org>
77447
77448         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77449         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77450         * m4/progtest.m4:
77451         Update from GNU gettext 0.14.2.
77452         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77453
77454 2005-02-24  Bruno Haible  <bruno@clisp.org>
77455
77456         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77457         * lib/config.charset: Update from GNU gettext 0.14.2.
77458
77459 2005-02-24  Bruno Haible  <bruno@clisp.org>
77460
77461         * lib/gettext.h: Update from GNU gettext 0.14.2.
77462
77463 2005-02-23  Simon Josefsson  <jas@extundo.com>
77464
77465         * m4/iconvme.m4: New file.
77466
77467 2005-02-23  Jim Meyering  <jim@meyering.net>
77468
77469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77470         change.
77471         Thanks to Bruno Haible for catching it.
77472
77473 2005-02-22  Simon Josefsson  <jas@extundo.com>
77474
77475         * modules/iconvme: New file.
77476
77477         * MODULES.html.sh: Add iconvme.
77478
77479 2005-02-22  Simon Josefsson  <jas@extundo.com>
77480
77481         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77482
77483 2005-02-22  Simon Josefsson  <jas@extundo.com>
77484
77485         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77486
77487 2005-02-22  Jim Meyering  <jim@meyering.net>
77488
77489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77490         s/ifndef/ifdef/.
77491
77492 2005-02-20  Neil Conway  <neilc@samurai.com>
77493
77494         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77495         returned by OSX/Darwin if the specified buffer is not large
77496         enough for the hostname.
77497
77498 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77499
77500         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77501         pass it to _help, otherwise the latter coredumps trying to
77502         dereference state.root_argp.
77503
77504 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77505
77506         * modules/chdir-long (Depends-on): Add memrchr.
77507         * modules/memrchr (Files): Add lib/memrchr.h.
77508         (Include): "memrchr.h".
77509
77510 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77511
77512         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77513
77514 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77515
77516         * lib/memrchr.h: New file.
77517         * lib/chdir-long.c: Include it.
77518         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77519         Don't bother including stddef.h.
77520
77521 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77522
77523         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77524         inclusion.
77525         Include <sys/types.h>, for dev_t.
77526         (ME_DUMMY, ME_REMOTE): Move from here....
77527         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77528         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77529         Dmitry V. Levin.
77530         Include mountlist.h first, to test the interface.
77531
77532 2005-01-29  Bruno Haible  <bruno@clisp.org>
77533
77534         * lib/progname.c (program_name): Initialize.
77535         Needed when linking statically on MacOS X.
77536
77537 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77538
77539         Sync from coreutils.
77540         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77541         (Depends-on): Add c-strtod.
77542         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77543
77544 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         Sync from coreutils.
77547         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77548
77549         Remove files that are specific to coreutils.
77550         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77551
77552 2005-01-28  Bruno Haible  <bruno@clisp.org>
77553
77554         * modules/javacomp: New file.
77555         * MODULES.html.sh (Java): Add javacomp.
77556
77557 2005-01-28  Bruno Haible  <bruno@clisp.org>
77558
77559         * m4/javacomp.m4: New file, from GNU gettext.
77560
77561 2005-01-28  Bruno Haible  <bruno@clisp.org>
77562
77563         * lib/javacomp.sh.in: New file, from GNU gettext.
77564         * lib/javacomp.h: New file, from GNU gettext.
77565         * lib/javacomp.c: New file, from GNU gettext.
77566
77567 2005-01-26  Simon Josefsson  <jas@extundo.com>
77568
77569         * lib/gai_strerror.c: Use GPL in header.
77570
77571 2005-01-26  Bruno Haible  <bruno@clisp.org>
77572
77573         * modules/javaexec: New file.
77574         * MODULES.html.sh (Java): Add javaexec.
77575
77576 2005-01-26  Bruno Haible  <bruno@clisp.org>
77577
77578         * m4/javaexec.m4: New file, from GNU gettext.
77579
77580 2005-01-26  Bruno Haible  <bruno@clisp.org>
77581
77582         * lib/javaexec.sh.in: New file, from GNU gettext.
77583         * lib/javaexec.h: New file, from GNU gettext.
77584         * lib/javaexec.c: New file, from GNU gettext.
77585
77586 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77587
77588         * modules/lchown (Depends-on): Remove lchown.h
77589
77590 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77591
77592         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77593         must be defined if the header file was not found, in order
77594         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77595
77596 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77597
77598         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77599         initializers for struct pentry_state.
77600         (__argp_error): Check return value of __asprintf
77601         (__argp_failure): Translate error message
77602
77603         * lib/argp-parse.c: Removed braces around the expansion of N_()
77604
77605 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77608         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77609         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77610         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77611         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77612         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77613         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77614         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77615         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77616         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77617         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77618         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77619         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77620         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77621         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77622         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77623         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77624         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77625         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77626         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77627         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77628         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77629         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77630         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77631         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77632         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77633         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77634         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77635         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77636         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77637         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77638         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77639         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77640         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77641         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77642         Use an all-permissive copyright notice, recommended by RMS.
77643
77644 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77645
77646         * modules/chdir-long (Depends-on): Remove mempcpy.
77647
77648 2005-01-21  Jim Meyering  <jim@meyering.net>
77649
77650         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77651         same value as for Solaris 9.
77652
77653         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77654         component length.  This included changing the parameter to be
77655         of type `char *' rather than `char const *'.
77656         * lib/chdir-long.h (chdir_long): Update prototype.
77657
77658         * lib/openat.c (fdopendir, fstatat): New functions.
77659         * lib/openat.h: Include headers required for use of DIR and struct
77660         stat.
77661         [AT_SYMLINK_NOFOLLOW]: Define.
77662         (fdopendir, fstatat): Add prototypes.
77663
77664 2005-01-21  Bruno Haible  <bruno@clisp.org>
77665
77666         * modules/classpath: New file.
77667         * MODULES.html.sh (Java): Add classpath.
77668
77669 2005-01-21  Bruno Haible  <bruno@clisp.org>
77670
77671         * lib/classpath.h: New file, from GNU gettext.
77672         * lib/classpath.c: New file, from GNU gettext.
77673
77674 2005-01-20  Simon Josefsson  <jas@extundo.com>
77675
77676         * modules/version-etc-fsf: New file.
77677
77678 2005-01-20  Simon Josefsson  <jas@extundo.com>
77679
77680         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77681         * lib/version-etc.c: Remove version_etc_copyright.
77682         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77683         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77684
77685 2005-01-20  Simon Josefsson  <jas@extundo.com>
77686
77687         * lib/base64.h (isbase64): Add.
77688
77689         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77690         using a unsigned prototype, don't inline.
77691         (base64_decode): Use it.
77692
77693 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77696         it.
77697
77698 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77699
77700         * lib/save-cwd.c (save_cwd): Remove code to support the case
77701         where fchdir is missing or flaky.
77702
77703 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77704
77705         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77706
77707 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77708
77709         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77710         AC_LIBSOURCES now does this.
77711         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77712         with new ullong_max module.
77713
77714 2005-01-19  Bruno Haible  <bruno@clisp.org>
77715
77716         * modules/sh-quote: New file.
77717         * MODULES.html.sh (Executing programs): Add sh-quote.
77718
77719 2005-01-19  Bruno Haible  <bruno@clisp.org>
77720
77721         * lib/sh-quote.h: New file, from GNU gettext.
77722         * lib/sh-quote.c: New file, from GNU gettext.
77723
77724 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         Merge from coreutils.
77727         * m4/ullong_max.m4: New file.
77728         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77729         (gl_MACROS): Assume localeconv exists.
77730
77731 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77732
77733         Merge changes from coreutils, as described below in several
77734         changelogs dated today.
77735
77736         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77737         (O_DIRECTORY): Remove; not needed here, since "." must be
77738         a directory.  All uses removed.
77739         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77740         universal on Suns, and we also need to test for IRIX.
77741         Revamp code to use 'if' rather than '#if'.
77742         Avoid unnecessary comparison of cwd->desc to 0.
77743
77744         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77745         for known valid error numbers rather than observed invalid ones.
77746
77747 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * modules/ullong_max: New file.
77750
77751         * modules/chdir-long, modules/openat: New files.
77752         * modules/save-cwd (Depends-on): Depend on chdir-long.
77753         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77754
77755 2005-01-18  Jim Meyering  <jim@meyering.net>
77756
77757         Merge from coreutils.
77758         * m4/chdir-long.m4, m4/openat.m4: New files.
77759         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77760         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77761         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77762         is sane and DOES follow symlinks.  Besides, testing 20 different
77763         systems found no broken chown implementations.
77764         Prompted by a change in rsync's copy of this macro.
77765         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77766
77767         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77768
77769         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77770         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77771         NULL-means-set-to-current-time semantics.
77772         Remove temporary file immediately, rather than waiting
77773         for configure's at-exit trap code to do it.
77774
77775 2005-01-18  Jim Meyering  <jim@meyering.net>
77776
77777         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77778
77779         * lib/utimens.c (futimens): Account for the fact that futimes
77780         can also fail with errno == ENOSYS or errno == ENOENT.
77781         Patch from Dmitry V. Levin.
77782
77783         Change the name of the robust chdir function from chdir to chdir_long.
77784         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77785         (restore_cwd): Use chdir_long, not chdir.
77786         * lib/chdir-long.c: Renamed from chdir.c.
77787         * lib/chdir-long.h: Renamed from chdir.h.
77788         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77789         Hurd.
77790
77791 2005-01-18  Bruno Haible  <bruno@clisp.org>
77792
77793         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77794         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77795         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77796         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77797         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77798         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77799         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77800         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77801         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77802         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77803         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77804         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77805         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77806         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77807         Use an all-permissive copyright notice, recommended by RMS.
77808
77809 2005-01-18  Bob Proulx  <bob@proulx.com>
77810
77811         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77812         simplify offsetof() macro construct to avoid compile failure with
77813         native HP-UX 11.0 ANSI C compiler.
77814
77815 2005-01-17  Bruno Haible  <bruno@clisp.org>
77816
77817         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77818         redundant because stpncpy.m4 takes care of it.
77819
77820 2005-01-17  Bruno Haible  <bruno@clisp.org>
77821
77822         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77823
77824 2005-01-17  Bruno Haible  <bruno@clisp.org>
77825
77826         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77827         used.
77828
77829 2005-01-17  Bruno Haible  <bruno@clisp.org>
77830
77831         * lib/fwriteerror.h (fwriteerror): Change specification to include
77832         fclose.
77833         * lib/fwriteerror.c: Include <stdbool.h>.
77834         (fwriteerror): At the end, close the file stream. Record whether
77835         stdout was already closed.
77836
77837 2005-01-17  Bruno Haible  <bruno@clisp.org>
77838
77839         * lib/execute.c (environ): Declare if needed.
77840         * lib/pipe.c (environ): Likewise.
77841         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77842
77843 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77844
77845         * modules/argp: Depend on vsnprintf
77846
77847 2005-01-10  Jim Meyering  <jim@meyering.net>
77848
77849         * modules/closeout (Depends-on): Add atexit.
77850
77851 2005-01-06  Bruno Haible  <bruno@clisp.org>
77852
77853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77854
77855 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77858         definitions to be after all include files, to avoid collisions.
77859         Problem reported by Bob Proulx.
77860
77861 2005-01-04  Jim Meyering  <jim@meyering.net>
77862
77863         Changes imported from coreutils.
77864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77865         as the mkstemp template, use a temporary directory and an
77866         8.3-friendly template to avoid trouble on systems like DJGPP.
77867         Reported by Juan M. Guerrero via Stepan Kasal.
77868         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77869         close. Remove the temporary directory right away, rather than waiting
77870         for configure's at-exit trap code to do it.
77871         Suggestion from Stepan Kasal.
77872
77873 2005-01-01  Simon Josefsson  <jas@extundo.com>
77874
77875         * gnulib-tool: Print #include directives when --import'ing.
77876
77877 2004-12-28  Simon Josefsson  <jas@extundo.com>
77878
77879         * tests/test-base64.c: Include required header files.  Remove
77880         unused variables.
77881
77882 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         * modules/error (Depends-on): Remove gettext.
77885
77886 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77889         not needed.  This removes a dependency on the gettext module.
77890         [defined _LIBC]: Do not include <libintl.h>; not needed.
77891
77892 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77895         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77896
77897 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77900         HAVE_DECL_STRTOLD.
77901
77902 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77903
77904         * modules/getdate (Depends-on): Remove alloca-opt.
77905
77906 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77907
77908         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77909
77910 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77911
77912         * lib/argp-parse.c: Include <stddef.h>.
77913         (alignof, alignto): New macros.
77914         (parser_init): Don't assume that void * is aligned sufficiently
77915         for struct option.
77916
77917         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77918         need to extend the stack.
77919         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77920         large.
77921
77922 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77923
77924         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77925
77926 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77929         (2004-10-24) change.  Apparently this was a false alarm.
77930
77931         * modules/getdate: Depend on alloca-opt, not alloca.
77932
77933 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77936         Remove now-obsolete comment about AIX.
77937         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77938         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77939         (YYMAXDEPTH): New macro.
77940
77941 2004-12-18  Simon Josefsson  <jas@extundo.com>
77942
77943         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77944
77945 2004-12-18  Bruno Haible  <bruno@clisp.org>
77946
77947         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77948
77949 2004-12-18  Bruno Haible  <bruno@clisp.org>
77950
77951         * lib/fatal-signal.c (fatal_signals): Make non-const.
77952         (init_fatal_signals): New function.
77953         (uninstall_handlers, install_handlers): Ignore signals that were set to
77954         SIG_IGN.
77955         (at_fatal_signal): Call init_fatal_signals.
77956         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77957         SIG_IGN.
77958         Reported by Paul Eggert.
77959
77960 2004-12-18  Bruno Haible  <bruno@clisp.org>
77961
77962         * doc/alloca.texi: New file.
77963         * doc/alloca-opt.texi: New file.
77964
77965 2004-12-17  Jim Meyering  <jim@meyering.net>
77966
77967         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77968         Otherwise, install-sh could exit with improper exit status when
77969         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77970
77971 2004-12-16  Simon Josefsson  <jas@extundo.com>
77972
77973         * tests/test-base64.c: Add license.
77974
77975 2004-12-15  Stepan Kasal  <address@hidden>
77976
77977         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77978
77979 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * modules/getcwd (Files): Add m4/d-ino.m4.
77982         Suggested by Mark D. Baushke.
77983
77984 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77985
77986         * lib/getdate.y (textint): New member "negative".
77987         (time_zone_hhmm): New function.
77988         Expect 14 shift-reduce conflicts, not 13.
77989         (o_colon_minutes): New rule.
77990         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77991         (yylex): Set the "negative" member of signed numbers.
77992
77993 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77994
77995         * doc/getdate.texi (Time of day items, Time zone items):
77996         Describe new formats +00:00, UTC+00:00.
77997
77998 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78001         spurious "-l"s.  Problem reported by Stepan Kasal.
78002
78003 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78006         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78007
78008 2004-12-04  Simon Josefsson  <jas@extundo.com>
78009
78010         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78011         Vandoorselaere <yoann@prelude-ids.org>.
78012
78013 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78014
78015         Changes imported from coreutils.
78016         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78017         exist.
78018         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78019
78020 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         Changes imported from coreutils.
78023         * lib/hard-locale.c: Assume <locale.h> exists.
78024         Include "strdup.h".
78025         (GLIBC_VERSION): New macro.
78026         (hard_locale): Assume setlocale exists.
78027         Rewrite to avoid #ifdef.
78028         Use strdup rather than malloc + strcpy.
78029         * lib/human.c: Assume <locale.h> exists.
78030         (human_readable): Assume localeconv exists.
78031
78032 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78033
78034         * modules/hard-locale (Depends-on): Add strdup.
78035
78036 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78037
78038         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78039         convert T2, not T.  (Imported from libc.)
78040
78041 2004-11-30  Simon Josefsson  <jas@extundo.com>
78042
78043         * modules/restrict (License): Change to LGPL.
78044
78045 2004-11-30  Simon Josefsson  <jas@extundo.com>
78046
78047         * m4/restrict.m4: Add copyright and copying conditions.
78048
78049 2004-11-30  Simon Josefsson  <jas@extundo.com>
78050
78051         * m4/base64.m4: New file.
78052
78053 2004-11-30  Simon Josefsson  <jas@extundo.com>
78054
78055         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78056         base64.
78057
78058         * tests/test-base64.c: New file.
78059
78060         * modules/base64: New file.
78061
78062 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78063
78064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78065         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78066
78067         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78068
78069 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78070
78071         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78072         (__getcwd.c): Don't restore errno; glibc doesn't.
78073         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78074         first, falling back to our code only if its results look suspicious.
78075         Ensure that the resulting buffer is only as large as necessary.
78076
78077         * lib/readutmp.c: Include readutmp.h first.
78078         Include <errno.h>, since readutmp.h no longer does that.
78079         * lib/readutmp.h: Don't include <errno.h>,
78080         <sys/param.h>, <time.h>; not needed to establish interface.
78081         (errno): Remove decl.
78082         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78083         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78084         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78085
78086 2004-11-28  Simon Josefsson  <jas@extundo.com>
78087
78088         * lib/base64.h, base64.c: New file.
78089
78090 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78093
78094 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78097         (Depends-on): Remove pathmax, same.  Add mempcpy.
78098         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78099         (Makefile.am): Append getcwd.h to lib_SOURCES.
78100         (Include): Add getcwd.h.
78101         (Maintainer): Change from Jim Meyering to "all, glibc",
78102         since getdate now uses intended-for-glibc code.
78103         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78104         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78105
78106 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78107
78108         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78109         HP's ANSI C compiler.
78110         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78111         Declaring int functions causes warnings on some modern systems and
78112         shouldn't be needed to compile on ancient ones.
78113         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78114         defined.
78115
78116         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78117         with the following changes.
78118         (__set_errno): Parenthesize properly.
78119         Include <stdbool.h>.
78120         (MIN, MAX, MATCHING_INO): New macros.
78121         (__getcwd): Define with prototype, not K&R form.
78122         Use heuristics to allocate default buffer on stack if possible.
78123         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78124         behavior, and to avoid the PATH_MAX limit when computing
78125         ../../../../...
78126         Use MATCHING_INO to compare inode number to file.
78127         Check for arithmetic overflow in size calculations.
78128         Fix bug in reallocation of dot array that caused getcwd to fail
78129         on directories nested deeper than 75.
78130         Be more careful about saving errno on error.
78131         Do not use realloc; use only free+malloc, as this is a bit
78132         more flexible and avoids a needless copy operation.
78133         Do not inspect st_dev and st_ino for symbolic links; POSIX
78134         doesn't specify the latter.
78135         Check for closedir errors.
78136         Avoid needless casts.
78137         Use "#ifdef weak_alias" around weak_alias, to be like other
78138         glibc code.
78139         The following changes to getcwd.c have effect only when used in
78140         gnulib; they have no effect inside glibc proper.
78141         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78142         as alloca isn't used.
78143         (alloca, __alloca): Likewise.
78144         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78145         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78146         unconditionally, as gnulib assumes C89 or better.
78147         Do not include <sys/param.h>.
78148         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78149         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78150         better.
78151         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78152         Include <dirent.h> in a way that is compatible with modern Autoconf.
78153         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78154         New macros, if not already defined.
78155         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78156         Use "_LIBC", not "defined _LIBC", for consistency.
78157         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78158         a mempcpy module.
78159         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78160         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78161         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78162         credit only to Jim Meyering and adjust the copyright dates.
78163         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78164         <stdlib.h>, <unistd.h>, "pathmax.h".
78165         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78166         (INITIAL_BUFFER_SIZE): Remove.
78167         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78168
78169 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78172         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78173         Use the _ONCE methods, for efficiency.
78174         Check for fcntl.h.  In test program, include <errno.h>
78175         and <fcntl.h> if available.  Remove old K&R cruft from
78176         test program.  Check for common errors in GNU/Linux,
78177         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78178         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78179         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78180         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78181         name accordingly.
78182         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78183         accommodate new getcwd.c.
78184         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78185         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78186         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78187         that's all we need now.
78188
78189 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78190
78191         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78192         argp-parse.c depends on getopt internals, that means we should
78193         always use our getopt, to be on the safe side.
78194         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78195         order not to spoil the result of an eventual previous invocation
78196         of gl_GETOPT_SUBSTITUTE.
78197
78198 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78199
78200         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78201         redefinition warnings. To avoid them, include the defines
78202         in `#if !defined __need_getopt ... #endif'. The only place
78203         where __getopt_argv_const is used is in definitions
78204         of getopt_long and getopt_long_only below, which are as well
78205         protected by `#ifndef __need_getopt'.
78206         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78207         __need_getopt after including <stdio.h> and <unistd.h> These
78208         headers might have defined it.
78209
78210 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78211
78212         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78213
78214 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78217         (futimens): New function, which uses futimes if available.
78218         (futimens, utimens): Support timespec==NULL, with same semantics
78219         as utime and utimens.
78220         * lib/utimens.h (futimens): New decl.
78221
78222 2004-11-23  Jim Meyering  <jim@meyering.net>
78223
78224         * lib/getopt_.h: Remove trailing blanks.
78225
78226 2004-11-23  Jim Meyering  <jim@meyering.net>
78227
78228         * lib/__fpending.c: Add comment.
78229
78230 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * modules/canonicalize (Depends-on): Add xreadlink.
78233         Problem reported by James Youngman.
78234
78235 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78236
78237         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78238         New macros.
78239         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78240         optopt): Use them instead of invoking ## directly; otherwise, the
78241         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78242
78243 2004-11-19  Bruno Haible  <bruno@clisp.org>
78244
78245         * lib/strtok_r.c: Move comments from here...
78246         * lib/strtok_r.h: ... to here.
78247
78248 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78249
78250         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78251         implementations that mishandle size_t overflow.
78252
78253 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78256         might fail.  Problem reported by Yoann Vandoorselaere.
78257         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78258         implementations that mishandle size_t overflow.
78259
78260 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * modules/canon-host (Depends-on): Add strdup.
78263
78264 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78267
78268 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78269
78270         * lib/canon-host.c: Include "strdup.h".
78271         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78272         Use strdup instead of malloc/strcpy to duplicate strings.
78273
78274         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78275         (human_space_before_unit): New constant.
78276         * lib/human.c (human_readable): Support it.
78277
78278         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78279         (xgetcwd): Set errno correctly when failing.
78280         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78281         the failure is actually due to a PATH_MAX problem.
78282
78283         Further getopt changes to make it more likely that glibc will
78284         buy the changes back.
78285         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78286         (getopt): Use it, so to preserve glibc semantic
78287         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78288         when compiling for libc.
78289         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78290         (getopt_long, getopt_long_only): Use it.
78291
78292         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78293         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78294         (getopt): Argv is now char * const *, as per standard.
78295         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78296         not char *__getopt_argv_const *.
78297         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78298         _getopt_long_only_r): Likewise.
78299         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78300         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78301         _getopt_long_r, _getopt_long_only_r): Likewise.
78302         * lib/getopt_.h (__getopt_argv_const): Remove.
78303         (getopt): Argv is now char * const *, as per standard.
78304
78305         * lib/getdate.y (tORDINAL): New token.
78306         (day, relunit): Allow it for relative times.
78307         (relative_time_table): Use tORDINAL for ordinals.
78308
78309 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78310
78311         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78312         Document that "second" isn't allowed as an ordinal number.
78313
78314 2004-11-16  Jim Meyering  <jim@meyering.net>
78315
78316         * modules/closeout (Depends-on): Add fpending.
78317
78318 2004-11-15  Jim Meyering  <jim@meyering.net>
78319
78320         * lib/closeout.c: Include "__fpending.h" once again.
78321         Include <stdbool.h>.
78322         (close_stdout): Don't fail just because stdout was closed initially,
78323         since some programs don't write to stdout in the normal course of
78324         operation (other than --version and --help), and we don't want this
78325         function to make e.g. `touch file >&-' fail.
78326         But do fail if it was closed and someone has tried to write to it.
78327         E.g., `printf foo >&-' must fail.
78328
78329 2004-11-13  Jim Meyering  <jim@meyering.net>
78330
78331         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78332
78333 2004-11-12  Simon Josefsson  <jas@extundo.com>
78334
78335         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78336         small doc fix is still pending.
78337
78338 2004-11-11  Simon Josefsson  <jas@extundo.com>
78339
78340         * modules/strtok_r: New file.
78341
78342         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78343         strtok_r.
78344
78345 2004-11-11  Simon Josefsson  <jas@extundo.com>
78346
78347         * m4/strtok_r.m4: New file.
78348
78349         * m4/getopt.m4: Replace opterr.
78350
78351 2004-11-11  Simon Josefsson  <jas@extundo.com>
78352
78353         * lib/strtok_r.h, strtok_r.c: New file.
78354
78355 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78358         of replacing opterr, getopt, etc.  This should handle the
78359         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78360
78361 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78362
78363         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78364         we can stop lying to compilers about the constness of argv when we
78365         are compiled outside glibc.
78366         (getopt, getopt_long, getopt_long_only): Use it.
78367         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78368         _getopt_internal, getopt): Likewise.
78369         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78370         _getopt_long_only_r): Likewise.
78371         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78372         _getopt_long_r, _getopt_long_only_r): Likewise.
78373
78374         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78375         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78376         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78377         the other external symbols.
78378         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78379         declaration, since the above renaming now works around collisions.
78380
78381 2004-11-11  Jim Meyering  <jim@meyering.net>
78382
78383         * lib/linebreak.c: Remove trailing blanks.
78384         * lib/alloca_.h: Likewise.
78385         * lib/acosl.c: Likewise.
78386         * lib/euidaccess.c: Likewise.
78387         * lib/allocsa.h: Likewise.
78388
78389 2004-11-10  Simon Josefsson  <jas@extundo.com>
78390
78391         * m4/getaddrinfo.m4: New file.
78392
78393 2004-11-10  Simon Josefsson  <jas@extundo.com>
78394
78395         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78396
78397 2004-11-10  Simon Josefsson  <jas@extundo.com>
78398
78399         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78400         getaddrinfo.
78401
78402         * modules/getaddrinfo: New file.
78403
78404 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78405
78406         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78407
78408 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         * lib/mktime.c (SHR): New macro, which is a portable
78411         substitute for >> that should work even on Crays.
78412         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78413         Problem reported by Mark D. Baushke in
78414         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78415         * lib/getdate.y (SHR): Likewise.
78416         (tm_diff): Use it.
78417         * lib/strftime.c (SHR): Likewise.
78418         (tm_diff): Use it.
78419         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78420         quote_these_too, so that right shifts are well defined.  All uses
78421         changed.
78422
78423 2004-11-10  Jim Meyering  <jim@meyering.net>
78424
78425         Ensure that no close failure goes unreported.
78426         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78427         return early when it seems there's nothing to flush.
78428         Don't include __fpending.h.
78429
78430 2004-11-10  Jim Meyering  <jim@meyering.net>
78431
78432         * modules/closeout (Depends-on): Remove fpending.
78433
78434 2004-11-10  Jim Meyering  <jim@meyering.net>
78435
78436         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78437
78438 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78439
78440         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78441         gl_FUNC_STRFTIME.
78442         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78443         and AC_REQUIRE when possible, to avoid duplicate checks.
78444         Check for <wchar.h>.
78445
78446 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78449
78450 2004-11-09  Bruno Haible  <bruno@clisp.org>
78451
78452         * m4/sockpfaf.m4: New file.
78453
78454 2004-11-05  Bruno Haible  <bruno@clisp.org>
78455
78456         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78457         Reported by Mark D. Baushke <mdb@cvshome.org>.
78458
78459 2004-11-04  Bruno Haible  <bruno@clisp.org>
78460
78461         2004-09-11  Bruno Haible  <bruno@clisp.org>
78462                 * allocsa.valgrind: New file.
78463         2004-02-06  Bruno Haible  <bruno@clisp.org>
78464                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78465                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78466                 Reported by Christopher Seip <chris.seip@hp.com>.
78467
78468 2004-11-04  Bruno Haible  <bruno@clisp.org>
78469
78470         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78471         (Makefile.am): Distribute it.
78472
78473 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78476         with errno == ERANGE if the buffer is too small.
78477         Problem reported by Mark D. Baushke.
78478
78479 2004-11-03  Albert Chin  <china@thewrittenword.com>
78480             Paul Eggert  <eggert@cs.ucla.edu>
78481
78482         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78483         equivalent, substitute $ac_type for equivalent type rather than
78484         blindly using uint32_t *always* which won't work if uint32_t is not
78485         available.  Define _UINT32_T to work around typedef of uint32_t if
78486         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78487         2.5.1.
78488
78489 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * m4/jm-macros.m4: Sync from coreutils.
78492         (gl_MACROS): Check for mbrlen, for pathchk.
78493         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78494
78495 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78496
78497         * lib/xreadlink.c (MAXSIZE): New macro.
78498         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78499         size does not exceed MAXSIZE.  Avoid cast.
78500         As suggested by Mark D. Baushke in
78501         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78502         if readlink fails with buffer size just under MAXSIZE, try again
78503         with MAXSIZE.
78504
78505 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78508
78509 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78510         and  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78513         (get_date): Overparenthesize to avoid GCC warning.
78514
78515 2004-11-02  Bruno Haible  <bruno@clisp.org>
78516
78517         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78518         returns void.
78519
78520 2004-11-02  Bruno Haible  <bruno@clisp.org>
78521
78522         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78523         function returns void.
78524
78525 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78528         fflush_unlocked, flockfile, funlockfile, funlockfile,
78529         fputs_unlocked, putc_unlocked.
78530
78531 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78532
78533         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78534         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78535         already declared.
78536
78537 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78538
78539         * modules/getdate (Files): Add doc/getdate.texi.
78540         (Depends-on): Add setenv, xalloc.
78541
78542 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * lib/getdate.y: Add support for TZ="foo" within a date string.
78545         Fix some bugs near time_t boundaries.  Reject dates with
78546         out-of-range components, e.g., "Sept 31".
78547         Include <stdlib.h>, "setenv.h", "xalloc.h".
78548         (ISDIGIT_LOCALE): Remove; unused.
78549         Note that the TZ and time functions used here are not reentrant.
78550         (mktime_ok, get_tz): New functions.
78551         (TZBUFSIZE): New constant.
78552         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78553         This requires that we sometimes generate our own TZ="XXX..." setting.
78554
78555 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78556
78557         * doc/getdate.texi: New file, from coreutils with modifications for
78558         the new TZ parsing.
78559
78560 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78561
78562         * lib/mktime.c (not_equal_tm): Remove redundant check.
78563
78564 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78565
78566         * modules/regex (lib_SOURCES): Add regex.c.
78567         Reported by James Youngman in
78568         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78569
78570 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * lib/getdate.y: Use Bison 1.875 features, and some minor
78573         code cleanups.  This change does not affect semantics.
78574         Don't include <stdlib.h>; no longer needed.
78575         Don't include unlocked-io.h; only the "#if TEST" code uses
78576         stdio, and performance isn't crucial there.
78577         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78578         Bison 1.875 features as described below.
78579         All uses of "PC." replaced by "pc->".
78580         (YYSTYPE): Add a forward declaration.
78581         (yylex, yyerror): Use full prototypes in forward decls.
78582         Use "%pure-parser" rather than obsolescent "%pure_parser".
78583         Use %parse-param and %lex-param instead of obsolescent
78584         YYPARSE_PARAM and YYLEX_PARAM.
78585         (meridian_table, month_and_day_table, time_units_table,
78586         relative_time_table, time_zone_table, military_table,
78587         lookup_zone, lookup_word, get_date):
78588         Use NULL instead of 0 where appropriate.
78589         (to_hour): Avoid abort (), to avoid a dependency on
78590         stdlib.h.
78591         (yyerror, yylex): Now accepts parser_control * arg.
78592         (main) [TEST]: Use '\0' rather than 0 for char.
78593
78594 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78595
78596         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78597
78598 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78601         It's now the caller's responsibility to handle the case where
78602         !HAVE_GETPAGESIZE && !defined getpagesize.
78603
78604         * lib/mktime.c (leapyear): Arg is long int, not int.
78605
78606 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78609
78610 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78611
78612         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78613         missing.  Problem reported by James Youngman.
78614
78615 2004-10-16  Simon Josefsson  <jas@extundo.com>
78616
78617         * gnulib-tool: Fix comments.  Fix parse problem.
78618         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78619
78620 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78623         implementation of getopt_long.  Problem reported by Alexander Taler in:
78624         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78625
78626 2004-10-15  Bruno Haible  <bruno@clisp.org>
78627
78628         * gnulib-tool: Untabify. Initialize supplied_libname.
78629         (func_usage): More homogenous output.
78630         (func_modules_transitive_closure, func_modules_to_filelist,
78631         func_emit_lib_Makefile_am): New functions.
78632         (func_import): New function, extracted from big case statement. Use
78633         func_get_license, func_modules_transitive_closure,
78634         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78635         opt_lgpl. Don't use test -a, as it's not portable.
78636         (func_create_testdir): Use func_modules_transitive_closure,
78637         func_modules_to_filelist, func_emit_lib_Makefile_am.
78638
78639 2004-10-15  Bruno Haible  <bruno@clisp.org>
78640
78641         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78642
78643 2004-10-15  Bruno Haible  <bruno@clisp.org>
78644
78645         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78646         the portions belonging to each module.
78647         Suggested by Derek Robert Price <derek@ximbiot.com>.
78648
78649 2004-10-12  Simon Josefsson  <jas@extundo.com>
78650
78651         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78652         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78653         to real functions.
78654
78655 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78656
78657         * modules/vsnprintf: New file.
78658
78659 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78660
78661         * m4/vsnprintf.m4: New file.
78662
78663 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78664
78665         * lib/vsnprintf.h: New file.
78666         * lib/vsnprintf.c: New file.
78667
78668 2004-10-11  Bruno Haible  <bruno@clisp.org>
78669
78670         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78671         vsnprintf.
78672
78673 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78674
78675         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78676
78677 2004-10-07  Bruno Haible  <bruno@clisp.org>
78678
78679         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78680         fits into the provided buffer.
78681
78682 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * lib/diacrit.c, diacrit.h: Add GPL notice.
78685
78686         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78687         notice.
78688         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78689         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78690         This avoids a potential constant-folding bug.
78691
78692 2004-10-05  Bruno Haible  <bruno@clisp.org>
78693
78694         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78695         for the declaration of strsep.
78696
78697 2004-10-05  Bruno Haible  <bruno@clisp.org>
78698
78699         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78700
78701 2004-10-04  Simon Josefsson  <jas@extundo.com>
78702
78703         * modules/memmem: New file.
78704         * tests/test-memmem.c: New file.
78705         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78706
78707 2004-10-04  Simon Josefsson  <jas@extundo.com>
78708
78709         * m4/memmem.m4: New file.
78710
78711 2004-10-04  Simon Josefsson  <jas@extundo.com>
78712
78713         * lib/memmem.h: New file.
78714         * lib/memmem.c: New file, taken from glibc.
78715
78716 2004-10-04  Simon Josefsson  <jas@extundo.com>
78717
78718         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78719         '#ifdef USE_UNLOCKED_IO'.
78720
78721 2004-10-04  Simon Josefsson  <jas@extundo.com>
78722
78723         * config/srclist.txt: Add memmem from glibc.
78724
78725 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78728
78729         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78730         modules/exclude, modules/getdate, modules/getline,
78731         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78732         modules/getusershell, modules/linebuffer, modules/md5,
78733         modules/mountlist, modules/posixtm, modules/readtokens,
78734         modules/readutmp, modules/regex, modules/sha1,
78735         modules/version-etc, modules/yesno:
78736         Remove dependency on unlocked-io.
78737
78738 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78741
78742         * m4/unlocked-io.m4: Add copyright notice.
78743         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78744
78745 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78746
78747         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78748         * lib/xmalloc.c (xmemdup): Likewise.
78749         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78750         XFREE): Remove these long-obsolescent macros.
78751         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78752         * lib/xstrdup.c: Remove.
78753
78754         * lib/regex.c (re_comp): Cast gettext return value to char *,
78755         Problem reported by Martin Neitzel via Mark D. Baushke.
78756
78757 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78760         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78761         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78762         regex.c, sha1.c, version-etc.c, yesno.c:
78763         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78764         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78765         the includer's responsibility.
78766
78767         Sync from coreutils.
78768
78769         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78770         points to the start of a string, as the C Standard says the
78771         resulting behavior is undefined.
78772
78773         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78774         simple -> simple_backups, numbered_existing ->
78775         numbered_existing_backups, numbered -> numbered_backups
78776         to avoid shadowing problems.  All uses changed.
78777         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78778         * lib/backupfile.c (check_extension, numbered_backup):
78779         Rename locals to avoid shadowing 'basename'.
78780         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78781         once.
78782
78783         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78784         * lib/.cvsignore: Add getopt.h.
78785
78786 2004-10-04  Bruno Haible  <bruno@clisp.org>
78787
78788         * modules/README: New file.
78789         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78790         not a module.
78791
78792 2004-10-02  Jim Meyering  <jim@meyering.net>
78793
78794         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78795
78796 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78797
78798         * modules/strsep: New file.
78799
78800 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78801
78802         * m4/strsep.m4: New file.
78803
78804 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78805
78806         * lib/strsep.h: New file.
78807         * lib/strsep.c: New file.
78808
78809 2004-10-01  Simon Josefsson  <jas@extundo.com>
78810
78811         * lib/snprintf.c (snprintf): Handle size==0.
78812
78813 2004-10-01  Simon Josefsson  <jas@extundo.com>
78814             Bruno Haible  <bruno@clisp.org>
78815
78816         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78817         (snprintf): Declare 'args'.
78818
78819 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         * lib/snprintf.c: Remove comments as to why each header is needed.
78822
78823 2004-10-01  Bruno Haible  <bruno@clisp.org>
78824
78825         * MODULES.html.sh: Add strsep.
78826
78827 2004-09-30  Simon Josefsson  <jas@extundo.com>
78828
78829         * modules/snprintf: New file.
78830
78831 2004-09-30  Simon Josefsson  <jas@extundo.com>
78832
78833         * m4/snprintf.m4: New file.
78834
78835 2004-09-30  Simon Josefsson  <jas@extundo.com>
78836
78837         * lib/snprintf.h, lib/snprintf.c: New files.
78838
78839 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78840
78841         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78842         (hol_entry_help): Never translate an empty string.
78843         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78844         * lib/argp.h (OPTION_NO_TRANS): New option.
78845
78846 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * modules/argp (Maintainer): Replace Simon Josefsson
78849         by Sergey Poznyakoff.
78850
78851 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78852
78853         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78854         changes merged back into glibc.
78855
78856 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78859
78860 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78861
78862         * lib/xvasprintf.c: Include xalloc.h.
78863         (xvasprintf): Use xalloc_die, not xmalloc_die.
78864
78865 2004-09-29  Bruno Haible  <bruno@clisp.org>
78866
78867         * modules/alloca-opt: New file, derived from modules/alloca.
78868         * modules/allocsa: Depend on alloca-opt instead of alloca.
78869         * modules/setenv: Likewise.
78870         * modules/vasnprintf: Likewise.
78871         * MODULES.html.sh: Add alloca-opt.
78872
78873 2004-09-28  Simon Josefsson  <jas@extundo.com>
78874
78875         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78876         LGPL, and to replace license template from GPL to LGPL.
78877
78878 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * modules/dummy: Change license to LGPL.
78881
78882 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78885
78886 2004-09-24  Simon Josefsson  <jas@extundo.com>
78887
78888         * modules/minmax (License): Change from GPL to LGPL.
78889
78890 2004-09-23  Simon Josefsson  <jas@extundo.com>
78891
78892         * gnulib-tool (--import): Typo.
78893
78894 2004-09-23  Simon Josefsson  <jas@extundo.com>
78895
78896         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78897
78898 2004-09-22  Bruno Haible  <bruno@clisp.org>
78899
78900         * modules/*: Add 'License' field.
78901         * gnulib-tool: Accept --extract-license option.
78902         (func_get_license): New function.
78903
78904 2004-09-21  Bruno Haible  <bruno@clisp.org>
78905
78906         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78907         Reported by Simon Josefsson.
78908
78909 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78912         gl_AC_TYPE_LONG_LONG.
78913
78914 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78917
78918 2004-09-18  Simon Josefsson  <jas@extundo.com>
78919         and  Paul Eggert  <eggert@cs.ucla.edu>
78920
78921         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78922         calls with autoreconf.  Define GL_LIB.
78923
78924 2004-09-14  Karl Berry  <karl@gnu.org>
78925
78926         * config/srclist.txt: unsync setenv.c, sigh.
78927
78928 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78929
78930         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78931         Problem reported by Bruno Haible in:
78932         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78933
78934 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78935
78936         * config/srclist.txt: Comment out argp-pvh.c.
78937
78938 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78941         in case some system header has #define'd it.  Problem reported by
78942         Soeren D. Schulze in
78943         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78944
78945 2004-09-09  Karl Berry  <karl@gnu.org>
78946
78947         * regex.[ch]: delete from the root.  These were supposed to be
78948                 synced with emacs cvs, but this has not happened for about
78949                 a year, and anyway nothing else uses emacs regex.[ch].
78950                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78951                 lib/regex[.ch] is untouched.
78952
78953 2004-09-09  Bruno Haible  <bruno@clisp.org>
78954
78955         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78956
78957 2004-09-09  Bruno Haible  <bruno@clisp.org>
78958
78959         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78960         modifications.
78961         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78962
78963 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78964
78965         * modules/xvasprintf: New file.
78966         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78967
78968 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78969
78970         * lib/xvasprintf.h: New file.
78971         * lib/xvasprintf.c: New file.
78972         * lib/xasprintf.c: New file.
78973
78974 2004-09-08  Bruno Haible  <bruno@clisp.org>
78975
78976         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78977
78978 2004-09-08  Bruno Haible  <bruno@clisp.org>
78979
78980         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78981         length is > INT_MAX.
78982         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78983         more.
78984
78985 2004-09-08  Bruno Haible  <bruno@clisp.org>
78986
78987         * lib/stdint_.h: New file, taken from GNU clisp.
78988
78989 2004-09-08  Bruno Haible  <bruno@clisp.org>
78990             Oskar Liljeblad  <oskar@osk.mine.nu>
78991
78992         * modules/stdint: New file.
78993         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78994
78995 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         Import from coreutils.
78998         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78999         strings on unbounded length.  alloca's performance benefits aren't
79000         that important here.
79001         (V_STRDUP): Remove.
79002         (parse_with_separator): New function, with most of the internals
79003         of the old parse_user_spec.  Allow user to omit both user and group,
79004         for compatibility with FreeBSD.
79005         Clone only the user name, not the entire spec.
79006         Do not set *uid, *gid unless entirely successful.
79007         Avoid memory leak in some failing cases.
79008         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79009         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79010         (parse_user_spec): Rewrite to use parse_with_separator.
79011
79012 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * modules/userspec: Don't depend on alloca.
79015
79016 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79019
79020 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79021
79022         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79023         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79024         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79025
79026 2004-08-16  Simon Josefsson  <jas@extundo.com>
79027
79028         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79029         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79030         Add --dry-run for --import.
79031         Let user provided command line parameters override configure.ac
79032         settings.
79033
79034 2004-08-12  Simon Josefsson  <jas@extundo.com>
79035
79036         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79037         as discussed with Paul Eggert in threads rooted at
79038         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79039         and
79040         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79041         Before, the test was empty, and relied on ELIDE_CODE in source
79042         code.)
79043         (gl_PREREQ_GETOPT): New macro.
79044         (gl_GETOPT): Use them.
79045
79046 2004-08-12  Simon Josefsson  <jas@extundo.com>
79047
79048         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79049         * lib/getopt_.h: Renamed from getopt.h.
79050
79051 2004-08-12  Simon Josefsson  <jas@extundo.com>
79052
79053         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79054         Change default library name from libfoo to libgnu.
79055         Now, if you have a configure.ac that says:
79056                 gl_SOURCE_BASE(gl)
79057                 gl_M4_BASE(gl/m4)
79058                 gl_MODULES(error getopt etcetera)
79059                 gl_INIT
79060         you can import all you need by running:
79061                 ../gnulib/gnulib-tool --import
79062
79063         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79064         (Makefile.am): Rewrite, use logic from argz.
79065         (Include): Use <getopt.h> instead of "getopt.h".
79066
79067 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79068
79069         * modules/argp (Files): Add m4/unlocked-io.m4.
79070         (Depends-on): Add extensions.
79071
79072 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79073
79074         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79075         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79076         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79077         Check for program_invocation_name, program_invocation_short_name,
79078         flockfile, funlockfile, features.h, _getopt_long_only_r.
79079
79080 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79083         its complicated substitute.
79084         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79085         and program_invocation_name.
79086         (__argp_basename) [!_LIBC]: Remove; the only use was
79087         replaced by its body.
79088         (__argp_short_program_name): Change condition from
79089         !defined __argp_short_program_name to
79090         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79091         to match argp-namefrob.h.
79092         (__argp_failure): Don't assume strerror_r returns char *.
79093         * lib/argp-parse.c (N_): Define unconditionally.
79094         (argp_default_options): Fill out initializers with 0 to avoid
79095         gcc warnings.
79096
79097 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79098
79099         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79100         getopt1.c.
79101
79102 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79103
79104         Merge from coreutils.
79105
79106         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79107
79108         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79109         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79110
79111 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79112
79113         Merge from coreutils.
79114
79115         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79116         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79117         for Reliant Unix 5.43.
79118
79119         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79120         (union fooround): Use uintmax_t, not long int.
79121         The rest is a merge from libc:
79122         [defined _LIBC]: Include <shlib-compat.h>.
79123         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79124
79125         * lib/settime.c (settime): Recode to avoid warning with
79126         Sun Forte C 6U2.
79127
79128         * lib/strverscmp.c: Convert to UTF-8.
79129
79130 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79131
79132         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79133         m4/uintmax_t.m4.
79134
79135 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79136
79137         * modules/xalloc-die: New file.
79138         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79139
79140         * modules/md5 (Files): Add m4/uint32_t.m4.
79141         * modules/sha1: Renamed from modules/sha.
79142         (Files):
79143         Rename lib/sha.h to lib/sha1.h.
79144         Rename lib/sha.c to lib/sha1.c.
79145         Rename m4/sha.m4 to m4/sha1.m4.
79146         (lib_SOURCES): Likewise.
79147         (configure.ac): Rename gl_SHA to gl_SHA1.
79148         (Include): sha.h -> sha1.h.
79149
79150 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79151
79152         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79153         * m4/sha1.m4: Renamed from sha.m4.
79154         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79155
79156 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * lib/obstack.h (obstack_empty_p):
79159         Don't assume that chunk->contents is suitably aligned.
79160         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79161         Likewise. Problem reported by Benno in
79162         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79163
79164         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79165         readable.  This could be improved further but it'd take some work.
79166
79167 2004-08-08  Simon Josefsson  <jas@extundo.com>
79168
79169         * modules/xgethostname (Depends-on): Remove exit and error (not
79170         used).
79171
79172         * modules/getpass-gnu: Add getpass.h.
79173         (Depends-on): Add stdbool.
79174         * modules/getpass: Add getpass.h.
79175
79176 2004-08-08  Simon Josefsson  <jas@extundo.com>
79177
79178         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79179         Check getpass declaration.
79180
79181 2004-08-08  Simon Josefsson  <jas@extundo.com>
79182
79183         * lib/xgethostname.c: Don't include error.h (not used).
79184
79185         * lib/getpass.h: Add.
79186         * lib/getpass.c: Include getpass.h first.
79187
79188 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * lib/xalloc-die.c: New file.
79191         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79192         All uses removed.
79193         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79194         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79195         xalloc-die.c.
79196         (_, N_, xalloc_die): Move to xalloc-die.c.
79197         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79198         so that we needn't mess with xalloc_msg_memory_exhausted.
79199
79200         * lib/sha1.h: Renamed from sha.h.
79201         (SHA1_H): Renamed from _SHA_H.
79202         (sha1_ctx): Renamed from sha_ctx.
79203         (sha1_init_ctx): Renamed from sha_init_ctx.
79204         (sha1_process_block): Renamed from sha_process_block.
79205         (sha1_process_bytes): Renamed from sha_process_bytes.
79206         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79207         (sha1_read_ctx): Renamed from sha_read_ctx.
79208         (sha1_stream): Renamed from sha_stream.
79209         (sha1_buffer): Renamed from sha_buffer.
79210         * lib/sha1.c: Likewise; renamed from sha.c.
79211         Do not include <sys/types.h>.
79212         Include <stddef.h> rather than <stdlib.h>.
79213
79214 2004-08-08  Bruno Haible  <bruno@clisp.org>
79215
79216         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79217         FILESYSTEM_PREFIX_LEN.
79218         * lib/progreloc.c: Likewise.
79219         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79220
79221 2004-08-06  Simon Josefsson  <jas@extundo.com>
79222
79223         * modules/progname (Depends-on): Don't depend on stdbool.
79224
79225 2004-08-06  Simon Josefsson  <jas@extundo.com>
79226
79227         * modules/getsubopt: New file.
79228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79229         getsubopt.
79230
79231 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79232
79233         More merge from coreutils.
79234
79235         * m4/utimens.m4, m4/utimecmp.m4: New files.
79236         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79237         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79238         prereq.m4, sha.m4: Import changes from coreutils.
79239
79240 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         More merge from coreutils.
79243         * modules/raise, modules/readtokens0, modules/utimens:
79244         * modules/utimecmp, module/xnanosleep: New files.
79245         * modules/strftime: Add lib/strftime.h.
79246         Change include from <time.h> to "strftime.h".
79247         * modules/yesno: Add lib/yesno.h.
79248         * modules/backupfile: Remove lib/addext.c.
79249         * modules/euidaccess: Add stat-macros.h.
79250         * modules/canonicalize, modules/euidaccess,
79251         modules/filemode, modules/lchown, modules/makepath,
79252         modules/rmdir, modules/stat: Likewise.
79253
79254 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         Merge from tar.
79257         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79258         SIZE_MAX is a valid preprocessor constant.
79259         (__argp_basename): Change from "#ifndef _LIBC"
79260         to "#ifndef __argp_short_program_name", so that
79261         we don't compile these functions for tar.
79262
79263         More merges from coreutils.
79264         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79265         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79266         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79267         * lib/addext.c: Remove; no longer needed.
79268         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79269         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79270         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79271         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79272         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79273         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79274         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79275         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79276         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79277         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79278         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79279         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79280         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79281         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79282         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79283         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79284         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79285         Import changes from coreutils.
79286
79287 2004-08-05  Simon Josefsson  <jas@extundo.com>
79288
79289         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79290
79291 2004-08-05  Simon Josefsson  <jas@extundo.com>
79292
79293         * m4/getsubopt.m4: New file.
79294
79295 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79296
79297         Merge from coreutils.
79298
79299         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79300         * m4/getcwd-path-max.m4: New files.
79301
79302         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79303         FILESYSTEM_PREFIX_LEN ->
79304         FILE_SYSTEM_PREFIX_LEN.
79305         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79306         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79307         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79308         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79309
79310         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79311         prerequisite modules now handle the DOS stuff.
79312         Don't check for unistd.h.
79313
79314 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         Merge from coreutils.
79317
79318         * lib/.gdb-history: Remove; this doesn't belong here.
79319
79320         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79321         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79322         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79323         * lib/getcwd.c: New files.
79324
79325         * lib/dirname.h: Include <stdbool.h>.
79326         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79327         for consistency with POSIX terminology.  All uses changed.
79328         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79329         (strip_trailing_slashes): Use bool for booleans.
79330         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79331
79332         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79333         sometimes returns a positive errno value even when it succeeds.
79334         (print_errno_message) [!LIBC]: Fall back on strerror if
79335         __strerror_r fails.
79336
79337         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79338         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79339         (longest_relative_suffix): New function.
79340         (path_concat): Use it.  Assume first argument is not NULL.
79341         Port to DOS.  Omit redundant separators.
79342         Report an error instead of returning NULL.
79343         Use mempcpy instead of memcpy.
79344         (xpath_concat): Remove: not declared or used.
79345
79346         * lib/same.h: Include <stdbool.h>
79347         (same_name): Return bool, not int.
79348         * lib/same.c (same_name): Likewise.
79349         (errno): Don't declare; we assume C89 or better now.
79350
79351         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79352         if not already defined.
79353
79354         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79355         * lib/dup-safer.c (errno): Likewise.
79356
79357 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79358
79359         Merge from coreutils.
79360         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79361         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79362         * modules/path-concat: Don't depend on strdup.
79363
79364 2004-08-03  Simon Josefsson  <jas@extundo.com>
79365
79366         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79367         * lib/progname.h: Don't include stdbool.h.
79368
79369 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79372         * MODULES.html.sh (func_all_modules): Remove fatal.
79373
79374 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79377
79378 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79379
79380         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79381         working.
79382
79383 2004-08-02  Simon Josefsson  <jas@extundo.com>
79384
79385         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79386         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79387         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79388
79389 2004-08-01  Simon Josefsson  <jas@extundo.com>
79390
79391         * lib/xgetdomainname.c: Include stdlib.h, for free().
79392
79393 2004-07-19  Bruno Haible  <bruno@clisp.org>
79394
79395         * MODULES.html.sh (func_all_modules): Add dummy.
79396
79397 2004-07-16  Simon Josefsson  <jas@extundo.com>
79398
79399         * modules/dummy: New file.
79400
79401 2004-07-16  Simon Josefsson  <jas@extundo.com>
79402
79403         * lib/dummy.c: New file.
79404
79405 2004-07-16  Bruno Haible  <bruno@clisp.org>
79406
79407         * lib/backupfile.h: Add extern "C" for C++.
79408         * lib/closeout.h: Likewise.
79409         * lib/copy-file.h: Likewise.
79410         * lib/findprog.h: Likewise.
79411         * lib/full-write.h: Likewise.
79412         * lib/pathname.h: Likewise.
79413         * lib/progname.h: Likewise.
79414         * lib/stpcpy.h: Likewise.
79415         * lib/stpncpy.h: Likewise.
79416         * lib/strcase.h: Likewise.
79417         * lib/strstr.h: Likewise.
79418         * lib/xalloc.h: Likewise.
79419
79420         * lib/mbswidth.h: Add extern "C" for C++.
79421         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79422
79423 2004-07-13  Robert Millan  <robertmh@gnu.org>
79424
79425         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79426
79427 2004-07-09  Simon Josefsson  <jas@extundo.com>
79428
79429         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79430         failed without this.)
79431
79432 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * modules/chown (Files): Add lib/fchown-stub.c, since
79435         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79436
79437 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79438
79439         * lib/fchown-stub.c: New file.
79440
79441 2004-06-24  Jim Meyering  <jim@meyering.net>
79442
79443         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79444
79445 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         * modules/argz: Omit "#include".
79448
79449         * MODULES.html.sh (func_all_modules): Add calloc, to match
79450         2004-06-01 addition of calloc module.
79451
79452 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79453
79454         * m4/argz.m4: New file, which is autoupdated from libtool.
79455
79456 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79459         libtool.
79460
79461 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79462
79463         * config/srclist-update: Don't insist on "USA." before the
79464         close-comment, as libtool omits the period and puts the */ on a
79465         separate line.
79466         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79467         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79468
79469 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79470
79471         * modules/argz: New file.
79472         * MODULES.html.sh (func_all_modules): Add argz.
79473
79474 2004-06-12  Jim Meyering  <jim@meyering.net>
79475         and  Paul Eggert  <eggert@cs.ucla.edu>
79476
79477         * modules/hash (Files): Add lib/xalloc.h.
79478         * modules/pipe (Depends-on): Add wait-process.
79479         * modules/stat (Depends-on): Add xalloc.
79480         * modules/userspec (Files): Add lib/userspec.h.
79481         * modules/xstrto
79482
79483         Upgrade from gettext-0.13.
79484         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79485         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79486         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79487
79488 2004-06-10  Jim Meyering  <jim@meyering.net>
79489
79490         * lib/calloc.c: New file.
79491
79492 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79493
79494         * lib/getdate.y (yylex): Allow space between sign and number.
79495         Problem reported by Dan Jacobson.
79496
79497 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         Merge from coreutils CVS.
79500
79501         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79502         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79503         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79504         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79505         xstrtol.m4: Fix copyright date and/or serial number.
79506
79507         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79508         See if we need an fchown replacement.
79509         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79510         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79511         and use the replacement function if we detect either defect.
79512
79513         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79514         gl_UTIMECMP.
79515
79516 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79517         and  Jim Meyering  <jim@meyering.net>
79518
79519         Merge from coreutils CVS.
79520
79521         * lib/stat-macros.h: New file, with contents from file-type.h
79522         and coreutils' system.h.
79523         * lib/file-type.c: Include "stat-macros.h".
79524         * lib/file-type.h (file_type): Move all macro definitions to new file,
79525         stat-macros.h.
79526
79527         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79528         Wrap old code with this conditional.
79529         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79530         function that does not dereference symlinks.
79531         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79532
79533         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79534         dependency problems.
79535         (xreadlink): Accept new arg SIZE, for efficiency.
79536         All decls and uses changed.
79537         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79538
79539         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79540         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79541
79542         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79543         sysexits.h.
79544
79545 2004-06-01  Jim Meyering  <jim@meyering.net>
79546
79547         * m4/calloc.m4: New file.
79548
79549 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79550
79551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79552         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79553         Also, fix a typo in a diagnostic.
79554
79555 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79558         or AC_FUNC_REALLOC.
79559
79560 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79563         macros to be defined.
79564         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79565         the allocator returns NULL because the requested size is zero.
79566
79567 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79570         var.  Add comment explaining why libc still defines it.  This
79571         merges the following patch from glibc:
79572         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79573
79574 2004-05-20  Andreas Schwab  <schwab@suse.de>
79575
79576         * m4/free.m4: Replace free if it not known to work, not the other
79577         way round.
79578
79579 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79582         present in glibc since revision 1.1 of this file.
79583         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79584         obstack_alignment_mask, obstack_alloc, obstack_base,
79585         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79586         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79587         obstack_grow0, obstack_init, obstack_int_grow,
79588         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79589         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79590         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79591         nonexistent functions.
79592
79593 2004-05-18  Karl Berry  <karl@gnu.org>
79594
79595         * config/srclist.txt: break link for vasnprintf.c.
79596
79597 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         Port obstack to the AS/400, where pointers are 16 bytes wide and
79600         you cannot cast an integer to a valid pointer.  This patch is
79601         currently waiting to be integrated into glibc; see
79602         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79603
79604         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79605         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79606         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79607         (struct obstack): temp member is now a union of a pointer and
79608         an integer, instead of an integer.  All integer uses changed.
79609         This does not affect the physical layout of struct obstack,
79610         except on hosts (like the AS/400) where the size or alignment of
79611         void * is greater than that of ptrdiff_t.
79612         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79613         __STDC__)]: Store temporary in pointer member of union, not
79614         integer member.
79615         * lib/obstack.c: Include <stddef.h>, for offsetof.
79616         (struct fooalign): Remove; it doesn't need a name.
79617         (union fooround): Change double to long double, and add void *.
79618         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79619         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79620         not a macro.  Hence the values are always int; so remove all
79621         casts-to-int in uses.
79622
79623 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79624
79625         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79626         we can get this patch merged into glibc.
79627
79628 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79629             Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * m4/argp: Depend on alloca.
79632
79633 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79634             Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79637         freecoding.
79638
79639 2004-05-17  Bruno Haible  <bruno@clisp.org>
79640
79641         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79642         precision that consists of a '.' followed by an empty digit string.
79643         Patch by Tor Lillqvist <tml@iki.fi>.
79644
79645 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79648         for backward compatibility with older code.  We need our own
79649         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79650         it under some other name, and our alloca.h will define it.
79651
79652 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79653             Derek Price  <derek@ximbiot.com>
79654
79655         * lib/alloca.c: Include <alloca.h>, to get our interface.
79656         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79657         include <alloca.h> first.  Use C89 prototype for alloca; this
79658         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79659         Use #elif for simplicity, since we can assume C89 now.
79660         Don't try to source the system alloca.h since it will not be found
79661         and to prevent recursively including its replacement.
79662         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79663         * lib/regex.c: Likewise.
79664
79665 2004-05-16  Derek Price  <derek@ximbiot.com>
79666             Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         getline cleanup.  This changes the getndelim2 API: both order of
79669         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79670         no delimiter).
79671
79672         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79673         interface does that.
79674         (getline): Always use getdelim, so that we don't have two
79675         copies of this code.
79676         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79677         if available.
79678         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79679         (GETNDELIM2_MAXIMUM): New macro.
79680         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79681         instead of the old practice of delim2==0.  All callers changed.
79682         Return -1 on overflow, instead of returning junk.
79683         Do not set *linesize unless allocation succeeds.
79684         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79685         that we include sys/types.h.
79686         * lib/getnline.h: Likewise.
79687         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79688         (getndelim2): Reorder arguments.
79689         * lib/getnline.c (getnline, getndelim):
79690         Don't discard the NMAX argument.
79691         (getnline): Invoke getndelim, to avoid code duplication.
79692         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79693         of (size_t) -1 by callers of the getnline family.
79694
79695 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79698         Check for gettimeofday.
79699         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79700         Check for settimeofday, stime.
79701
79702 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * lib/nanosleep.c (suspended): Change its type from int to
79705         sig_atomic_t volatile.
79706         (first_call): Make it private to rpl_nanosleep, and have it
79707         be zero initially as that's a bit faster.
79708         (my_usleep): Round up fractional times instead of truncating them,
79709         as this is the usual meaning for 'sleep'.
79710
79711         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79712         doesn't work.
79713         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79714         (ENOSYS): Define if not defined.
79715         (settime): Fall back on stime if it exists and settimeofday fails.
79716         But don't bother with fallbacks if a method fails with errno == EPERM.
79717
79718 2004-05-11  Jim Meyering  <jim@meyering.net>
79719
79720         Prior to this change, the save_cwd caller required read access to the
79721         current directory on most systems (ones with the fchdir function).
79722
79723         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79724         fails, try write-only, and finally, resort to using xgetcwd.
79725
79726 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * lib/obstack.c, obstack.h: Import changes from libc.
79729
79730 2004-04-28  Bruno Haible  <bruno@clisp.org>
79731
79732         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79733         also implicitly appends .exe to executables.
79734         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79735         accepts Windows pathnames.
79736         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79737         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79738         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79739         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79740         Reported by Derek Robert Price <derek@ximbiot.com>.
79741
79742 2004-04-21  Karl Berry  <karl@gnu.org>
79743
79744         * config/srclist.txt (localcharset.c): break sync.
79745
79746 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79747
79748         * m4/host-os.m4: Add a copyright notice.
79749
79750 2004-04-20  Jim Meyering  <jim@meyering.net>
79751
79752         Change UTILS_ to gl_ in AC_DEFINE'd names.
79753         Change utils_- and jm_-prefixed variables, too.
79754         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79755         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79756         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79757
79758         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79759         Don't emit trailing blanks.
79760         Also rename jm_-prefixed variables to have gl_ prefix.
79761
79762         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79763         Also rename jm_-prefixed variables to have gl_ prefix.
79764
79765         * m4/jm-macros.m4: Reflect the renamings.
79766         * m4/prereq.m4: Likewise.
79767
79768 2004-04-20  Jim Meyering  <jim@meyering.net>
79769
79770         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79771         memory.
79772
79773 2004-04-20  Jim Meyering  <jim@meyering.net>
79774             Bruno Haible  <bruno@clisp.org>
79775
79776         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79777         memory when realloc fails.
79778
79779 2004-04-19  Jim Meyering  <jim@meyering.net>
79780
79781         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79782         now that readutmp.c may call `free (0)'.
79783
79784 2004-04-19  Bruno Haible  <bruno@clisp.org>
79785
79786         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79787         * m4/inttypes_h.m4: Likewise.
79788         * m4/stdint_h.m4: Likewise.
79789         * m4/intmax_t.m4: Likewise.
79790         * m4/uintmax_t.m4: Likewise.
79791
79792 2004-04-18  Jim Meyering  <jim@meyering.net>
79793
79794         * m4/prereq.m4: Don't forbid jm_ prefix.
79795
79796         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79797         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79798         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79799         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79800         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79801         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79802         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79803         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79804         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79805         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79806         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79807         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79808         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79809         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79810         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79811         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79812         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79813         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79814         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79815
79816 2004-04-18  Jim Meyering  <jim@meyering.net>
79817
79818         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79819         failure, don't leak memory and do call END_UTMP_ENT.
79820
79821 2004-04-16  Jim Meyering  <jim@meyering.net>
79822
79823         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79824         coreutils' stat program.
79825         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79826
79827 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79828
79829         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79830         C89.
79831         (CHAR_BIT): Remove, since we assume C89.
79832         Include <stdint.h> if available, as per current Autoconf CVS advice.
79833
79834 2004-03-31  Jim Meyering  <jim@meyering.net>
79835
79836         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79837         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79838         * m4/xalloc.m4: Likewise.
79839
79840 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79841
79842         Merge from coreutils.
79843
79844         * m4/inttostr.m4: New file.
79845         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79846         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79847         Require gl_CLOCK_TIME.
79848         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79849
79850 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79851
79852         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79853         not bool, to be more consistent with Unix conventions.
79854         Suggested by Bruno Haible.
79855
79856         Merge from coreutils.
79857
79858         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79859         * lib/umaxtostr.c: New files.
79860
79861         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79862         the usual <time.h> dance.
79863         (get_date): Change signature to support fractional time stamps.
79864         All callers changed.
79865         * lib/getdate.y: Include "getdate.h" first, as we can now
79866         assume C89 and don't need to worry about 'const'.
79867         Similarly, include "unlocked-io.h" near start, not in middle.
79868         Include <limits.h>.
79869         (textint.value): Use long int rather than int.
79870         (textint.digits): Use size_t rather than int.
79871         (BILLION, LOG10_BILLION): New constants.
79872         (parser_control): New member rel_ns.  Members day_ordinal,
79873         time_zone, month, day, hour, minutes, rel_year, rel_month,
79874         rel_day, rel_hour, rel_minutes, rel_seconds
79875         are now long int, not int.  Member seconds is now struct timespec,
79876         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79877         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79878         not int.
79879         (%union.intval): Now long int, not int.
79880         New member timespec.
79881         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79882         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79883         (spec): Now is a timespec or an item list.
79884         (timespec, items): New nonterminals.
79885         (time, rel, relunit, number, get_date):
79886         Add support for fractional seconds.
79887         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79888         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79889         (to_hour): First arg is now long int, not int.
79890         (to_year): Returns long int, not int.
79891         Don't treat year -70 like 70.
79892         (tm_diff): Returns long int, not int.
79893         (lookup_word): Use bool instead of int when appropriate.
79894         (yylex): Use size_t for count, not int.
79895         Detect overflow when parsing large integer constants.
79896         Add support for fractions.
79897         (get_date): Make pointers 'const' if possible.
79898         Use more-portable code to detect integer overflow.
79899         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79900         Don't use ctime; it's not reliable if the year has >4 digits.
79901
79902         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79903         This is for compatibility with BSD.
79904
79905         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79906         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79907         From coreutils' system.h.
79908
79909         * lib/userspec.c: Don't include "posixver.h".
79910         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79911         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79912         compatible extension.  Simplify code by removing a boolean int
79913         that was always nonzero if a string was nonnull.
79914
79915 2004-03-30  Jim Meyering  <jim@meyering.net>
79916
79917         Merge from coreutils.
79918
79919         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79920         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79921         on some systems one must include <grp.h> before it.
79922         Reported by Christian Krackowizer.
79923
79924 2004-03-30  Jim Meyering  <jim@meyering.net>
79925
79926         Merge from coreutils.
79927
79928         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79929
79930         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79931         an empty input stream.
79932
79933         * lib/readtokens.c: Include <stdbool.h>.
79934         (readtoken): Use `size_t' rather than int/long.
79935         All callers adjusted.
79936         Use `bool' rather than `int' where appropriate.
79937         Use memset rather than an explicit loop.
79938         Use x2nrealloc rather than xrealloc.
79939         Allow the use of `\0' as a delimiter.
79940         (readtokens): Likewise.
79941         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79942
79943 2004-03-30  Jim Meyering  <jim@meyering.net>
79944
79945         * m4/realloc.m4: Remove file, since now it does no more than
79946         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79947         the `configure.ac' section of module/realloc.
79948         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79949
79950 2004-03-30  Bruno Haible  <bruno@clisp.org>
79951
79952         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79953         nonnull.
79954
79955 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79956
79957         Merge changes to getloadavg.c from coreutils and Emacs.
79958
79959         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79960         Define to an expression, not to the empty string.
79961         Include cloexec.h and xalloc.h.
79962         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79963         Use set_cloexec_flag rather than rolling our own.
79964         * lib/cloexec.c, lib/cloexec.h: New files.
79965
79966 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79967
79968         * m4/cloexec.m4: New file.
79969
79970 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79971
79972         * lib/getopt.h: Sync with libc CVS.
79973
79974 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79975             Bruno Haible  <bruno@clisp.org>
79976
79977         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79978         mbswidth.
79979
79980 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79981             Bruno Haible  <bruno@clisp.org>
79982
79983         * lib/mbswidth.h: Include <wchar.h> only if
79984         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79985         <wchar.h>.
79986         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79987
79988 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79989
79990         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79991         Sync with libc CVS.
79992         * lib/getopt_int.h: New file, also synced from libc.
79993
79994 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79995
79996         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79997         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79998         Bring back getopt.c, getopt.h, getopt1.c.
79999
80000 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80001
80002         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80003         All uses changed.  Check for sa_sigaction member; this fixes
80004         a bug first reported by Jason Andrade in
80005         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80006
80007 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80008
80009         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80010         '#if' expressions.  Unlike the code it replaces, it does not
80011         depend on (defined _SC_PAGESIZE).  However, it does depend on
80012         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80013         first reported by Jason Andrade in
80014         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80015
80016 2004-02-25  Simon Josefsson  <jas@extundo.com>
80017
80018         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80019
80020 2004-02-25  Simon Josefsson  <jas@extundo.com>
80021
80022         * lib/strdup.h: New file.
80023         * lib/strdup.c: Include it.
80024         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80025         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80026
80027 2004-02-23  Karl Berry  <karl@gnu.org>
80028
80029         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80030         (from fencepost.gnu.org:/gd/gnuorg).
80031
80032 2004-02-23  Karl Berry  <karl@gnu.org>
80033
80034         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80035         * config/srclist.txt: add maintain/standards documents.
80036
80037 2004-02-18  Bruno Haible  <bruno@clisp.org>
80038
80039         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80040         Reported by Derek Robert Price <derek@ximbiot.com>.
80041
80042 2004-02-16  Karl Berry  <karl@gnu.org>
80043
80044         * config/mkinstalldirs, install-sh: update from automake.
80045
80046 2004-02-06  Karl Berry  <karl@gnu.org>
80047
80048         * m4/po.m4: update from gettext 0.14.1.
80049
80050 2004-02-06  Karl Berry  <karl@gnu.org>
80051
80052         * lib/config.charset: update from gettext 0.14.1.
80053
80054 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80055
80056         Add comments and code, prompted by suggestions from Bruno Haible
80057         for sh-quote.
80058         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80059         describing the enum quoting_style values.
80060         * lib/quotearg.c (quotearg_alloc): New function.
80061         (quotearg_buffer_restyled): Treat lone { and } as special.
80062         Treat = as special.  Work around bug with older shells
80063         that "see" a '\' that is really the 2nd byte of a multibyte char.
80064         Quote empty string with shell_quoting_style.
80065
80066 2004-02-03  Bruno Haible  <bruno@clisp.org>
80067
80068         * m4/pipe.m4: New file, from GNU gettext.
80069
80070 2004-02-03  Bruno Haible  <bruno@clisp.org>
80071
80072         * lib/pipe.h: New file, from GNU gettext.
80073         * lib/pipe.c: New file, from GNU gettext.
80074
80075 2004-01-27  Bruno Haible  <bruno@clisp.org>
80076
80077         * m4/execute.m4: New file, from GNU gettext.
80078
80079 2004-01-27  Bruno Haible  <bruno@clisp.org>
80080
80081         * lib/execute.h: New file, from GNU gettext.
80082         * lib/execute.c: New file, from GNU gettext.
80083         * lib/w32spawn.h: New file, from GNU gettext.
80084
80085 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80086
80087         Merge from diffutils.
80088
80089         * lib/file-type.c (file_type): Add typed memory objects.
80090         * lib/file-type.h (S_TYPEISTMO): New macro.
80091
80092         * lib/c-stack.h (c_stack_action): Remove argv argument.
80093         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80094         (die): Don't calculate message unless segv_action returns.
80095         (get_stack_location, min_address_from_argv, max_address_from_argv,
80096         volatile stack_base, volatile_stack_size): Remove.
80097         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80098         that every segmentation violation is a stack overflow.  (Ouch!)
80099         See Debian bug 136249 (still outstanding) for more info about why
80100         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80101
80102 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80103
80104         Exit-status fix from coreutils.
80105
80106         Use exit_failure consistently in place of EXIT_FAILURE,
80107         so that program exit statuses are consistent on failure.
80108
80109         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80110         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80111         * lib/argmatch.h: Comment fix to match the above.
80112         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80113         Now a macro referring to exit_failure, instead of a separate
80114         variable.  Include "exitfail.h" to get it.
80115         * lib/xstrtol.h: Include "exitfail.h".
80116         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80117
80118         * lib/long-options.c (parse_long_options): Use prototype
80119         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80120         for clarity.
80121
80122 2004-01-21  Jim Meyering  <jim@meyering.net>
80123
80124         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80125         so as not to conflict with a different-sized __mktime_internal
80126         function in GNU libc.
80127         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80128         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80129
80130 2004-01-20  Karl Berry  <karl@gnu.org>
80131
80132         * config/config.guess: update from config.
80133
80134         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80135
80136 2004-01-20  Bruno Haible  <bruno@clisp.org>
80137
80138         Safer stack allocation.
80139         * lib/setenv.c: Include allocsa.h.
80140         (alloca): Remove fallback definition.
80141         (freea): Remove macro.
80142         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80143         instead of freea.
80144
80145 2004-01-20  Bruno Haible  <bruno@clisp.org>
80146
80147         * m4/eealloc.m4: New file, from GNU gettext.
80148
80149 2004-01-20  Bruno Haible  <bruno@clisp.org>
80150
80151         * m4/allocsa.m4: New file, from GNU gettext.
80152
80153 2004-01-20  Bruno Haible  <bruno@clisp.org>
80154
80155         * lib/xallocsa.h: New file, from GNU gettext.
80156         * lib/xallocsa.c: New file, from GNU gettext.
80157
80158 2004-01-20  Bruno Haible  <bruno@clisp.org>
80159
80160         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80161
80162 2004-01-20  Bruno Haible  <bruno@clisp.org>
80163
80164         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80165         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80166         specially.
80167
80168 2004-01-20  Bruno Haible  <bruno@clisp.org>
80169
80170         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80171         patch.
80172
80173 2004-01-20  Bruno Haible  <bruno@clisp.org>
80174
80175         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80176
80177 2004-01-20  Bruno Haible  <bruno@clisp.org>
80178
80179         * lib/eealloc.h: New file.
80180
80181 2004-01-20  Bruno Haible  <bruno@clisp.org>
80182
80183         * lib/binary-io.h: Avoid warnings on Cygwin.
80184
80185 2004-01-20  Bruno Haible  <bruno@clisp.org>
80186
80187         * lib/allocsa.h: New file, from GNU gettext.
80188         * lib/allocsa.c: New file, from GNU gettext.
80189
80190 2004-01-18  Karl Berry  <karl@gnu.org>
80191
80192         * doc/gpl.texi, doc/lgpl.texi: new files.
80193
80194 2004-01-18  Karl Berry  <karl@gnu.org>
80195
80196         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80197         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80198
80199 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80200
80201         Merge from coreutils.
80202
80203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80204         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80205         (gl_DEFAULT_POSIX2_VERSION): Move
80206         the documentation from 'configure' into 'config.hin',
80207         so that 'configure --help' isn't burdened by it and
80208         we don't have to worry about its formatting there.
80209         Reword the documentation so that it's more succinct
80210         and can be run together into a single paragraph.
80211         * m4/same.m4 (gl_SAME): Check for pathconf.
80212
80213 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80214
80215         Merge from coreutils.
80216
80217         * lib/posixver.c: Include posixver.h.
80218
80219         * lib/same.c: Include <stdbool.h>, <limits.h>.
80220         (_POSIX_NAME_MAX): Define if not defined.
80221         (MIN): New macro.
80222         (same_name): If file names are silently truncated, report
80223         that the file names are the same if they are the same after
80224         the silent truncation.
80225
80226         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80227         conversion function.
80228         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80229         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80230         longer needed.
80231
80232 2004-01-15  Jim Meyering  <jim@meyering.net>
80233
80234         Merge from coreutils.
80235
80236         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80237         if no library is required.
80238         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80239         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80240         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80241         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80242         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80243         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80244         value, $ac_cv_search_crypt, if it's "none required".
80245         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80246         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80247         not gl_FUNC_GETLOADAVG.
80248         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80249         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80250
80251 2004-01-15  Jim Meyering  <jim@meyering.net>
80252
80253         Merge from coreutils.
80254
80255         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80256         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80257         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80258
80259         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80260         optional configure-time default.
80261
80262         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80263
80264         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80265
80266 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80267
80268         Merge from coreutils.
80269
80270         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80271         value, $ac_cv_search_nanosleep, if it's "none required".
80272
80273 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80274
80275         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80276         with like-named macro in fnmatch.c.
80277         (EXT): Use an internal constant instead.
80278
80279         Merge fnmatch patches from glibc.
80280         * lib/fnmatch.c (mbsinit): Remove define.
80281         Add libc_hidden_ver (__fnmatch, fnmatch).
80282         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80283         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80284
80285 2004-01-14  Karl Berry  <karl@gnu.org>
80286
80287         * config/install-sh: update from automake.
80288
80289 2004-01-13  Karl Berry  <karl@gnu.org>
80290
80291         * config/install-sh: update from automake.
80292
80293 2004-01-09  Karl Berry  <karl@gnu.org>
80294
80295         * config/install-sh: update from automake.
80296
80297 2004-01-05  Karl Berry  <karl@gnu.org>
80298
80299         * config/config.{sub,guess}: update from config.
80300
80301 2003-12-31  Karl Berry  <karl@gnu.org>
80302
80303         * config/depcomp: update from automake.
80304
80305 2003-12-14  Karl Berry  <karl@gnu.org>
80306
80307         * lib/config.charset: update from gettext-runtime.
80308
80309 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80310
80311         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80312         Bug reported by Alfred M. Szmidt.
80313
80314 2003-12-03  Bruno Haible  <bruno@clisp.org>
80315
80316         * m4/gettext.m4: Upgrade from gettext-0.13.
80317         * m4/po.m4: Upgrade from gettext-0.13.
80318         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80319         * m4/intmax.m4: New file, from gettext-0.13.
80320         * m4/printf-posix.m4: New file, from gettext-0.13.
80321
80322 2003-11-29  Karl Berry  <karl@gnu.org>
80323
80324         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80325
80326 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80327             Bruno Haible  <bruno@clisp.org>
80328
80329         * lib/printf-parse.h: Don't include sys/types.h.
80330         (ARG_NONE): New macro.
80331         (char_directive): Change type of *arg_index fields to size_t.
80332         * lib/printf-parse.c: Don't include sys/types.h.
80333         (SSIZE_MAX): Remove macro.
80334         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80335         Remove unnecessary overflow check.
80336         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80337         fields.
80338
80339 2003-11-25  Bruno Haible  <bruno@clisp.org>
80340
80341         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80342
80343 2003-11-25  Bruno Haible  <bruno@clisp.org>
80344
80345         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80346         gt_TYPE_SSIZE_T.
80347
80348 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80349
80350         * modules/alloca: Remove dependency on xalloc.
80351
80352 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80353
80354         * lib/alloca.c: Remove dependency on xalloc module.
80355         (xalloc_die): Remove.
80356         (memory_full) [!defined emacs]: New macro.
80357         [!defined emacs]: Don't include xalloc.h.
80358         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80359         address arithmetic overflows.  Change datatypes a bit to avoid
80360         unnecessary casts.
80361
80362 2003-11-22  Jim Meyering  <jim@meyering.net>
80363
80364         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80365         s/size/size_t/.
80366
80367 2003-11-21  Karl Berry  <karl@gnu.org>
80368
80369         * config/config.{sub,guess}: update from config.
80370
80371 2003-11-18  Karl Berry  <karl@gnu.org>
80372
80373         * config/config.{sub,guess}: update from config.
80374
80375         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80376
80377 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80378
80379         * README: Mention that S+T cannot overflow if S is the size of
80380         an existing object and T is sufficiently small.
80381
80382 2003-11-17  Jim Meyering  <jim@meyering.net>
80383
80384         On systems without utime and without a utimes function capable of
80385         dealing with a NULL struct utimbuf* argument, this utime replacement
80386         could -- in unusual circumstances -- leak a file descriptor.
80387         * lib/utime.c: Include <unistd.h> and <errno.h>.
80388         (utime_null): Be sure to close `fd' and to preserve errno.
80389         Reported by Geoff Collyer via Arnold Robbins.
80390
80391 2003-11-17  Bruno Haible  <bruno@clisp.org>
80392
80393         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80394         (Depends-on): Add xsize.
80395
80396 2003-11-17  Bruno Haible  <bruno@clisp.org>
80397
80398         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80399
80400 2003-11-17  Bruno Haible  <bruno@clisp.org>
80401
80402         * lib/vasnprintf.c (alloca): Remove fallback definition.
80403         (freea): Remove definition.
80404         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80405         Reported by Paul Eggert.
80406
80407 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80408             Bruno Haible  <bruno@clisp.org>
80409
80410         Protect against address arithmetic overflow.
80411         * lib/printf-args.h: Include stddef.h.
80412         (arguments): Change type of field 'count' to size_t.
80413         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80414         'unsigned int' where appropriate.
80415         * lib/printf-parse.h: Include sys/types.h.
80416         (char_directive): Change type of *arg_index fields to ssize_t.
80417         (char_directives): Change type of fields 'count', max_*_length to
80418         size_t.
80419         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80420         (SSIZE_MAX): Define fallback value.
80421         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80422         instead of 'int' where appropriate. Check a_allocated, d_allocated
80423         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80424         * lib/vasnprintf.c: Include xsize.h.
80425         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80426         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80427         overflow. Avoid wraparound when converting a width or precision from
80428         decimal to binary.
80429
80430 2003-11-16  Bruno Haible  <bruno@clisp.org>
80431
80432         Update from GNU gettext.
80433         * lib/printf-parse.c: Generalize to it can be compiled for wide
80434         strings.
80435         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80436         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80437         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80438         SNPRINTF): New macros.
80439         Don't include <alloca.h> if the file is used inside libintl.
80440         (local_wcslen): New function, for Solaris 2.5.1.
80441         (VASNPRINTF): Use it instead of wcslen.
80442
80443 2003-11-16  Bruno Haible  <bruno@clisp.org>
80444
80445         * lib/xsize.h (xmax): New function.
80446         (xsum, xsum3, xsum4): Declare as "pure" functions.
80447
80448 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80449
80450         * modules/xalloc (Files): Undo latest change, since xalloc.h
80451         no longer needs SIZE_MAX or PTRDIFF_MAX.
80452
80453 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80454
80455         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80456         gl_PTRDIFF_MAX.
80457
80458 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80459
80460         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80461         "return", to pacify some unknown compiler.  Problem reported
80462         by Joerg Schilling.
80463
80464 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80465
80466         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80467         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80468         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80469         heuristic is just as accurate as far as we know, and it removes a
80470         dependency on size_max.m4 and ptrdiff_max.m4.
80471
80472 2003-11-11  Bruno Haible  <bruno@clisp.org>
80473
80474         * modules/xsize (Files): Add m4/size_max.m4.
80475         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80476
80477 2003-11-11  Bruno Haible  <bruno@clisp.org>
80478
80479         * m4/size_max.m4: New file.
80480         * m4/ptrdiff_max.m4: New file.
80481         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80482         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80483         (gl_XALLOC): Invoke it.
80484
80485 2003-11-11  Bruno Haible  <bruno@clisp.org>
80486
80487         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80488         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80489         defined.
80490
80491 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80492
80493         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80494         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80495         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80496         From Bruno Haible.
80497         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80498         not (size_t) -1, since it's defined here.
80499
80500 2003-11-09  Karl Berry  <karl@gnu.org>
80501
80502         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80503
80504 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80505
80506         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80507         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80508         Reject sizes of exactly SIZE_MAX bytes.
80509         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80510         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80511
80512 2003-11-05  Bruno Haible  <bruno@clisp.org>
80513
80514         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80515         SIZE_MAX defined in <limits.h> on Solaris.
80516
80517 2003-11-04  Jim Meyering  <jim@meyering.net>
80518
80519         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80520         variable names, rather than @VAR@.
80521         * modules/poll: Likewise.
80522
80523 2003-11-04  Bruno Haible  <bruno@clisp.org>
80524
80525         * modules/xsize: New file.
80526         * modules/linebreak: Depend on xsize.
80527         * MODULES.html.sh (func_all_modules): Add xsize.
80528
80529 2003-11-04  Bruno Haible  <bruno@clisp.org>
80530
80531         * m4/xsize.m4: New file.
80532
80533 2003-11-04  Bruno Haible  <bruno@clisp.org>
80534
80535         * lib/xsize.h: New file.
80536         * lib/linebreak.c: Include xsize.h.
80537         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80538         argument for overflow.
80539         Suggested by Paul Eggert.
80540
80541 2003-11-03  Karl Berry  <karl@gnu.org>
80542
80543         * config/config.{guess,sub}: update from config.
80544
80545 2003-11-03  Jim Meyering  <jim@meyering.net>
80546
80547         * modules/userspec (lib_SOURCES): Add userspec.h.
80548         (Include): Add "userspec.h".
80549         Improve description.
80550
80551 2003-11-03  Jim Meyering  <jim@meyering.net>
80552
80553         * lib/userspec.c: Include "userspec.h".
80554         * lib/userspec.h: New file.
80555
80556 2003-11-03  Bruno Haible  <bruno@clisp.org>
80557
80558         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80559
80560 2003-11-03  Bruno Haible  <bruno@clisp.org>
80561
80562         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80563         available, to avoid (extremely rare) race condition.
80564         Suggested by Paul Eggert.
80565
80566 2003-11-02  Karl Berry  <karl@gnu.org>
80567
80568         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80569
80570 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80571
80572         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80573         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80574         (read_filesystem_list): Set and use me_type_malloced.
80575         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80576         whatever the type happens to be), for brevity and consistency.
80577         Check for size calculation overflow on Alphas running OSF/1.
80578
80579 2003-10-31  Jim Meyering  <jim@meyering.net>
80580
80581         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80582
80583         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80584
80585 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80586             Bruno Haible  <bruno@clisp.org>
80587
80588         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80589         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80590
80591 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80592
80593         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80594         netbsd*-gnu*.  Suggested by Robert Millan.
80595
80596 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80597
80598         * modules/group-member: Depend on stdbool.
80599
80600 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80601
80602         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80603
80604 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80605
80606         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80607         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80608         after the 'gnu' in these cases.  This fixes some bugs in the
80609         previous change, and is based on suggestions by Robert Millan.
80610
80611 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80612
80613         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80614         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80615         no longer needed.
80616         * lib/quotearg.c (quotearg_n_options): Use it.
80617         * lib/group-member.c: Include <stdbool.h>.
80618         (free_group_info): Arg is now const *; don't free arg.
80619         (get_group_info): Now returns bool and accepts struct group_info *,
80620         rather than returning a malloc'ed struct group_info *.
80621         All uses changed.  Check for overflow in internal size calculation.
80622
80623         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80624         rather than xmalloc/xrealloc.
80625         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80626         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80627         conformance bug: the old code used a pointer after freeing the
80628         storage that it addressed.
80629         * lib/hash.c (hash_initialize): Simplify the code by using
80630         xalloc_oversized rather than doing it by hand.
80631         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80632         the buffer preserved.  Use free and xmalloc instead.
80633         * lib/quotearg.c (quotearg_n_options): Likewise.
80634         Use a simpler test for size overflow.  Don't use xalloc_oversized
80635         because unsigned int might be wider than size_t (!); this suggests
80636         that we should switch from unsigned int to size_t for slot numbers.
80637
80638 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80639
80640         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80641         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80642         NetBSD kernels.  Requested by Richard Stallman.
80643
80644 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80645
80646         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80647         to allocate the returned structure.  Do not allocate a subarray,
80648         as x2nrealloc will do that.
80649         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80650         instead of xnrealloc.
80651         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80652
80653 2003-10-27  Bruno Haible  <bruno@clisp.org>
80654
80655         * lib/stdbool_.h: Better support for BeOS.
80656
80657 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80658
80659         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80660         now uses inline.
80661
80662 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80663
80664         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80665         callers that want to do their own size-overflow checking.  Include
80666         <stdbool.h>, since xalloc_oversized returns bool.
80667         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80668         to use xalloc_oversized.
80669
80670         Add two functions x2realloc, x2nrealloc, for programs that grow
80671         arrays dynamically by doubling their sizes.
80672         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80673         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80674         New functions.
80675
80676         Port to C99 semantics for 'inline' of external functions.
80677         Bug reported by Bruno Haible.
80678         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80679         with the old contents of xnmalloc.
80680         (xnmalloc, xmalloc): Use it.
80681         (xnrealloc_inline): New static inline function,
80682         with the old contents of xnrealloc.
80683         (xnrealloc, xrealloc): Use it.
80684
80685         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80686         that.
80687
80688 2003-10-26  Karl Berry  <karl@gnu.org>
80689
80690         * config/srclist.txt (COPYING.DOC): no longer available from
80691         /gd/gnuorg; don't know where the ultimate source is.
80692
80693 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80694
80695         Fix several address-calculation bugs in the hash modules,
80696         plus some minor code cleanup.
80697
80698         * lib/hash.h: Include <stdbool.h>, for bool.
80699         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80700         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80701         hash_get_n_entries, hash_get_max_bucket_length,
80702         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80703         hash_rehash): Use size_t rather than unsigned.
80704         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80705         hash_get_n_buckets_used, hash_get_n_entries,
80706         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80707         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80708         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80709         Likewise.
80710         (SIZE_MAX): Define if not defined.
80711         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80712         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80713         hash_print):
80714         Use const * when possible.
80715         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80716         (check_tuning): Fix bug: if tuning parameters were very close to
80717         0 or 1, rounding errors could have caused subscript violations.
80718         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80719         (hash_initialize): Add 'fail:' label
80720         to free table and return NULL, and use it to simplify code.
80721         Use calloc rather than clearing the storage ourself.
80722         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80723         buffer size calculations.
80724         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80725         Include <stddef.h>, for size_t.
80726         * lib/hash-pjw.c (hash_pjw): Likewise.
80727         Switch to method described by Bruno Haible.
80728         Include <limits.h>, for CHAR_BIT.
80729         (SIZE_BITS): New macro.
80730
80731 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80732
80733         * m4/getline.m4 (AM_FUNC_GETLINE):
80734         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80735         hosts.  Problem reported by Derek Robert Price in
80736         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80737         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80738         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80739
80740 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80741
80742         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80743         ceiling the allocation at NMAX bytes rather than silently
80744         discarding input bytes before NMAX is reached.  This makes
80745         a difference only if NMAX exceeds SIZE_MAX / 2.
80746
80747         * lib/obstack.c: Merge from glibc.
80748         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80749         Add libc_hidden_def (_obstack_newchunk).
80750         (_obstack_free) [! defined _LIBC]: Remove.
80751         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80752         a clone of the function body.
80753         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80754         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80755
80756         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80757         glibc.
80758         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80759         arg to memcpy.
80760
80761         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80762         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80763         Don't use lvalue casts, as GCC plans to remove support for them
80764         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80765         was also present in the non-GCC version, indicating that this
80766         code had always been buggy and had never been widely used.
80767         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80768         Use the fast variant of each macro, rather than copying the
80769         definiens of the fast variant; that way, we'll be more likely to
80770         catch future bugs in the fast variants.
80771
80772 2003-10-20  Bruno Haible  <bruno@clisp.org>
80773
80774         * modules/wait-process: New file.
80775         * MODULES.html.sh (func_all_modules): Add wait-process.
80776
80777 2003-10-20  Bruno Haible  <bruno@clisp.org>
80778
80779         * m4/wait-process.m4: New file.
80780
80781 2003-10-20  Bruno Haible  <bruno@clisp.org>
80782
80783         * lib/wait-process.h: New file, from GNU gettext.
80784         * lib/wait-process.c: New file, from GNU gettext.
80785
80786 2003-10-19  Jim Meyering  <jim@meyering.net>
80787
80788         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80789         HPUX 10.20.
80790
80791 2003-10-18  Karl Berry  <karl@gnu.org>
80792
80793         * config/config.guess: update from config.
80794
80795 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80796
80797         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80798         (getgroups): First arg is int, not size_t.
80799         Don't let 'free' mangle errno.
80800
80801 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80802
80803         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80804
80805 2003-10-16  Karl Berry  <karl@gnu.org>
80806
80807         * config/config.{guess,sub}: update from config.
80808
80809 2003-10-16  Jim Meyering  <jim@meyering.net>
80810
80811         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80812         memcpy.
80813
80814 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80815
80816         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80817         (SIZE_MAX): Remove.
80818         (new_exclude, add_exclude_file): Initial size no longer needs to
80819         be a power of 2.
80820         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80821         our own address arithmetic overflow checking.
80822
80823         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80824         (fnmatch): Do not alloca more than 2000 wide characters;
80825         instead, use malloc for large buffers.
80826         Check for address arithmetic overflow, and return -1
80827         with errno set to ENOMEM in that case.
80828         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80829         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80830         instead, return -1.  Check for address arithmetic overflow.
80831
80832 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80833
80834         Handle invalid suffixes and overflow independently, so that
80835         callers can treat them independently as needed.  Fix some bugs in
80836         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80837         suffix for a human-readable blocksize.  The major caller-visible
80838         change is the addition of a new
80839         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80840         that both overflow and suffix chars were found.
80841
80842         * lib/human.c (humblock): Don't check separately for invalid suffix
80843         char; that is xstrtoumax's job (now that its bug is fixed).
80844         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80845         INTMAX_MAX]: New macros.
80846         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80847         TYPE_MAXIMUM): New macros.
80848         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80849         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80850         if overflow occurs, as it's what __strtol does and it's more useful
80851         in practice.
80852         (__xstrtol): If __strtol reports some error other than ERANGE,
80853         reflect it to the caller as LONGINT_INVALID.  If it reports
80854         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80855         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80856         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80857         value.
80858         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80859         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80860         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80861         [defined UINTMAX_MAX]: New macros.
80862
80863 2003-10-14  Bruno Haible  <bruno@clisp.org>
80864
80865         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80866
80867 2003-10-14  Bruno Haible  <bruno@clisp.org>
80868
80869         * m4/sig_atomic_t: New file, from GNU gettext.
80870         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80871
80872 2003-10-14  Bruno Haible  <bruno@clisp.org>
80873
80874         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80875         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80876         Also use volatile where needed.
80877
80878 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80879
80880         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80881         Change maintainer from Bruno Haible to 'all'.
80882
80883 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80884
80885         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80886
80887 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80888
80889         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80890         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80891         and define in terms of the other primitives.
80892         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80893         (SIZE_MAX): Define if not already defined.
80894         (array_size_overflow): New function.
80895         (xalloc_die): Abort instead of exiting if 'error' returns.
80896         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80897         (xmalloc, xrealloc): Use them.
80898         (xcalloc): Check for address arithmetic overflow.
80899         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80900         a bit faster than strcpy.
80901
80902 2003-10-10  Simon Josefsson  <jas@extundo.com>
80903
80904         * modules/argp (Depends-on): Add restrict and strcase.
80905
80906 2003-10-10  Simon Josefsson  <jas@extundo.com>
80907
80908         * m4/argp.m4: Add AC_C_INLINE.
80909
80910 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80911
80912         Merge getpass from libc, plus a few fixes.
80913
80914         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80915         Include <stdbool.h>.
80916         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80917         __fsetlocking to empty.
80918         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80919         do include <bits/libc-lock.h>.
80920         Do not include <fcntl.h>; not needed.
80921         [_LIBC]: Include <wchar.h>.
80922         (NOTCANCEL_MODE): New macro.
80923         (flockfile, funlockfile) [_LIBC]: New macros.
80924         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80925         [!_LIBC]: New macros.
80926         (call_fclose): New function.
80927         (getpass): Use it.  Save tty stream separately; this simplifies the
80928         code and makes it more reliable if stdin happens to equal stdout.
80929         Invoke __fsetlocking on tty.
80930         Handle thread cancellation if needed.
80931         Namespace cleanup (use __tcgetattr, __getline).
80932         Use bool for Booleans.
80933         [USE_IN_LIBIO]: Handle wide streams.
80934         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80935         stream might go where.
80936
80937         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80938         doesn't have to include <stdio.h> before us.
80939         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80940         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80941         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80942         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80943         if not declared, so that we can use getpass.c code from libc without
80944         rewriting it.
80945         (flockfile, ftrylockfile, funlockfile): New macros.
80946
80947 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80948
80949         * modules/getpass: Depend on stdbool.
80950
80951 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80952
80953         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80954
80955 2003-10-07  Karl Berry  <karl@gnu.org>
80956
80957         * config/config.{guess,sub}: update from config.
80958
80959 2003-10-06  Jim Meyering  <jim@meyering.net>
80960             Bruno Haible  <bruno@clisp.org>
80961
80962         This lets translators provide better translations for the
80963         "Written by ..." part of --version output.
80964         * lib/version-etc.h: Include stdarg.h.
80965         (version_etc_copyright): Declare as readonly.
80966         (version_etc): Make this function variadic with a NULL-terminated list
80967         of author name strings.
80968         (version_etc_va): New declaration.
80969         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80970         (version_etc_copyright): Declare as readonly.
80971         (version_etc_va): New function. Provide a different translatable string
80972         for each possible number of authors < 10. Abbreviate when there are 10
80973         authors or more.
80974         (version_etc): Make this function variadic. Call version_etc_va.
80975         Suggestion from Gary V. Vaughan.
80976
80977         * lib/long-options.h (parse_long_options): Change prototype: the
80978         authors string is moved to the end and becomes variadic.
80979         * lib/long-options.c: Include stdarg.h.
80980         (parse_long_options): Make this function variadic, too.
80981         Call version_etc_va, not version_etc.
80982
80983 2003-10-06  Bruno Haible  <bruno@clisp.org>
80984
80985         * modules/version-etc-2: Remove file.
80986         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80987
80988 2003-10-06  Bruno Haible  <bruno@clisp.org>
80989
80990         * modules/fatal-signal: New file.
80991         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80992
80993 2003-10-06  Bruno Haible  <bruno@clisp.org>
80994
80995         * m4/fatal-signal.m4: New file.
80996         * m4/signalblocking.m4: New file, from GNU gettext.
80997
80998 2003-10-06  Bruno Haible  <bruno@clisp.org>
80999
81000         * lib/version-etc-2.h: Remove file.
81001         * lib/version-etc-2.c: Remove file.
81002
81003 2003-10-06  Bruno Haible  <bruno@clisp.org>
81004
81005         * lib/fatal-signal.h: New file, from GNU gettext.
81006         * lib/fatal-signal.c: New file, from GNU gettext.
81007
81008 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81009
81010         * README: Rework advice for preventing empty .o files.
81011         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81012         not <sys/types.h>.
81013
81014 2003-10-04  Karl Berry  <karl@gnu.org>
81015
81016         * lib/argp*: update from libc.
81017
81018 2003-10-04  Karl Berry  <karl@gnu.org>
81019
81020         * config/config.{guess,sub}: update from config.
81021
81022 2003-10-02  Bruno Haible  <bruno@clisp.org>
81023
81024         * modules/lchown (Include): Add lchown.h.
81025         * modules/time_r (Include): Use "..." syntax.
81026         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81027
81028 2003-10-01  Simon Josefsson  <jas@extundo.com>
81029
81030         * MODULES.html.sh (func_all_modules): Move gethostname from section
81031         'based on' to section 'lacking' POSIX:2001.
81032
81033 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81034
81035         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81036         to output mode on the same stream.
81037
81038 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81039
81040         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81041         Fix arg typo in previous patch.
81042
81043 2003-09-28  Jim Meyering  <jim@meyering.net>
81044
81045         * lib/error.c: Correct cpp indentation.
81046
81047 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81048
81049         * modules/free: New file.
81050
81051 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81052
81053         * m4/free.m4: New file.
81054
81055 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81056
81057         * lib/minmax.h (MIN, MAX)
81058         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81059         Omit the special code that used __typeof__, since we worry that
81060         it could be more trouble than it's worth.  See:
81061         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81062         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81063
81064         * lib/free.c: New file.
81065
81066 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81067
81068         Trivial fixes to Makefile.am parts of module listings.
81069         * modules/strstr: Append strstr.h to lib_SOURCES.
81070         * modules/strcase: Likewise, for strcase.h.
81071
81072 2003-09-27  Karl Berry  <karl@gnu.org>
81073
81074         * config/mkinstalldirs: update from automake.
81075
81076 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81077
81078         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81079         (error_tail): Do not loop, reallocating temporary buffer, since
81080         the output cannot contain more wide characters than the input
81081         contains bytes, the size must be big enough already.  This avoids
81082         one potential size overflow calculation.  Check for size overflow
81083         when calculating temporary buffer size.  Free temporary buffer
81084         when done, if it was allocated with malloc; this plugs a memory
81085         leak.  Remove casts from void * to pointers, that are no longer
81086         needed now that we're assuming C89 or better.
81087
81088         Merge error changes from glibc.
81089
81090         * lib/error.c, error.h: Update copyright notice header to match glibc.
81091         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81092         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81093         Disable cancellation while printing error.
81094         * lib/error.h: Prepend __ to parameter names.
81095
81096 2003-09-26  Jim Meyering  <jim@meyering.net>
81097
81098         * lib/error.c (error_tail): Move some declarations
81099         into inner scope where the local variables are used.
81100
81101 2003-09-26  Bruno Haible  <bruno@clisp.org>
81102
81103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81104         stpncpy().
81105         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81106
81107 2003-09-26  Bruno Haible  <bruno@clisp.org>
81108
81109         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81110         (stpncpy): Define as alias for gnu_stpncpy.
81111         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81112
81113 2003-09-25  Simon Josefsson  <jas@extundo.com>
81114
81115         * lib/xgetdomainname.h: New file.
81116         * lib/xgetdomainname.c: New file.
81117
81118 2003-09-25  Simon Josefsson  <jas@extundo.com>
81119             Bruno Haible  <bruno@clisp.org>
81120
81121         * modules/getdomainname: New file.
81122         * modules/xgetdomainname: New file.
81123         * MODULES.html.sh (func_all_modules): Add getdomainname,
81124         xgetdomainname.
81125
81126 2003-09-25  Simon Josefsson  <jas@extundo.com>
81127             Bruno Haible  <bruno@clisp.org>
81128
81129         * m4/getdomainname.m4: New file.
81130
81131 2003-09-25  Simon Josefsson  <jas@extundo.com>
81132             Bruno Haible  <bruno@clisp.org>
81133
81134         * lib/getdomainname.h: New file.
81135         * lib/getdomainname.c: New file.
81136
81137 2003-09-25  Karl Berry  <karl@gnu.org>
81138
81139         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81140
81141 2003-09-25  Karl Berry  <karl@gnu.org>
81142
81143         * config/install-sh: update from automake.
81144
81145 2003-09-25  Bruno Haible  <bruno@clisp.org>
81146
81147         * modules/version-etc-2: New file, from modules/version-etc with
81148         modifications.
81149         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81150
81151 2003-09-25  Bruno Haible  <bruno@clisp.org>
81152
81153         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81154         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81155
81156 2003-09-24  Simon Josefsson  <jas@extundo.com>
81157
81158         * modules/xgethostname: Add xgethostname.h.
81159
81160 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81161
81162         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81163         the buffer associated with the argument.  Bug reported by
81164         Simon Josefsson.
81165
81166 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81167
81168         * README: Document assumptions that 'int' is at least 32 bits
81169         wide, that integer arithmetic is 2's complement without overflow,
81170         that there are no holes in integer values, that adding sizes of
81171         two nonoverlapping objects can't overflow, and that all-bits-zero
81172         yields scalar zero.  Fix spelling and capitalization typos.
81173
81174 2003-09-19  Karl Berry  <karl@gnu.org>
81175
81176         * lib/argp.h: update from libc.
81177
81178 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81179
81180         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81181         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81182         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81183
81184 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81185
81186         * gnulib-tool: Use "test -h", not "test -L", for portability
81187         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81188         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81189         (sed_extract_prog): Issue s commands one-by-one, rather than
81190         using \| in one s command.
81191
81192 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81193
81194         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81195         input error, instead of returning NULL the next time we are called
81196         (and therefore losing track of errno).
81197
81198 2003-09-16  Bruno Haible  <bruno@clisp.org>
81199
81200         * gnulib-tool (func_create_testdir): Warn about duplicated
81201         dependencies.
81202
81203 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81204
81205         * modules/argmatch, modules/fatal, modules/obstack,
81206         modules/xalloc, modules/xgethostname: Sort dependencies by
81207         importance, not alphabetically.
81208
81209 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81210
81211         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81212         fails, so that the caller gets the proper errno.
81213
81214         * lib/readutmp.c (read_utmp): Likewise.
81215         Check for fstat error.  Close stream and free storage
81216         when failing.
81217
81218 2003-09-14  Karl Berry  <karl@gnu.org>
81219
81220         * config/srclist.txt (strdup.c): disable for c89 changes.
81221
81222 2003-09-14  Jim Meyering  <jim@meyering.net>
81223
81224         * lib/getloadavg.c: Correct cpp indentation.
81225         * lib/strdup.c: Likewise.
81226         * lib/vasnprintf.c: Likewise.
81227
81228 2003-09-14  Bruno Haible  <bruno@clisp.org>
81229
81230         * modules/fwriteerror: New file.
81231         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81232
81233 2003-09-14  Bruno Haible  <bruno@clisp.org>
81234
81235         * lib/fwriteerror.h: New file.
81236         * lib/fwriteerror.c: New file.
81237
81238 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81239
81240         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81241         modules/xgethostname, modules/xalloc: Depend on exit.
81242
81243 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81244
81245         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81246
81247         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81248         and AC_MINIX, too, so that their extensions are available.
81249
81250         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81251         This macro has been superseded by gl_BACKUPFILE.
81252
81253         More patches to assume C89 or better.
81254
81255         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81256
81257         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81258         unconditionally.
81259         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81260         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81261         Include <string.h>, <stdlib.h> unconditionally.
81262         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81263         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81264         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81265         headers or for string.h.
81266         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81267         or strtoul.
81268
81269         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81270         headers.
81271         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81272         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81273         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81274         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81276         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81277         memcpy, memset.
81278         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81279         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81280         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81281         strtol.
81282         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81283         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81284         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81285         strtoul.
81286
81287 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81288
81289         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81290         * lib/obstack.c [!defined _LIBC]: Likewise.
81291         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81292         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81293         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81294
81295         More changes to assume C89 or better.
81296
81297         * lib/error.c (error_tail): Assume vprintf.
81298
81299         * lib/argmatch.c (getenv): Remove decl.
81300         * lib/progreloc.c (get_full_program_name): Define via prototype.
81301         * lib/setenv.c (clearenv): Likewise.
81302         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81303         needed.
81304         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81305         (malloc, memcpy): Remove decls.
81306         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81307         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81308         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81309         (memcpy): Remove macro.
81310         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81311         (__P): Remove.  All uses removed.
81312         (PTR): Remove.  All uses changed to void *.
81313         (CHAR_BIT, NULL): Remove.
81314         (spaces, zeros, memset_space, memset_zero)
81315         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81316         Remove.
81317         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81318         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81319         Define with prototype.
81320         Remove now-unnecessary prototype decl.
81321         (extra_args_spec): Assume ANSI C.  All uses changed.
81322         (extra_args_spec_iso): Remove.
81323         (my_strftime, emacs_strftimeu): Define via prototype.
81324         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81325         unconditionally.
81326         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81327         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81328         (strtoul, strtol): Remove decls.
81329         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81330         LONG_MAX): Remove.
81331         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81332         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81333         (LOCALE_PARAM_PROTO): New macro.
81334         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81335         (INTERNAL (strtol), strtol): Define with a prototype.
81336         (PARAMS): Remove.  All uses removed.
81337         * lib/tempname.c: Include <string.h> unconditionally.
81338         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81339         * lib/xgethostname.c (main): Define with a prototype.
81340         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81341         Include <stdlib.h> unconditionally.
81342         (calloc, malloc, realloc, free): Remove decls.
81343         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81344         Include <stdlib.h> unconditionally.  Sort include file names.
81345         (strtod): Remove.
81346         (xstrtod): Define with a prototype.
81347         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81348         (strtol, strtoul): Remove decls.
81349
81350 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81351
81352         More patches to assume C89 or better.
81353         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81354         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81355         string.h, memchr, STDC_HEADERS.
81356
81357 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81358
81359         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81360         Include <stdlib.h>, <string.h> unconditionally.
81361         Remove now-unnecessary cast to char *.
81362         * lib/strnlen.c: Include <string.h> unconditionally.
81363         * lib/yesno.c (yesno): Define with a prototype.
81364
81365 2003-09-11  Bruno Haible  <bruno@clisp.org>
81366
81367         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81368
81369 2003-09-10  Jim Meyering  <jim@meyering.net>
81370
81371         * lib/error.c: Correct indentation of cpp directives.
81372
81373 2003-09-10  Bruno Haible  <bruno@clisp.org>
81374
81375         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81376         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81377         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81378         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81379         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81380         <stdlib.h> and <string.h> checks.
81381         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81382         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81383
81384 2003-09-10  Bruno Haible  <bruno@clisp.org>
81385
81386         * lib/strcspn.c: Include <string.h> unconditionally.
81387         * lib/strpbrk.c: Include <string.h> unconditionally.
81388         * lib/strstr.c: Include <string.h> unconditionally.
81389         * lib/unicodeio.c: Include <string.h> unconditionally.
81390         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81391         * lib/unsetenv.c: Likewise.
81392         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81393         * lib/yesno.c: Include <stdlib.h> unconditionally.
81394         (rpmatch): Add prototype.
81395
81396 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81397
81398         More patches to assume C89 or better.
81399         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81400         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81401         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81402         or for string.h.
81403         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81404         stdlib.h.
81405         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81406         C headers.
81407         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81408         string.h.
81409         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81410         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81411         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81412         or for string.h.
81413         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81414         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81415         C headers.
81416         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81417         memcpy.
81418         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81419         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81420         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81421         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81422         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81423         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81424         string.h, free.
81425         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81426         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81427         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81428         C headers, or for string.h.
81429         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81430         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81431         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81432         headers, memory.h, stdlib.h, string.h, strings.h.
81433         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81434         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81435         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81436         strchr.
81437         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81438         headers, memory.h, string.h.
81439         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81440         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81441         free.
81442         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81443         headers.
81444         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81445         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81446         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81447         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81448         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81449
81450 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81451
81452         More K&R removal.
81453
81454         * lib/acosl.c (main): Use a prototype.
81455         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81456         tanl.c: Likewise.
81457
81458         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81459
81460         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81461         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81462         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81463         with a prototype.
81464         * lib/getopt.c (const): Remove macro.
81465         Include <string.h> unconditionally.
81466         (my_index): Remove; all uses changed to strchr.
81467         (strlen): Remove decl.
81468         (exchange): Remove forward decl; no longer needed.
81469         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81470         Define with prototype.
81471         * lib/getopt1.c (const): Remove macro.
81472         (getopt_long, getopt_long_only, main): Define with prototype.
81473
81474         * lib/getugroups.c: Include <string.h> unconditionally.
81475
81476         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81477         (getusershell, setusershell, endusershell, readname, main):
81478         Define with prototypes.
81479
81480         * lib/group-member.c: Include group-member.h first.
81481         Include <stdlib.h> unconditionally.
81482
81483         * lib/hard-locale.c: Include hard-locale.h first.
81484         Include <stdlib.h>, <string.h> unconditionally.
81485
81486         * lib/hash.c (free, malloc): Remove decls.
81487         Include <stdlib.h> unconditionally.
81488
81489         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81490         (getenv): Do not declare.
81491
81492         * lib/idcache.c: Include <string.h> unconditionally.
81493
81494         * lib/long-options.c: Include long-options.h first, to test interface.
81495         Include <stdlib.h> unconditionally.
81496
81497         * lib/makepath.c: Include makepath.h first, to test interface.
81498         Include <stdlib.h> and <string.h> unconditionally.
81499
81500         * lib/linebuffer.c: Include <stdlib.h>.
81501         (free): Remove decl.
81502
81503         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81504         stddef.h. rpl_malloc returns void *, not char *.
81505         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81506         prototype.
81507
81508         * lib/md5.h: Include <limits.h> unconditionally.
81509         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81510         (__P): Remove; all uses removed.
81511         * lib/md5.c: Include "md5.h" first.
81512         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81513         md5_buffer, md5_process_bytes, md5_process_block):
81514         Define with prototypes.
81515         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81516         * lib/sha.c: Include "sha.h" first.
81517         Include <stdlib.h>, <string.h> unconditionally.
81518
81519         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81520         * lib/memcmp.c (__ptr_t): Likewise.
81521         * lib/memrchr.c (__ptr_t): Likewise.
81522         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81523         Include <string.h> unconditionally.
81524         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81525         * lib/memchr.c: Include <stdlib.h> unconditionally.
81526         * lib/memchr.c (LONG_MAX): Remove.
81527         * lib/memrchr.c (LONG_MAX): Likewise.
81528         * lib/memchr.c (__memchr): Define via a prototype.
81529         * lib/memrchr.c (__memrchr): Likewise.
81530         * lib/memcmp.c (__P): Remove, and remove all uses.
81531         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81532         Remove forward decls; no longer needed.
81533         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81534         Use types required by C89 in prototype.
81535
81536         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81537         * lib/savedir.c: Likewise.
81538         * lib/mkdir.c (free): Remove decl.
81539         * lib/rmdir.c (rmdir): Define with a prototype.
81540         * lib/savedir.c: Include savedir.h first, to test interface.
81541
81542         * lib/mktime.c (STDC_HEADERS): Remove.
81543         Include <stdlib.h>, <string.h> unconditionally.
81544
81545         * lib/modechange.c: Include <stdlib.h> unconditionally.
81546         (malloc): Remove decl.
81547
81548         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81549         (free): Remove decl.
81550
81551         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81552         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81553         (This type really should be intptr_t, but that's a C99ism.)
81554         (_obstack_memcpy): Remove: all uses changed to memcpy.
81555         Include <string.h> unconditionally.
81556         (struct obstack): Assume __STDC__ for types of members
81557         chunkfun, freefun, extra_arg.
81558         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81559         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81560         obstack_begin, obstack_specify_allocation,
81561         obstack_specify_allocation_with_arg, obstack_chunkfun,
81562         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81563         Remove unprototyped decls and the macros that use them.
81564         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81565         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81566         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81567         (defined __STDC__ && __STDC__)]:
81568         Remove nonprototyped code.
81569         Include <stdlib.h> unconditionally.
81570         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81571         _obstack_allocated_p, _obstack_free, obstack_free,
81572         _obstack_memory_used, print_and_abort):
81573         Define using prototypes.
81574         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81575         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81576         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81577         obstack_next_free, obstack_object_size, obstack_room) [0]:
81578         Remove unused, unprototyped code.
81579
81580         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81581
81582         * lib/physmem.c (physmem_total, physmem_available, main): Define
81583         with prototypes.
81584
81585         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81586         (main): Define with a prototype.
81587
81588         * lib/posixver.c (getenv): Remove decl.
81589
81590         * lib/putenv.c (malloc): Returns void *, not char *.
81591         Include <string.h> unconditionally.
81592         (strchr, memcpy, NULL): Do not define.
81593
81594         * lib/readtokens.c: Include readtokens.h first, to test interface.
81595         Include <stdlib.h>, <string.h> unconditionally.
81596         (init_tokenbuffer): Define with a prototype.
81597
81598         * lib/regex.c (PARAMS): Remove.  All uses removed.
81599         All uses of _RE_ARGS removed, too.
81600         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81601         unconditionally.
81602         (bzero): Assume memset exists.
81603         (memcmp, memcpy, NULL): Remove.
81604         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81605         char, or assignments to local vars of type signed char.
81606         (init_syntax_once, PREFIX(extract_number_and_incr),
81607         PREFIX(print_partial_compiled_pattern),
81608         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81609         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81610         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81611         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81612         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81613         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81614         wcs_compile_range, byte_compile_range, truncate_wchar,
81615         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81616         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81617         count_mbs_length, wcs_re_match_2_internal,
81618         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81619         PREFIX(alt_match_null_string_p),
81620         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81621         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81622         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81623         now-unnecessary declaration, if any.
81624         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81625         regcomp, regexec):
81626         Remove now-unnecessary casts among pointer types.
81627         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81628
81629         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81630         (free): Remove decl.
81631
81632         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81633
81634         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81635         (free): Remove decl.
81636
81637         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81638         * lib/xgetcwd.c: Likewise.
81639
81640         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81641         (free): Remove decl.
81642
81643         * lib/strchrnul.c (strchrnul): Define with a prototype.
81644         Fix bug: c_in was not converted to char before searching.
81645
81646         The following changes are not K&R related:
81647
81648         * lib/group-member.h: Include <sys/types.h>, so that this file is
81649         self-contained.
81650         * lib/makepath.h: Likewise.
81651
81652         * lib/getusershell.c (readname, default_index, line_size, readname):
81653         Use size_t, not int, for sizes.
81654         (readname): If the size overflows, report an error instead of
81655         looping forever.
81656
81657 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81658
81659         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81660         libc.
81661
81662 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81663
81664         * README: New section: portability guidelines.
81665
81666 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81667
81668         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81669         C89 spec.
81670
81671 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81672
81673         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81674
81675 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81676
81677         Assume C89 or better; remove K&R cruft.
81678         A few of these changes were first proposed by Derek Robert Price
81679         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81680
81681         * lib/addext.c: Include <string.h> unconditionally.
81682         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81683         Don't declare getenv or malloc.
81684
81685         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81686         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81687         (NULL): Remove.
81688         (find_stack_direction, alloca): Use prototypes.
81689
81690         * lib/atexit.c (atexit): Define using a prototype.
81691
81692         * lib/basename.c, dirname.c, stripslash.c:
81693         Include <string.h> unconditionally.
81694
81695         * lib/bcopy.c: Include <stddef.h>.
81696         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81697
81698         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81699
81700         * lib/error.h (error, error_at_line, error_print_progname)
81701         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81702         * lib/error.c: Include error.h first, to check interface.
81703         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81704         (VA_START): Remove; all uses changeed to va_start.
81705         (exit, strerror): Remove decls.
81706         (error_print_progname): Prototype uncondionally.
81707         Don't include <errno.h>; no longer needed.
81708         (private_strerror): Remove.
81709         (error_tail): Always define.
81710         (error, error_at_line): Assume C89 or better; always use prototypes.
81711         * lib/fatal.c: Include "fatal.h" first, to test interface.
81712         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81713         (VA_START): Remove; all uses changed to va_start.
81714         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81715         this case.
81716         (exit): Remove decl.
81717         (fatal): Prototype unconditionally.  Assume va_start works.
81718         Abort at end, to pacify gcc.
81719
81720         * lib/euidaccess.c (main): Define with a prototype.
81721
81722         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81723
81724         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81725
81726         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81727         prototypes.
81728         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81729         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81730         (getenv): Remove decl.
81731         (fnmatch): Define using a prototype.
81732         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81733         (FCT): Define using a prototype.
81734
81735         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81736
81737         * lib/gethostname.c: Include <stddef.h>.
81738         (gethostname): Define with prototype.  Length is size_t, not int.
81739
81740 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81741
81742         Assume C89 or better; remove K&R cruft.
81743         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81744         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81745         string.h, getenv, malloc.
81746         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81747         headers.
81748         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81749         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81750         do not check for strerror.
81751         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81752         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81753         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81754         do not check for doprnt or vprintf.
81755         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81756         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81757
81758 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81759
81760         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81761         getversion.c should have been removed then, but was accidentally
81762         preserved.
81763
81764         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81765         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81766
81767 2003-09-08  Karl Berry  <karl@gnu.org>
81768
81769         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81770                 config, forget about prep.
81771
81772         * config/depcomp, missing: update from automake.
81773
81774 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81775
81776         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81777         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81778
81779 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81780
81781         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81782         copy_tm_result.  Bug reported by Simon Josefsson in
81783         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81784
81785 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81786
81787         * m4/time_r.m4: New file.
81788         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81789         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81790         is. Check for timegm declaration.
81791         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81792         Do not check for gmtime_r.
81793         Replace mktime if __mktime_internal does not exist and if mktime
81794         hasn't been replaced already.
81795
81796 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81797
81798         * lib/time_r.c, lib/time_r.h: New files.
81799
81800         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81801         __localtime_r.
81802         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81803         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81804
81805         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81806         __gmtime_r.
81807         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81808         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81809         Include <time_r.h>.
81810
81811         * lib/timegm.c: Switch to glibc implementation, with the following
81812         changes:
81813         [defined HAVE_CONFIG_H]: Include <config.h>.
81814         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81815         (__mktime_internal) [!defined _LIBC]: New decl.
81816         (__gmtime_r) [!defined _LIBC]: New macro and function.
81817         (timegm): Use a prototype, since gnulib assumes C89.
81818         Do not bother declaring tmp to be const, as it's not really usefu.
81819         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81820         (timegm): Declare only if HAVE_DECL_TIMEGM.
81821
81822 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81823
81824         * MODULES.html.sh (func_all_modules): Add time_r.
81825         * modules/time_r: New file.
81826         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81827         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81828
81829 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81830
81831         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81832         Bug reported by Lute Kamstra in
81833         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81834
81835         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81836         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81837         course with correspondingly smaller numbers for tomorrow and
81838         yesterday.  From Tadayoshi Funaba.  Originally installed into
81839         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81840         coreutils merge?).
81841
81842 2003-08-31  Simon Josefsson  <jas@extundo.com>
81843
81844         * modules/timegm: New file.
81845         * MODULES.html.sh (func_all_modules): Add timegm.
81846
81847 2003-08-31  Simon Josefsson  <jas@extundo.com>
81848
81849         * m4/timegm.m4: New file.
81850
81851 2003-08-31  Simon Josefsson  <jas@extundo.com>
81852
81853         * lib/timegm.h: New file.
81854         * lib/timegm.c: New file.  Based on
81855         wget-1.8.2/src/http.c:mktime_from_utc.
81856
81857 2003-08-31  Karl Berry  <karl@gnu.org>
81858
81859         * lib/argp.h: update from libc.
81860
81861 2003-08-28  Bruno Haible  <bruno@clisp.org>
81862
81863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81864         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81865         followed by '#define fnmatch fnmatch_posix' gives an error.
81866
81867 2003-08-28  Bruno Haible  <bruno@clisp.org>
81868
81869         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81870         warning on QNX, which defines O_BINARY to 000000.
81871
81872 2003-08-27  Jim Meyering  <jim@meyering.net>
81873
81874         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81875         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81876         would fail after 32.  Reported by Danny Levinson.  Details here:
81877         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81878
81879 2003-08-24  Bruno Haible  <bruno@clisp.org>
81880
81881         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81882         MSVC7 <stdio.h> is included later.
81883
81884 2003-08-22  Simon Josefsson  <jas@extundo.com>
81885
81886         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81887
81888 2003-08-20  Karl Berry  <karl@gnu.org>
81889
81890         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81891
81892 2003-08-20  Bruno Haible  <bruno@clisp.org>
81893
81894         * modules/progname: New file.
81895         * MODULES.html.sh (func_all_modules): Add progname.
81896
81897 2003-08-20  Bruno Haible  <bruno@clisp.org>
81898
81899         * lib/progname.h: New file, from GNU gettext.
81900         * lib/progname.c: New file, from GNU gettext.
81901         * lib/progreloc.c: New file, from GNU gettext.
81902
81903 2003-08-19  Jim Meyering  <jim@meyering.net>
81904
81905         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81906         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81907
81908 2003-08-19  Bruno Haible  <bruno@clisp.org>
81909
81910         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81911         more.
81912
81913 2003-08-19  Bruno Haible  <bruno@clisp.org>
81914
81915         * lib/xstrdup.c: Assume <string.h> exists.
81916
81917 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81918
81919         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81920         in makefile rules.
81921
81922 2003-08-18  Jim Meyering  <jim@meyering.net>
81923
81924         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81925         * m4/lib-ld.m4: Likewise.
81926
81927 2003-08-18  Jim Meyering  <jim@meyering.net>
81928
81929         * lib/setenv.h: Indent nested cpp directive.
81930         * lib/vasnprintf.c: Remove trailing blanks.
81931
81932 2003-08-17  Simon Josefsson  <jas@extundo.com>
81933
81934         * modules/xstrndup: New file.
81935         * MODULES.html.sh (func_all_modules): Add xstrndup.
81936
81937 2003-08-17  Simon Josefsson  <jas@extundo.com>
81938
81939         * modules/argp: Fix autoconf macro name. Add more dependencies.
81940
81941 2003-08-17  Simon Josefsson  <jas@extundo.com>
81942
81943         * m4/xstrndup.m4: New file.
81944
81945 2003-08-17  Simon Josefsson  <jas@extundo.com>
81946
81947         * m4/argp.m4: New file.
81948
81949 2003-08-17  Simon Josefsson  <jas@extundo.com>
81950             Bruno Haible  <bruno@clisp.org>
81951
81952         * lib/xstrndup.h: New file.
81953         * lib/xstrndup.c: New file.
81954
81955 2003-08-17  Bruno Haible  <bruno@clisp.org>
81956
81957         * modules/strndup (Files, Include): Add lib/strndup.h.
81958
81959 2003-08-17  Bruno Haible  <bruno@clisp.org>
81960
81961         * modules/euidaccess (Files): Add lib/euidaccess.h.
81962
81963 2003-08-17  Bruno Haible  <bruno@clisp.org>
81964
81965         * lib/strndup.h: New file.
81966
81967 2003-08-17  Bruno Haible  <bruno@clisp.org>
81968
81969         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81970         like AC_GNU_SOURCE.
81971         * modules/extensions (configure.ac): Comment out the invocation of
81972         gl_USE_SYSTEM_EXTENSIONS.
81973
81974 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81975
81976         Merges from coreutils, etc.
81977         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81978         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81979         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81980         fixing a typo.
81981         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81982         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81983
81984 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81985
81986         Document merge from coreutils.
81987         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81988         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81989         * modules/utime: Add m4/utimes-null.m4.
81990
81991 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81992
81993         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81994         space, undoing this 2003-08-12 change:
81995         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81996
81997 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81998
81999         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82000         strtoul.c from libc, undoing this 2003-08-12 change:
82001         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82002
82003 2003-08-16  Jim Meyering  <jim@meyering.net>
82004
82005         Merges from coreutils.
82006         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82007         prefix.  Adjust cache variables similarly.  Create 500 rather than
82008         just 300 files, to exercise bug on Darwin6.5, too.
82009         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82010         $missing_dir.
82011         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82012         AM_SYS_POSIX_TERMIOS.
82013         Reported by mkc@mathdogs.com.
82014         Also change use of $am_cv_sys_posix_termios
82015         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82016         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82017         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82018         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82019         in /proc/mounts until it finds one with matching device number.  This
82020         is unnecessary when the FILE argument *is* a mount point.  No stat call
82021         is necessary in that case.  So, disable the statvfs-testing code on
82022         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82023         as RedHat bug# 84846.
82024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82025         to 1MB, so as not to render systems with no stack size limit (e.g.,
82026         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82027         Include <unistd.h>.  On some systems,
82028         it is required for the definition of _SC_PAGESIZE.
82029
82030 2003-08-16  Jim Meyering  <jim@meyering.net>
82031
82032         Merge from coreutils.
82033         * lib/xstrtoimax.c: #else #if -> #elif.
82034         * lib/xstrtoumax.c: Likewise.
82035
82036 2003-08-16  Jim Meyering  <jim@meyering.net>
82037
82038         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82039         * m4/utimes.m4: Removed.
82040         * m4/utimes-null.m4: Renamed from utimes.m4.
82041
82042         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82043         to 1MB, so as not to render systems with no stack size limit (e.g.,
82044         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82045         Include <unistd.h>.  On some systems,
82046         it is required for the definition of _SC_PAGESIZE.
82047
82048 2003-08-16  Jim Meyering  <jim@meyering.net>
82049         and Paul Eggert  <eggert@cs.ucla.edu>
82050
82051         Merges from coreutils, etc.
82052
82053         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82054         using the latest version from cvs.  This avoids problems with #line
82055         directives using a vendor (Sun) compiler.
82056         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82057         Don't set GETGROUPS_LIB here; now it's
82058         done via getgroups.m4's wrapper function.
82059         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82060         rather than just in sh-util/configure.in, so that the
82061         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82062         same.
82063         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82064         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82065         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82066         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82067         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82068         Remove code that is now done by the newly-required macros.
82069         Append $(EXEEXT) to DF_PROG.
82070         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82071         Do not invoke or require the following here,
82072         since prereq.m4 or some gnulib .m4 now does this for us:
82073         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82074         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82075         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82076         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82077         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82078         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82079         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82080         AC_FUNC_OBSTACK.
82081         Do not replace the following functions, as this is now the job
82082         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82083         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82084         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82085         atexit getpass, strdup, getpagesize.
82086         Replace 'raise'.
82087         Do not check for the following functions, as this is now the job
82088         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82089         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82090         setregid.
82091         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82092         Check for sys/sysctl.h.
82093         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82094         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82095         of checking for ssize_t ourselves.
82096
82097         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82098         Require every macro that gnulib/modules/* suggests for us.
82099         (jm_PREREQ_ADDEXT): New macro.
82100         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82101         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82102
82103         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82104         (gl_PHYSMEM): Use it.
82105         Also check for `table' function.
82106         Check for new headers and functions.
82107         Add check for sys/sysmp.h.
82108         With suggestions from Kaveh Ghazi.
82109         Ignore headers that are present but cannot be compiled.  This
82110         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82111         C 5.4.
82112
82113 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82114
82115         Document merge from coreutils.
82116         * modules/userspec: Depend on posixver.
82117         * modules/strftime: Depend on tzset.
82118
82119 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82120
82121         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82122         rather than tab, after '#' in shell-script copyright notices.
82123         Suggested by Bruno Haible.
82124
82125 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82126
82127         * config/srclist-update: Use three spaces, rather than tab, after '#'
82128         in shell-script copyright notices.  Suggested by Bruno Haible.
82129         Remove unnecessary parenthesization in regular expression.
82130
82131 2003-08-15  Jim Meyering  <jim@meyering.net>
82132
82133         Merge from coreutils.
82134         * lib/xgethostname.c: Include <stdlib.h>.
82135         (xghostname): Don't exit for anything other than memory-related
82136         failure; just return NULL.
82137         * lib/userspec.c: Include "posixver.h".
82138         (parse_user_spec): Accept `.' as a separator only
82139         in pre-POSIX-200112 mode.
82140         * lib/strtoimax.c: Use #elif rather than #else #if.
82141         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82142         Remove function, now that we can rely on a working tzset function.
82143         [!_LIBC]: Ensure that the required autoconf test has been run.
82144         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82145         Use underlying_strftime for %r.
82146         * lib/sha.c: Merge in some clean-up and optimization changes from
82147         glibc.
82148         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82149         Ensure that it is a multiple of 64.
82150         Rearrange loop exit tests so as to avoid performing an
82151         additional fread after encountering an error or EOF.
82152         * lib/realloc.c: Update copyright date.
82153
82154 2003-08-15  Jim Meyering  <jim@meyering.net>
82155         and Paul Eggert  <eggert@twinsun.com>
82156
82157         Merge from coreutils.
82158         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82159         member but strut utmpx does not.  Needed for AIX 4.3.3.
82160         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82161
82162 2003-08-15  Jim Meyering  <jim@meyering.net>
82163         and Paul Eggert  <eggert@cs.ucla.edu>
82164
82165         Merges from coreutils, etc.
82166         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82167         Require gl_FUNC_TZSET_CLOBBER.
82168         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82169         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82170         members.
82171
82172 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82173
82174         Help the merge from coreutils.
82175         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82176         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82177         * m4/tzset.m4: Use it too.
82178
82179 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82180
82181         * modules/tzset: New file.
82182
82183 2003-08-14  Jim Meyering  <jim@meyering.net>
82184
82185         Merges from coreutils.
82186         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82187         variable names, rather than @FNMATCH_H@.
82188         * modules/alloca: Likewise for $(ALLOCA_H).
82189
82190         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82191         the three copies of the literal target, `fnmatch.h'.
82192         * modules/alloca (alloca.h): Likewise.
82193
82194 2003-08-14  Jim Meyering  <jim@meyering.net>
82195
82196         Merge from coreutils.
82197         * m4/tzset.m4: New file.
82198         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82199         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82200         otherwise, AIX 5.1 systems would end up using the latter.
82201         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82202         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82203         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82204         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82205
82206 2003-08-14  Jim Meyering  <jim@meyering.net>
82207
82208         Merge from coreutils.
82209         * lib/obstack.h: Whitespace changes.
82210         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82211         and xcalloc return values.
82212         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82213         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82214         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82215         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82216         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82217         error from mntctl.
82218         Use mntctl's return value to drive the entry-processing loop, since
82219         we can't rely on the value of the vmt_length member in the last
82220         entry.  On some systems doing so could result in exhausting
82221         virtual memory.  Based in part on a patch from Mike Jetzer.
82222
82223 2003-08-14  Jim Meyering  <jim@meyering.net>
82224         and Paul Eggert  <eggert@twinsun.com>
82225
82226         Merges from coreutils, plus other fixes.
82227         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82228         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82229         for credits and details.  Thanks to Kaveh Ghazi for helping
82230         to keep these files in sync.
82231         (ARRAY_SIZE): Define it.
82232         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82233         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82234         (memcasecmp): Don't assume size_t fits in unsigned int.
82235         Remove casts and duplicate code.
82236         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82237         (memcpy): Remove definition.
82238         Merge in some clean-up and optimization changes from glibc.
82239         [BLOCKSIZE]: Move definition to top of file.
82240         Ensure that it is a multiple of 64.
82241         Rearrange loop exit tests so as to avoid performing an
82242         additional fread after encountering an error or EOF.
82243         * lib/md5.h (md5_uintptr): Define.
82244         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82245         return to the initial working directory.  Preserve errno
82246         for caller.
82247         * lib/idcache.c: Include "xalloc.h".
82248         (xmalloc, xrealloc): Remove decls.
82249         (getuser): Remove casts no longer required in C89.
82250         * lib/human.c: Include stdio.h, for sprintf.
82251         * lib/group-member.c: Include "xalloc.h".
82252         (xmalloc, xrealloc): Remove decls.
82253         (get_group_info): Remove casts no longer required in C89.
82254         * lib/getusershell.c (readname): Remove casts no longer required in
82255         C89.
82256         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82257         * lib/getline.c: Whitespace fix, from coreutils.
82258
82259 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82260
82261         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82262         Check for isascii.
82263
82264         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82265         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82266         Undo previous (whitespace-only) change.
82267
82268 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82269
82270         * lib/exclude.c: Include <ctype.h>
82271         (IN_CTYPE_DOMAIN): New macro.
82272         (is_space): New fn.
82273         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82274         and empty lines.
82275
82276         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82277         Undo previous (whitespace-only) change.
82278
82279 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82280
82281         * config/srclist-update: Change update back to the old behavior,
82282         leaving whitespace alone.  Use one 'sed' command rather than a
82283         pipeline.
82284         (fixlicense): Now a variable, not a function.
82285         (remove_trailing_blanks): Remove.
82286         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82287         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82288         Undo previous (whitespace-only) change.
82289
82290 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82291
82292         Merge from coreutils.
82293         * modules/euidaccess: Add lib_SOURCES, include for new
82294         file euidaccess.h
82295
82296 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82297
82298         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82299         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82300         Normalize leading white space and remove trailing white space.
82301
82302         Merge from coreutils
82303         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82304
82305         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82306         0.12.1.  These files are now being upgraded automatically by
82307         ../config/srclist-update.
82308
82309 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82310
82311         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82312         Normalize leading white space and remove trailing white space.
82313         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82314         notice, as per ../config/srclist-update.
82315
82316         Merge from coreutils.
82317         * lib/euidaccess.h: New file.
82318         * lib/euidaccess.c: Include it.
82319         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82320         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82321         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82322
82323 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82324
82325         * config/srclist-update: Add copyright notice.
82326         (remove_id_lines, remove_trailing_blanks): New constants.
82327         (fixfile): Use them to normalize spacing a bit in copied files.
82328         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82329         Normalize leading white space and remove trailing white space.
82330
82331         * config/texinfo.tex: Sync with texinfo.
82332
82333         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82334         strtoul.c from libc, to merge coreutils whitespace changes.
82335
82336         * config/srclist.txt: Get the following m4 files from gettext:
82337         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82338         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82339         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82340         wint_t.m4.
82341
82342 2003-08-12  Karl Berry  <karl@gnu.org>
82343
82344         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82345         been made.
82346
82347 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82348
82349         * modules/gnu-source, m4/gnu-source.m4:
82350         Remove; we're assuming Autoconf 2.54 or later now.
82351         Suggested by Bruno Haible.
82352         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82353
82354 2003-08-11  Bruno Haible  <bruno@clisp.org>
82355
82356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82357
82358 2003-08-11  Bruno Haible  <bruno@clisp.org>
82359
82360         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82361         (vasnprintf): Use it instead of wcslen.
82362
82363 2003-08-11  Bruno Haible  <bruno@clisp.org>
82364
82365         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82366         value to ensure that _Bool promotes to int. Use #define for _Bool when
82367         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82368
82369 2003-08-10  Karl Berry  <karl@gnu.org>
82370
82371         * lib/regex.h: update from libc (whitespace fix).
82372
82373 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82374
82375         Merge some files from coreutils.  These changes were
82376         originally made by Jim Meyering.
82377         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82378         many older Unixes require this.
82379         * lib/alloca.c (alloca): Remove cast to argument of free;
82380         no longer needed in C89.
82381         * lib/alloca_.h, regex.h: Fix white space to match
82382         what GNU indent does.
82383
82384 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82385
82386         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82387         apparently Emacs's Unicode mode got confused before my 2003-08-05
82388         checkin.
82389
82390 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82391
82392         * m4/extensions.m4: New file.
82393         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82394         Require gl_USE_SYSTEM_EXTENSIONS.
82395         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82396         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82397
82398 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82399
82400         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82401         * modules/extensions, modules/gnu-source: New files.
82402         * modules/timespec, modules/unlocked-io: Depend on extensions.
82403
82404 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82405
82406         * modules/restrict: New file.
82407         * MODULES.html.sh (func_all_modules): Add restrict.
82408         * modules/regex: Depend on restrict.
82409
82410 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82411
82412         * m4/restrict.m4: New file.
82413         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82414
82415 2003-08-07  Bruno Haible  <bruno@clisp.org>
82416
82417         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82418         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82419
82420 2003-08-07  Bruno Haible  <bruno@clisp.org>
82421
82422         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82423         makes the module 'getndelim2' compatible with the module 'getline'.
82424
82425 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82426
82427         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82428         byte with "\201" to avoid glitches when editing that source file
82429         with multi-gnome-terminal.
82430
82431 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82432
82433         * lib/bumpalloc.h: Remove.
82434
82435 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82436
82437         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82438         * modules/bumpalloc: Remove.
82439
82440 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82441
82442         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82443         GNU coding style.
82444
82445         Merge from coreutils.
82446         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82447         1. From glibc.
82448         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82449         from Karl Berry, implemented by Jim Meyering.
82450         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82451         from Dmitry V. Levin.
82452         Remove anachronistic cast of xrealloc.
82453         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82454         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82455         type. Otherwise, it wouldn't compile with at least /bin/cc on
82456         ymp-cray-unicos9.0.2.X.
82457         Combine two mostly-identical uses of alloca into one.
82458         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82459
82460 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82461
82462         [From Emacs.]
82463
82464         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82465         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82466         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82467         obsolete NLIST_NAME_UNION.
82468         [__GNU__]: Undef BSD and FSCALE.
82469         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82470
82471 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82472
82473         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82474         an enum type, so that it's guaranteed to promote to int.  See:
82475         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82476
82477 2003-08-03  Karl Berry  <karl@gnu.org>
82478
82479         * config/depcomp: update from automake.
82480
82481 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82482
82483         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82484         (strerror): Don't assume that a printable int fits in 14 bytes.
82485
82486 2003-07-31  Bruno Haible  <bruno@clisp.org>
82487
82488         * modules/getpass-gnu: New file.
82489         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82490
82491 2003-07-31  Bruno Haible  <bruno@clisp.org>
82492
82493         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82494
82495 2003-07-24  Karl Berry  <karl@gnu.org>
82496
82497         * config/missing: update from automake.
82498
82499 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82500             Bruno Haible  <bruno@clisp.org>
82501
82502         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82503         * lib/getline.c (getline, getdelim): Likewise.
82504         Remove _GNU_SOURCE define; now it's defined in config.h through
82505         m4/getline.m4.
82506
82507 2003-07-23  Karl Berry  <karl@gnu.org>
82508
82509         * config/config.sub: update from prep.
82510
82511 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82512
82513         * modules/xalloc (Depends-on): Add exitfail.
82514         * modules/xmemcoll: Likewise.
82515
82516 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82517
82518         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82519         over-parenthesization in macros.
82520
82521         Sync with coreutils.
82522
82523         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82524         required by C99.
82525
82526         Use `exit_failure' for xalloc and xmemcoll instead of their own
82527         private exit-failure variables.
82528         * lib/xalloc.h (xalloc_exit_failure): Remove.
82529         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82530         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82531         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82532         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82533         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82534
82535 2003-07-20  Jim Meyering  <jim@meyering.net>
82536
82537         * modules/closeout (Depends-on): Add exitfail.
82538         Suggestion from Bruno Haible.
82539
82540 2003-07-19  Karl Berry  <karl@gnu.org>
82541
82542         * config/config.sub: update from prep.
82543
82544 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82545
82546         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82547         Remove.
82548         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82549         to test that it can stand by itself.  Include "exitfail.h".
82550         Clients should set exit_failure instead.
82551         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82552
82553 2003-07-18  Bruno Haible  <bruno@clisp.org>
82554
82555         * modules/getndelim2: New file.
82556         * modules/getline: Share files with module getndelim2.
82557         * modules/getnline: Depend on getndelim2 instead of sharing files with
82558         it. Add getnline.c to lib_SOURCES.
82559         * MODULES.html.sh (func_all_modules): Add getndelim2.
82560
82561 2003-07-18  Bruno Haible  <bruno@clisp.org>
82562
82563         * m4/getndelim2.m4: New file.
82564         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82565         invoke gl_PREREQ_GETNDELIM2.
82566         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82567         gl_PREREQ_GETNDELIM2.
82568         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82569         gl_GETNDELIM2.
82570
82571 2003-07-18  Bruno Haible  <bruno@clisp.org>
82572
82573         * lib/getndelim2.h: New file.
82574         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82575         getndelim2.h.
82576         (getndelim2): Make non-static. Change return type to ssize_t.
82577         * lib/getline.h: Change argument names.
82578         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82579         * lib/getnline.c: Include getndelim2.h.
82580
82581 2003-07-18  Andreas Schwab  <schwab@suse.de>
82582
82583         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82584
82585 2003-07-17  Karl Berry  <karl@gnu.org>
82586
82587         * config/config.sub: update from prep.
82588
82589 2003-07-17  Bruno Haible  <bruno@clisp.org>
82590
82591         * modules/getnline: New file.
82592         * modules/getline: Add lib/getndelim2.c to source file list.
82593         * MODULES.html.sh (func_all_modules): Add getnline.
82594
82595 2003-07-17  Bruno Haible  <bruno@clisp.org>
82596
82597         * m4/getnline.m4: New file.
82598
82599 2003-07-17  Bruno Haible  <bruno@clisp.org>
82600
82601         * m4/Makefile.am.in: Remove file.
82602         * m4/Makefile.am: Remove file.
82603         * m4/Makefile.in: Remove file.
82604
82605 2003-07-17  Bruno Haible  <bruno@clisp.org>
82606
82607         * lib/getnline.h: New file.
82608         * lib/getnline.c: New file.
82609         * lib/getndelim2.c: New file, extracted from getline.c.
82610         (getndelim2): Renamed from getdelim2, with added nmax argument.
82611         * lib/getline.c: Include getndelim2.c.
82612         (getdelim2): Moved out to getndelim2.c.
82613         (getline, getdelim): Update.
82614
82615 2003-07-17  Bruno Haible  <bruno@clisp.org>
82616
82617         * lib/Makefile.am: Remove file.
82618         * lib/Makefile.in: Remove file.
82619
82620 2003-07-17  Bruno Haible  <bruno@clisp.org>
82621
82622         * configure.in: Remove file.
82623         * Makefile.in: Remove file.
82624
82625 2003-07-17  Bruno Haible  <bruno@clisp.org>
82626
82627         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82628
82629 2003-07-16  Karl Berry  <karl@gnu.org>
82630
82631         * config/srclist-update: was running fixlicense twice, which caused
82632                 texinfo.tex to be nullified for some reason.  Simplify,
82633                 $gplsrc is no longer needed as far as I can see?
82634
82635 2003-07-16  Jim Meyering  <jim@meyering.net>
82636
82637         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82638
82639 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82640
82641         * config/srclist.txt: Get the following files from gettext-runtime/intl
82642         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82643         ref-del.sin.  From Bruno Haible.
82644         * config/srclist-update (fixfile): Change grep pattern again, since the
82645         previous fix didn't work (there was another trailing $).  Use
82646         '[$]' to escape the $s.
82647
82648 2003-07-15  Karl Berry  <karl@gnu.org>
82649
82650         * lib/vasnprintf.c: update from gettext.
82651
82652 2003-07-15  Karl Berry  <karl@gnu.org>
82653
82654         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82655         gets expanded when surrounded by '$'.
82656
82657 2003-07-15  Jim Meyering  <jim@meyering.net>
82658
82659         * modules/save-cwd: Don't depend on error.  From Derek Price.
82660
82661 2003-07-15  Jim Meyering  <jim@meyering.net>
82662
82663         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82664
82665 2003-07-14  Simon Josefsson  <jas@extundo.com>
82666
82667         * modules/mempcpy: New file.
82668         * MODULES.html.sh (func_all_modules): Add mempcpy.
82669
82670 2003-07-14  Simon Josefsson  <jas@extundo.com>
82671
82672         * m4/mempcpy.m4: New file.
82673
82674 2003-07-14  Simon Josefsson  <jas@extundo.com>
82675
82676         * lib/mempcpy.h: New file.
82677         * lib/mempcpy.c: New file.
82678
82679 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82680
82681         * modules/getdate, modules/posixtm: Depend on mktime.
82682
82683 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82684
82685         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82686         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82687         unicodeio.c, unicodeio.h, unlocked-io.h:
82688         Switch from LGPL to GPL.
82689
82690 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82691
82692         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82693         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82694         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82695         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82696         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82697         updated automatically by ../config/srclist-update.  This changes
82698         their license from LPGL to GPL.
82699
82700 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82701
82702         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82703         assumed to refer to the root of the most recent stable gettext version.
82704         * config/srclistvars.sh: Add defaults for eggert.
82705         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82706         Match "This program" as well as "The program".  This is needed
82707         for gettext.
82708
82709 2003-07-14  Jim Meyering  <jim@meyering.net>
82710
82711         Don't emit diagnostics.  Let callers do that.
82712         * lib/save-cwd.c: Don't include "error.h".
82713         (save_cwd): Don't call error.  Ensure that errno is valid
82714         when returning nonzero.
82715
82716         * lib/save-cwd.h (restore_cwd): Update prototype.
82717         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82718         Simplify.  Don't call error upon failure.  Let callers do that.
82719         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82720         when auditing is enabled.  But don't bother updating the #if.
82721
82722 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82723
82724         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82725         it breaks C++ compilation.
82726         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82727
82728 2003-07-10  Simon Josefsson  <jas@extundo.com>
82729
82730         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82731
82732 2003-07-10  Jim Meyering  <jim@meyering.net>
82733
82734         * m4/clock_time.m4: Remove trailing blank.
82735         * m4/intmax_t.m4: Likewise.
82736
82737 2003-07-10  Jim Meyering  <jim@meyering.net>
82738
82739         * lib/vasnprintf.c: Remove trailing blanks.
82740         Make cpp indentation consistent.
82741
82742 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82743
82744         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82745         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82746         Switch from LGPL to GPL.
82747
82748 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82749
82750         * config/srclist.txt: Sort sublists.  Add
82751         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82752         that differ from gnulib for one reason or another; we'd like this list
82753         to be smaller but for now let's document what we have.
82754
82755 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82756
82757         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82758         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82759         and sweeter "eval x=$x".
82760         * config/srclist.txt: Get lib/argp* from glibc.
82761
82762 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82763
82764         * lib/mktime.c: Fix some boundary cases and remove need for floating
82765         point.
82766
82767         Issue a compile-time diagnostic if time_t is floating point, or if
82768         two's complement arithmetic is not in effect, or if arithmetic
82769         right shift does not propagate the sign.  These assumptions were
82770         all in the original code but they weren't checked.
82771
82772         (TIME_T_MIDPOINT, verify): New macros.
82773         (__isleap): Remove; it has integer overflow problems.
82774         (leapyear): New function, without those problems.
82775         (ydhms_tm_diff): Remove; splitting into two parts.
82776         (ydhms_diff): New function, containing the arithmetic part of
82777         the old ydhms_tm_diff function.  Issue a compile-time
82778         diagnostic if we are not using C99 integer division.
82779         Avoid casts when possible.
82780         (guess_time_tm): New function, containing the checking part of
82781         the old ydhms_tm_diff function.  Return the new value, rather than
82782         the difference between it and the old.  Accept a new argument T
82783         so that *T specifies the old value.  Check for overflow in the result.
82784
82785         (__mktime_internal): Use a time_t offset, not a long int offset.
82786         This undoes the 2003-06-04 change, which is no longer needed now
82787         that we have better overflow checking.
82788         (localtime_offset): Likewise.
82789
82790         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82791         and long are 64-bit but int is only 32-bit.
82792         (ydhms_diff): Use long int to store year1 and yday1.
82793         Issue a compile-time diagnostic if long int is not wide enough.
82794
82795         (__mktime_internal): Use long int to store adjusted year and yday.
82796         Use plain C rather than preprocessor commands, if that doesn't
82797         affect efficiency.
82798         Check for overflow (and try to repair) after each probe
82799         rather than checking only at the very end.  This avoids some bugs
82800         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82801         does not equal GMT offset at maximum time).
82802         Use integer to check for overflow rather than floating point; this
82803         is more portable to non-IEEE hosts, and is a tad faster.
82804         When we detect that we are oscillating between two values,
82805         don't check whether tm_isdst has the requested value, since
82806         we already know the answer.  When tm_isdst has the wrong value,
82807         use a different heuristic to find the right one, based on the
82808         extreme values actually observed in practice in tz2003a,
82809         rather than the (overly optimistic) "previous 3 calendar quarters".
82810
82811         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82812         "T const" to accommodate glibc style.
82813         (check_result): Use less-confusing report format.  "long" -> "long int.
82814         (main): Likewise.
82815         Don't loop if the iteration overflows time_t.
82816         Allow a negative step in the iteration.
82817
82818 2003-07-06  Karl Berry  <karl@gnu.org>
82819
82820         * config/depcomp: update from automake.
82821         * config/config.sub: update from prep.
82822
82823 2003-07-03  Karl Berry  <karl@gnu.org>
82824
82825         * config/config.guess: update from prep.
82826
82827 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82828
82829         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82830         xreadlink.c now includes it unconditionally.
82831
82832 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82833
82834         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82835         having it depend on HAVE_SYS_TYPES_H.
82836
82837 2003-07-01  Bruno Haible  <bruno@clisp.org>
82838
82839         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82840         <sys/types.h> should be sufficient.
82841         Reported by Paul Eggert.
82842
82843 2003-06-26  Karl Berry  <karl@gnu.org>
82844
82845         * config/depcomp: update from automake.
82846
82847 2003-06-26  Bruno Haible  <bruno@clisp.org>
82848
82849         * modules/human: Depend on module stdbool.
82850
82851 2003-06-25  Bruno Haible  <bruno@clisp.org>
82852
82853         * modules/readlink: New file.
82854         * modules/xreadlink: Depend on it.
82855         * MODULES.html.sh (func_all_modules): Add readlink.
82856
82857 2003-06-25  Bruno Haible  <bruno@clisp.org>
82858
82859         * m4/readlink.m4: New file.
82860
82861 2003-06-25  Bruno Haible  <bruno@clisp.org>
82862
82863         * lib/readlink.c: New file.
82864
82865 2003-06-22  Karl Berry  <karl@gnu.org>
82866
82867         * config/srclist.txt: update mkinstalldirs from automake.
82868         * config/mkinstalldirs: update.
82869
82870 2003-06-22  Bruno Haible  <bruno@clisp.org>
82871
82872         Portability to mingw32.
82873         * m4/ssize_t.m4: New file, from GNU gettext.
82874         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82875         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82876
82877 2003-06-22  Bruno Haible  <bruno@clisp.org>
82878
82879         * modules/safe-read: Add m4/ssize_t.m4.
82880         * modules/xreadlink: Add m4/ssize_t.m4.
82881
82882 2003-06-20  Bruno Haible  <bruno@clisp.org>
82883
82884         Assume C89, so PARAMS isn't needed.
82885         * lib/unicodeio.h (PARAMS): Remove.
82886         * lib/unicodeio.c: Don't use PARAMS.
82887
82888 2003-06-18  Karl Berry  <karl@gnu.org>
82889
82890         * config/config.{guess,sub}: update from prep.
82891
82892 2003-06-18  Jim Meyering  <jim@meyering.net>
82893
82894         Merge changes from coreutils.
82895         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82896         Remove explicit declarations of xmalloc and realloc.
82897         Include xalloc.h.
82898         (read_utmp): Remove anachronistic cast of xmalloc.
82899
82900 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82901
82902         Assume C89, so PARAMS isn't needed.
82903         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82904         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82905         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82906         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82907         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82908         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82909         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82910         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82911         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82912         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82913         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82914         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82915         no longer needed. Anyway, config.h should always be included before any
82916         other file.
82917
82918 2003-06-11  Simon Josefsson  <jas@extundo.com>
82919
82920         * modules/sysexits: New file.
82921         * MODULES.html.sh (func_all_modules): Add sysexits.
82922
82923 2003-06-11  Simon Josefsson  <jas@extundo.com>
82924
82925         * lib/sysexit_.h: New file.
82926
82927 2003-06-11  Derek Price  <derek@ximbiot.com>
82928
82929         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82930         necessary.
82931
82932 2003-06-11  Bruno Haible  <bruno@clisp.org>
82933
82934         * m4/sysexits.m4: New file.
82935
82936 2003-06-10  Simon Josefsson  <jas@extundo.com>
82937
82938         * lib/argp.h: New file, from glibc.
82939         * lib/argp-ba.c: New file, from glibc.
82940         * lib/argp-eexst.c: New file, from glibc.
82941         * lib/argp-fmtstream.c: New file, from glibc.
82942         * lib/argp-fmtstream.h: New file, from glibc.
82943         * lib/argp-fs-xinl.c: New file, from glibc.
82944         * lib/argp-help.c: New file, from glibc.
82945         * lib/argp-namefrob.h: New file, from glibc.
82946         * lib/argp-parse.c: New file, from glibc.
82947         * lib/argp-pv.c: New file, from glibc.
82948         * lib/argp-pvh.c: New file, from glibc.
82949         * lib/argp-xinl.c: New file, from glibc.
82950
82951 2003-06-10  Simon Josefsson  <jas@extundo.com>
82952
82953         * modules/strchrnul: New file.
82954
82955 2003-06-10  Simon Josefsson  <jas@extundo.com>
82956
82957         * modules/argp: New file.
82958
82959 2003-06-10  Simon Josefsson  <jas@extundo.com>
82960
82961         * m4/strchrnul.m4: New file.
82962
82963 2003-06-10  Simon Josefsson  <jas@extundo.com>
82964
82965         * lib/strchrnul.h: New file.
82966         * lib/strchrnul.c: New file.
82967
82968 2003-06-10  Bruno Haible  <bruno@clisp.org>
82969
82970         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82971
82972 2003-06-07  Karl Berry  <karl@gnu.org>
82973
82974         * config/config.{guess,sub}: update from prep.
82975
82976 2003-06-07  Jim Meyering  <jim@meyering.net>
82977
82978         * modules/strtod: Use $(...) notation, not @...@ for
82979         AC_REPLACE'd variables.
82980         * modules/localcharset: Likewise.
82981
82982 2003-06-07  Jim Meyering  <jim@meyering.net>
82983
82984         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82985         in place of my name in the copyright comment.
82986         Remove definition and uses of __P.
82987
82988         From coreutils.
82989         * lib/stat.c: Don't declare xmalloc explicitly.
82990         Instead, include "xalloc.h".
82991         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82992         xrealloc, and xcalloc return values.
82993         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82994         Improve comment.
82995         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82996
82997 2003-06-07  Bruno Haible  <bruno@clisp.org>
82998
82999         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83000         avoid AC_CONFIG_LINKS.
83001         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83002         fnmatch.h, to avoid AC_CONFIG_LINKS.
83003         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83004
83005 2003-06-07  Bruno Haible  <bruno@clisp.org>
83006
83007         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83008         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83009         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83010         directory.
83011         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83012         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83013         directory.
83014
83015 2003-06-06  Jim Meyering  <jim@meyering.net>
83016
83017         Merge from coreutils.
83018         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83019         Consolidate declarations and initializations of *_base* locals.
83020
83021         Merge from coreutils.
83022         This avoids a core dump on systems without GNU putenv,
83023         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83024         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83025         (unsetenv): New static function, from GNU libc.
83026         (rpl_putenv): Use it.
83027
83028         * lib/modechange.c: Remove trailing blanks.
83029
83030         Merge from coreutils.
83031         * lib/fsusage.c: Remove declaration of statfs.
83032         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83033
83034         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83035
83036 2003-06-06  Jim Meyering  <jim@meyering.net>
83037
83038         * lib/stdbool_.h: Renamed from stdbool.h.in.
83039
83040 2003-06-06  Jim Meyering  <jim@meyering.net>
83041             Bruno Haible  <bruno@clisp.org>
83042
83043         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83044         Adjust Makefile.am snippet not to redirect directly to target.
83045         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83046
83047 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83048
83049         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83050         mismatch, look in future quarters as well as past.  This fixes a
83051         bug when processing fall-backwards gaps immediately after a long
83052         period of daylight-saving time.
83053
83054         * lib/mktime.c: Assume freestanding C89 or better.
83055         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83056         (__P): Remove; not used.
83057         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83058         (mktime, not_equal_tm, print_tm, check_result,
83059         main): Use prototypes.  Use const * where appropriate.
83060         (main): Fix typo in testing code that uncovered by above changes.
83061         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83062
83063 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83064
83065         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83066         locale.h, localeconv.  This merges changes from coreutils.
83067
83068         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83069         It can be removed after the next Autoconf is released.
83070         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83071         needed.
83072
83073 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83074
83075         * lib/mktime.c: Fix Debian bug 177940
83076         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83077         (localtime_offset): Now long int, not time_t, because we want it
83078         to be guaranteed to be signed.  All uses changed.
83079         (__mktime_internal): If overflow would occur when adding offset,
83080         don't add it.
83081
83082         Merge 'human' changes from coreutils.  Rewrite to support
83083         locale-specific notations like thousands separators.
83084         * lib/human.c: Simplify authorship notice.
83085         Include human.h immediately after config.h.
83086         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83087         <limits.h>: Do not include, since human.h does.
83088         (SIZE_MAX, UINTMAX_MAX): New macros.
83089         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83090         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83091         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83092         (power_letter): Renamed from suffixes.
83093         (generate_suffix_backwards): Remove.
83094         (adjust_value): Now takes int style (because of human.h changes)
83095         and long double value (for greater precision on some platforms).
83096         (group_number): New function.
83097         (human_readable): Use it.  Use integer options, not enum.
83098         Put the options before the sizes in the arg list.
83099         Support all the new options.
83100         The old human_readable function has been removed;
83101         use inttostr.h instead.
83102         (human_readable, default_block_size, humblock):
83103         Use uintmax_t, not int, for block sizes.
83104         (human_readable_inexact, block_size_types): Remove.
83105         (block_size_opts): New constant.
83106         (human_options): Renamed from human_block_size, with new signature
83107         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83108         * lib/human.h: Add copyright and authorship notice.
83109         Include <limits.h> and <stdbool.h> unconditionally.
83110         (PARAMS): Remove.  All uses removed.
83111         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83112         (enum human_inexact_style): Remove tag; now a nameless enum.
83113         (human_floor, human_ceiling, human_round_to_even): Now have
83114         values 2, 0, 1 rather than -1, 1, 0.
83115         (human_group_digits, human_suppress_point_zero, human_autoscale,
83116         human_base_1024, human_SI, human_B): New constants.
83117         (human_readable_inexact, human_block_size): Remove.
83118         (human_readable): Size args are now uintmax_t, not int.
83119         (human_options): New decl.
83120
83121         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83122         unnecessary now that we assume C89 or better.  This change
83123         imported from coreutils.
83124
83125         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83126         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83127         in the 2003-05-30 sync from glibc.
83128
83129         .h files should stand alone, but we shouldn't include <sys/types.h>
83130         if we can get away with just <stddef.h>.
83131
83132         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83133         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83134         rather than <sys/types.h>, as we merely need size_t.
83135         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83136         to get size_t.
83137         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83138         Include <stdio.h>, to get FILE.
83139         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83140         memcasecmp.h has included <stddef.h> and all we need is size_t.
83141         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83142         our interface, instead of including <sys/types.h>
83143
83144 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83145
83146         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83147         now, as glibc mktime is buggy on non-glibc systems.
83148
83149 2003-06-03  Karl Berry  <karl@gnu.org>
83150
83151         * config/config.sub: update from prep.
83152
83153 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83154
83155         [from coreutils]
83156         Fix some minor time-related bugs with POSIX time arguments.
83157         Some valid time stamps were being rejected (notably -1, and
83158         time stamps before 1900 on 64-bit hosts).  And some invalid
83159         time stamps were being accepted, e.g. September 31.
83160
83161         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83162         that we can return (time_t) -1 successfully.
83163         * lib/posixtm.c: Likewise.
83164         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83165         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83166         (t): Remove static var.
83167         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83168         of static var.  All uses changed.
83169         (year): Do not reject years before 1900; they can occur with
83170         64-bit time_t.
83171         (posix_time_parse): Do not check for out-of-range components;
83172         that is now the caller's responsibility, since our checks were
83173         only approximations.
83174         (posixtime): Use mktime to check for out-of-range components,
83175         since it knows them exactly.
83176         If mktime returns (time_t) -1, check whether an error actually occurred
83177         by invoking localtime on -1.
83178         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83179         posixtime failures better.
83180         Improve the test data (in comments only).
83181
83182 2003-06-02  Karl Berry  <karl@gnu.org>
83183
83184         * config/mkinstalldirs (version): new variable.
83185         (--version): new option.
83186         (usage): improve message.
83187
83188 2003-05-30  Karl Berry  <karl@gnu.org>
83189
83190         * lib/mktime.c: update from libc.
83191
83192 2003-05-30  Bruno Haible  <bruno@clisp.org>
83193
83194         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83195         * config/config.rpath: Upgrade to gettext-0.12.1.
83196
83197 2003-05-30  Bruno Haible  <bruno@clisp.org>
83198
83199         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83200         * m4/nls.m4: New file, from gettext-0.12.1.
83201         * m4/po.m4: New file, from gettext-0.12.1.
83202         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83203
83204 2003-05-30  Bruno Haible  <bruno@clisp.org>
83205
83206         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83207         * lib/localcharset.h: Likewise.
83208         * lib/localcharset.c: Likewise.
83209
83210 2003-05-29  Karl Berry  <karl@gnu.org>
83211
83212         * config/config.rpath: update from gettext.
83213
83214 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83215
83216         Assume the headers required for C89 freestanding compilers.
83217         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83218         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83219         * m4/human.m4 (gl_HUMAN): Likewise.
83220         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83221         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83222         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83223         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83224         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83225         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83226
83227 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83228
83229         Assume the headers required for C89 freestanding compilers.
83230         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83231         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83232         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83233         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83234         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83235         define, since <limits.h> is guaranteed to do that.
83236         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83237         * lib/exclude.c: Include <stdbool.h> unconditionally.
83238         * lib/tempname.c: Include <stddef.h> unconditionally.
83239         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83240         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83241         <stddef.h> does that.
83242         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83243         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83244         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83245         needed.
83246         * lib/xstrtol.c: Likewise.
83247         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83248         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83249
83250         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83251         warnings on some platforms.
83252
83253         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83254         arbitrarily.
83255
83256 2003-05-26  Jim Meyering  <jim@meyering.net>
83257
83258         Merge in a change from coreutils:
83259         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83260         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83261         that condition, rather than `-1' which is slightly misleading.
83262         Change the name of the cache variable to have the gl_ prefix.
83263         Prompted by a patch from Richard Dawe for DJGPP.
83264
83265 2003-05-24  Karl Berry  <karl@gnu.org>
83266
83267         * config/config.guess: update from prep.
83268
83269 2003-05-22  Karl Berry  <karl@gnu.org>
83270
83271         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83272
83273 2003-05-20  Karl Berry  <karl@gnu.org>
83274
83275         * config/config.guess: update from prep.
83276
83277 2003-05-18  Karl Berry  <karl@gnu.org>
83278
83279         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83280         might actually be set by the user.
83281
83282         * config/depcomp, install-sh, mdate-sh: update from automake.
83283
83284 2003-05-17  Bruno Haible  <bruno@clisp.org>
83285
83286         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83287         invalid expansion for AC_EGREP_CPP.
83288         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83289         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83290         Suggested by Akim Demaille <akim@epita.fr> in
83291         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83292
83293 2003-05-12  Jim Meyering  <jim@meyering.net>
83294
83295         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83296         the space-padded-by-default conversion specifiers, %e, %k, %l.
83297
83298 2003-05-12  Bruno Haible  <bruno@clisp.org>
83299
83300         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83301         the string is longer than 4 KB.
83302
83303 2003-05-11  Karl Berry  <karl@gnu.org>
83304
83305         * config/config.{guess,sub}: update from prep.
83306
83307 2003-05-09  Bruno Haible  <bruno@clisp.org>
83308
83309         * modules/error: Add m4/strerror_r.m4 to file list.
83310
83311 2003-05-03  Bruno Haible  <bruno@clisp.org>
83312
83313         Upgrade to Unicode-4.0.
83314         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83315         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83316         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83317         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83318         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83319         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83320         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83321         Change width of U+E0100..U+E01EF from 1 to 0.
83322
83323 2003-04-25  Jim Meyering  <jim@meyering.net>
83324
83325         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83326         of type size_t, not int.
83327
83328 2003-04-25  Bruno Haible  <bruno@clisp.org>
83329
83330         * lib/copy-file.c: Include <stddef.h>, for size_t.
83331
83332 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83333
83334         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83335         code which expansion is under static control.  Patch imported from
83336         Akim Demaille's patch to Bison; see
83337         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83338
83339 2003-04-14  Bruno Haible  <bruno@clisp.org>
83340
83341         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83342
83343 2003-04-11  Jim Meyering  <jim@meyering.net>
83344
83345         Merge changes from Coreutils.
83346
83347         2003-03-22  Jim Meyering  <jim@meyering.net>
83348
83349         * lib/strftime.c (widen): Cast alloca return value to proper type.
83350
83351         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83352
83353         From GNU libc.
83354         * lib/strftime.c (my_strftime): Handle very large width
83355         specifications for numeric values correctly.  Improve checks for
83356         overflow.
83357
83358         2003-01-19  Jim Meyering  <jim@meyering.net>
83359
83360         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83361         definitions.
83362         (nl_get_alt_digit) [! defined my_strftime]: Define.
83363         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83364         _nl_get_alt_digit and _nl_get_walt_digit.
83365
83366         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83367         libc. These changes have no effect outside of _LIBC.
83368
83369 2003-04-10  Bruno Haible  <bruno@clisp.org>
83370
83371         * modules/findprog: New file.
83372         * MODULES.html.sh (func_all_modules): Add it.
83373
83374 2003-04-10  Bruno Haible  <bruno@clisp.org>
83375
83376         * m4/findprog.m4: New file.
83377         * m4/eaccess.m4: New file.
83378
83379 2003-04-10  Bruno Haible  <bruno@clisp.org>
83380
83381         * lib/findprog.h: New file, from GNU gettext.
83382         * lib/findprog.c: New file, from GNU gettext.
83383
83384 2003-04-05  Jim Meyering  <jim@meyering.net>
83385
83386         Merge changes from Coreutils.
83387
83388         * lib/exclude.h (PARAMS): Remove definition and uses.
83389         * lib/exclude.c: Remove uses of `PARAMS'.
83390
83391         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83392         Add test-cases for DOS filenames. Declare program_name.
83393         (main): Set up program_name.  Patch by Rich Dawe.
83394
83395         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83396         error from mntctl.
83397         Use mntctl's return value to drive the entry-processing loop, since
83398         we can't rely on the value of the vmt_length member in the last
83399         entry.  On some systems doing so could result in exhausting
83400         virtual memory.  Based in part on a patch from Mike Jetzer.
83401
83402 2003-04-04  Bruno Haible  <bruno@clisp.org>
83403
83404         * modules/linebreak: New file.
83405         * MODULES.html.sh (func_all_modules): Add it.
83406
83407 2003-04-04  Bruno Haible  <bruno@clisp.org>
83408
83409         * m4/linebreak.m4: New file.
83410
83411 2003-04-04  Bruno Haible  <bruno@clisp.org>
83412
83413         * lib/linebreak.h: New file, from GNU gettext.
83414         * lib/linebreak.c: New file, from GNU gettext with slight
83415         modifications.
83416         * lib/lbrkprop.h: New file, from GNU gettext.
83417
83418 2003-04-03  Bruno Haible  <bruno@clisp.org>
83419
83420         * modules/utf8-ucs4: New file.
83421         * modules/utf16-ucs4: New file.
83422         * modules/ucs4-utf8: New file.
83423         * modules/ucs4-utf16: New file.
83424         * MODULES.html.sh (func_all_modules): Add them.
83425
83426 2003-04-03  Bruno Haible  <bruno@clisp.org>
83427
83428         * m4/utf-ucs4.m4: New file.
83429         * m4/ucs4-utf.m4: New file.
83430
83431 2003-04-03  Bruno Haible  <bruno@clisp.org>
83432
83433         * lib/utf8-ucs4.h: New file, from GNU gettext.
83434         * lib/utf16-ucs4.h: New file, from GNU gettext.
83435         * lib/ucs4-utf8.h: New file, from GNU gettext.
83436         * lib/ucs4-utf16.h: New file, from GNU gettext.
83437
83438 2003-04-02  Bruno Haible  <bruno@clisp.org>
83439
83440         * modules/binary-io: New file.
83441         * MODULES.html.sh (func_all_modules): Add it.
83442
83443 2003-04-02  Bruno Haible  <bruno@clisp.org>
83444
83445         * lib/binary-io.h: New file, from GNU gettext.
83446
83447 2003-04-01  Bruno Haible  <bruno@clisp.org>
83448
83449         * modules/pathname: New file.
83450         * MODULES.html.sh (func_all_modules): Add it.
83451
83452 2003-04-01  Bruno Haible  <bruno@clisp.org>
83453
83454         * lib/pathname.h: New file, from GNU gettext.
83455         * lib/concatpath.c: New file, from GNU gettext.
83456
83457 2003-03-30  Bruno Haible  <bruno@clisp.org>
83458
83459         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83460
83461 2003-03-30  Bruno Haible  <bruno@clisp.org>
83462
83463         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83464         function chown() doesn't exist.
83465
83466 2003-03-28  Bruno Haible  <bruno@clisp.org>
83467
83468         * modules/copy-file: New file.
83469         * MODULES.html.sh (func_all_modules): Add it.
83470
83471 2003-03-28  Bruno Haible  <bruno@clisp.org>
83472
83473         * m4/copy-file.m4: New file.
83474
83475 2003-03-28  Bruno Haible  <bruno@clisp.org>
83476
83477         * lib/copy-file.h: New file, from GNU gettext.
83478         * lib/copy-file.c: New file, from GNU gettext.
83479
83480 2003-03-18  Jim Meyering  <jim@meyering.net>
83481
83482         * lib/quote.c (quote_n): Fix typo in comment.
83483
83484 2003-03-18  Bruno Haible  <bruno@clisp.org>
83485
83486         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83487         checking.
83488         * m4/onceonly_2_57.m4: Likewise.
83489
83490 2003-03-17  Bruno Haible  <bruno@clisp.org>
83491
83492         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83493         (m4_quote): Remove macro.
83494         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83495
83496 2003-03-14  Jim Meyering  <jim@meyering.net>
83497
83498         Merge changes from Coreutils.
83499         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83500         to be const, in order to avoid warnings.
83501         (obstack_room): Likewise.
83502         (obstack_empty_p): Likewise.
83503
83504 2003-03-14  Bruno Haible  <bruno@clisp.org>
83505
83506         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83507         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83508
83509 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83510
83511         Merge changes from Bison.
83512         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83513         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83514         when compiling Bison 1.875's `bitset bset = obstack_alloc
83515         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83516         * lib/hash.c: Include <stdbool.h> unconditionally.
83517
83518 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83519
83520         * m4/onceonly.m4 (m4_quote): New macro.
83521         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83522         Quote AC_FOREACH variable-expansions properly.
83523
83524 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83525
83526         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83527
83528 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83529
83530         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83531         Reported by Bruce Becker; see:
83532         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83533
83534 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83535             Bruno Haible  <bruno@clisp.org>
83536
83537         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83538         Reported by John Hughes, see
83539         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83540
83541 2003-02-20  Bruno Haible  <bruno@clisp.org>
83542
83543         * MODULES.html.sh (func_all_modules): Add poll.
83544
83545 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83546
83547         * modules/poll: New file.
83548
83549 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83550
83551         * lib/poll_.h: New file.
83552         * lib/poll.c: New file.
83553
83554 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83555
83556         * m4/poll.m4: New file.
83557
83558 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83559
83560         * modules/mathl: New file.
83561
83562 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83563
83564         * lib/mathl.h: New file.
83565         * lib/acosl.c: New file.
83566         * lib/asinl.c: New file.
83567         * lib/atanl.c: New file.
83568         * lib/ceill.c: New file.
83569         * lib/cosl.c: New file.
83570         * lib/expl.c: New file.
83571         * lib/floorl.c: New file.
83572         * lib/frexpl.c: New file.
83573         * lib/ldexpl.c: New file.
83574         * lib/logl.c: New file.
83575         * lib/sincosl.c: New file.
83576         * lib/sinl.c: New file.
83577         * lib/sqrtl.c: New file.
83578         * lib/tanl.c: New file.
83579         * lib/trigl.c: New file.
83580         * lib/trigl.h: New file.
83581
83582 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83583
83584         * m4/mathl.m4: New file.
83585
83586 2003-02-18  Bruno Haible  <bruno@clisp.org>
83587
83588         * MODULES.html.sh (func_all_modules): Add mathl.
83589
83590 2003-02-17  Bruno Haible  <bruno@clisp.org>
83591
83592         * modules/mkdtemp: New module.
83593         * MODULES.html.sh (func_all_modules): Add it.
83594
83595 2003-02-17  Bruno Haible  <bruno@clisp.org>
83596
83597         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83598
83599 2003-02-17  Bruno Haible  <bruno@clisp.org>
83600
83601         * lib/mkdtemp.h: New file, from GNU gettext.
83602         * lib/mkdtemp.c: New file, from GNU gettext.
83603
83604 2003-02-02  Jim Meyering  <jim@meyering.net>
83605
83606         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83607         e.g. glibc-2.2.93.
83608
83609 2003-01-31  Bruno Haible  <bruno@clisp.org>
83610
83611         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83612         'rpl_rename'.
83613         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83614         'rpl_strnlen'.
83615         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83616         'rpl_strtod'.
83617         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83618         'rpl_utime'.
83619
83620 2003-01-31  Bruno Haible  <bruno@clisp.org>
83621
83622         * lib/rename.c: #undef rename before defining rpl_rename.
83623         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83624
83625 2003-01-30  Bruno Haible  <bruno@clisp.org>
83626
83627         * modules/vasnprintf, modules/vasprintf: New modules.
83628         * MODULES.html.sh (func_all_modules): Add them.
83629
83630 2003-01-30  Bruno Haible  <bruno@clisp.org>
83631
83632         * m4/signed.m4: New file, from GNU gettext.
83633         * m4/longdouble.m4: New file, from GNU gettext.
83634         * m4/wchar_t.m4: New file, from GNU gettext.
83635         * m4/wint_t.m4: New file, from GNU gettext.
83636         * m4/vasnprintf.m4: New file.
83637         * m4/vasprintf.m4: New file.
83638
83639 2003-01-30  Bruno Haible  <bruno@clisp.org>
83640
83641         * lib/printf-args.h: New file, from GNU gettext.
83642         * lib/printf-args.c: New file, from GNU gettext.
83643         * lib/printf-parse.h: New file, from GNU gettext.
83644         * lib/printf-parse.c: New file, from GNU gettext.
83645         * lib/vasnprintf.h: New file, from GNU gettext.
83646         * lib/vasnprintf.c: New file, from GNU gettext.
83647         * lib/asnprintf.c: New file, from GNU gettext.
83648         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83649         * lib/vasprintf.c: New file, from GNU gettext.
83650         * lib/asprintf.c: New file, from GNU gettext.
83651
83652 2003-01-29  Bruno Haible  <bruno@clisp.org>
83653
83654         * modules/stpncpy: New module.
83655         * MODULES.html.sh (func_all_modules): Add it.
83656
83657 2003-01-29  Bruno Haible  <bruno@clisp.org>
83658
83659         * m4/stpncpy.m4: New file.
83660
83661 2003-01-29  Bruno Haible  <bruno@clisp.org>
83662
83663         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83664         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83665
83666 2003-01-28  Bruno Haible  <bruno@clisp.org>
83667
83668         * modules/c-ctype: New module.
83669         * MODULES.html.sh (func_all_modules): Add it.
83670
83671 2003-01-28  Bruno Haible  <bruno@clisp.org>
83672
83673         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83674         Paul Eggert.
83675         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83676         Paul Eggert.
83677
83678 2003-01-27  Bruno Haible  <bruno@clisp.org>
83679
83680         * modules/xsetenv: New module.
83681         * MODULES.html.sh (func_all_modules): Add it.
83682
83683 2003-01-27  Bruno Haible  <bruno@clisp.org>
83684
83685         * lib/xsetenv.h: New file, from GNU gettext.
83686         * lib/xsetenv.c: New file, from GNU gettext.
83687
83688 2003-01-23  Jim Meyering  <jim@meyering.net>
83689
83690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83691         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83692
83693 2003-01-23  Bruno Haible  <bruno@clisp.org>
83694
83695         * modules/minmax: New module.
83696         * MODULES.html.sh (func_all_modules): Add it.
83697
83698 2003-01-23  Bruno Haible  <bruno@clisp.org>
83699
83700         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83701         Eggert.
83702
83703 2003-01-22  Bruno Haible  <bruno@clisp.org>
83704
83705         * modules/exit: New module.
83706         * MODULES.html.sh (func_all_modules): Add it.
83707
83708 2003-01-22  Bruno Haible  <bruno@clisp.org>
83709
83710         * lib/exit.h: New file, from GNU gettext.
83711
83712 2003-01-19  Bruno Haible  <bruno@clisp.org>
83713
83714         * gnulib-tool: Recognize option --extract-maintainer.
83715         (func_get_maintainer): New function.
83716         * modules/*: Add Maintainer entry.
83717
83718 2003-01-16  Jim Meyering  <jim@meyering.net>
83719
83720         * m4/regex.m4: The `regex' struct is both input and output.
83721         Initialize it before each use.  Patch by Tim Waugh.
83722
83723 2003-01-16  Bruno Haible  <bruno@clisp.org>
83724
83725         * MODULES.html.sh: Add a table of contents. Add the module name as
83726         leftmost column. Add hyperlinks.
83727
83728 2003-01-15  Bruno Haible  <bruno@clisp.org>
83729
83730         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83731
83732 2003-01-15  Bruno Haible  <bruno@clisp.org>
83733
83734         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83735         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83736         suffix.
83737
83738 2003-01-15  Bruno Haible  <bruno@clisp.org>
83739
83740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83741
83742 2003-01-15  Bruno Haible  <bruno@clisp.org>
83743
83744         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83745         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83746
83747 2003-01-14  Jim Meyering  <jim@meyering.net>
83748
83749         * lib/same.c (same_name): Tweak a comment.
83750
83751 2003-01-14  Bruno Haible  <bruno@clisp.org>
83752
83753         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83754         when a string comparison is sufficient.
83755
83756 2003-01-14  Bruno Haible  <bruno@clisp.org>
83757
83758         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83759         'unsigned int'.
83760
83761 2003-01-14  Bruno Haible  <bruno@clisp.org>
83762
83763         * lib/hash-pjw.c: Add comment about low quality of this function.
83764
83765 2003-01-13  Bruno Haible  <bruno@clisp.org>
83766
83767         * modules/stpcpy: Distribute lib/stpcpy.h.
83768         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83769
83770 2003-01-13  Bruno Haible  <bruno@clisp.org>
83771
83772         * modules/*: Add a description.
83773         * modules/strpbrk: Fix Makefile.am snippet.
83774         * modules/strtoimax: Fix dependencies.
83775         * modules/strtoumax: Likewise.
83776
83777 2003-01-13  Bruno Haible  <bruno@clisp.org>
83778
83779         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83780         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83781         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83782
83783 2003-01-13  Bruno Haible  <bruno@clisp.org>
83784
83785         * gnulib-tool (func_create_testdir): Store config/* files in the main
83786         directory.
83787         * config.rpath: Move to ...
83788         * config/config.rpath: ... here.
83789         * modules/gettext: Contains config/config.rpath, not config.rpath.
83790         * modules/iconv: Likewise.
83791
83792 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83793
83794         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83795         to avoid collisions with libcurses and libreadline.
83796
83797         * m4/getstr.m4: Remove.
83798         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83799
83800 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83801
83802         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83803         to avoid collisions with libcurses and libreadline.
83804
83805         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83806         * lib/getstr.h, getstr.c: Remove.
83807         * lib/getline.c: Include "getline.h", to check interface.
83808         Move body of old getstr.c here: this defines MIN_CHUNK and
83809         declares getdelim2, which is renamed from getstr.
83810         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83811
83812         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83813         All uses changed.
83814         * lib/linebuffer.h: Likewise.
83815         (readline): Remove backward-compatibility macro.
83816
83817 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83818
83819         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83820         to avoid collisions with libcurses and libreadline.
83821         * getstr: Remove.
83822         * MODULES.html.sh: Remove getstr.
83823         * modules/getline: Depend on unlocked-io, not getstr.
83824
83825 2003-01-12  Jim Meyering  <jim@meyering.net>
83826
83827         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83828
83829 2003-01-10  Bruno Haible  <bruno@clisp.org>
83830
83831         * modules/alloca: Change Makefile.am requirements. Simplify Include
83832         requirements. Add lib/alloca_.h to file list.
83833
83834 2003-01-10  Bruno Haible  <bruno@clisp.org>
83835
83836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83837
83838 2003-01-10  Bruno Haible  <bruno@clisp.org>
83839
83840         * lib/alloca_.h: New file.
83841         * lib/getdate.y: Unconditionally include alloca.h.
83842         * lib/makepath.c: Likewise.
83843         * lib/setenv.c: Likewise.
83844         * lib/userspec.c: Likewise.
83845
83846 2003-01-09  Karl Berry  <karl@gnu.org>
83847
83848         * MODULES.html.sh: include `dirname $0` in PATH, to find
83849         gnulib-tool.
83850
83851 2003-01-09  Bruno Haible  <bruno@clisp.org>
83852
83853         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83854         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83855
83856 2003-01-09  Bruno Haible  <bruno@clisp.org>
83857
83858         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83859
83860 2003-01-09  Bruno Haible  <bruno@clisp.org>
83861
83862         * lib/stdbool.h.in: New file.
83863
83864 2003-01-09  Bruno Haible  <bruno@clisp.org>
83865
83866         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83867         * MODULES.html.sh: Likewise.
83868
83869 2003-01-08  Jim Meyering  <jim@meyering.net>
83870
83871         * lib/full-write.c: Undefine and define-away `const' after inclusion
83872         of errno.h, not before.  Suggestion from Bruno Haible.
83873
83874 2003-01-08  Bruno Haible  <bruno@clisp.org>
83875
83876         * modules/full-read: Depend on full-write.
83877
83878 2003-01-08  Bruno Haible  <bruno@clisp.org>
83879
83880         * lib/safe-read.c: Include specification header first, to ensure its
83881         selfcontainedness.
83882         * lib/full-write.c: Likewise.
83883
83884 2003-01-07  Jim Meyering  <jim@meyering.net>
83885
83886         * lib/full-write.c: Rework so that it may serve to define full_read,
83887         too.
83888         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83889
83890 2003-01-07  Bruno Haible  <bruno@clisp.org>
83891
83892         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83893         <inttypes.h>.
83894         * lib/xstrtol.h: Likewise.
83895         * lib/xstrtoimax.c: Likewise.
83896         * lib/xstrtoumax.c: Likewise.
83897         * lib/human.h: Likewise.
83898
83899         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83900         on systems that have <inttypes.h> but not <stdint.h>.
83901
83902 2003-01-07  Bruno Haible  <bruno@clisp.org>
83903
83904         * MODULES.html.sh: Add copyright notice.
83905         (missed_files): Omit CVS directory entries.
83906         (func_module): Make it work with sed-3.02.
83907         * MODULES.txt: Remove file.
83908
83909 2003-01-06  Jim Meyering  <jim@meyering.net>
83910
83911         * lib/version-etc.c: Update year in translatable copyright string.
83912
83913 2003-01-03  Karl Berry  <karl@gnu.org>
83914
83915         * config/config.{guess,sub}: update from prep.
83916
83917 2003-01-02  Karl Berry  <karl@gnu.org>
83918
83919         * doc/COPYING.DOC: belatedly updated to 1.2.
83920
83921 2003-01-01  Karl Berry  <karl@gnu.org>
83922
83923         * gnulib-tool (func_verify_module): report module name $module in
83924         error message, not $1.
83925         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83926         be created, only if it doesn't exist.
83927         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83928
83929 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83930
83931         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83932
83933 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83934
83935         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83936         memcmp if strcoll doesn't work.
83937
83938 2002-12-31  Bruno Haible  <bruno@clisp.org>
83939
83940         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83941         nonempty.
83942
83943 2002-12-31  Bruno Haible  <bruno@clisp.org>
83944
83945         * lib/memcoll.c (STRCOLL): New macro.
83946         (memcoll): Use it.
83947
83948 2002-12-31  Bruno Haible  <bruno@clisp.org>
83949
83950         * lib/localcharset.h: New file.
83951         * lib/localcharset.c: Include it.
83952         * lib/unicodeio.c: Likewise.
83953
83954 2002-12-31  Bruno Haible  <bruno@clisp.org>
83955
83956         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83957         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83958
83959 2002-12-31  Bruno Haible  <bruno@clisp.org>
83960
83961         * lib/getline.h: Include <stddef.h>, for size_t.
83962
83963         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83964         * lib/unicodeio.c: Don't include <stddef.h>.
83965
83966 2002-12-31  Bruno Haible  <bruno@clisp.org>
83967
83968         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83969         HAVE_TM_ZONE.
83970
83971 2002-12-24  Karl Berry  <karl@gnu.org>
83972
83973         * config/config.guess: update from prep.
83974
83975 2002-12-24  Bruno Haible  <bruno@clisp.org>
83976
83977         General infrasructure.
83978         * m4/README: Rewritten.
83979         * m4/onceonly.m4: New file.
83980         * m4/onceonly_2_57.m4: New file.
83981
83982         Module atexit.
83983         * m4/atexit.m4: New file.
83984
83985         Module strtod.
83986         * m4/strtod.m4: New file.
83987
83988         Module strtol.
83989         * m4/strtol.m4: New file.
83990
83991         Module strtoul.
83992         * m4/strtoul.m4: New file.
83993
83994         Module memchr.
83995         * m4/memchr.m4: New file.
83996
83997         Module memcmp.
83998         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83999         (jm_FUNC_MEMCMP): Invoke it.
84000
84001         Module memcpy.
84002         * m4/memcpy.m4: New file.
84003
84004         Module memmove.
84005         * m4/memmove.m4: New file.
84006
84007         Module memset.
84008         * m4/memset.m4: New file.
84009
84010         Module strcspn.
84011         * m4/strcspn.m4: New file.
84012
84013         Module strpbrk.
84014         * m4/strpbrk.m4: New file.
84015
84016         Module strstr.
84017         * m4/strstr.m4: New file.
84018
84019         Module strerror.
84020         * m4/strerror.m4: New file.
84021
84022         Module mktime.
84023         * m4/mktime.m4: Renamed from jm-mktime.m4.
84024         (gl_PREREQ_MKTIME): New macro.
84025         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84026
84027         Module malloc.
84028         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84029         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84030         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84031
84032         Module realloc.
84033         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84034         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84035         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84036
84037         Module strftime.
84038         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84039         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84040         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84041         gl_TM_GMTOFF.
84042         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84043
84044         Module xalloc.
84045         * m4/xalloc.m4: New file.
84046
84047         Module alloca.
84048         * m4/alloca.m4: New file.
84049
84050         Module putenv.
84051         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84052         (jm_FUNC_PUTENV): Invoke it.
84053
84054         Module setenv.
84055         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84056         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84057         when invoked twice.
84058         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84059         gt_FUNC_SETENV.
84060
84061         Module memrchr.
84062         * m4/memrchr.m4: New file.
84063
84064         Module stpcpy.
84065         * m4/stpcpy.m4: New file.
84066
84067         Module strcase.
84068         * m4/strcase.m4: New file.
84069
84070         Module strdup.
84071         * m4/strdup.m4: New file.
84072
84073         Module strnlen.
84074         * m4/strnlen.m4: New file.
84075
84076         Module strndup.
84077         * m4/strndup.m4: New file.
84078
84079         Module xstrtod.
84080         * m4/xstrtod.m4: New file.
84081
84082         Module xstrtol.
84083         * m4/xstrtol.m4: New file.
84084
84085         Module getdate.
84086         * m4/getdate.m4: New file.
84087
84088         Module unlocked-io.
84089         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84090         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84091         * m4/jm-glibc-io.m4n: Remove file.
84092
84093         Module long-options.
84094         * m4/long-options.m4: New file.
84095
84096         Module md5.
84097         * m4/md5.m4: New file.
84098
84099         Module sha.
84100         * m4/sha.m4: New file.
84101
84102         Module getstr.
84103         * m4/getstr.m4: New file.
84104
84105         Module getline.
84106         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84107         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84108         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84109         simply getline. Infoke gl_PREREQ_GETLINE.
84110
84111         Module obstack.
84112         * m4/obstack.m4: New file.
84113
84114         Module hash.
84115         * m4/hash.m4: New file.
84116
84117         Module readtokens.
84118         * m4/readtokens.m4: New file.
84119
84120         Module strverscmp.
84121         * m4/strverscmp.m4: New file.
84122
84123         Module stdbool.
84124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84125         OSF/1.
84126
84127         Module strtoll.
84128         * m4/strtoll.m4: New file.
84129
84130         Module strtoull.
84131         * m4/strtoull.m4: New file.
84132
84133         Module strtoimax.
84134         * m4/strtoimax.m4: New file.
84135
84136         Module strtoumax.
84137         * m4/strtoumax.m4: New file.
84138
84139         Module xstrtoimax.
84140         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84141         jm_AC_PREREQ_XSTRTOIMAX.
84142         Moved the strtol prerequisites to strtol.m4.
84143         Moved the strtoll prerequisites to strtoll.m4.
84144         Moved the strtoimax prerequisites to strtoimax.m4.
84145
84146         Module xstrtoumax.
84147         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84148         jm_AC_PREREQ_XSTRTOUMAX.
84149         Moved the strtoul prerequisites to strtoul.m4.
84150         Moved the strtoull prerequisites to strtoull.m4.
84151         Moved the strtoumax prerequisites to strtoumax.m4.
84152
84153         Module chown.
84154         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84155         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84156
84157         Module dup2.
84158         * m4/dup2.m4: New file.
84159
84160         Module ftruncate.
84161         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84162         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84163
84164         Module getgroups.
84165         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84166         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84167
84168         Module gettimeofday.
84169         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84170         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84171         gl_PREREQ_GETTIMEOFDAY.
84172
84173         Module mkdir.
84174         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84175         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84176
84177         Module mkstemp.
84178         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84179         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84180         jm_AC_TYPE_UINTMAX_T.
84181         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84182
84183         Module stat.
84184         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84185         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84186
84187         Module lstat.
84188         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84189         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84190
84191         Module timespec.
84192         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84193         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84194         * m4/st_mtim.m4: Indentation.
84195
84196         Module nanosleep.
84197         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84198         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84199         gl_PREREQ_NANOSLEEP.
84200
84201         Module regex.
84202         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84203         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84204         (gl_REGEX): New macro.
84205
84206         Module rename.
84207         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84208         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84209
84210         Module rmdir.
84211         * m4/rmdir.m4: New file.
84212
84213         Module utime.
84214         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84215         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84216         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84217
84218         Module dirname.
84219         * m4/dirname.m4: New file.
84220
84221         Module getopt.
84222         * m4/getopt.m4: New file.
84223
84224         Module unistd-safer.
84225         * m4/unistd-safer.m4: New file.
84226
84227         Module fnmatch.
84228         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84229         declaration.
84230         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84231         (gl_FUNC_FNMATCH_POSIX): New macro.
84232         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84233         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84234         simply fnmatch.
84235
84236         Module exclude.
84237         * m4/exclude.m4: New file.
84238
84239         Module human.
84240         * m4/human.m4: New file.
84241
84242         Module acl.
84243         * m4/acl.m4: Nop.
84244
84245         Module backupfile.
84246         * m4/backupfile.m4: New file.
84247         * m4/d-ino.m4: Indentation.
84248
84249         Module fsusage.
84250         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84251         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84252         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84253
84254         Module dirfd.
84255         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84256         requirements.
84257
84258         Module euidaccess.
84259         * m4/euidaccess.m4: New file.
84260
84261         Module file-type.
84262         * m4/file-type.m4: New file.
84263
84264         Module fileblocks.
84265         * m4/fileblocks.m4: New file.
84266
84267         Module filemode.
84268         * m4/filemode.m4: New file.
84269
84270         Module isdir.
84271         * m4/isdir.m4: New file.
84272
84273         Module lchown.
84274         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84275         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84276
84277         Module makepath.
84278         * m4/makepath.m4: New file.
84279
84280         Module modechange.
84281         * m4/modechange.m4: New file.
84282
84283         Module mountlist.
84284         * m4/mountlist.m4: New file.
84285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84286         Indentation.
84287
84288         Module path-concat.
84289         * m4/path-concat.m4: New file.
84290
84291         Module pathmax.
84292         * m4/pathmax.m4: New file.
84293
84294         Module same.
84295         * m4/same.m4: New file.
84296
84297         Module save-cwd.
84298         * m4/save-cwd.m4: New file.
84299
84300         Module savedir.
84301         * m4/savedir.m4: New file.
84302
84303         Module xgetcwd.
84304         * m4/xgetcwd.m4: New file.
84305         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84306
84307         Module xreadlink.
84308         * m4/xreadlink.m4: New file.
84309
84310         Module safe-read.
84311         * m4/safe-read.m4: New file.
84312
84313         Module safe-write.
84314         * m4/safe-write.m4: New file.
84315
84316         Module closeout.
84317         * m4/closeout.m4: New file.
84318
84319         Module stdio-safer.
84320         * m4/stdio-safer.m4: New file.
84321
84322         Module getpass.
84323         * m4/getpass.m4: New file.
84324
84325         Module getugroups.
84326         * m4/getugroups.m4: New file.
84327
84328         Module group-member.
84329         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84330         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84331
84332         Module idcache.
84333         * m4/idcache.m4: New file.
84334
84335         Module userspec.
84336         * m4/userspec.m4: New file.
84337
84338         Module gettime.
84339         * m4/clock_time.m4: New file.
84340         * m4/gettime.m4: New file.
84341
84342         Module settime.
84343         * m4/settime.m4: New file.
84344
84345         Module posixtm.
84346         * m4/posixtm.m4: New file.
84347
84348         Module gethostname.
84349         * m4/gethostname.m4: New file.
84350
84351         Module canon-host.
84352         * m4/canon-host.m4: New file.
84353
84354         Module gettext.
84355         * m4/codeset.m4: New file, from gettext-0.11.5.
84356         * m4/gettext.m4: New file, from gettext-0.11.5.
84357         * m4/glibc21.m4: New file, from gettext-0.11.5.
84358         * m4/iconv.m4: New file, from gettext-0.11.5.
84359         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84360         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84361         * m4/inttypes.m4: New file, from gettext-0.11.5.
84362         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84363         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84364         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84365         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84366         * m4/lib-link.m4: New file, from gettext-0.11.5.
84367         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84368         * m4/progtest.m4: New file, from gettext-0.11.5.
84369         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84370         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84371         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84372
84373         Module localcharset.
84374         * m4/localcharset.m4: New file.
84375
84376         Module hard-locale.
84377         * m4/hard-locale.m4: New file.
84378
84379         Module mbswidth.
84380         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84381         onceonly macros.
84382         * m4/mbrtowc.m4: Add comment.
84383
84384         Module memcasecmp.
84385         * m4/memcasecmp.m4: New file.
84386
84387         Module memcoll.
84388         * m4/memcoll.m4: New file.
84389
84390         Module unicodeio.
84391         * m4/unicodeio.m4: New file.
84392
84393         Module rpmatch.
84394         * m4/rpmatch.m4: New file.
84395
84396         Module yesno.
84397         * m4/yesno.m4: New file.
84398
84399         Module exitfail.
84400         * m4/exitfail.m4: New file.
84401
84402         Module c-stack.
84403         * m4/c-stack.m4 (gl_C_STACK): New macro.
84404         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84405
84406         Module error.
84407         * m4/error.m4 (gl_ERROR): New macro.
84408         (jm_PREREQ_ERROR): Use onceonly macros.
84409
84410         Module fatal.
84411         * m4/fatal.m4: New file.
84412
84413         Module getloadavg.
84414         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84415         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84416
84417         Module getpagesize.
84418         * m4/getpagesize.m4: New file.
84419
84420         Module getusershell.
84421         * m4/getusershell.m4: New file.
84422
84423         Module physmem.
84424         * m4/physmem.m4: New file.
84425
84426         Module posixver.
84427         * m4/posixver.m4: New file.
84428
84429         Module quotearg.
84430         * m4/quotearg.m4: New file.
84431
84432         Module quote.
84433         * m4/quote.m4: New file.
84434
84435         Module readutmp.
84436         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84437
84438         Module sig2str.
84439         * m4/sig2str.m4: New file.
84440
84441         Other.
84442         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84443         ulonglong.m4.
84444         * m4/intmax_t.m4: New file.
84445         * m4/d-type.m4: Indentation.
84446         * m4/jm-macros.m4: Update.
84447         * m4/prereq.m4 (jm_PREREQ): Update.
84448         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84449         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84450         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84451         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84452         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84453         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84454         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84455         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84456         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84457         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84458         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84459         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84460         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84461         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84462         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84463         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84464         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84465         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84466         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84467
84468 2002-12-24  Bruno Haible  <bruno@clisp.org>
84469
84470         * MODULES.txt: Update according to m4/ changes.
84471
84472         Module gettext.
84473         * config.rpath: New file, from gettext-0.11.5.
84474
84475         * modules/*: New module descriptions.
84476         * gnulib-tool: New file.
84477         * MODULES.html.sh: New file.
84478
84479 2002-12-21  Karl Berry  <karl@gnu.org>
84480
84481         * doc/fdl.texi: update to version 1.2.
84482
84483 2002-12-19  Karl Berry  <karl@gnu.org>
84484
84485         * config/config.guess: update from prep.
84486
84487 2002-12-18  Bruno Haible  <bruno@clisp.org>
84488
84489         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84490         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84491
84492 2002-12-17  Bruno Haible  <bruno@clisp.org>
84493
84494         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84495         stdlib.h, string.h.
84496
84497 2002-12-17  Bruno Haible  <bruno@clisp.org>
84498
84499         * lib/canon-host.c (strdup): Remove unused declaration.
84500
84501         * lib/fsusage.c: Include full_read.h.
84502         (get_fs_usage): Use full_read instead of safe_read.
84503
84504         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84505
84506 2002-12-12  Karl Berry  <karl@gnu.org>
84507
84508         * config/config.guess: update from prep.
84509
84510 2002-12-11  Bruno Haible  <bruno@clisp.org>
84511
84512         * m4/setenv.m4: New file, from gettext-0.11.5.
84513
84514 2002-12-11  Bruno Haible  <bruno@clisp.org>
84515
84516         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84517         not unsetenv().
84518         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84519         modifications:
84520
84521         2002-12-11  Bruno Haible  <bruno@clisp.org>
84522
84523                 * setenv.c (alloca): Fall back to malloc.
84524                 (freea): New macro.
84525                 (setenv): Use freea() to free memory allocated with alloca().
84526
84527         2002-11-13  Bruno Haible  <bruno@clisp.org>
84528
84529                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84530                 function declarations.
84531                 * unsetenv.c (unsetenv): Likewise.
84532
84533         2002-03-04  Bruno Haible  <bruno@clisp.org>
84534
84535                 Portability to AIX 4.3.3.
84536                 * unsetenv.c: New file, extracted from setenv.c.
84537                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84538
84539         2001-12-20  Bruno Haible  <bruno@clisp.org>
84540
84541                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84542                 use malloc instead. For SunOS 4.
84543
84544         2001-12-11  Bruno Haible  <bruno@clisp.org>
84545
84546                 * setenv.c: Declare alloca.
84547                 (compar_fn_t): New typedef.
84548                 (KNOWN_VALUE, STORE_VALUE): Use it.
84549
84550         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84551         setenv.h.
84552
84553 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84554
84555         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84556         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84557         Choose values that are less likely to collide with system fnmatch
84558         options.
84559         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84560         defined (e.g., a pure POSIX system).
84561         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84562         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84563
84564 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84565
84566         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84567         a pain in practice to deal with generated m4 files.  This change
84568         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84569
84570         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84571         and jm-glibc-io.m4, as they are no longer a special case.
84572         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84573         kludge and the auto-generation stuff.  Check only whether the
84574         functions are declared, not whether they exist, since older hosts
84575         that don't declare the functions can't use the optimization anyway.
84576
84577 2002-12-06  Jim Meyering  <jim@meyering.net>
84578
84579         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84580
84581         Merge in changes from libc's misc/error.c, in preparation
84582         for the merge of gnulib's changes back into libc.
84583
84584         * lib/error.c (_): Define only if not already defined.
84585         Move definition to follow all #include directives.
84586         Include unlocked-io.h only if !_LIBC.
84587         [_LIBC]: Include <libio/libioP.h>.
84588         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84589         (fflush): Tweak definition to use INTUSE.
84590         (putc): Define.
84591
84592 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84593
84594         * lib/alloca.c [defined emacs]: Include "lisp.h".
84595         (xalloc_die) [defined emacs]: New macro.
84596         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84597         [! defined emacs]: Include <xalloc.h>.
84598         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84599         (pointer): Typedef to POINTER_TYPE *.
84600         (malloc): Remove decl; we now always use xmalloc.
84601         (alloca): Use old-style definition, since Emacs needs this.
84602         Check for arithmetic overflow when computing combined size.
84603
84604 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84605
84606         Do not generate unlocked-io.h automatically, since it's easier to
84607         maintain it by hand.
84608
84609         * lib/unlocked-io.h: New file, from GNU diffutils,
84610         but with proper copyright notice and attribution.
84611         * lib/gen-uio: Remove.
84612         * lib/Makefile.am: Add copyright notice.
84613         (libfetish_a_SOURCES): Add unlocked-io.h.
84614         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84615         (DISTCLEANFILES, io_functions): Remove macros.
84616         (EXTRA_DIST): Remove gen_uio.
84617         (unlocked-io.h): Remove rule.
84618
84619 2002-12-04  Jim Meyering  <jim@meyering.net>
84620
84621         Reflect the fact that stat.c and lstat.c are no longer generated.
84622         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84623         (DISTCLEANFILES): Likewise.
84624         (EXTRA_DIST): Likewise.
84625         (all_local): Don't depend on stat.c or lstat.c.
84626         (stat.c, lstat.c): Remove rules.
84627         (EXTRA_DIST): Remove xstat.in.
84628
84629         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84630         * lib/stat.c: New file.  Contents mostly from xstat.in.
84631         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84632         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84633
84634         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84635         too.
84636         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84637
84638 2002-12-03  Jim Meyering  <jim@meyering.net>
84639
84640         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84641         but not semantics, to minimize the differences between these two files.
84642         (safe_read): Change comment to mention SAFE_READ_ERROR.
84643
84644         * lib/safe-read.c (IS_EINTR): Define.
84645         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84646
84647 2002-12-02  Jim Meyering  <jim@meyering.net>
84648
84649         * lib/safe-read.c (EINTR): Define.
84650         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84651         (INT_MAX): Provide fallback.
84652         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84653
84654         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84655
84656 2002-12-02  Bruno Haible  <bruno@clisp.org>
84657
84658         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84659         Define, taken from safe-read.c.
84660         (INT_MAX): Provide fallback.
84661         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84662         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84663
84664         * lib/safe-read.c (EINTR): Remove definition.
84665         (safe_read): Don't use EINTR if it is absent.
84666
84667 2002-12-01  Jim Meyering  <jim@meyering.net>
84668
84669         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84670         zero.
84671         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84672
84673 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84674
84675         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84676         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84677         with `if (! (value < limit)) abort ();', for readability.
84678
84679 2002-11-26  Karl Berry  <karl@gnu.org>
84680
84681         * lib/strdup.c: copy from libc again, with jim's ok.
84682         * lib/.cppi-disable: re-add strdup.c
84683
84684 2002-11-25  Karl Berry  <karl@gnu.org>
84685
84686         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84687         instead of "strtol.c".
84688
84689 2002-11-25  Karl Berry  <karl@gnu.org>
84690
84691         * config/install-sh: update from automake for variable quoting, $0 in
84692         error msgs, etc.
84693
84694         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84695         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84696         entry.
84697
84698 2002-11-25  Jim Meyering  <jim@meyering.net>
84699
84700         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84701
84702 2002-11-24  Karl Berry  <karl@gnu.org>
84703
84704         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84705         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84706
84707 2002-11-24  Jim Meyering  <jim@meyering.net>
84708
84709         Update from coreutils:
84710
84711         * lib/mktime.c: Merge in changes from libc.
84712
84713         Avoid a link-time failure on some Linux systems.
84714         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84715         (otherwise).
84716         (__mon_yday): Declare with the STATIC attribute.
84717         (__mktime_internal): Likewise.
84718         Based on a report from Greg Schafer.
84719
84720 2002-11-23  Jim Meyering  <jim@meyering.net>
84721
84722         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84723         Use `unsigned', not `int', as type of index.
84724
84725         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84726
84727         * lib/fsusage.c: Remove unneeded parentheses around operands of
84728         `defined'.
84729
84730 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84731
84732         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84733         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84734         so that we can be included first.
84735         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84736         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84737         No need to include stddef.h or sys/types.h any more.
84738         Surround local include files with "", not "<>".
84739         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84740         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84741         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84742         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84743         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84744         (ISPRINT): Remove; no longer needed now that we assume C89.
84745
84746         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84747         Preserve errno.
84748
84749         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84750         quotearg_char): Use SIZE_MAX rather than
84751         (size_t) -1 when we are talking about "infinity".
84752
84753         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84754
84755 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84756
84757         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84758         hint that one should use `if (! x) abort ();' rather than `assert
84759         (x);', and anyway it's one less thing to worry about configuring.
84760         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84761         hash_rehash, hash_insert): Use abort rather than assert.
84762
84763 2002-11-22  Bruno Haible  <bruno@clisp.org>
84764
84765         * lib/safe-read.h: Assume C89. Add comments.
84766         (safe_read): Change return type to size_t.
84767         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84768         byte counts > SSIZE_MAX correctly.
84769         * lib/safe-write.h: New file.
84770         * lib/safe-write.c: New file.
84771         * lib/full-read.h: New file.
84772         * lib/full-read.c: New file.
84773         * lib/full-write.h: Assume C89. Add comments.
84774         * lib/full-write.c: Include safe-write.h.
84775         (full_write): Rewritten to use safe_write.
84776         Suggested by Jim Meyering and Paul Eggert.
84777
84778 2002-11-21  Jim Meyering  <jim@meyering.net>
84779
84780         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84781
84782         Merge in changes from the coreutils.
84783
84784         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84785         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84786         <stdint.h>.
84787         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84788         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84789         int.  Work more efficiently if X is the same width as uintmax_t.
84790         Do not compare X to -1, to avoid bogus compiler warning.
84791         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84792         Don't assume that f_frsize and f_bsize are the same type.
84793
84794         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84795         warning on FreeBSD.
84796
84797         * lib/makepath.c (make_path): Restore umask *before* creating the final
84798         component.
84799         (make_path): Minor reformatting.
84800
84801         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84802         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84803         HAVE_MALLOC/HAVE_REALLOC.
84804
84805         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84806         dummy ones.  At least on GNU/Linux systems, `auto' means something
84807         else.
84808         From Michael Stone.
84809
84810 2002-11-21  Bruno Haible  <bruno@clisp.org>
84811
84812         Remove case insensitive option matching.
84813         * lib/argmatch.h (argcasematch): Remove declaration.
84814         (ARGCASEMATCH): Remove macro.
84815         (__xargmatch_internal): Remove case_sensitive argument.
84816         (XARGMATCH): Update.
84817         (XARGCASEMATCH): Remove macro.
84818         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84819         case_sensitive argument.
84820         (argcasematch): Remove function.
84821         (__xargmatch_internal): Remove case_sensitive argument.
84822         (main): Use XARGMATCH instead of XARGCASEMATCH.
84823
84824         * lib/xmalloc.c: Change compile-time error message. Add comment about
84825         required autoconf version.
84826
84827 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84828
84829         Merge argmatch cleanups from Bison.  Assume C89.
84830
84831         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84832         Include stdlib.h, for EXIT_FAILURE.
84833         Always include <string.h>, since we assume C89.
84834         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84835         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84836         Include <stddef.h> instead, since it's all we need for size_t.
84837         (PARAMS): Remove.  All uses removed.
84838         (ARRAY_CARDINALITY): Do not bother to #undef.
84839         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84840         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84841         Remove unnecessary parentheses.
84842         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84843         Insert necessary parentheses.
84844         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84845         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84846
84847 2002-11-19  Bruno Haible  <bruno@clisp.org>
84848
84849         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84850         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84851
84852         * lib/mbswidth.h (PARAMS): Remove macro.
84853         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84854         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84855
84856         * lib/gcd.h (PARAMS): Remove macro.
84857         (gcd): Use ANSI C function declarations.
84858         * lib/gcd.c (gcd): Likewise.
84859
84860 2002-11-15  Bruno Haible  <bruno@clisp.org>
84861
84862         * lib/strcspn.c: Include <stddef.h>.
84863         (strcspn): Use ANSI C function declaration. Change return type to
84864         size_t. Use NULL.
84865         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84866         (strpbrk): Use NULL.
84867         * lib/strpbrk.h (PARAMS): Remove macro.
84868         (strpbrk): Use ANSI C function declaration.
84869         * lib/strstr.c: Don't include <sys/types.h>.
84870         * lib/strstr.h (PARAMS): Remove macro.
84871         (strstr): Use ANSI C function declarations.
84872
84873 2002-11-14  Karl Berry  <karl@gnu.org>
84874
84875         * config/mkinstalldirs: `do' on separate line, instead of
84876         `for var; do'.
84877
84878 2002-11-06  Bruno Haible  <bruno@clisp.org>
84879
84880         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84881         * lib/gcd.c (gcd): Likewise.
84882
84883 2002-11-05  Bruno Haible  <bruno@clisp.org>
84884
84885         * lib/gcd.h: New file, from gettext-0.11.5.
84886         * lib/gcd.c: New file, from gettext-0.11.5.
84887
84888 2002-11-05  Bruno Haible  <bruno@clisp.org>
84889
84890         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84891         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84892         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84893         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84894
84895         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84896         <libintl.h>.
84897         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84898         <libintl.h>.
84899
84900         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84901         * lib/human.c: Include gettext.h instead of <libintl.h>.
84902         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84903         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84904         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84905         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84906         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84907         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84908         (textdomain): Remove definition.
84909         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84910
84911         * lib/long-options.c: Remove include of <libintl.h> and definition of
84912         _.
84913         * lib/same.c: Remove include of <libintl.h> and definition of _.
84914
84915 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84916
84917         * lib/config.charset: A few additions for Solaris.
84918
84919 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84920
84921         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84922         * lib/localcharset.c (locale_charset): Declare as extern "C".
84923
84924 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84925
84926         * lib/config.charset: msdos in uk_UA uses CP1125.
84927
84928 2002-11-04  Bruno Haible  <bruno@clisp.org>
84929
84930         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84931         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84932         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84933         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84934         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84935
84936 2002-11-04  Bruno Haible  <bruno@clisp.org>
84937
84938         * lib/localcharset.c (locale_charset): Don't return an empty string.
84939
84940 2002-11-04  Bruno Haible  <bruno@clisp.org>
84941
84942         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84943         aliases.
84944
84945 2002-11-04  Bruno Haible  <bruno@clisp.org>
84946
84947         * lib/config.charset: Update for newest glibc. Add canonical names
84948         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84949
84950 2002-11-04  Bruno Haible  <bruno@clisp.org>
84951
84952         * lib/config.charset: Add support for NetBSD.
84953
84954 2002-11-04  Bruno Haible  <bruno@clisp.org>
84955
84956         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84957
84958 2002-11-01  Bruno Haible  <bruno@clisp.org>
84959
84960         * configure.in: Add AC_CONFIG_AUX_DIR call.
84961         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84962         test/Makefile.
84963         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84964
84965 2002-09-28  Karl Berry  <karl@gnu.org>
84966
84967         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84968         installed automake until the next release, since changes have been
84969         made.
84970
84971 2002-09-25  Karl Berry  <karl@gnu.org>
84972
84973         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84974         * lib/getopt*: copy from libc/posix.
84975         * lib/gettext.h: copy from gettext.
84976         * lib/.cppi-disable: add strdup.c, gettext.h.
84977
84978 2002-09-25  Karl Berry  <karl@gnu.org>
84979
84980         * config/srclist.txt: enable gettext.h check.
84981         * config/config.{guess,sub}: update from prep.
84982         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84983                 from automake 1.6.3.
84984         See srclist*.
84985
84986 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84987
84988         * regex.c (PATFETCH): Remove the translating fetch.
84989         (PATFETCH_RAW): Rename to PATFETCH.
84990         (set_image_of_range): New fun.
84991         (SET_RANGE_TABLE_WORK_AREA): Use it.
84992         (regex_compile): Don't translate the pattern chars so eagerly.
84993         Only do it when inserting an `exactn' bytecode or when handling
84994         a char-range.
84995         (mutually_exclusive_p): Avoid empty statement.
84996
84997 2002-07-06  Jim Meyering  <meyering@lucent.com>
84998
84999         * m4/README: Don't mention Makefile.am.in.
85000         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85001
85002 2002-07-01  Jim Meyering  <meyering@lucent.com>
85003
85004         * lib/c-stack.c: Include sys/time.h.
85005         From Volker Borchert.
85006
85007 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85008
85009         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85010
85011 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85012
85013         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85014         New macro.  Use it uniformly instead of
85015         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85016         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85017         reported by Vin Shelton.
85018
85019 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85020
85021         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85022         Do not assume SA_SIGINFO behavior.
85023         Bug reported by Jim Meyering on NetBSD 1.5.2.
85024
85025 2002-06-22  Jim Meyering  <meyering@lucent.com>
85026
85027         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85028         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85029
85030         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85031         now that configure.ac uses AC_GNU_SOURCE.
85032         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85033         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85034
85035         Update to latest tools.  Suggestions from Paul Eggert.
85036         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85037         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85038         * m4/fnmatch.m4: Likewise.
85039         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85040         to AC_HEADER_STDBOOL
85041
85042 2002-06-22  Jim Meyering  <meyering@lucent.com>
85043
85044         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85045         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85046
85047 2002-06-22  Jim Meyering  <meyering@lucent.com>
85048
85049         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85050
85051         * lib/exitfail.c, exitfail.h: Likewise.
85052         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85053
85054         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85055         of fnmatch.h.
85056         (EXTRA_DIST): Add fnmatch_loop.c.
85057         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85058
85059         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85060         * lib/fnmatch.c: Update from diffutils-2.8.2.
85061         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85062         * lib/fnmatch.h: Remove file.
85063
85064 2002-06-21  Jim Meyering  <meyering@lucent.com>
85065
85066         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85067         * m4/mbrtowc.m4: Likewise.
85068
85069         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85070         * m4/mbswidth.m4: Reflect name change:
85071         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85072         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85073
85074         * m4/lib-link.m4: Update from gettext-0.11.2.
85075         * m4/gettext.m4: Likewise.
85076
85077         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85078         From Alfred M. Szmidt.
85079
85080 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85081
85082         * lib/file-type.h: Report an error if neither S_ISREG nor
85083         S_IFREG is defined, instead of using a test specific to glibc
85084         2.2.  This should be safe, since POSIX requires S_ISREG and
85085         Unix Version 7 had S_IFREG.  We don't need to check for
85086         <sys/types.h> since we don't use any symbols that it defines.
85087
85088 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85089
85090         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85091         $@-t, so that each temporary file name is unique and valid in the first
85092         8 characters, for operation under DOS.
85093
85094 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85095
85096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85097
85098 2002-06-15  Jim Meyering  <meyering@lucent.com>
85099
85100         Work even with DJGPP 2.03, which lacks support for symlinks.
85101         From Richard Dawe.
85102         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85103         is defined.
85104         * lib/lchown.c (S_ISLNK): Likewise.
85105
85106 2002-06-15  Jim Meyering  <meyering@lucent.com>
85107
85108         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85109         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85110         have been included before this file.
85111
85112 2002-06-14  Jim Meyering  <meyering@lucent.com>
85113
85114         * lib/file-type.h: Use the version from diffutils-2.8.2.
85115         * lib/file-type.c: Likewise.
85116
85117 2002-06-07  Jim Meyering  <meyering@lucent.com>
85118
85119         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85120         They're needed at least for NetBSD 1.5.2.
85121         ($statxfs_includes): Include those same headers.
85122         ($statxfs_includes): Include sys/vfs.h if available.
85123         ($statxfs_includes): Likewise for sys/statvfs.h.
85124         Check for the following members in both structs statfs and statvfs:
85125         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85126
85127 2002-06-01  Jim Meyering  <meyering@lucent.com>
85128
85129         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85130         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85131
85132 2002-05-28  Jim Meyering  <meyering@lucent.com>
85133
85134         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85135         Reported by Volker Borchert.
85136
85137 2002-05-27  Jim Meyering  <meyering@lucent.com>
85138
85139         Fix a problem seen only on nonconforming systems whereby ls.c's
85140         use of localtime, and then of gettimeofday would cause trouble:
85141         the localtime call used to initialize rpl_gettimeofday's save
85142         mechanism would clobber ls's current local time information so
85143         that in any long listing the first file would always be listed
85144         with date 1970-01-01.  Analysis by Volker Borchert.
85145
85146         * lib/gettimeofday.c (localtime): Undefine.
85147         (rpl_localtime): New function.
85148
85149 2002-05-27  Jim Meyering  <meyering@lucent.com>
85150
85151         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85152         localtime.
85153
85154         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85155         use the replacement function; it wouldn't resolve at link time.
85156         Reported by Volker Borchert.
85157
85158 2002-05-22  Jim Meyering  <meyering@lucent.com>
85159
85160         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85161         file-type.h.
85162         * lib/file-type.h: New file.
85163         * lib/file-type.c (file_type): New file/function.  Extracted from
85164         diffutils.
85165
85166 2002-04-30  Jim Meyering  <meyering@lucent.com>
85167
85168         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85169
85170 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85171
85172         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85173
85174 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85175
85176         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85177         Do not check for alloca.h (no longer used) or stdbool.h (was never
85178         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85179
85180 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85181
85182         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85183
85184 2002-04-29  Jim Meyering  <meyering@lucent.com>
85185
85186         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85187         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85188         Use AC_FUNC_STRNLEN here instead.
85189
85190         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85191         With autoconf-2.53a, it's part of AC_PROG_CC.
85192
85193 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85194
85195         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85196         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85197
85198 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85199
85200         * lib/sig2str.h, lib/sig2str.c: New files.
85201         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85202
85203 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85204
85205         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85206         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85207         of 127, since 64 is the largest conceivable number for ancient
85208         nonstandard hosts.
85209         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85210
85211 2002-04-28  Jim Meyering  <meyering@lucent.com>
85212
85213         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85214
85215 2002-04-24  Jim Meyering  <meyering@lucent.com>
85216
85217         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85218         (jm_PREREQ): Use it.
85219
85220         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85221         mach/mach.h fcntl.h.
85222         Check for this function: setlocale.
85223
85224 2002-04-24  Jim Meyering  <meyering@lucent.com>
85225
85226         * lib/gettext.h: New file, from Gettext.
85227         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85228         (libfetish_a_SOURCES): Add gettext.h.
85229
85230 2002-04-16  Jim Meyering  <meyering@lucent.com>
85231
85232         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85233         ut_pid, ut_id, ut_exit.
85234
85235 2002-04-16  Jim Meyering  <meyering@lucent.com>
85236
85237         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85238         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85239         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85240
85241 2002-04-12  Jim Meyering  <meyering@lucent.com>
85242
85243         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85244         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85245         existence of the getmntinfo function.  Needed for Darwin 5.3.
85246
85247         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85248         This is necessary at least on Darwin 5.3.
85249
85250         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85251         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85252         strnlen.o in the library, and that makes some versions of ranlib
85253         object.
85254
85255 2002-04-12  Jim Meyering  <meyering@lucent.com>
85256
85257         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85258
85259 2002-04-09  Jim Meyering  <meyering@lucent.com>
85260
85261         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85262         to be more precise.  Rather than saying we're checking whether the
85263         function `works', say what we're testing.
85264         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85265         Reported by Bruno Haible.
85266
85267 2002-03-10  Jim Meyering  <meyering@lucent.com>
85268
85269         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85270         Suggestion from Santiago Vila.
85271
85272 2002-03-08  Jim Meyering  <meyering@lucent.com>
85273
85274         * lib/rename.c: Mention that this wrapper is needed also on
85275         mips-dec-ultrix4.4 systems.
85276
85277 2002-03-02  Jim Meyering  <meyering@lucent.com>
85278
85279         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85280         not HAVE_CLOCK_SETTIME.
85281
85282 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85283
85284         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85285         Check for clock_settime.
85286
85287 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85288
85289         * lib/nanosleep.h: Rename to....
85290         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85291
85292         * lib/gettime.c: New file.
85293         * lib/settime.c: New file.
85294         * lib/stime.c: Remove.
85295
85296         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85297         timespec.h.  Remove nanosleep.h.
85298
85299 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85300
85301         * m4/acl.m4: New file.
85302         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85303         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85304
85305 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85306
85307         * lib/acl.c, lib/acl.h: New files.
85308         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85309
85310 2002-02-24  Jim Meyering  <meyering@lucent.com>
85311
85312         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85313         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85314         cause trouble.  Reported by Nelson Beebe.
85315
85316 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85317
85318         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85319         compilers that don't know that xalloc_die never returns.
85320
85321 2002-02-20  Jim Meyering  <meyering@lucent.com>
85322
85323         * lib/getdate.c: Regenerate using bison-1.33.
85324
85325 2002-02-17  Jim Meyering  <meyering@lucent.com>
85326
85327         * config/config.guess (main): Don't use `head -1'; it's no longer
85328         portable. Use `sed 1q' instead.
85329
85330 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85331
85332         * m4/codeset.m4: Upgrade to gettext-0.11.
85333         * m4/gettext.m4: Upgrade to gettext-0.11.
85334         * m4/glibc21.m4: Upgrade to gettext-0.11.
85335         * m4/iconv.m4: Upgrade to gettext-0.11.
85336         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85337         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85338         * m4/lib-ld.m4: New file, from gettext-0.11.
85339         * m4/lib-link.m4: New file, from gettext-0.11.
85340         * m4/lib-prefix.m4: New file, from gettext-0.11.
85341         * m4/progtest.m4: Upgrade to gettext-0.11.
85342
85343 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85344
85345         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85346         (jm_PREREQ): Use it.
85347
85348 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85349
85350         * lib/posixver.c, lib/posixver.h: New files.
85351         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85352
85353 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85354             Bruno Haible  <bruno@clisp.org>
85355
85356         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85357         (fwrite_success_callback): New declaration.
85358         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85359         print_unicode_char. Call failure callback instead of error.
85360         (fwrite_success_callback): New function.
85361         (exit_failure_callback): New function.
85362         (fallback_failure_callback): New function.
85363         (print_unicode_char): Call unicode_to_mb.
85364
85365 2002-01-26  Jim Meyering  <meyering@lucent.com>
85366
85367         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85368         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85369
85370 2002-01-26  Jim Meyering  <meyering@lucent.com>
85371
85372         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85373
85374 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85375
85376         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85377
85378 2002-01-22  Jim Meyering  <meyering@lucent.com>
85379
85380         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85381         Otherwise, some versions of automake would omit the rule that makes
85382         Makefile from Makefile.in.
85383
85384 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85385
85386         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85387         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85388         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85389         (memcoll): Set errno to zero if there is no error.
85390
85391         * lib/quotearg.c (quotearg_buffer_restyled):
85392         Fix bug with quoting buffers containing NUL when backslashing escapes.
85393         This bug was exposed by the other changes in this patch.
85394         (quotearg_n_options): New arg ARGSIZE.
85395         All callers changed.
85396         (quoting_options_from_style): New function.
85397         (quotearg_n_style): Use it.
85398         (quotearg_n_style_mem): New function.
85399
85400         * lib/quotearg.h (quotearg_n_style_mem): New function.
85401
85402 2002-01-19  Jim Meyering  <meyering@lucent.com>
85403
85404         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85405         Remove useless quotes: DF_PROG="df".
85406         * m4/strnlen.m4: New file.
85407
85408 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85409
85410         * lib/backupfile.c (ISDIGIT): Comment fix.
85411         * lib/getdate.y (ISDIGIT): Likewise.
85412         * lib/posixtm.c (ISDIGIT, year): Likewise.
85413         * lib/strverscmp.c (ISDIGIT): Likewise.
85414         * lib/userspec.c (ISDIGIT): Likewise.
85415
85416 2002-01-16  Jim Meyering  <meyering@lucent.com>
85417
85418         * lib/getdate.y: Add three semicolons, each just before a closing
85419         brace. Bison (as of version 1.31) no longer papers over that mistake.
85420
85421 2002-01-05  Jim Meyering  <meyering@lucent.com>
85422
85423         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85424
85425 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85426
85427         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85428         not silently exit merely because the output buffer happens to
85429         have nothing pending.
85430
85431 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85432
85433         See the big note in ../ChangeLog.
85434         * lib/human.c (suffixes): Prefer K to k for 1024.
85435         (generate_suffix_backwards): New function.
85436         (human_readable_inexact): Use it.
85437         * lib/xstrtol.c (__xstrtol): If there is no number but there
85438         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85439         Accept 'K' as well as 'k'.
85440
85441 2001-12-15  Jim Meyering  <meyering@lucent.com>
85442
85443         * lib/regex.h (__restrict_arr): Update from libc.
85444
85445         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85446         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85447         (STREQ): Define.
85448
85449 2001-12-14  Jim Meyering  <meyering@lucent.com>
85450
85451         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85452         Suggestion from Bruno Haible.
85453
85454 2001-12-10  Jim Meyering  <meyering@lucent.com>
85455
85456         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85457         xrealloc, Instead, include "xalloc.h".
85458         (initbuffer): Don't cast xmalloc return value to char*.
85459         (readline): Reword comment.
85460         Don't cast xrealloc return value to char*
85461         Return NULL, not 0.
85462
85463 2001-12-09  Jim Meyering  <meyering@lucent.com>
85464
85465         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85466         about `signed and unsigned type in conditional expression'.
85467         * lib/posixtm.c (posix_time_parse): Likewise.
85468
85469         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85470
85471         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85472         to avoid a pedantic warning.
85473
85474         * lib/getstr.c: Don't include assert.h.
85475         (getstr): Remove warning-evoking assertions.
85476         Return -1 if offset parameter is out of bounds.
85477         Change the type of a local from int to size_t.
85478
85479         * lib/strftime.c (my_strftime_localtime_r): Include this function
85480         definition in the `#if ! HAVE_TM_GMTOFF' block.
85481
85482         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85483         Include xalloc.h instead.
85484
85485 2001-12-02  Jim Meyering  <meyering@lucent.com>
85486
85487         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85488         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85489         included.
85490
85491         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85492         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85493
85494 2001-11-30  Akim Demaille  <akim@epita.fr>
85495
85496         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85497         before being defined.
85498
85499 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85500
85501         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85502         First arg is int, not unsigned.
85503         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85504         (SIZE_MAX, UINT_MAX): New macros.
85505         (quotearg_n_options): Abort if N is negative.
85506         Avoid overflow check on hosts where size_t is 64 bits and int
85507         is 32 bits, as overflow is impossible there.
85508         Fix off-by-one typo that caused unnecessary reallocation.
85509
85510 2001-11-27  Jim Meyering  <meyering@lucent.com>
85511
85512         * lib/tempname.c: Merge with version from libc.
85513         * lib/regex.c: Likewise.
85514
85515         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85516         systems for which STDC_HEADERS is 0, it was not included, resulting in
85517         a warning about an integer-to-pointer conversion problem with getenv.
85518         Reported by Volker Borchert.
85519
85520 2001-11-26  Jim Meyering  <meyering@lucent.com>
85521
85522         * lib/gtod.h: Remove file.
85523         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85524         * lib/gettimeofday.c: Don't include gtod.h.
85525         (GTOD_init): Remove function.
85526         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85527         Suggestion from Volker Borchert.
85528
85529 2001-11-23  Jim Meyering  <meyering@lucent.com>
85530
85531         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85532         it.
85533         * lib/hash.c (struct hash_table): Define it here instead.
85534
85535 2001-11-22  Jim Meyering  <meyering@lucent.com>
85536
85537         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85538
85539 2001-11-20  Jim Meyering  <meyering@lucent.com>
85540
85541         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85542         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85543
85544 2001-11-19  Jim Meyering  <meyering@lucent.com>
85545
85546         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85547         directory.  Use "conftestXXXXXX" as the template.
85548         Suggestion from Paul Eggert.
85549
85550         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85551         immediately, so the test doesn't mistakenly hit the max-open-files
85552         limit.
85553
85554 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85555
85556         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85557         (TEMPORARIES): New macro.
85558         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85559         removes an artificial limitation (e.g. HP-UX 10.20, where
85560         TMP_MAX is 17576).
85561
85562 2001-11-18  Jim Meyering  <meyering@lucent.com>
85563
85564         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85565
85566 2001-11-18  Jim Meyering  <meyering@lucent.com>
85567
85568         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85569         on SunOS 4.
85570
85571         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85572         files will be created before anything else.
85573
85574 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85575
85576         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85577         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85578
85579 2001-11-17  Jim Meyering  <meyering@lucent.com>
85580
85581         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85582         Prompted by a report from Bob Proulx.
85583
85584         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85585         Instead, require UTILS_FUNC_MKSTEMP.
85586
85587 2001-11-17  Jim Meyering  <meyering@lucent.com>
85588
85589         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85590         Now, that's done as part of AC_FUNC_STRTOD.
85591
85592 2001-11-17  Jim Meyering  <meyering@lucent.com>
85593
85594         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85595         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85596         rather than group writable.  Patch by Juan F. Codagnone.
85597
85598         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85599         xrealloc, Instead, include "xalloc.h".
85600
85601         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85602         Remove explicit declarations of xmalloc, xrealloc,
85603         and xstrdup.  Instead, include "xalloc.h".
85604
85605         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85606         unlocked-io.h.
85607         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85608         Likewise.
85609         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85610
85611         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85612         Reported by Padraig Brady.
85613
85614         * lib/mkstemp.c: #undef mkstemp.
85615         Include config.h.
85616         (rpl_mkstemp): Rename from mkstemp.
85617         Protoize.
85618
85619 2001-11-16  Jim Meyering  <meyering@lucent.com>
85620
85621         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85622         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85623         determine the amount of total physical memory, use pstat_getstatic.
85624         HPUX-11 doesn't define _SC_PHYS_PAGES.
85625         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85626         If sysconf couldn't be used to determine the amount of available
85627         physical memory, use both pstat_getstatic and pstat_getdynamic.
85628         Based on a patch from Bob Proulx.
85629
85630 2001-11-10  Jim Meyering  <meyering@lucent.com>
85631
85632         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85633         (jm_PREREQ): Use it.
85634
85635 2001-11-09  Jim Meyering  <meyering@lucent.com>
85636
85637         * m4/jm-macros.m4: Require autoconf-2.52f.
85638         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85639         Use these AC_-prefixed names, not the AM_-prefixed ones.
85640
85641         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85642
85643 2001-11-05  Jim Meyering  <meyering@lucent.com>
85644
85645         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85646
85647 2001-11-04  Jim Meyering  <meyering@lucent.com>
85648
85649         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85650         $DEFS.
85651
85652 2001-11-03  Jim Meyering  <meyering@lucent.com>
85653
85654         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85655         of AC_DEFUN.
85656
85657         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85658         know the name of the variable in the macro definition.
85659
85660 2001-11-03  Jim Meyering  <meyering@lucent.com>
85661
85662         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85663         in argmatch_to_argument call.
85664
85665         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85666         argument.
85667
85668         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85669         e.g., a fault due to an attempt to free a NULL pointer.
85670
85671 2001-11-01  Jim Meyering  <meyering@lucent.com>
85672
85673         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85674         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85675
85676 2001-11-01  Jim Meyering  <meyering@lucent.com>
85677
85678         * lib/dirfd.c, lib/dirfd.h: New files.
85679         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85680
85681         * lib/hash.c (hash_print) [TESTING]: Clean up.
85682
85683 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85684
85685         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85686         to avoid a warning if -Wall.
85687
85688 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85689
85690         * README: New file
85691         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85692         (per RMS's instructions, this is now the canonical source)
85693         * lgpl/, gpl/: New directories.
85694
85695 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85696
85697         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85698
85699 2001-10-21  Jim Meyering  <meyering@lucent.com>
85700
85701         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85702         this code would end up calling gettext even in packages built
85703         with --disable-nls.
85704         * lib/getopt.c (_): Likewise.
85705         * lib/regex.c (_): Likewise.
85706
85707 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85708
85709         * m4/error.m4 (jm_PREREQ_ERROR):
85710         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85711         AC_FUNC_STRERROR_R does that.
85712         Check for strerror declaration.
85713
85714         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85715         are supposed to have them these days.
85716         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85717         Merge changes from latest Autoconf CVS.
85718         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85719         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85720         POSIX decided to standardize on the int flavor of strerror_r.
85721
85722 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85723
85724         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85725         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85726         Use strerror_r that is only a macro, even if it is not a function.
85727         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85728         (private_strerror): Use prototypes, not old-style function definition.
85729         (print_errno_message): New function.
85730         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85731         char*-flavored one.
85732         (error_tail, error, error_at_line): Use it.
85733
85734 2001-10-11  Jim Meyering  <meyering@lucent.com>
85735
85736         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85737         and quote_n (1, ... to avoid clobbering a buffer.
85738
85739 2001-10-05  Jim Meyering  <meyering@lucent.com>
85740
85741         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85742         hash-pjw.h.
85743         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85744         * lib/hash-pjw.h: New file.
85745
85746 2001-09-30  Jim Meyering  <meyering@lucent.com>
85747
85748         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85749         `struct fsstat' has the `f_fstypename' member.
85750         Use that to define FS_TYPE, which is now used to make
85751         the getfsstat link test tighter.
85752
85753 2001-09-30  Jim Meyering  <meyering@lucent.com>
85754
85755         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85756         Include <sys/ucred.h>, for Apple Darwin.
85757         Include sys/mount.h and sys/fs_types.h only if available.
85758         (FS_TYPE): Define.
85759         (read_filesystem_list): Use FS_TYPE.
85760
85761 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85762
85763         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85764         a boolean context.
85765
85766 2001-09-29  Jim Meyering  <meyering@lucent.com>
85767
85768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85769         [one-argument getmntent function]): Include stdio.h before mntent.h.
85770         SunOS 4.1.x needs it for the declaration of `FILE'.
85771         Patch by Volker Borchert.
85772
85773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85774         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85775         sys/fs_types.h, and make the link-test for getfsstat guard #include
85776         directives with appropriate #if HAVE_*_H tests so that we can
85777         detect getfsstat on Apple Darwin1.3.7 systems.
85778         Reported by Nelson Beebe.
85779         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85780
85781 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85782
85783         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85784         #defines strtoimax.  Also treat the other strto* functions
85785         like strtoimax.
85786
85787         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85788         Check for strtoul and strtoumax,
85789         as those declarations are made even in the signed case.
85790         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85791         Likewise, for strtol and strtoimax.
85792
85793 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85794
85795         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85796         #defines strtoimax.  Also treat the other strto* functions
85797         like strtoimax.
85798
85799         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85800         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85801         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85802
85803 2001-09-26  Jim Meyering  <meyering@lucent.com>
85804
85805         Most macros in unlocked-io.h had the wrong number of arguments.
85806         * lib/gen-uio: New script.
85807         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85808         * lib/unlocked-io.hin: Remove file.
85809         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85810         rather than trying to embed it here.
85811         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85812         Reported by Padraig Brady.
85813
85814 2001-09-25  Volker Borchert  <bt@teknon.de>
85815
85816         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85817         `result'.
85818
85819 2001-09-24  Jim Meyering  <meyering@lucent.com>
85820
85821         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85822
85823 2001-09-23  Jim Meyering  <meyering@lucent.com>
85824
85825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85826         instead of the mere test for existence of mntent.h.  The latter
85827         would get a false-positive on AIX 3.4 systems.
85828         In the outer getmntent if-block, don't die if neither of the getmntent
85829         tests succeeds.  Instead, just fall through and continue with the
85830         remaining tests.
85831
85832 2001-09-23  Jim Meyering  <meyering@lucent.com>
85833
85834         * lib/mountlist.c: Remove useless parentheses in #if directives.
85835         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85836         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85837
85838 2001-09-22  Jim Meyering  <meyering@lucent.com>
85839
85840         * m4/gettext.m4: New file.  From gettext.
85841         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85842         * m4/progtest.m4: Likewise
85843         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85844         * m4/glibc21.m4: Likewise.
85845
85846         * m4/libintl.m4: Remove.  No longer used.
85847
85848 2001-09-22  Jim Meyering  <meyering@lucent.com>
85849
85850         * lib/localcharset.c: Update from latest gettext.
85851         * lib/config.charset: Likewise.
85852
85853 2001-09-20  Jim Meyering  <meyering@lucent.com>
85854
85855         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85856         strtoimax.
85857         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85858         strtoumax.
85859
85860 2001-09-20  Jim Meyering  <meyering@lucent.com>
85861
85862         * lib/xstrtol.c (strtoimax): Guard declaration with
85863         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85864         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85865         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85866         (strtoumax): Likewise, for completeness (it wasn't necessary).
85867
85868 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85869
85870         * lib/strtoimax.c (HAVE_LONG_LONG):
85871         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85872         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85873         to work around bug in IBM C compiler.
85874
85875 2001-09-17  Jim Meyering  <meyering@lucent.com>
85876
85877         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85878         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85879         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85880         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85881         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85882         whenever the right hand side need not be expanded by the shell.
85883
85884 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85885
85886         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85887         library.  It's not correct, as some older glibcs are buggy.
85888         fnmatch wasn't fixed until glibc 2.2.
85889
85890         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85891         special shell magic here.
85892
85893 2001-09-16  Jim Meyering  <meyering@lucent.com>
85894
85895         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85896         * m4/jm-macros.m4: Require it.
85897
85898 2001-09-16  Jim Meyering  <meyering@lucent.com>
85899
85900         * lib/mkdir.c: New file.
85901
85902 2001-09-15  Jim Meyering  <meyering@lucent.com>
85903
85904         * m4/jm-macros.m4: Check for help2man.
85905
85906 2001-09-11  Jim Meyering  <meyering@lucent.com>
85907
85908         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85909         The body, by Paul Eggert, was moved here from configure.in.
85910         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85911
85912 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85913
85914         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85915         (jm_PREREQ): Use it.
85916
85917 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85918
85919         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85920         Use ssize_t, not int, to store result of readlink.
85921         Check for ssize_t overflow as well as size_t overflow,
85922         as POSIX says the result of readlink is implementation-defined
85923         when ssize_t overflows.
85924         Remove unnecessary cast to char*.
85925         Use free+malloc instead of realloc, as the storage doesn't need
85926         to be preserved and it's clearer and can be more efficient that way.
85927         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85928         * lib/xreadlink.h (xreadlink): Update prototype.
85929
85930 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85931
85932         * lib/xgetcwd.c: Revert some of the previous change; intead,
85933         fix the HAVE_GETCWD_NULL code to behave more like the
85934         !HAVE_GETCWD_NULL code used to.
85935
85936         Include "xalloc.h".
85937         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85938         invoke xalloc_die.
85939
85940 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85941
85942         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85943         sys/param.h, as pathmax.h includes them.
85944
85945 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85946
85947         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85948         (jm_PREREQ_XGETCWD): New macro.
85949
85950         * m4/getcwd.m4: New file.
85951
85952 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85953
85954         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85955         like the HAVE_GETCWD_NULL code.
85956         Include pathmax.h if not HAVE_GETCWD.
85957         Do not include xalloc.h.
85958         (INITIAL_BUFFER_SIZE): New symbol.
85959         Do not use xmalloc / xrealloc, since the caller is responsible for
85960         handling errors.  Preserve errno around `free' during failure.
85961         Do not overrun buffer when using getwd.
85962
85963 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85964
85965         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85966         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85967         getcwd (NULL, 0).
85968
85969 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85970
85971         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85972         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85973         spotted by Jim Meyering.
85974
85975 2001-09-03  Jim Meyering  <meyering@lucent.com>
85976
85977         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85978         failure.
85979
85980 2001-09-02  Jim Meyering  <meyering@lucent.com>
85981
85982         * lib/error.c: Update from GNU libc.
85983
85984 2001-09-01  Jim Meyering  <meyering@lucent.com>
85985
85986         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85987         Used by df.
85988
85989 2001-09-01  Jim Meyering  <meyering@lucent.com>
85990
85991         * lib/xreadlink.c: New file.
85992         * lib/xreadlink.h: New file.
85993         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85994         xreadlink.h.
85995
85996         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85997         doesn't conflict with sparc Solaris 7's definition in
85998         /usr/include/sys/int_types.h.
85999
86000         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86001         files.
86002         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86003         and strncasecmp as r-values.  Unixware didn't have declarations.
86004
86005 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86006
86007         * lib/xstrtol.h: Add copyright notice.
86008         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86009         LONGINT_INVALID_SUFFIX_CHAR.
86010
86011 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86012
86013         * lib/xstrtol.c (strtoimax): New decl.
86014
86015 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86016
86017         * lib/xgetcwd.c: Don't include pathmax.h.
86018         Include stdlib.h and unistd.h if available.
86019         Include xalloc.h.
86020         (xmalloc, xstrdup, free): Remove decls.
86021         (xgetcwd): Don't assume sizes fit in unsigned.
86022         Check for overflow when computing sizes.
86023         Simplify reallocation code.
86024
86025 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86026
86027         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86028         a directory's st_size can have an arbitrary value, so the old
86029         usage could waste an arbitrary amount of memory.  All uses
86030         changed.
86031         * lib/savedir.h: Update prototype.
86032
86033 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86034
86035         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86036
86037         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86038         old strtoimax.c.
86039
86040         Also, make the following further changes to make this file's
86041         configuration more similar to that of strtol.c:
86042         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86043         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86044         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86045         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86046         changed to signed values.
86047
86048         And make the following changes as well:
86049         Fix copyright notice, as 1999 was missing.
86050         (verify): New macro.
86051         (strtoimax): Check sizes at compile-time, not run-time.
86052         Prefer strtol to strtoll if both work.
86053         (main): Remove; it was not that useful and was a pain to maintain.
86054
86055         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86056
86057 2001-08-31  Jim Meyering  <meyering@lucent.com>
86058
86059         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86060         Use an initial, malloc'd, buffer of length 128 rather than
86061         a statically allocated one of length 1024.
86062
86063 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86064
86065         Simplify code, partly by assuming autoconf 2.52 semantics.
86066
86067         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86068
86069         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86070         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86071         All uses removed.
86072         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86073         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86074         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86075         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86076         jm_AC_HEADER_INTTYPES_H.
86077         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86078
86079         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86080
86081         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86082         Quote first arg of AC_DEFUN.
86083         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86084         since they are needed to parse the include file even if we need
86085         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86086         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86087         but with opposite signedness.
86088
86089 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86090
86091         Merge 'exclude' changes from tar 1.13.22.
86092         This fixes one or two unlikely storage allocation overflow bugs,
86093         but doesn't change user-visible behavior otherwise.
86094
86095 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86096
86097         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86098         (jm_PREREQ_EXCLUDE): New macro.
86099
86100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86101
86102         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86103         tm to be declared.
86104
86105 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86106
86107         * lib/hash.c: Remove '2001' from copyright notice.
86108
86109 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86110
86111         * lib/full-write.h: New file.
86112         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86113         * lib/full-write.c: Correct credits, as cccp.c no longer
86114         exists and anyway it was so heavily changed from the old cccp
86115         code as to be unrecognizable.  Include full-write.h.
86116         (full_write): Return size_t, with short writes meaning failure.
86117         All callers changed.  This fixes a bug with large buffers
86118         on 64-bit hosts.
86119         * lib/utime.c: Include full-write.h.
86120
86121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86122
86123         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86124         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86125         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86126         Include if available.
86127         (<xalloc.h>): Include
86128         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86129         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86130         collide with FNM macros.
86131         (struct patopts): New struct.
86132         (struct exclude): Use it, as exclude patterns now come with options.
86133         (new_exclude): Support above changes.
86134         (new_exclude, add_exclude_file):
86135         Initial size must now be a power of two to simplify overflow checking.
86136         (free_exclude, fnmatch_no_wildcards): New function.
86137         (excluded_filename): No longer requires options arg, as the options
86138         are determined by add_exclude.  Now returns bool, not int.
86139         (excluded_filename, add_exclude):
86140         Add support for the fancy new exclusion options.
86141         (add_exclude, add_exclude_file): Now takes int options arg.
86142         Check for arithmetic overflow when computing sizes.
86143         (add_exclude_file): xrealloc might modify errno, so don't
86144         realloc until after errno might be used.
86145
86146         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86147         New macros.
86148         (free_exclude): New decl.
86149         (add_exclude, add_exclude_file): Now takes int options arg.
86150         (excluded_filename): No longer requires options arg, as the options
86151         are determined by add_exclude.  Now returns bool, not int.
86152
86153 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86154
86155         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86156
86157 2001-08-27  Jim Meyering  <meyering@lucent.com>
86158
86159         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86160
86161         * lib/version-etc.c (N_): Remove definition.
86162         Revert most of last change.
86163         Instead, simply don't mark the `Copyright...' string for translation.
86164         Based on advice from Paul Eggert.
86165
86166         * lib/strtoxmax.c: Tweak comment.
86167
86168 2001-08-26  Jim Meyering  <meyering@lucent.com>
86169
86170         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86171
86172         * m4/xstrtoimax.m4: New file.
86173         * m4/xstrtoumax.m4: Add comments explaining why we
86174         AC_REPLACE_FUNCS(strtol).
86175
86176 2001-08-26  Jim Meyering  <meyering@lucent.com>
86177
86178         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86179         of copyright with `%s' so translators don't get an untranslated
86180         message in 2002.
86181         (COPYRIGHT_YEAR): Define.
86182         (version_etc): Use fprintf rather than fputs.
86183         Suggestion from Ulrich Drepper.
86184
86185         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86186
86187         * lib/strtoll.c: New file, from GNU libc.
86188         * lib/xstrtoimax.c: New file.
86189
86190         * lib/xstrtol.h: Add xstrtoimax.
86191         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86192         * lib/strtoimax.c: New file.  Likewise, but first define
86193         STRTOUXMAX_SIGNED.
86194
86195         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86196         ...
86197         * lib/strtoxmax.c: ... then renamed to this.
86198
86199 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86200
86201         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86202         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86203         (jm_AC_TYPE_INTMAX_T): New macro.
86204         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86205
86206         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86207
86208         * m4/longlong.m4: Renamed from ulonglong.m4.
86209         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86210         * m4/uintmax_t.m4: Removed.
86211
86212 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86213
86214         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86215         Port to Solaris 8, where 'sed' requires a space after the 'r'
86216         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86217         Redirect output to $tmp just once.
86218
86219 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86220
86221         * lib/addext.c (<errno.h>): Include.
86222         (errno): Declare if not defined.
86223         (addext): Work correctly when pathconf returns -1 and leaves
86224         errno alone because there is no limit.  Also, work even if
86225         pathconf returns a value greater than SIZE_MAX.
86226
86227 2001-08-12  Jim Meyering  <meyering@lucent.com>
86228
86229         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86230         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86231         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86232         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86233         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86234         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86235         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86236         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86237         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86238         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86239         utime.m4, utimes.m4, xstrtoumax.m4:
86240         Quote the first argument in each use of AC_DEFUN.
86241
86242 2001-08-12  Jim Meyering  <meyering@lucent.com>
86243
86244         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86245         Simply `return getcwd (NULL, 0);'.
86246         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86247         Use 1300 as initial value for length, not PATH_MAX.
86248
86249         * lib/pathmax.h: Clean up cpp syntax.
86250
86251 2001-08-12  Jim Meyering  <meyering@lucent.com>
86252
86253         * lib/gettimeofday.c: New file.
86254         * lib/gtod.h: New file.
86255         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86256
86257 2001-08-05  Jim Meyering  <meyering@lucent.com>
86258
86259         * m4/jm-macros.m4: Require autoconf-2.52.
86260
86261 2001-08-04  Jim Meyering  <meyering@lucent.com>
86262
86263         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86264         stmt, to get in sync with glibc.
86265
86266 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86267
86268         The following changes are from gettext 0.10.39 as maintained by
86269         Bruno Haible.
86270
86271         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86272         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86273         with inverted sense.  All uses changed.
86274
86275         * lib/mbswidth.c: Don't include <limits.h>.
86276         Include <stdlib.h> and <string.h> unconditionally.
86277         (iswcntrl, mbsinit, ISCNTRL): New macros.
86278         (mbsnwidth): Use K&R style function declarations.
86279         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86280         can optimize it when MB_CUR_MAX == 1.
86281         The width of control characters is zero, not 1.
86282
86283 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86284
86285         The following changes are from gettext 0.10.39 as maintained by
86286         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86287
86288         * m4/codeset.m4: Upgrade to serial AM1.
86289         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86290         all uses changed.  Quote first arg of AC_DEFUN.
86291         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86292
86293         * m4/iconv.m4: Upgrade to serial AM2.
86294         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86295         Add --with-libconv-prefix.
86296         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86297         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86298         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86299         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86300         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86301
86302         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86303         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86304         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86305         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86306         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86307         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86308         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86309         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86310         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86311
86312         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86313         string.h any more.
86314
86315         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86316         not the default value.
86317
86318         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86319         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86320         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86321         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86322         Also check for iswcntrl, used for wcwidth fallback.
86323         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86324         to Autoconf 2.13.
86325
86326 2001-08-03  Jim Meyering  <meyering@lucent.com>
86327
86328         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86329         as it was in the original.  Reported by Paul Eggert.
86330
86331 2001-07-16  Jim Meyering  <meyering@lucent.com>
86332
86333         * m4/gettimeofday.m4: New file.
86334         Prompted by a report from Bernhard Baehr.
86335
86336 2001-07-15  Jim Meyering  <meyering@lucent.com>
86337
86338         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86339         stuff. Now it's in ../Makefile.cfg.
86340
86341 2001-07-15  Jim Meyering  <meyering@lucent.com>
86342
86343         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86344         (BUILT_SOURCES): Add unlocked-io.h.
86345         (io_functions): Define.
86346         (unlocked-io.h): New rule.
86347         (DISTCLEANFILES): Add unlocked-io.h.
86348         (all-local): Depend on unlocked-io.h, to ensure it is created.
86349
86350         * lib/unlocked-io.hin: New file
86351
86352         * lib/regex.c: Update from glibc.
86353
86354 2001-07-05  Jim Meyering  <meyering@lucent.com>
86355
86356         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86357         recommendation.
86358         (libfetish_a_SOURCES): Put all .h files here instead.
86359         Remove a thus-exposed (better checks in automake) duplicate and
86360         two unnecessary .h files.
86361
86362 2001-07-04  Jim Meyering  <meyering@lucent.com>
86363
86364         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86365         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86366         distcheck failure.
86367
86368 2001-07-02  Jim Meyering  <meyering@lucent.com>
86369
86370         The following changes were prompted by suggestions from Bruno Haible.
86371
86372         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86373         is now generated.
86374         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86375         definition of EXTRA_DIST.
86376         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86377         ensure that the generated file is created/updated whenever the list
86378         of $(unlocked_functions) is changed.
86379         (jm-glibc-io.m4): New rule.
86380         (unlocked-io.h): New rule -- currently unused.
86381
86382 2001-06-24  Jim Meyering  <meyering@lucent.com>
86383
86384         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86385         unmatched right bracket, rather than kludging it with an extra,
86386         falsely-matching quote in a comment.  Patch by Akim Demaille.
86387
86388 2001-06-11  Jim Meyering  <meyering@lucent.com>
86389
86390         * lib/regex.c: Update from GNU libc.
86391
86392 2001-05-27  Jim Meyering  <meyering@lucent.com>
86393
86394         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86395         Check for ut_type in struct utmp.
86396
86397 2001-05-27  Jim Meyering  <meyering@lucent.com>
86398
86399         * lib/readutmp.h (UT_TYPE): Define.
86400
86401 2001-05-24  Jim Meyering  <meyering@lucent.com>
86402
86403         * lib/argmatch.c: Include "quote.h".
86404         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86405         quote function.  Reported by Göran Uddeborg.
86406
86407 2001-05-22  Jim Meyering  <meyering@lucent.com>
86408
86409         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86410         now that we use the package-supplied version unconditionally.
86411         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86412
86413 2001-05-21  Jim Meyering  <meyering@lucent.com>
86414
86415         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86416         shell syntax errors.
86417
86418 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86419
86420         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86421
86422 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86423
86424         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86425         Don't bother to check library strftime, since
86426         we'll be using our own my_strftime function anyway.
86427         Define my_strftime instead of strftime.
86428
86429 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86430
86431         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86432         which is not yet declared.
86433
86434 2001-05-15  Jim Meyering  <meyering@lucent.com>
86435
86436         * m4/regex.m4: Use proper quoting so brackets appear in the test
86437         program.
86438         Reported by, and with help from, Bruno Haible.
86439
86440 2001-05-13  Jim Meyering  <meyering@lucent.com>
86441
86442         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86443         undefined.
86444
86445 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86446
86447         dirname code cleanup.  base_name now behaves more compatibly
86448         with POSIX basename when given file names that have trailing
86449         slashes, and similarly for dir_name.  Add new primitives
86450         base_len and dir_len.  Put the directory-name-related decls
86451         into dirname.h.
86452
86453         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86454         * lib/backupfile.c (base_name): Likewise.
86455         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86456         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86457         * lib/makepath.c (strip_trailing_slashes): Likewise.
86458         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86459         ISSLASH): Likewise.
86460         * lib/rename.c (strip_trailing_slashes): Likewise.
86461         * lib/same.c (base_name): Likewise.
86462         * lib/stripslash.c (ISSLASH): Likewise.
86463
86464         * lib/addext.c: Include <dirname.h> after size_t is defined.
86465         * lib/backupfile.c: Likewise.
86466
86467         * lib/addext.c (addext): Use base_len to trim redundant
86468         trailing slashes instead of doing it ourselves.
86469         But do not trim the last slash if it is not redundant.
86470
86471         * lib/backupfile.c (find_backup_file_name,
86472         max_backup_version): Use base_len instead of rolling it ourselves.
86473         Handle the case of "" and (on DOS) "C:" correctly.
86474
86475         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86476         needed. Include <string.h>, <dirname.h>.
86477         (base_name): Allow file names ending in slashes, other than names
86478         that are all slashes.  In this case, return the basename followed
86479         by the slashes.  This is more general, and can be used in places
86480         where the original base_name purposely had an assertion failure.
86481         (base_len): New function.
86482
86483         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86484         Do not include <assert.h>; no longer needed.
86485         Include xalloc.h.
86486         (memrchr): Remove decl.
86487         (dir_name_r): Remove.
86488         (dir_len): Renamed from dirlen.  All callers changed.
86489         Rewrite in terms of base_name, for simplicity and consistency.
86490         (dir_name): Never return NULL.  All callers changed.
86491         Do not include <stdlib.h> in test program; no longer needed.
86492         return 0; is fine for test program.
86493
86494         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86495         New macros.
86496         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86497
86498         * lib/path-concat.c (path_concat): Use base_len to compute
86499         base length, not strlen; this means we cannot rely on memcpy
86500         to null-terminate.
86501
86502         * lib/same.c (STREQ): Remove.
86503         (same_name): Handle the case where the basename ends in trailing '/'.
86504
86505         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86506         a slash was stripped.  Do not strip the last slash after a
86507         file system prefix.
86508
86509 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86510
86511         * lib/Makefile.am (libfetish_a_SOURCES):
86512         Add strftime.c, since we now compile it on all hosts.
86513
86514         * lib/strftime.c (my_strftime):
86515         Define to nstrftime if emacs, but only if my_strftime is not defined.
86516         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86517         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86518         Add one more extra argument: a nanoseconds value.
86519         All uses changed.
86520         (ns): New macro.
86521         (my_strftime function): Add %N format.
86522         (emacs_strftimeu): Renamed from emacs_strftime,
86523         with extra ut argument.
86524
86525 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86526
86527         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86528
86529 2001-04-21  Jim Meyering  <meyering@lucent.com>
86530
86531         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86532         doesn't interfere.
86533
86534 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86535
86536         * m4/ftruncate.m4: Check for chsize.
86537         Link with ftruncate.o unconditionally if ftruncate is missing.
86538         This was required when cross-compiling to i586-mingw32msvc.
86539
86540 2001-04-08  Jim Meyering  <meyering@lucent.com>
86541
86542         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86543         recomputed; that's necessary when the offset spans a DST transition.
86544         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86545
86546 2001-04-02  Jim Meyering  <meyering@lucent.com>
86547
86548         * lib/regex.h, regex.c: Update from GNU libc.
86549
86550 2001-03-24  Jim Meyering  <meyering@lucent.com>
86551
86552         * m4/jm-macros.m4: Require autoconf-2.49d.
86553
86554 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86555
86556         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86557
86558 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86559
86560         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86561
86562 2001-03-17  Jim Meyering  <meyering@lucent.com>
86563
86564         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86565         now that the version in autoconf is equivalent.
86566         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86567
86568         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86569         Suggestion from Akim Demaille.
86570
86571         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86572         (jm_PREREQ_TEMPNAME): New function.
86573
86574 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86575
86576         * lib/tempname.c (uint64_t): Define to uintmax_t if
86577         not defined, and if UINT64_MAX is not defined.
86578         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86579         Reported by John David Anglin.
86580
86581 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86582
86583         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86584         resolve alias if codeset is empty.
86585         * lib/config.charset (BeOS): Use wildcard syntax.
86586
86587 2001-03-13  Jim Meyering  <meyering@lucent.com>
86588
86589         * lib/path-concat.c (path_concat)
86590         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86591         concatenating e.g., `C:' and `foo'.
86592         From Bruno Haible.
86593
86594 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86595
86596         * lib/localcharset.c (locale_charset): Don't use
86597         setlocale(LC_CTYPE,NULL). Don't return NULL.
86598         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86599
86600 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86601
86602         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86603         support for DOS/DJGPP.
86604
86605 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86606
86607         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86608         lacks mkstemp.  Compile our own tempname.c if we compile our own
86609         mkstemp.c, as mkstemp relies on tempname.
86610
86611 2001-03-01  Jim Meyering  <meyering@lucent.com>
86612
86613         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86614         AH_VERBATIM really does output its argument verbatim.
86615
86616 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86617
86618         * lib/Makefile.am (libfetish_a_SOURCES):
86619         Add dup-safer.c, fopen-safer.c.
86620         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86621
86622         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86623         * lib/unistd-safer.h: New files.
86624
86625 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86626
86627         The mkstemp replacement is taken from glibc 2.2.2, with some
86628         portability fixes for use outside glibc, as follows:
86629
86630         * lib/tempname.c (struct_stat64): New macro.
86631         (direxists, __gen_tempname): Use it.
86632         This avoids a portability problem with Solaris 8.
86633
86634         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86635         (<stddef.h>, <stdint.h>, <string.h>):
86636         Include only if STDC_HEADERS || _LIBC.
86637         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86638         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86639         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86640         (__set_errno): Define this macro if <errno.h> doesn't.
86641         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86642         Define these macros if <stdio.h> doesn't.
86643         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86644         Define these macros if <sys/stat.h>
86645         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86646         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86647         __xstat64): Define if not _LIBC.
86648         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86649         (__gen_tempname): Invoke gettimeofday only if
86650         HAVE_GETTIMEOFDAY || _LIBC;
86651         otherwise, fall back on plain "time".
86652         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86653
86654         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86655
86656         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86657
86658 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86659
86660         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86661
86662 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86663
86664         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86665         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86666         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86668
86669 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86670
86671         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86672         Remove workaround macros for hosts that have mbrtowc but not
86673         mbstate_t, as we now insist on proper declarations for both
86674         before using mbrtowc.
86675
86676 2001-02-17  Jim Meyering  <meyering@lucent.com>
86677
86678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86679         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86680         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86681         UnixWare 7.1.1.
86682
86683         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86684         rather than AC_CACHE_VAL.
86685
86686 2001-02-17  Jim Meyering  <meyering@lucent.com>
86687
86688         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86689         around included file name.
86690
86691         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86692
86693         * lib/strftime.c: Update from GNU libc (the only changes were to
86694         comments).
86695
86696 2001-02-17  Jim Meyering  <meyering@lucent.com>
86697
86698         * lib/regex.c: Update from libc.
86699
86700 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86701
86702         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86703         clash.
86704
86705 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86706
86707         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86708         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86709         Reported by Mark Hounschell via Paul Eggert.
86710
86711 2001-02-07  Jim Meyering  <meyering@lucent.com>
86712
86713         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86714
86715 2001-02-05  Jim Meyering  <meyering@lucent.com>
86716
86717         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86718         it includes the patch required for `large file' support with at least
86719         HP-UX's 10.20 /bin/cc.
86720
86721 2001-02-03  Jim Meyering  <meyering@lucent.com>
86722
86723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86724         AS_IF, now that it works once again (mysteriously).
86725         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86726
86727 2001-01-30  Jim Meyering  <meyering@lucent.com>
86728
86729         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86730         * m4/chown.m4: Rename conftestchown to conftest.chown.
86731         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86732         s/conftestdir2/conftest.d2/.
86733         * m4/utimes.m4: s/conftestdata/conftest.data/
86734         Inspired by Pavel Roskin's change in autoconf.
86735
86736 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86737
86738         * lib/config.charset: Update for FreeBSD 4.2.
86739
86740 2001-01-27  Jim Meyering  <meyering@lucent.com>
86741
86742         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86743         a use of AS_IF.
86744         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86745
86746 2001-01-26  Jim Meyering  <meyering@lucent.com>
86747
86748         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86749         quotearg.c includes it.
86750
86751 2001-01-26  Jim Meyering  <meyering@lucent.com>
86752
86753         * lib/quotearg.c: Include stddef.h.
86754         * lib/quote.c: Include stddef.h.
86755         Reported by Axel Kittenberger.
86756
86757         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86758         line in double quotes so that it evokes a better diagnostic.
86759         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86760         Reported by Axel Kittenberger.
86761
86762 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86763
86764         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86765         as if it was a `charset'.
86766
86767 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86768
86769         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86770         has const.
86771
86772 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86773
86774         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86775         to avoid a warning.  Add back 'const' to inptr.
86776
86777 2001-01-20  Jim Meyering  <meyering@lucent.com>
86778
86779         Be sure that headers are checked before used in code compiled
86780         for the type checks.
86781         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86782         In place of that, invoke jm_CHECK_ALL_TYPES.
86783         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86784         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86785         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86786         The check for ssize_t was mistakenly run before the test for unistd.h.
86787
86788         The configure-time check for stdbool.h was missing.
86789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86790         (jm_PREREQ_HASH): New function.
86791
86792 2001-01-17  Jim Meyering  <meyering@lucent.com>
86793
86794         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86795         for autoconf-2.49c.
86796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86797
86798 2001-01-16  Jim Meyering  <meyering@lucent.com>
86799
86800         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86801         From Bruno Haible.
86802
86803 2001-01-14  Jim Meyering  <meyering@lucent.com>
86804
86805         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86806         foo and bar.  Create conftestdir/ in the script, not in the C code.
86807         Remove directories in the script, not in the C code.
86808         Remove conftestdir{,2} before trying to create the directory.
86809         Make the entire configure script fail if the mkdir fails.
86810
86811 2001-01-14  Jim Meyering  <meyering@lucent.com>
86812
86813         * lib/rename.c: New file.  From Volker Borchert.
86814         Include stdlib.h, string.h or strings.h, and xalloc.h.
86815         Use strip_trailing_slashes rather than open-coding it.
86816
86817 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86818
86819         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86820
86821 2001-01-03  Jim Meyering  <meyering@lucent.com>
86822
86823         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86824         of local `inptr' to avoid warning with some system declarations of
86825         iconv.
86826
86827 2001-01-02  Volker Borchert  <bt@teknon.de>
86828
86829         * m4/rename.m4: New file.
86830         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86831
86832 2001-01-01  Jim Meyering  <meyering@lucent.com>
86833
86834         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86835         even on systems with utmpx.h.  It's necessary for the declaration of
86836         utmp's ut_user member.  Reported by Andreas Jaeger.
86837
86838         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86839         available. They are required for the declarations of getgrgid and
86840         getpwuid resp.
86841         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86842         Reported by Andreas Jaeger.
86843
86844 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86845
86846         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86847         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86848         so `make install' also works in VPATH builds.
86849
86850 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86851
86852         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86853         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86854         can be used in subdirectories.
86855
86856 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86857
86858         * lib/modechange.c: Do not assume that mode_t uses the
86859         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86860         the other-execute bit of FOO even if S_IXOTH != 1.
86861
86862         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86863         WOTH, XOTH, ALLM): New macros.
86864         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86865          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86866         Use them.
86867         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86868         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86869         (mode_compile):
86870         No need to use uintmax_t; unsigned long is long enough.
86871         Don't bother to get suffix since we don't use it.
86872
86873 2000-12-26  Jim Meyering  <meyering@lucent.com>
86874
86875         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86876         better with autoheader.
86877
86878 2000-12-24  Jim Meyering  <meyering@lucent.com>
86879
86880         * lib/hash.c (is_prime): Return explicit boolean values.
86881         (hash_get_first): Return NULL to appease Irix5.6's 89.
86882         Reported by Nelson Beebe.
86883
86884 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86885
86886         * lib/localcharset.c (locale_charset): Add support for Win32.
86887
86888 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86889
86890         * lib/physmem.h, lib/physmem.c: New files.
86891
86892         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86893         (noinst_HEADERS): Add physmem.h.
86894
86895         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86896         't' for compatibility with Solaris 8 sort.
86897
86898 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86899
86900         * lib/config.charset: Add support for BeOS.
86901
86902 2000-12-17  Jim Meyering  <meyering@lucent.com>
86903
86904         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86905         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86906
86907 2000-12-16  Jim Meyering  <meyering@lucent.com>
86908
86909         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86910         N and M) would have treated it like `chown N:N FILE'.
86911
86912         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86913
86914 2000-12-16  Jim Meyering  <meyering@lucent.com>
86915
86916         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86917         SHELLS_FILE to a file name that's useful on djgpp systems.
86918         Include stdlib.h.
86919         (ADDITIONAL_DEFAULT_SHELLS): Define.
86920         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86921         Based mostly on a patch from Prashant TR.
86922
86923 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86924
86925         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86926         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86927         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86928
86929 2000-12-08  Andreas Schwab  <schwab@suse.de>
86930
86931         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86932         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86933
86934 2000-12-07  Jim Meyering  <meyering@lucent.com>
86935
86936         * lib/stripslash.c (ISSLASH): Define.
86937         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86938         `/'.
86939         From Prashant TR.
86940
86941         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86942         (dir_name_r): Declare this function as static.
86943         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86944         manifest itself on a name containing a mix of slashes and
86945         backslashes.
86946         Make this function work with names starting with a DOS-style
86947         drive letter and colon prefix.
86948         (dir_name): Append `.' if necessary.
86949         Based mostly on patches from Prashant TR and Eli Zaretskii.
86950
86951         * lib/dirname.h (dir_name_r): Remove prototype.
86952
86953 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86954
86955         * m4/off_t-format.m4: Remove this file.
86956         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86957
86958 2000-12-06  Jim Meyering  <meyering@lucent.com>
86959
86960         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86961         replacement strtoull, we may well need the replacement strtoul, too.
86962         Check for declarations of strtoul and strtoull.
86963         Check for strtol.  Mainly as a cue to cause automake to include
86964         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86965         Check for limits.h -- strtol.c needs it.
86966
86967 2000-12-05  Jim Meyering  <meyering@lucent.com>
86968
86969         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86970
86971 2000-12-04  Jim Meyering  <meyering@lucent.com>
86972
86973         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86974         Also include memory.h, stdlib.h, unistd.h if appropriate.
86975         Reported by Andreas Jaeger (conflicting declaration of malloc).
86976
86977 2000-12-02  Jim Meyering  <meyering@lucent.com>
86978
86979         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86980         * m4/jm-macros.m4 (jm_MACROS): require it.
86981
86982 2000-12-02  Jim Meyering  <meyering@lucent.com>
86983
86984         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86985
86986 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86987
86988         * lib/memrchr.c: Include <config.h> before any system include file.
86989
86990 2000-11-30  Jim Meyering  <meyering@lucent.com>
86991
86992         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86993
86994 2000-11-30  Jim Meyering  <meyering@lucent.com>
86995
86996         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86997
86998 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86999
87000         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87001
87002 2000-11-26  Jim Meyering  <meyering@lucent.com>
87003
87004         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87005
87006 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87007
87008         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87009         size of (size_t) -1; it's not portable.
87010
87011 2000-11-17  Jim Meyering  <meyering@lucent.com>
87012
87013         * lib/strstr.c: Update from GNU libc.
87014
87015 2000-11-17  Akim Demaille  <akim@epita.fr>
87016
87017         * lib/obstack.h: Formatting changes.
87018         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87019         prevent type checking.
87020         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87021         cast the value to (void *): assigning a `foo *' to a `void *'
87022         variable is valid.
87023         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87024
87025 2000-11-16  Jim Meyering  <meyering@lucent.com>
87026
87027         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87028
87029 2000-11-11  Jim Meyering  <meyering@lucent.com>
87030
87031         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87032
87033 2000-11-10  Jim Meyering  <meyering@lucent.com>
87034
87035         * lib/obstack.h: Update from GNU libc.
87036         * lib/obstack.c: Likewise.
87037
87038 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87039
87040         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87041
87042 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87043
87044         * lib/getusershell.c (setusershell): Use rewind rather than
87045         fseek/fseeko, to avoid configuration hassles with fseeko.
87046         Don't bother opening SHELLS_FILE if shellstream is NULL;
87047         it's not necessary.
87048
87049 2000-11-05  Jim Meyering  <meyering@lucent.com>
87050
87051         * lib/makepath.h (make_dir): Declare.
87052         * lib/makepath.c (make_dir): Remove `static' attribute.
87053         Tweak a comment.
87054
87055 2000-11-04  Jim Meyering  <meyering@lucent.com>
87056
87057         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87058
87059 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87060
87061         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87062         last one in a bucket, advance to the next bucket.
87063
87064 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87065
87066         * lib/fnmatch.c: Do not comment out all the code if we are using
87067         the GNU C library, because in some cases we are replacing buggy
87068         code in the GNU C library itself.
87069
87070 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87071
87072         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87073         (regex_compile): Catch bogus \(\1\).
87074
87075 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87076
87077         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87078         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87079         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87080
87081 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87082
87083         * lib/error.h, getline.h, modechange.h:
87084         Remove "2000" from Copyright line, as the file hasn't been
87085         changed this year other than in the copyright notice.
87086
87087         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87088         was changed this year.
87089
87090 2000-10-29  Jim Meyering  <meyering@lucent.com>
87091
87092         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87093         renaming.
87094         * m4/ls-mntd-fs.m4: Likewise
87095
87096 2000-10-29  Jim Meyering  <meyering@lucent.com>
87097
87098         * lib/xstat.in: Fix grammar in comment.
87099
87100 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87101
87102         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87103         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87104         doesn't define __restrict_arr.
87105
87106 2000-10-28  Jim Meyering  <meyering@lucent.com>
87107
87108         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87109         (jm_PREREQ_MEMCHR): New function.
87110
87111 2000-10-28  Jim Meyering  <meyering@lucent.com>
87112
87113         * lib/memchr.c: Update from libc.
87114         Adjust for portability:
87115         [HAVE_STDLIB_H]: Include stdlib.h.
87116         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87117         Undef __memchr, too.
87118         [!weak_alias]: Define __memchr to memchr.
87119
87120         * lib/regex.c: Update from libc.
87121         * lib/regex.h: Likewise.
87122         * lib/getopt1.c: Likewise.
87123         * lib/memcmp.c: Likewise.
87124
87125         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87126         Avoid using fseek, when possible -- it's broken by design.
87127         Patch by Ulrich Drepper.
87128
87129 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87130
87131         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87132         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87133         Giving in to popular pressure to shut up the compiler with casts.
87134
87135 2000-10-26  Jim Meyering  <meyering@lucent.com>
87136
87137         * lib/strftime.c: Update from libc.
87138
87139 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87140
87141         * regex.c: More `unsigned char' -> `re_char' changes.
87142         Also change several `int' into `re_wchar_t'.
87143         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87144         (PUSH_FAILURE_POINTER): Don't cast any more.
87145         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87146         We want GCC to complain, since this piece of code makes
87147         re_match non-reentrant, which *should* be fixed.
87148         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87149         (EXTEND_BUFFER): Use RETALLOC.
87150         (SET_LIST_BIT): Don't cast.
87151         (re_wchar_t): New type.
87152         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87153         that those two functions will always properly return.
87154         (IMMEDIATE_QUIT_CHECK): Cast to void.
87155         (analyse_first): Use recursion rather than an explicit stack.
87156         (re_compile_fastmap): Can't fail anymore.
87157         (re_search_2): Don't check re_compile_fastmap for failure.
87158         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87159         Now also sets the new value (passed in a new argument).
87160         (re_match_2_internal): Use it.
87161         Also, use a new var `reg' of type size_t when looping through regs
87162         rather than reuse the inappropriate `mcnt'.
87163
87164 2000-10-25  Jim Meyering  <meyering@lucent.com>
87165
87166         * lib/obstack.c: Update from libc.
87167
87168 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87169
87170         * regex.c (regex_compile): Change the way of handling a range from
87171         a char less than 256 to a char not less than 256.
87172
87173 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87174
87175         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87176         NT-Emacs only.
87177         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87178         so that re_search functions only quit when callers expect them to.
87179
87180 2000-10-23  Jim Meyering  <meyering@lucent.com>
87181
87182         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87183         wrong.  That set_locale call must not have any side effects.
87184         From Paul Eggert.
87185
87186 2000-10-22  Jim Meyering  <meyering@lucent.com>
87187
87188         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87189         [CYCLIC]: Remove now-unused definition.
87190
87191         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87192         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87193         Suggestion from Ulrich Drepper.
87194
87195 2000-10-21  Jim Meyering  <meyering@lucent.com>
87196
87197         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87198         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87199         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87200
87201 2000-10-21  Jim Meyering  <meyering@lucent.com>
87202
87203         * lib/dirname.c (memrchr): Declare if necessary.
87204         (dir_name): Remove the restriction that there be no
87205         trailing slashes.  Now, this code skips past them, effectively
87206         ignoring them.
87207         [TEST_DIRNAME] (main): New unit tests.
87208
87209         * lib/memrchr.c: New file from GNU libc.
87210         Undef __memrchr, too.
87211         [!weak_alias]: Define __memrchr to memrchr.
87212         Guard weak_alias use with `#ifdef weak_alias'.
87213
87214 2000-10-21  Jim Meyering  <meyering@lucent.com>
87215
87216         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87217         (dir_name): Use dir_name_r.
87218         * lib/dirname.h (dir_name_r): Declare it.
87219
87220 2000-10-17  Jim Meyering  <meyering@lucent.com>
87221
87222         * lib/quote.h (PARAMS): Define and use.
87223         Reported by Akim Demaille.
87224
87225         * lib/getopt.c: Update from libc.
87226
87227 2000-10-16  Jim Meyering  <meyering@lucent.com>
87228
87229         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87230         setlocale.
87231         From Jan Fedak.
87232
87233 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87234
87235         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87236
87237 2000-09-25  Jim Meyering  <meyering@lucent.com>
87238
87239         * lib/md5.h (rol): Define (from GnuPG).
87240
87241         * lib/sha.c: Give credit (GnuPG) where due.
87242         (M): Use rol rather than open-coding it.
87243         Add a FIXME comment.
87244
87245 2000-09-21  Jim Meyering  <meyering@lucent.com>
87246
87247         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87248         Reported by Michael Stone.
87249
87250 2000-09-20  Jim Meyering  <meyering@lucent.com>
87251
87252         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87253         (noinst_HEADERS): Add sha.h.
87254         Based on code from Scott G. Miller and from GnuPG.
87255
87256 2000-09-18  Jim Meyering  <meyering@lucent.com>
87257
87258         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87259         LIBS. Otherwise, everyone ends up linking with -lelf for some
87260         configurations.
87261         Reported by Mike Stone.
87262
87263 2000-09-15  Jim Meyering  <meyering@lucent.com>
87264
87265         * lib/regex.c: Update from libc.
87266
87267 2000-09-10  Jim Meyering  <meyering@lucent.com>
87268
87269         * lib/getopt.c (_getopt_internal): Update from glibc.
87270
87271 2000-09-09  Jim Meyering  <meyering@lucent.com>
87272
87273         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87274         think it should be used as a general replacement for isascii.
87275         * lib/fnmatch.c: Likewise.
87276         * lib/mbswidth.c: Likewise
87277         * lib/regex.c: Likewise.
87278
87279         Don't use atoi.
87280         * lib/userspec.c: Include sys/param.h and limits.h.
87281         Include xstrtol.h.
87282         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87283         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87284         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87285         UID, GID.  Check range.
87286
87287 2000-09-06  Jim Meyering  <meyering@lucent.com>
87288
87289         * lib/getopt.c (_getopt_internal): Update from glibc.
87290
87291 2000-08-30  Jim Meyering  <meyering@lucent.com>
87292
87293         * lib/strftime.c: Merge in changes from GNU libc.
87294
87295 2000-08-26  Jim Meyering  <meyering@lucent.com>
87296
87297         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87298         * m4/fpending.m4: New file.
87299
87300 2000-08-26  Jim Meyering  <meyering@lucent.com>
87301
87302         * lib/closeout.c: Include "__fpending.h".
87303         (close_stdout_status): Return right away if there's nothing to flush.
87304
87305         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87306         * lib/__fpending.c: New file.
87307         * lib/__fpending.h: New file.
87308
87309 2000-08-20  Jim Meyering  <meyering@lucent.com>
87310
87311         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87312         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87313         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87314
87315 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87316
87317         Improve fileutils installation on systems where running
87318         programs (like install) can't be unlinked.
87319         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87320         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87321
87322 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87323
87324         Standardize on "memory exhausted" instead of "Memory exhausted"
87325         or "virtual memory exhausted".
87326         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87327         "virtual memory exhausted".
87328         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87329         our own message.
87330         * lib/userspec.c (parse_user_spec): Likewise.
87331         * lib/bumpalloc.h: comment fix
87332         * lib/same.c, userspec.c: Include xalloc.h.
87333
87334         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87335         not char *const and pointing to a constant array.
87336         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87337         (xrealloc): Comment fix.
87338
87339         * lib/userspec.c (parse_user_spec):
87340         Don't translate a message until just before returning,
87341         to avoid unnecessary translation.
87342
87343 2000-08-07  Jim Meyering  <meyering@lucent.com>
87344
87345         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87346         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87347         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87348         getgroups.c, gethostname.c, getopt.h, group-member.c,
87349         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87350         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87351         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87352         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87353         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87354         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87355         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87356         yesno.c: Back out Copyright date changes for each file with no change
87357         this year.  This eases coordination with other programs using the same
87358         source code modules.  From Paul Eggert.
87359
87360 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87361
87362         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87363         not char, for compatibility with glibc 2.1.3 strftime.c.
87364
87365 2000-08-03  Greg McGary  <greg@mcgary.org>
87366
87367         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87368         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87369         (EXTEND_BUFFER): Use them.
87370
87371 2000-08-01  Jim Meyering  <meyering@lucent.com>
87372
87373         * lib/dirname.c (ISSLASH): Define.
87374         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87375         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87376         both `\' and `/' may be use as path separators.
87377         Based on a patch from Prashant TR.
87378
87379 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87380
87381         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87382         slot vector a constant, since it might get modified.
87383
87384 2000-07-31  Jim Meyering  <meyering@lucent.com>
87385
87386         * lib/xmalloc.c: Use `virtual memory exhausted', not
87387         `Memory exhausted'.
87388         * lib/obstack.c (print_and_abort): Likewise.
87389
87390 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87391
87392         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87393         buffer, so that the caller can always quote one small
87394         component of a "memory exhausted" message in slot 0.
87395         From a suggestion by Jim Meyering.
87396
87397 2000-07-30  Jim Meyering  <meyering@lucent.com>
87398
87399         * lib/makepath.c (make_path): Quote the other instance, too.
87400
87401         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87402         (STATIC_BUF_SIZE): Define.
87403         (quotearg_n_options): Use only statically allocated storage when
87404         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87405         than STATIC_BUF_SIZE.
87406
87407 2000-07-29  Jim Meyering  <meyering@lucent.com>
87408
87409         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87410         * lib/dirname.c (dir_name): Likewise.
87411
87412         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87413         `/'.
87414
87415         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87416         (dir_name): Assert that there are no trailing slashes.
87417
87418 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87419
87420         * lib/mbswidth.h (mbswidth): Add a flags argument.
87421         (mbswidth): New declaration.
87422         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87423         * lib/mbswidth.c (mbswidth): Add a flags argument.
87424         (mbsnwidth): New function.
87425
87426 2000-07-24  Jim Meyering  <meyering@lucent.com>
87427
87428         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87429
87430 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87431
87432         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87433
87434 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87435
87436         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87437         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87438         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87439         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87440         invoke multibyte primitives.
87441
87442 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87443
87444         * lib/quotearg.c:
87445         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87446         so that mbstate_t is always defined.
87447
87448         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87449         be 1 in at least one GCC installation, and this configuration
87450         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87451         performance on hosts that have mbrtowc but have only unibyte
87452         locales, but I assume these hosts are rare.
87453
87454 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87455
87456         * lib/mbswidth.c (_XOPEN_SOURCE):
87457         Don't define; this causes problems on Solaris 7.
87458         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87459
87460 2000-07-23  Jim Meyering  <meyering@lucent.com>
87461
87462         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87463         too: getgrgid, getpwuid, getuid.
87464
87465 2000-07-23  Jim Meyering  <meyering@lucent.com>
87466
87467         * lib/basename.c (base_name): Add an assertion.
87468
87469 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87470
87471         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87472         shadow its mbsinit function.
87473
87474 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87475
87476         * lib/mbswidth.h: New file.
87477         * lib/mbswidth.c: New file.
87478         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87479         (noinst_HEADERS): Add mbswidth.h.
87480
87481 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87482
87483         * lib/config.charset: Add support for FreeBSD. Improve support for
87484         HP-UX and IRIX 6.
87485
87486 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87487
87488         * m4/mbswidth.m4: New file.
87489         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87490
87491 2000-07-15  Jim Meyering  <meyering@lucent.com>
87492
87493         * lib/makepath.c: Include quote.h.
87494         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87495         corresponding argument in a `quote (...)' call.
87496         Give better diagnostics.
87497
87498         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87499         (noinst_HEADERS): Add quote.h.
87500
87501         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87502         from tar's src/misc.c.
87503         * lib/quote.h: New file.  Prototypes for same.
87504
87505 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87506
87507         From a suggestion by Bruno Haible.
87508         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87509         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87510         to decide whether to define the BeOS workaround macro;
87511         this adjusts to the change to AC_MBSTATE_T.
87512
87513 2000-07-14  Jim Meyering  <meyering@lucent.com>
87514
87515         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87516         jm_AC_TYPE_UINTMAX_T.
87517
87518 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87519
87520         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87521
87522         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87523         quotearg_buffer_restyled): Add support for
87524         clocale_quoting_style.  Undo previous change to
87525         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87526         and "{RIGHT QUOTATION MARK}" msgids.
87527
87528 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87529
87530         From a suggestion by Bruno Haible.
87531         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87532         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87533         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87534         and mbstate_t, to a single-part test that simply defines mbstate_t.
87535         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87536         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87537
87538 2000-07-10  Jim Meyering  <meyering@lucent.com>
87539
87540         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87541
87542         * m4/gnu-source.m4: Output to confdefs.h directly.
87543         Suggestion from Akim Demaille.
87544
87545 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87546
87547         The old behavior of quoting `like this' doesn't look good with
87548         newer, ISO-style fonts.  See:
87549         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87550
87551         Instead, quote "like this" by default.  Let the translator
87552         tailor the locale-specific quoting behavior by providing
87553         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87554
87555         * lib/quotearg.c (N_): New macro.
87556         (gettext_default): New function.
87557         (quotearg_buffer_restyled): Use
87558         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87559         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87560
87561 2000-07-09  Jim Meyering  <meyering@lucent.com>
87562
87563         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87564         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87565
87566         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87568
87569 2000-07-09  Jim Meyering  <meyering@lucent.com>
87570
87571         * lib/Most files: Update copyright dates to include 2000.
87572
87573 2000-07-08  Jim Meyering  <meyering@lucent.com>
87574
87575         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87576         if not defined.
87577         (xgethostname): Remove now-unnecessary #ifdef.
87578         Move declaration of `err' into loop where it's used.
87579
87580 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87581         and Bruno Haible  <haible@clisp.cons.org>
87582
87583         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87584         only if the test for an object-type mbstate_t fails.  This
87585         prevents us from mistakenly reporting that mbstate_t is a
87586         system object type after we "#define mbstate_t int" to work
87587         around its lack.
87588
87589 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87590         and Bruno Haible  <haible@clisp.cons.org>
87591
87592         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87593
87594 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87595
87596         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87597         to strerror_r.
87598         Include <ctype.h> for use of isalpha.
87599
87600 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87601
87602         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87603         by allocating a larger buffer. Test the gethostname return value for
87604         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87605         returns an error and ENAMETOOLONG isn't defined.
87606
87607 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87608
87609         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87610         dimension.
87611
87612 2000-07-04  Jim Meyering  <meyering@lucent.com>
87613
87614         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87615         of the deprecated AC_CHECKING.
87616
87617 2000-07-04  Jim Meyering  <meyering@lucent.com>
87618
87619         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87620         Reported by Bruno Haible.
87621
87622 2000-07-04  Jim Meyering  <meyering@lucent.com>
87623
87624         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87625         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87626         lacks mbrtowc.
87627
87628 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87629
87630         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87631         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87632
87633 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87634         and Bruno Haible  <haible@clisp.cons.org>
87635
87636         * lib/quotearg.c (mbrtowc):
87637         Assign to *pwc, and return 1 only if result is nonzero.
87638         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87639
87640 2000-07-03  Jim Meyering  <meyering@lucent.com>
87641
87642         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87643
87644 2000-07-03  Jim Meyering  <meyering@lucent.com>
87645
87646         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87647         This is necessary to get a definition of e.g., UTMP_FILE on
87648         HP-UX 10.20.
87649         From Bob Proulx.
87650
87651 2000-07-02  Jim Meyering  <meyering@lucent.com>
87652
87653         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87654
87655         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87656         AC_LIBOBJ(function_name).
87657         * m4/chown.m4: Likewise.
87658         * m4/fnmatch.m4: Likewise.
87659         * m4/ftruncate.m4: Likewise.
87660         * m4/getgroups.m4: Likewise.
87661         * m4/getline.m4: Likewise.
87662         * m4/group-member.m4: Likewise.
87663         * m4/jm-macros.m4: Likewise.
87664         * m4/lstat.m4: Likewise.
87665         * m4/malloc.m4: Likewise.
87666         * m4/memcmp.m4: Likewise.
87667         * m4/nanosleep.m4: Likewise.
87668         * m4/putenv.m4: Likewise.
87669         * m4/realloc.m4: Likewise.
87670         * m4/regex.m4: Likewise.
87671         * m4/stat.m4: Likewise.
87672         * m4/strftime.m4: Likewise.
87673
87674 2000-07-02  Jim Meyering  <meyering@lucent.com>
87675
87676         * lib/quotearg.c (mbstate_t): Don't define here.
87677
87678 2000-07-02  Jim Meyering  <meyering@lucent.com>
87679
87680         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87681
87682 2000-07-01  Jim Meyering  <meyering@lucent.com>
87683
87684         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87685
87686 2000-07-01  Jim Meyering  <meyering@lucent.com>
87687
87688         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87689         problem.
87690
87691 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87692
87693         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87694         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87695
87696 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87697
87698         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87699         per change in ../m4/ls-mntd-fs.m4.
87700         (read_filesystem_list): Ignore symbolic links.
87701
87702 2000-06-29  Jim Meyering  <meyering@lucent.com>
87703
87704         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87705         for declaration of strcmp.
87706
87707         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87708
87709         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87710         Avoid warning by casting result to `char *' to remove `const'.
87711
87712 2000-06-28  Jim Meyering  <meyering@lucent.com>
87713
87714         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87715         included by quotearg.c, for which we perform this test.  From
87716         Bruno Haible.
87717
87718 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87719
87720         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87721         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87722         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87723
87724 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87725
87726         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87727
87728 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87729
87730         savedir now sets errno on failure and invokes xmalloc to get memory.
87731         Fix a couple of other minor bugs while we're at it.
87732
87733         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87734         (NAMLEN): Remove macro.
87735         (malloc, realloc): Remove decls.
87736         (stpcpy): Likewise.
87737         ("xalloc.h"): Include.
87738         (NAME_SIZE_DEFAULT): New macro.
87739         (savedir): Use xmalloc / xrealloc to allocate memory.
87740         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87741         Skip "" directory entries.
87742         Use strlen to calculate directory entry length, since the old method
87743         is rarely used these days and isn't worth supporting.
87744         Don't use a pointer after freeing it.
87745         Check for integer overflow when calculating allocation size.
87746         Use memcpy to copy entries, instead of stpcpy.
87747         Set errno properly when returning NULL.
87748         Check for readdir error.
87749
87750 2000-06-26  Jim Meyering  <meyering@lucent.com>
87751
87752         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87753
87754 2000-06-25  Jim Meyering  <meyering@lucent.com>
87755
87756         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87757         Linux header bug when _XOPEN_SOURCE is defined to 500.
87758
87759 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87760
87761         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87762         deficiency.
87763
87764 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87765
87766         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87767         Include xalloc.h.
87768         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87769
87770 2000-06-24  Jim Meyering  <meyering@lucent.com>
87771
87772         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87773         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87774         for which strerror does return char*, but which lacks a conveniently
87775         accessible declaration of the function.  If the compile-test says
87776         strerror_r doesn't work, then resort to a `run'-test that works on
87777         BeOS and segfaults on DEC Unix.
87778
87779 2000-06-24  Jim Meyering  <meyering@lucent.com>
87780
87781         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87782
87783 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87784
87785         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87786         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87787
87788 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87789
87790         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87791         (mbrtowc, mbstate_t): Define substitutes if
87792         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87793         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87794         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87795
87796 2000-06-23  Jim Meyering  <meyering@lucent.com>
87797
87798         * m4/afs.m4: Add missing AC_MSG_RESULT.
87799         Reported by Bruno Haible.
87800
87801         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87802         Suggestion from Bruno Haible.
87803
87804 2000-06-23  Jim Meyering  <meyering@lucent.com>
87805
87806         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87807
87808 2000-06-21  Jim Meyering  <meyering@lucent.com>
87809
87810         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87811
87812 2000-06-21  Jim Meyering  <meyering@lucent.com>
87813
87814         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87815         (noinst_HEADERS): Add getstr.h.
87816
87817         * lib/getline.c (getstr): Move into a separate file.
87818         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87819         the following changes: new parameter, delim2; both delim[12]
87820         parameters have type `int', not `char'.  The latter would lose
87821         with 8-bit delimiters.
87822         * lib/getstr.h: New file.
87823
87824 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87825
87826         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87827         than 1024, return a memory chunk of least possible size, instead
87828         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87829         Use free/xmalloc instead of xrealloc to avoid copying for very long
87830         paths.
87831
87832 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87833
87834         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87835         the empty string.
87836
87837 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87838
87839         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87840         address, not strdup.  Include <stdlib.h> and don't declare free().
87841
87842 2000-06-19  Jim Meyering  <meyering@lucent.com>
87843
87844         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87845
87846 2000-06-18  Jim Meyering  <meyering@lucent.com>
87847
87848         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87849
87850         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87851         `checking whether...' message to be consistent with that of the
87852         lstat test.
87853
87854 2000-06-18  Jim Meyering  <meyering@lucent.com>
87855
87856         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87857         Besides, these days every porting target provides a mkdir function.
87858
87859         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87860         needed. (this snippet comes from src/system.h).
87861
87862 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87863
87864         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87865
87866 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87867
87868         * lib/human.c (adjust_value): New function.
87869         (human_readable_inexact): Apply rounding style even when
87870         printing approximate values.
87871
87872 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87873
87874         * lib/human.c (human_readable_inexact): Allow an input block
87875         size that is not a multiple of the output block size, and vice versa.
87876         Reported by Piergiorgio Sartor.
87877
87878 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87879
87880         * lib/getdate.y (get_date): Apply relative times after time
87881         zone indicator, not before.  Reported by Todd A. Jacobs.
87882
87883 2000-06-13  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87886
87887         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87888
87889 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87890
87891         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87892
87893 2000-06-12  Jim Meyering  <meyering@lucent.com>
87894
87895         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87896         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87897         optional argument.
87898         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87899         the optional argument, `lib'.
87900
87901 2000-06-08  Jim Meyering  <meyering@lucent.com>
87902
87903         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87904
87905 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87906
87907         Rewrite largefile configuration so that we don't need to run
87908         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87909         AC_CANONICAL_HOST in configure.in -- jmm]
87910
87911         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87912         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87913         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87914         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87915         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87916         All uses changed.
87917         Instead of inspecting the output of getconf, try to compile the
87918         test program without and with the macro definition.
87919         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87920         for getconf.  Instead, check for the needed flags by compiling
87921         test programs.
87922
87923 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87924
87925         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87926
87927 2000-06-04  Jim Meyering  <meyering@lucent.com>
87928
87929         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87930         SunOS 4.1.4 for which gid_t is an unsigned type.
87931
87932 2000-06-03  Jim Meyering  <meyering@lucent.com>
87933
87934         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87935         now that autoconf requires that.
87936
87937         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87938         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87939         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87940
87941 2000-06-03  Jim Meyering  <meyering@lucent.com>
87942
87943         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87944
87945 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87946
87947         * m4/glibc21.m4: New file.
87948         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87949
87950 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87951
87952         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87953         newer, don't install charset.alias.
87954         * lib/config.charset: Change the Linux/glibc rules so they become empty
87955         on glibc-2.1 or newer.
87956
87957 2000-06-02  Jim Meyering  <meyering@lucent.com>
87958
87959         * lib/mountlist.c: Back out last change.  Instead, do this...
87960         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87961         me_dummy member using the same `ignore'-testing code.
87962         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87963         fs_type strings.
87964         From Mark D. Roth.
87965
87966 2000-05-29  Jim Meyering  <meyering@lucent.com>
87967
87968         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87969         mounts with the `ignore' attribute.  Based on a patch from
87970         Mark D. Roth.
87971
87972 2000-05-28  Jim Meyering  <meyering@lucent.com>
87973
87974         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87975         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87976         * m4/stat.m4: Likewise.
87977         * m4/lstat.m4: Likewise.
87978         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87979
87980         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87981         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87982
87983 2000-05-26  Jim Meyering  <meyering@lucent.com>
87984
87985         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87986
87987 2000-05-24  Jim Meyering  <meyering@lucent.com>
87988
87989         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87990         autoconf requires that.
87991         * m4/lib-check.m4: Likewise.
87992         * m4/jm-macros.m4: Likewise.
87993         * m4/strftime.m4: Likewise.
87994
87995         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87996         AC_CHECK_DECLS, now that autoconf requires that.
87997
87998 2000-05-22  Jim Meyering  <meyering@lucent.com>
87999
88000         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88001         * m4/lstat.m4: Likewise.
88002
88003 2000-05-22  Jim Meyering  <meyering@lucent.com>
88004
88005         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88006
88007 2000-05-20  Jim Meyering  <meyering@lucent.com>
88008
88009         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88010         (jm_PREREQ): Use it.
88011
88012 2000-05-18  Jim Meyering  <meyering@lucent.com>
88013
88014         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88015         back, too, since it may have been modified by allocate_entry.
88016         (hash_delete): Rewrite to use neither the assignment operator
88017         nor the comma operator in an if-expression.
88018
88019 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88020
88021         * lib/closeout.c:
88022         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88023         Remove; no longer needed.
88024         "quotearg.h": Add include.
88025         (file_name): Do not bother to explicitly initialize to NULL; it's less
88026         efficient on some hosts.
88027         (close_stdout_status): Remove test as to whether stdout was already
88028         closed; it breaks for the case "echo x | sort >&-".
88029         Quote file name colons.
88030         Do not assume that _("write error") lacks format strings.
88031
88032 2000-05-15  Jim Meyering  <meyering@lucent.com>
88033
88034         * lib/version-etc.c (version_etc_copyright): Update the copyright
88035         string used in all --version output.
88036
88037 2000-05-14  Jim Meyering  <meyering@lucent.com>
88038
88039         * lib/closeout.c (close_stdout_set_file_name): New function.
88040         (close_stdout_status): Use new file-scoped global.
88041         Return right away if fstat says the stdout file descriptor is invalid.
88042         * lib/closeout.h (close_stdout_set_file_name): Declare.
88043
88044 2000-05-10  Jim Meyering  <meyering@lucent.com>
88045
88046         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88047         (close_stdout_set_status): New function.
88048         * lib/closeout.h (close_stdout_set_status): Declare.
88049
88050 2000-05-09  Jim Meyering  <meyering@lucent.com>
88051
88052         * m4/gettext.m4: Rename this...
88053         * m4/libintl.m4: ...to this.
88054
88055 2000-05-08  Jim Meyering  <meyering@lucent.com>
88056
88057         * lib/long-options.c: Don't include closeout.h.
88058         (parse_long_options): Don't call close_stdout for --version.
88059
88060 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88061
88062         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88063         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88064         2.1.3 bug.  This avoids a clash when files like regex.c define
88065         _GNU_SOURCE.
88066
88067 2000-05-06  Jim Meyering  <meyering@lucent.com>
88068
88069         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88070         (AC_REPLACE_FUNCS): Add strnlen.
88071
88072         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88073         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88074
88075         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88076         AC_SEARCH_LIBS call for nanosleep.
88077         (LIB_NANOSLEEP): Set and AC_SUBST.
88078
88079 2000-05-06  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/strnlen.c: Undefine __strnlen and strnlen.
88082         [!weak_alias]: Define __strnlen to strnlen.
88083
88084         * lib/atexit.c: New file, from libiberty.
88085
88086 2000-05-06  Jim Meyering  <meyering@lucent.com>
88087
88088         * lib/closeout.c (close_stdout_status): Also check for errors on the
88089         stderr stream.
88090
88091 2000-05-05  Jim Meyering  <meyering@lucent.com>
88092
88093         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88094         AC_SEARCH_LIBS call for clock_gettime.
88095         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88096
88097         * m4/search-libs.m4: Update from autoconf.
88098
88099         su doesn't work on Solaris 2.6.
88100         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88101         <shadow.h>.  Reported by Dragos Harabor.
88102
88103 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88104
88105         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88106         memcpy instead of xmalloc, xrealloc, path_concat.
88107         (locale_charset): Treat empty environment variables as absent.
88108         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88109
88110 2000-05-04  Jim Meyering  <meyering@lucent.com>
88111
88112         * lib/getopt.c: Update from glibc.
88113         * lib/obstack.c: Likewise.
88114         * lib/obstack.h: Likewise.
88115         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88116         file
88117
88118         * lib/regex.h: Likewise.
88119         * lib/strndup.c: Likewise.
88120         * lib/strnlen.c: New file, from glibc.
88121
88122 2000-05-03  Jim Meyering  <meyering@lucent.com>
88123
88124         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88125
88126 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88127
88128         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88129         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88130         compile-time test, rather than inspecting host and OS, to
88131         decide whether to define _LARGEFILE_SOURCE.
88132
88133 2000-05-01  Jim Meyering  <meyering@lucent.com>
88134
88135         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88136
88137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88138         Based on a patch from Bruno Haible.
88139
88140 2000-05-01  Jim Meyering  <meyering@lucent.com>
88141
88142         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88143
88144 2000-04-29  Jim Meyering  <meyering@lucent.com>
88145
88146         * lib/path-concat.c: Declare strdup only if it's not defined.
88147         * lib/canon-host.c: Likewise.
88148
88149 2000-04-28  Jim Meyering  <meyering@lucent.com>
88150
88151         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88152         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88153         is included first, then limits.h is included by locale.h by libintl.h.
88154         From John David Anglin.
88155
88156 2000-04-25  Jim Meyering  <meyering@lucent.com>
88157
88158         * lib/makepath.c (S_IRWXUGO): Define.
88159         (make_path): Always perform explicit chmod if MODE specifies any
88160         of the `special' permission bits.  Prompted by a bug report against
88161         install from Mate Wierdl and Joost van Baal.
88162
88163 2000-04-18  Jim Meyering  <meyering@lucent.com>
88164
88165         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88166         (jm_PREREQ): Use it.
88167
88168 2000-04-18  Jim Meyering  <meyering@lucent.com>
88169
88170         * lib/README: New file.
88171
88172         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88173         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88174
88175 2000-04-17  Jim Meyering  <meyering@lucent.com>
88176
88177         Get it right :-)
88178         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88179         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88180         Suggestion from Akim Demaille.
88181
88182 2000-04-17  Jim Meyering  <meyering@lucent.com>
88183
88184         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88185         the definition of it to rpl_strftime also defined-away the system's
88186         declaration.
88187
88188 2000-04-15  Jim Meyering  <meyering@lucent.com>
88189
88190         Use `C' to denote so-called `contiguous' files, the same way
88191         that tar does.
88192         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88193         (ftypelet): Use S_ISCTG.
88194         From Michael Deutschmann.
88195
88196 2000-04-14  Jim Meyering  <meyering@lucent.com>
88197
88198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88199         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88200         clobbered.
88201
88202 2000-04-14  Jim Meyering  <meyering@lucent.com>
88203
88204         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88205
88206 2000-04-13  Jim Meyering  <meyering@lucent.com>
88207
88208         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88209         AH_VERBATIM to insert required #ifndef into config.h.in.
88210         Suggestion from Akim Demaille.
88211
88212 2000-04-12  Jim Meyering  <meyering@lucent.com>
88213
88214         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88215         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88216         Christian Krackowizer.
88217
88218         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88219         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88220         (AC_SYS_LARGEFILE): Require.
88221         (AM_C_PROTOTYPES): Require.
88222
88223 2000-04-08  Jim Meyering  <meyering@lucent.com>
88224
88225         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88226         names don't conflict.  Reported by Eli Zaretskii.
88227
88228 2000-04-07  Jim Meyering  <meyering@lucent.com>
88229
88230         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88231         sys/types.h, to work around system header problems on AIX 3.2.5.
88232         From Bruno Haible.
88233
88234 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88235
88236         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88237         bug.  Deal with the different error behavior of Irix iconv.
88238
88239 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88240
88241         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88242         IRIX if the installer said otherwise.
88243
88244 2000-04-05  Jim Meyering  <meyering@lucent.com>
88245
88246         Portability tweaks required for ultrix4.3.
88247         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88248         (jm_CHECK_DECLS): Add getutent to the list of functions.
88249         (_jm_DECL_HEADERS): Add utmpx.h.
88250         From John David Anglin.
88251
88252         * m4/strftime.m4: Back out the 2000-04-02 change.
88253         Instead of that change, simply undefine putenv in the test program.
88254
88255 2000-04-05  Jim Meyering  <meyering@lucent.com>
88256
88257         Portability tweaks required for ultrix4.3.
88258         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88259         getutent.
88260         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88261         * lib/canon-host.c: Declare strdup.
88262         * lib/path-concat.c: Likewise.
88263         From John David Anglin.
88264
88265 2000-04-04  Jim Meyering  <meyering@lucent.com>
88266
88267         Be more DOS 8.3-friendly.
88268         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88269         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88270         * lib/Makefile.am: Reflect renaming.
88271         Reported by Eli Zaretskii.
88272
88273         Use a temporary file name that won't clash with `charset.alias'
88274         in the DOS 8.3 name space.
88275         * lib/Makefile.am (charset_tmp): Define.
88276         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88277         (uninstall-local): Likewise.
88278         Reported by Eli Zaretskii.
88279
88280 2000-04-03  Jim Meyering  <meyering@lucent.com>
88281
88282         * m4/gettext.m4: Fix typo in comment.
88283
88284         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88285         textutils/configure.in).  Suggestion from Paul Eggert.
88286         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88287
88288 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88289
88290         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88291         variable in the shell rather than using putenv, which isn't
88292         portable.  This avoids the configure-time inter-test dependency
88293         on the potentially-renamed putenv function.
88294
88295 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88296
88297         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88298         before checking struct stat.st_blksize, so that
88299         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88300
88301 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88302
88303         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88304         since strftime.c uses HAVE_STRFTIME to decide whether to use
88305         the underlying strftime.
88306
88307 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88308
88309         * lib/time/strftime.c (my_strftime): Make sure we call the system
88310         strftime, not ourselves, when invoking the underlying strftime.
88311
88312 2000-03-24  Jim Meyering  <meyering@lucent.com>
88313
88314         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88315         (charset_alias): Define.
88316         (install-exec-local): Factor out common code.
88317         (uninstall-local): Split lines longer than 80.
88318         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88319         (SUFFIXES): Define.
88320         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88321         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88322
88323 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88324
88325         * lib/config.charset: Output a line containing "Packages using this
88326         file".
88327         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88328         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88329         ref-del.sed): New rules.
88330
88331 2000-03-17  Jim Meyering  <meyering@lucent.com>
88332
88333         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88334         Otherwise, include <strings.h>
88335
88336 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88337
88338         * lib/unicodeio.c (utf8_wctomb): New function.
88339         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88340         format instead of in UCS-4 with platform dependent endianness.
88341
88342 2000-03-10  Jim Meyering  <meyering@lucent.com>
88343
88344         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88345         From Marco Franzen.
88346
88347 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88348
88349         * lib/savedir.c (savedir): Work even if directory size is
88350         negative; this can happen with some screwy NFS configurations.
88351
88352 2000-03-06  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88355         if it's NULL (because we ran out of memory).  From Bruno Haible.
88356
88357 2000-03-05  Jim Meyering  <meyering@lucent.com>
88358
88359         * lib/localcharset.c ("path-concat.h"): Include.
88360         (get_charset_aliases): Use path_concat instead of ANSI string
88361         concatenation.
88362
88363         * lib/unicodeio.h (PARAMS): Define.
88364         Use it to guard prototype.
88365
88366 2000-03-04  Jim Meyering  <meyering@lucent.com>
88367
88368         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88369         for lib/localcharset.c.
88370
88371 2000-03-04  Jim Meyering  <meyering@lucent.com>
88372
88373         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88374         installing into it.
88375         (uninstall-local): Uncomment this rule so `make distcheck' works
88376         once again.
88377
88378         * lib/unicodeio.c (<errno.h>): Include it.
88379         (errno): Declare if not defined.
88380
88381         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88382
88383         * lib/config.charset: New version, incorporating remarks from a linux
88384         i18n mailing list.  From Bruno Haible.
88385
88386 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88387
88388         * m4/codeset.m4: New file.
88389         * m4/iconv.m4: New file.
88390         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88391
88392 2000-03-03  Jim Meyering  <meyering@lucent.com>
88393
88394         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88395
88396 2000-03-02  Jim Meyering  <meyering@lucent.com>
88397
88398         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88399         the messages come out on separate lines.
88400
88401         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88402         rather than jm_CHECK_DECLARATIONS.
88403         * m4/decl.m4: Remove now-unused file.
88404
88405         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88406         geteuid.
88407
88408 2000-03-02  Jim Meyering  <meyering@lucent.com>
88409
88410         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88411
88412 2000-03-01  Jim Meyering  <meyering@lucent.com>
88413
88414         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88415         * lib/unicodeio.c: Likewise.
88416
88417 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88418
88419         * lib/config.charset: New file.
88420         * lib/localcharset.c: New file.
88421         * lib/unicodeio.h, lib/unicodeio.c: New files.
88422         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88423         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88424         (noinst_HEADERS): Add unicodeio.h.
88425         (all-local, install-exec-local, charset.alias): New targets.
88426
88427 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88428
88429         * lib/quotearg.c (ALERT_CHAR): New macro.
88430         (quotearg_buffer_restyled): Use it.
88431
88432 2000-02-27  Jim Meyering  <meyering@lucent.com>
88433
88434         * m4/check-decl.m4: Add getenv to the list.
88435
88436 2000-02-27  Jim Meyering  <meyering@lucent.com>
88437
88438         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88439         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88440
88441         * lib/backupfile.c: Guard inclusion of stdlib.h with
88442         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88443         Declare malloc if needed.
88444
88445         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88446         `#ifndef HAVE_DECL..'
88447         now that autoconf always defines the HAVE_DECL_ symbols.
88448         * lib/human.c: Likewise.
88449         * lib/same.c: Likewise.
88450         * lib/strtoumax.c: Likewise.
88451
88452         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88453         declaration check was not run.
88454         * lib/hash.c: Likewise.
88455         * lib/human.c: Likewise.
88456         * lib/same.c: Likewise.
88457         * lib/strtoumax.c: Likewise.
88458
88459         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88460         `.', then first look up the entire `.'-containing string as a login
88461         name.
88462
88463 2000-02-23  Jim Meyering  <meyering@lucent.com>
88464
88465         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88466         in place of my hack.
88467
88468 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88469
88470         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88471         (textint): New typedef.
88472         (parser_control): Member year changed from int to textint.
88473         All uses changed.
88474         (YYSTYPE): Removed; replaced by %union with int and textint members.
88475         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88476         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88477         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88478         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88479         (date, number, to_year): Use width of number in digits, not its value,
88480         to determine whether it's a 2-digit year, or a 2-digit time.
88481         (yylex): Store number of digits of numeric tokens.
88482         Reported by John Kendall.
88483
88484         (parser_control): Changed from struct parser_control to typedef (for
88485         consistency).  All uses changed.
88486
88487         (tID): Removed; not used.
88488         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88489
88490 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88491
88492         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88493         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88494
88495 2000-02-12  Jim Meyering  <meyering@lucent.com>
88496
88497         * lib/userspec.c (ISDIGIT): Define it.
88498         (isdigit): Remove definition.
88499         (is_number): Use ISDIGIT, not isdigit.
88500         <libintl.h>: Include.
88501         (_ and N_): Define.
88502         (parse_user_spec): Mark translatable strings.
88503
88504 2000-02-10  Jim Meyering  <meyering@lucent.com>
88505
88506         With these changes, nanosleep.[ch] are finally enough like the other
88507         lib/* replacement files to compile on a few more losing systems.
88508
88509         * lib/nanosleep.h: Don't include config.h.
88510         Remove prototype from declaration of nanosleep.
88511         (PARAMS): Remove now-unneeded definition.
88512         * lib/nanosleep.c: #undef nanosleep.
88513         (rpl_nanosleep): Rename from nanosleep.
88514
88515 2000-02-10  Jim Meyering  <meyering@lucent.com>
88516
88517         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88518         gnu_nanosleep to rpl_nanosleep.
88519
88520 2000-02-09  Jim Meyering  <meyering@lucent.com>
88521
88522         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88523         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88524
88525 2000-02-08  Akim Demaille  <akim@epita.fr>
88526
88527         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88528         `[' and `]' and remove uses of `changequote'.
88529         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88530         (AC_SYS_LARGEFILE): Likewise.
88531         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88532         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88533         of changequote.
88534         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88535         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88536         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88537         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88538
88539 2000-02-05  Jim Meyering  <meyering@lucent.com>
88540
88541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88542         Remove explicit use of AC_HEADER_TIME.  It is required by
88543         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88544         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88545         in autoconf whereby the expansion of the latter ended up preceding
88546         the expansion of its prerequisite, AC_HEADER_TIME.
88547         Reported by Volker Borchert.
88548
88549 2000-02-03  Jim Meyering  <meyering@lucent.com>
88550
88551         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88552
88553 2000-02-03  Jim Meyering  <meyering@lucent.com>
88554
88555         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88556         rather than with `#if HAVE_UTMPNAME'.
88557
88558 2000-02-02  Jim Meyering  <meyering@lucent.com>
88559
88560         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88561         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88562         Reported by Eli Zaretskii.
88563
88564 2000-02-01  Jim Meyering  <meyering@lucent.com>
88565
88566         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88567
88568 2000-01-31  Jim Meyering  <meyering@lucent.com>
88569
88570         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88571         functions.  Add the time.h and sys/time.h headers along with the
88572         AC_REQUIRE'ment of AC_HEADER_TIME.
88573
88574 2000-01-31  Jim Meyering  <meyering@lucent.com>
88575
88576         * lib/nanosleep.h (nanosleep): Guard declaration with
88577         `#if ! HAVE_DECL_NANOSLEEP'.
88578         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88579         the declaration in that vendor's sys/timers.h.
88580         Reported by Christian Krackowizer.
88581
88582         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88583         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88584         (ISPRINT): Likewise.
88585         Reported by Tom Tromey.
88586
88587 2000-01-30  Jim Meyering  <meyering@lucent.com>
88588
88589         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88590
88591         * m4/prereq.m4 (utmp_includes): Define.
88592         Check for ut_user and ut_name members in both struct utmpx
88593         and struct utmp.
88594
88595 2000-01-30  Jim Meyering  <meyering@lucent.com>
88596
88597         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88598         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88599         header files where only utmpx.ut_user is declared.
88600
88601         * lib/readutmp.h (UT_USER): Define.
88602
88603 2000-01-29  Jim Meyering  <meyering@lucent.com>
88604
88605         * m4/lib-check.m4: New file containing library-related checks from
88606         fileutils and sh-utils (textutils had none).
88607
88608 2000-01-28  Jim Meyering  <meyering@lucent.com>
88609
88610         * m4/perl.m4: Change format of warning message to look more like that
88611         from the missing script.  Suggestion from François Pinard.
88612
88613 2000-01-25  Jim Meyering  <meyering@lucent.com>
88614
88615         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88616         well as time.h in the compile check.
88617         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88618         Fix typo in cross-compiling case: s/yes/no/.
88619
88620 2000-01-23  Jim Meyering  <meyering@lucent.com>
88621
88622         * m4/jm-macros.m4: Move df-related tests here from
88623         fileutils/configure.in
88624
88625         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88626         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88627
88628         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88629         s/space/ac_fsusage_space/.
88630         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88631
88632         * m4/ftruncate.m4: New file (derived from part of
88633         fileutils/configure.in).
88634         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88635         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88636
88637         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88638         AC_SUBST these here, rather than just in sh-util/configure.in, so
88639         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88640         all the same.
88641         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88642         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88643         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88644         (AC_SUBST(POW_LIBM)): Likewise.
88645         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88646
88647 2000-01-23  Jim Meyering  <meyering@lucent.com>
88648
88649         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88650         obstack.c.
88651
88652 2000-01-22  Jim Meyering  <meyering@lucent.com>
88653
88654         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88655
88656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88657
88658         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88659         configure.in
88660         (AC_CHECK_HEADERS): Likewise for sh-utils.
88661         (AC_CHECK_HEADERS): Likewise for textutils.
88662         Merge the three lists of headers.
88663
88664         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88665         from fileutils' configure.in.
88666
88667         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88668         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88669         check-decl.m4.
88670
88671         * m4/check-decl.m4: Use #if rather than #ifdef.
88672         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88673         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88674         (_jm_DECL_HEADERS): Define new function.
88675         (jm_CHECK_DECLARATIONS): Require it.
88676
88677 2000-01-22  Jim Meyering  <meyering@lucent.com>
88678
88679         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88680         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88681         Required for some AIX systems.  Reported by Christian Krackowizer.
88682         [TESTING] (main): New function.
88683
88684         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88685         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88686         letters.
88687
88688         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88689         iswprint.
88690
88691         * lib/strverscmp.c (ISDIGIT): Define.
88692         (strverscmp): Use ISDIGIT, not isdigit.
88693
88694 2000-01-19  Jim Meyering  <meyering@lucent.com>
88695
88696         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88697         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88698         defines `struct timespec' in <sys/time.h>
88699
88700         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88701         Thanks to Akim for explaining.
88702
88703 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88704
88705         * lib/nanosleep.c (nanosleep):
88706         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88707         POSIX.1 doesn't require SA_INTERRUPT and some systems
88708         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88709         it's been part of POSIX.1 since day 1 (in 1988).
88710
88711 2000-01-17  Jim Meyering  <meyering@lucent.com>
88712
88713         * lib/interlock: Remove unused file.  Reported by François Pinard.
88714
88715 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88716
88717         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88718         alert, backslash, formfeed, and vertical tab unnecessarily in
88719         shell quoting style.
88720
88721 2000-01-16  Jim Meyering  <meyering@lucent.com>
88722
88723         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88724         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88725         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88726         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88727
88728 2000-01-16  Jim Meyering  <meyering@lucent.com>
88729
88730         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88731         because the latter didn't work.
88732
88733 2000-01-15  Jim Meyering  <meyering@lucent.com>
88734
88735         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88736         (AC_REPLACE_FUNCS): Add memcpy and memset.
88737         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88738         Add strpbrk.
88739         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88740
88741 2000-01-12  Jim Meyering  <meyering@lucent.com>
88742
88743         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88744         (jm_PREREQ): Use it.
88745         (jm_PREREQ_READUTMP): New macro.
88746         (jm_PREREQ): Use it.
88747
88748 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88749
88750         Quote multibyte characters correctly.
88751         * m4/c-bs-a.m4: New file.
88752         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88753         (jm_PREREQ): Use it.
88754
88755 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88756
88757         * m4/uintmax_t.m4: Port to autoconf 2.13.
88758
88759 2000-01-08  Jim Meyering  <meyering@ascend.com>
88760
88761         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88762         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88763
88764 2000-01-04  Jim Meyering  <meyering@ascend.com>
88765
88766         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88767         jm_STRUCT_DIRENT_D_TYPE.
88768         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88769         jm_STRUCT_DIRENT_D_INO.
88770         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88771         jm_STRUCT_UTIMBUF.
88772         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88773         renamings.
88774         * m4/utime.m4: Likewise.
88775
88776         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88777         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88778
88779 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88780
88781         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88782         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88783
88784 2000-01-02  Jim Meyering  <meyering@ascend.com>
88785
88786         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88787         remember if this is necessary.
88788
88789 1999-12-26  Jim Meyering  <meyering@ascend.com>
88790
88791         * m4/jm-macros.m4: Use it here.
88792         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88793
88794 1999-12-23  Jim Meyering  <meyering@ascend.com>
88795
88796         * m4/jm-macros.m4: Check for clock_gettime (moved from
88797         fileutils/configure.in)
88798         Check for gettimeofday.
88799
88800 1999-12-20  Jim Meyering  <meyering@ascend.com>
88801
88802         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88803         autoconf-2.14a-1999-12-20.
88804
88805 1999-12-19  Jim Meyering  <meyering@ascend.com>
88806
88807         * m4/lstat-slash.m4: New file.
88808         * m4/jm-macros.m4: Use the new macro:
88809         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88810
88811 1999-12-07  Jim Meyering  <meyering@ascend.com>
88812
88813         * m4/perl.m4: Require that File::Compare be available, too.
88814         Too many systems seem to lack it.
88815
88816         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88817         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88818
88819 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88820
88821         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88822         problem with the QNX 4.25 shell, which doesn't propagate exit
88823         status of failed commands inside shell assignments.
88824
88825 1999-11-17  Jim Meyering  <meyering@ascend.com>
88826
88827         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88828
88829 1999-11-07  Jim Meyering  <meyering@ascend.com>
88830
88831         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88832
88833 1999-11-06  Jim Meyering  <meyering@ascend.com>
88834
88835         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88836         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88837
88838 1999-11-05  Jim Meyering  <meyering@ascend.com>
88839
88840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88841         configure.in of textutils, fileutils, and sh-utils into this one
88842         (shared between those packages) file.
88843         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88844         AC_STRUCT_ST_BLKSIZE.
88845
88846 1999-11-03  Jim Meyering  <meyering@ascend.com>
88847
88848         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88849         of AC_CHECK_TYPE checks includes unistd.h.
88850         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88851         Suggestion from Akim Demaille.
88852
88853 1999-10-30  Jim Meyering  <meyering@ascend.com>
88854
88855         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88856         m4-quoted string.
88857         * m4/ls-mntd-fs.m4: Likewise.
88858         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88859         * m4/jm-winsz1.m4: Likewise.
88860
88861         * m4/const.m4: Remove file, since the fix made it into the experimental
88862         version of autoconf.
88863         * m4/mktime.m4: Likewise.
88864
88865         * m4/check-type.m4: Remove file, now that the latest version of
88866         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88867
88868         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88869         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88870         AC_CHECK_TYPE.
88871
88872 1999-10-04  Jim Meyering  <meyering@ascend.com>
88873
88874         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88875
88876 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88877
88878         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88879         2.95.1 bug with HP-UX 10.20.
88880
88881 1999-09-17  Jim Meyering  <meyering@ascend.com>
88882
88883         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88884         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88885         due to missing strdup (against sh-utils-2.0).
88886
88887 1999-08-29  Jim Meyering  <meyering@ascend.com>
88888
88889         * m4/jm-macros.m4: Require jm_BISON.
88890         * m4/bison.m4: New file.
88891
88892 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88893
88894         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88895         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88896
88897 1999-08-05  Jim Meyering  <meyering@ascend.com>
88898
88899         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88900         to avoid conflicts with `conftest' on 8+3 filesystems.
88901         Suggestion from Eli Zaretskii.
88902
88903 1999-08-04  Jim Meyering  <meyering@ascend.com>
88904
88905         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88906         fileutils and sh-utils (textutils's getline test was inadequate).
88907         (AM_FUNC_GETLINE): Run this test.
88908         (AC_CHECK_FUNCS): Check for getdelim.
88909         Reported by Bob Proulx.
88910
88911 1999-08-02  Jim Meyering  <meyering@ascend.com>
88912
88913         * m4/jm-macros.m4: Add a comment.
88914
88915 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88916
88917         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88918         <inttypes.h> defines strtoumax as a macro (and not as a
88919         function).
88920
88921 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88922
88923         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88924         that we can shift, multiply and divide unsigned long long
88925         values; Ultrix cc can't do it.
88926
88927 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88928
88929         * m4/mktime.m4: New file, which is a preview of what should appear
88930         in the next public autoconf release.
88931
88932 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88933
88934         * m4/lfs.m4: Remove this file.
88935         * m4/largefile.m4: New file.  It contains the old contents of
88936         lfs.m4, except that all names with prefix AC_LFS have been
88937         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88938         compatible with future autoconf versions.  Also, some minor m4
88939         quoting problems have been fixed.
88940
88941 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88942
88943         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88944         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88945         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88946         and simplify the shell code.
88947
88948 1999-08-01  Jim Meyering  <meyering@ascend.com>
88949
88950         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88951         m4.
88952
88953 1999-07-20  Jim Meyering  <meyering@ascend.com>
88954
88955         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88956
88957 1999-07-15  Jim Meyering  <meyering@ascend.com>
88958
88959         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88960
88961 1999-05-22  Jim Meyering  <meyering@ascend.com>
88962
88963         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88964
88965 1999-05-20  Jim Meyering  <meyering@ascend.com>
88966
88967         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88968         Add a colon after each `then' in case $4 is empty.
88969
88970 1999-05-16  Jim Meyering  <meyering@ascend.com>
88971
88972         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88973
88974 1999-05-10  Jim Meyering  <meyering@ascend.com>
88975
88976         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88977
88978         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88979         AC_FUNC_MKTIME.
88980
88981 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88982
88983         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88984
88985 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88986
88987         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88988         not CPPFLAGS, so that linking works correctly in IRIX.
88989
88990 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88991
88992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88993
88994 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88995
88996         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88997         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88999         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89000         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89001
89002         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89003
89004 1999-04-20  Jim Meyering  <meyering@ascend.com>
89005
89006         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89007         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89008         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89009
89010 1999-04-18  Jim Meyering  <meyering@ascend.com>
89011
89012         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89013         * m4/jm-macros.m4: Use it.
89014
89015 1999-04-06  Jim Meyering  <meyering@ascend.com>
89016
89017         * m4/strftime.m4: Remove test for %f.
89018
89019 1999-03-29  Jim Meyering  <meyering@ascend.com>
89020
89021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89022         superset of the AC_TYPE_* checks in the textutils, fileutils,
89023         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89024         AC_TYPE_PID_T.
89025
89026 1999-03-28  Jim Meyering  <meyering@ascend.com>
89027
89028         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89029         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89030         replaced e.g., in the *.sh files of the sh-utils.
89031
89032 1999-03-20  Jim Meyering  <meyering@ascend.com>
89033
89034         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89035         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89036         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89037
89038 1999-03-19  Jim Meyering  <meyering@ascend.com>
89039
89040         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89041
89042 1999-03-12  Jim Meyering  <meyering@ascend.com>
89043
89044         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89045
89046 1999-03-07  Jim Meyering  <meyering@ascend.com>
89047
89048         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89049         declared.
89050
89051 1999-02-17  Jim Meyering  <meyering@ascend.com>
89052
89053         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89054         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89055
89056 1999-02-07  Jim Meyering  <meyering@ascend.com>
89057
89058         * m4/group-member.m4: New file -- extracted from sh-utils'
89059         configure.in.
89060
89061         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89062         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89063
89064 1999-02-06  Jim Meyering  <meyering@ascend.com>
89065
89066         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89067         * m4/fnmatch.m4: Likewise.
89068         * m4/getgroups.m4: Likewise.
89069         * m4/lstat.m4: Likewise.
89070         * m4/malloc.m4: Likewise.
89071         * m4/putenv.m4: Likewise.
89072         * m4/realloc.m4: Likewise.
89073         * m4/regex.m4: Likewise.
89074         * m4/stat.m4: Likewise.
89075         * m4/strftime.m4: Likewise.
89076         Suggestion from Alain Magloire.
89077
89078         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89079         * m4/fnmatch.m4: Likewise.
89080         * m4/getgroups.m4: Likewise.
89081         * m4/getline.m4: Likewise.
89082         * m4/lstat.m4: Likewise.
89083         * m4/malloc.m4: Likewise.
89084         * m4/memcmp.m4: Likewise.
89085         * m4/putenv.m4: Likewise.
89086         * m4/realloc.m4: Likewise.
89087         * m4/regex.m4: Likewise.
89088         * m4/stat.m4: Likewise.
89089         * m4/strftime.m4: Likewise.
89090         Suggestion from Alain Magloire.
89091
89092         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89093         an argument.
89094
89095         * m4/regex.m4: Add a run-time Test for proper operation of
89096         re_compile_pattern.
89097
89098 1999-01-31  Jim Meyering  <meyering@ascend.com>
89099
89100         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89101
89102 1999-01-30  Jim Meyering  <meyering@ascend.com>
89103
89104         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89105
89106         * m4/jm-mktime.m4: Make this a wrapper around the official
89107         AM_FUNC_MKTIME rather than my private copy, now that the official one
89108         is up to date.
89109         * m4/mktime.m4: Remove file.
89110
89111         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89112         * m4/uptime.m4: Likewise.
89113         * m4/uintmax_t.m4: Likewise.
89114
89115 1999-01-28  Jim Meyering  <meyering@ascend.com>
89116
89117         * m4/jm-macros.m4: Use jm_AFS.
89118         * m4/afs.m4: New file (from fileutils' configure.in).
89119
89120         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89121         * m4/chown.m4: Likewise.
89122         * m4/d-ino.m4: Likewise.
89123         * m4/d-type.m4: Likewise.
89124         * m4/fnmatch.m4: Likewise.
89125         * m4/getgroups.m4: Likewise.
89126         * m4/gettext.m4: Likewise.
89127         * m4/jm-mktime.m4: Likewise.
89128         * m4/jm-winsz2.m4: Likewise.
89129         * m4/lcmessage.m4: Likewise.
89130         * m4/ls-mntd-fs.m4: Likewise.
89131         * m4/malloc.m4: Likewise.
89132         * m4/memcmp.m4: Likewise.
89133         * m4/putenv.m4: Likewise.
89134         * m4/realloc.m4: Likewise.
89135         * m4/st_mtim.m4: Likewise.
89136         * m4/strftime.m4: Likewise.
89137
89138 1999-01-16  Jim Meyering  <meyering@ascend.com>
89139
89140         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89141         (ARGMATCH_DIE_DECL): Define.
89142
89143 1999-01-12  Jim Meyering  <meyering@ascend.com>
89144
89145         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89146         Reported by Lars Hecking.
89147
89148 1999-01-10  Jim Meyering  <meyering@ascend.com>
89149
89150         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89151         gross kludge.
89152         * m4/inttypes_h.m4: Likewise.
89153         * m4/lstat.m4: Likewise.
89154         * m4/malloc.m4: Likewise.
89155         * m4/readdir.m4: Likewise.
89156         * m4/realloc.m4: Likewise.
89157         * m4/st_dm_mode.m4: Likewise.
89158         * m4/stat.m4: Likewise.
89159         * m4/utimbuf.m4: Likewise.
89160         * m4/utimes.m4: Likewise.
89161
89162         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89163         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89164         comments in config.h.in are meaningful.
89165
89166         * m4/jm-macros.m4: Require autoconf-2.13 here.
89167
89168         * m4/regex.m4: By default, don't use the included regex.c on systems
89169         with glibc 2.  Suggestion from Uli Drepper.
89170
89171 1999-01-02  Jim Meyering  <meyering@ascend.com>
89172
89173         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89174
89175 1998-12-18  Jim Meyering  <meyering@ascend.com>
89176
89177         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89178         Based on a suggestion from Lars Hecking.
89179
89180 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89181
89182         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89183
89184 1998-11-16  Jim Meyering  <meyering@ascend.com>
89185
89186         * m4/lfs.m4: Double-quote the `uname...` expression.
89187
89188 1998-11-14  Jim Meyering  <meyering@ascend.com>
89189
89190         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89191         * m4/stat.m4: Likewise.
89192
89193 1998-11-03  Jim Meyering  <meyering@ascend.com>
89194
89195         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89196         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89197
89198 1998-10-18  Jim Meyering  <meyering@ascend.com>
89199
89200         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89201
89202 1998-10-17  Jim Meyering  <meyering@ascend.com>
89203
89204         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89205         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89206         calls for those previously hard-coded headers.  Instead, take a new
89207         parameter.
89208         (jm_CHECK_DECLARATIONS): Reflect interface change.
89209         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89210         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89211
89212         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89213
89214 1998-10-14  Jim Meyering  <meyering@ascend.com>
89215
89216         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89217         instead of "TZ=America/Vancouver".  From Paul Eggert.
89218
89219 1998-10-11  Jim Meyering  <meyering@ascend.com>
89220
89221         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89222         This adds a test for a recently added compatibility fix for mktime.c.
89223         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89224
89225 1998-09-27  Jim Meyering  <meyering@ascend.com>
89226
89227         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89228
89229         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89230         ../configure.in, including a change from Gordon Matzigkeit to allow
89231         cross-compiling for the Hurd.
89232
89233         * m4/glibc.m4: New file/macro to test for the GNU C Library
89234         versions 1 and 2.  From Gordon Matzigkeit.
89235         Indent.
89236
89237 1998-09-21  Jim Meyering  <meyering@ascend.com>
89238
89239         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89240
89241 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89242
89243         Port nanosecond-resolution times to UnixWare 2.1.2 and
89244         pedantic Solaris 2.6.
89245
89246         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89247         AC_STRUCT_ST_MTIM.
89248         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89249         Generate name of ns member, instead of just 1 or undef.
89250         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89251
89252 1998-08-15  Jim Meyering  <meyering@ascend.com>
89253
89254         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89255         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89256         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89257         instead of jm_TYPE_SSIZE_T.
89258
89259 1998-08-12  Jim Meyering  <meyering@ascend.com>
89260
89261         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89262
89263 1998-08-02  Jim Meyering  <meyering@ascend.com>
89264
89265         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89266         in acconfig.h manually.
89267
89268 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89269
89270         * m4/st_mtim.m4: New file.
89271
89272 1998-07-28  Jim Meyering  <meyering@ascend.com>
89273
89274         * m4/utimes.m4: Undef stat.
89275
89276 1998-07-25  Jim Meyering  <meyering@ascend.com>
89277
89278         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89279         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89280
89281 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89282
89283         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89284         uid and gid actually remain unchanged.
89285
89286 1998-07-07  Jim Meyering  <meyering@ascend.com>
89287
89288         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89289
89290 1998-07-04  Jim Meyering  <meyering@ascend.com>
89291
89292         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89293         to prove that this macro can be used in packages without regex.c.
89294
89295 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89296
89297         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89298         is to be used.
89299
89300 1998-07-03  Jim Meyering  <meyering@ascend.com>
89301
89302         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89303
89304         * m4/gettext.m4: New file -- from gettext-0.10.35.
89305         * m4/lcmessage.m4: Likewise.
89306         * m4/progtest.m4: Likewise.
89307
89308         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89309         * m4/jm-macros.m4: Require the new macro.
89310
89311 1998-06-29  Jim Meyering  <meyering@ascend.com>
89312
89313         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89314         for the definition of NGROUPS (used in a system header included
89315         by sys/mount.h).
89316
89317 1998-06-28  Jim Meyering  <meyering@ascend.com>
89318
89319         * m4/ls-mntd-fs.m4: New file.
89320         * m4/fstypename.m4: New file.
89321
89322         * m4/jm-macros.m4: Require the new macro.
89323         * m4/jm-glibc-io.m4: New file.
89324
89325 1998-05-19  Jim Meyering  <meyering@ascend.com>
89326
89327         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89328         * m4/lchown.m4: New file.
89329
89330         * m4/Makefile.am.in: New file.
89331         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89332
89333 1998-05-14  Jim Meyering  <meyering@ascend.com>
89334
89335         * m4/Makefile.am (EXTRA_DIST): Add them.
89336         * m4/jm-macros.m4: New file.
89337         * m4/utimbuf.m4: New file.
89338
89339 1998-05-12  Jim Meyering  <meyering@ascend.com>
89340
89341         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89342
89343 1998-05-11  Jim Meyering  <meyering@ascend.com>
89344
89345         * m4/isc-posix.m4: New file.
89346
89347 1998-05-10  Jim Meyering  <meyering@ascend.com>
89348
89349         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89350
89351 1998-05-09  Jim Meyering  <meyering@ascend.com>
89352
89353         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89354         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89355         with automake.
89356
89357         * m4/ssize_t.m4: New file.
89358         * m4/mktime.m4: Remove file -- the new automake has this now.
89359
89360 1998-04-26  Jim Meyering  <meyering@ascend.com>
89361
89362         * m4/assert.m4: New file.
89363         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89364
89365 1998-04-05  Jim Meyering  <meyering@ascend.com>
89366
89367         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89368         (jm_PREREQ): Use it here.
89369
89370 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89371
89372         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89373         in acconfig.h.
89374
89375 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89376
89377         * m4/prereq.m4: New file.
89378         * m4/error.m4: New file.
89379         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89380
89381 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89382
89383         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89384         cache-check for the same variable -- that defeated the purpose of
89385         the test; the test program was never run.  This was a problem only
89386         on systems with losing getline functions -- HP-UX 10.20 is one.
89387         Reported by Bjorn Helgaas.
89388
89389 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89390
89391         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89392
89393 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89394
89395         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89396
89397         * m4/const.m4: New file.  Use an initializer in this declaration
89398         typedef int charset[2]; const charset x;
89399         Reported by Bob Glickstein.
89400
89401 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89402
89403         * m4/chown.m4: Fix reversed types on -1 args to chown.
89404         From Kaveh Ghazi.
89405
89406 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89407
89408         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89409         Add lseek and memchr.
89410
89411         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89412         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89413         have a 20-character limit on names.
89414
89415 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89416
89417         * m4/inttypes_h.m4: New file.
89418         * m4/uintmax_t.m4: New file.
89419         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89420
89421
89422         -----
89423
89424         Local Variables:
89425         coding: utf-8
89426         End:
89427
89428         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89429
89430         Copying and distribution of this file, with or without
89431         modification, are permitted provided the copyright notice
89432         and this notice are preserved.